From eb78a3f78d969c3609eb1e437701dd805699e742 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 20 Nov 2023 18:07:21 +0000 Subject: [PATCH 01/23] Use pytest asyncio auto mode (#247) --- pyproject.toml | 1 + tests/unit_tests/test_callbacks.py | 3 --- tests/unit_tests/test_server_client.py | 28 -------------------------- 3 files changed, 1 insertion(+), 31 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2fe052d..7b9d7017 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -96,3 +96,4 @@ addopts = "--strict-markers --strict-config --durations=5 -vv" # Global timeout for all tests. There shuold be a good reason for a test to # take more than 5 second timeout = 5 +asyncio_mode = "auto" diff --git a/tests/unit_tests/test_callbacks.py b/tests/unit_tests/test_callbacks.py index 26898a30..b3c0484f 100644 --- a/tests/unit_tests/test_callbacks.py +++ b/tests/unit_tests/test_callbacks.py @@ -1,11 +1,8 @@ import uuid -import pytest - from langserve.callbacks import AsyncEventAggregatorCallback, replace_uuids -@pytest.mark.asyncio async def test_event_aggregator() -> None: """Test that the event aggregator is aggregating events.""" diff --git a/tests/unit_tests/test_server_client.py b/tests/unit_tests/test_server_client.py index 2c98d8bd..05c60635 100644 --- a/tests/unit_tests/test_server_client.py +++ b/tests/unit_tests/test_server_client.py @@ -268,7 +268,6 @@ def test_serve_playground(app: FastAPI) -> None: assert response.status_code == 404 -@pytest.mark.asyncio async def test_serve_playground_with_api_router() -> None: """Test serving playground from an api router with a prefix.""" app = FastAPI() @@ -289,7 +288,6 @@ async def test_serve_playground_with_api_router() -> None: assert response.status_code == 200 -@pytest.mark.asyncio async def test_server_async(app: FastAPI) -> None: """Test the server directly via HTTP requests.""" async with get_async_test_client(app, raise_app_exceptions=True) as async_client: @@ -399,7 +397,6 @@ async def test_server_async(app: FastAPI) -> None: assert stream_events[0]["data"]["status_code"] == 422 -@pytest.mark.asyncio async def test_server_bound_async(app_for_config: FastAPI) -> None: """Test the server directly via HTTP requests.""" async_client = AsyncClient(app=app_for_config, base_url="http://localhost:9999") @@ -509,7 +506,6 @@ def test_batch(sync_remote_runnable: RemoteRunnable) -> None: ) -@pytest.mark.asyncio async def test_ainvoke(async_remote_runnable: RemoteRunnable) -> None: """Test async invoke.""" assert await async_remote_runnable.ainvoke(1) == 2 @@ -530,7 +526,6 @@ async def test_ainvoke(async_remote_runnable: RemoteRunnable) -> None: ) -@pytest.mark.asyncio async def test_abatch(async_remote_runnable: RemoteRunnable) -> None: """Test async batch.""" assert await async_remote_runnable.abatch([]) == [] @@ -581,7 +576,6 @@ async def test_abatch(async_remote_runnable: RemoteRunnable) -> None: ) -@pytest.mark.asyncio async def test_astream(async_remote_runnable: RemoteRunnable) -> None: """Test astream log.""" @@ -628,7 +622,6 @@ async def add_one_or_passthrough( assert outputs == [data] -@pytest.mark.asyncio async def test_astream_log_diff_no_effect( async_remote_runnable: RemoteRunnable, ) -> None: @@ -659,7 +652,6 @@ async def test_astream_log_diff_no_effect( ] -@pytest.mark.asyncio async def test_astream_log(async_remote_runnable: RemoteRunnable) -> None: """Test astream log.""" @@ -739,7 +731,6 @@ def test_invoke_as_part_of_sequence(sync_remote_runnable: RemoteRunnable) -> Non # assert list(runnable.stream([1, 2], config={"tags": ["test"]})) == [3, 4] -@pytest.mark.asyncio async def test_invoke_as_part_of_sequence_async( async_remote_runnable: RemoteRunnable, ) -> None: @@ -817,7 +808,6 @@ async def test_invoke_as_part_of_sequence_async( } -@pytest.mark.asyncio async def test_multiple_runnables(event_loop: AbstractEventLoop) -> None: """Test serving multiple runnables.""" @@ -867,7 +857,6 @@ async def mul_2(x: int) -> int: ) == StringPromptValue(text="What is your name? Bob") -@pytest.mark.asyncio async def test_input_validation( event_loop: AbstractEventLoop, mocker: MockerFixture ) -> None: @@ -936,7 +925,6 @@ async def add_one(x: int) -> int: assert "__langserve_version" in config_seen["metadata"] -@pytest.mark.asyncio async def test_input_validation_with_lc_types(event_loop: AbstractEventLoop) -> None: """Test client side and server side exceptions.""" @@ -1018,7 +1006,6 @@ def test_client_close() -> None: assert async_client.is_closed is True -@pytest.mark.asyncio async def test_async_client_close() -> None: """Test that the client can be automatically.""" runnable = RemoteRunnable(url="/dev/null", timeout=1) @@ -1031,7 +1018,6 @@ async def test_async_client_close() -> None: assert async_client.is_closed is True -@pytest.mark.asyncio async def test_openapi_docs_with_identical_runnables( event_loop: AbstractEventLoop, mocker: MockerFixture ) -> None: @@ -1079,7 +1065,6 @@ async def add_one(x: int) -> int: assert response.status_code == 200 -@pytest.mark.asyncio async def test_configurable_runnables(event_loop: AbstractEventLoop) -> None: """Add tests for using langchain's configurable runnables""" @@ -1170,7 +1155,6 @@ class Foo(BaseModel): assert Model.__name__ == "BarFoo" -@pytest.mark.asyncio async def test_input_config_output_schemas(event_loop: AbstractEventLoop) -> None: """Test schemas returned for different configurations.""" # TODO(Fix me): need to fix handling of global state -- we get problems @@ -1292,7 +1276,6 @@ async def add_two(y: int) -> int: } -@pytest.mark.asyncio async def test_input_schema_typed_dict() -> None: class InputType(TypedDict): foo: str @@ -1379,7 +1362,6 @@ async def astream( # assert chunks == [{"a": "1"}, {"a": "2"}] -@pytest.mark.asyncio async def test_streaming_dict_async() -> None: """Test streaming different types of items.""" app = FastAPI() @@ -1397,7 +1379,6 @@ async def test_streaming_dict_async() -> None: assert chunks == [{"a": "1"}, {"a": "2"}] -@pytest.mark.asyncio async def test_server_side_error() -> None: """Test server side error handling.""" @@ -1501,7 +1482,6 @@ def test_error_on_path_collision() -> None: add_routes(app, RunnableLambda(lambda foo: "hello"), path="/baz") -@pytest.mark.asyncio async def test_custom_user_type() -> None: """Test custom user type.""" app = FastAPI() @@ -1532,7 +1512,6 @@ def func2(baz) -> int: assert await runnable.ainvoke({"bar": 1}) == 1 -@pytest.mark.asyncio async def test_using_router() -> None: """Test using a router.""" app = FastAPI() @@ -1559,7 +1538,6 @@ def _is_valid_uuid(uuid_as_str: str) -> bool: return False -@pytest.mark.asyncio async def test_invoke_returns_run_id(app: FastAPI) -> None: """Test the server directly via HTTP requests.""" async with get_async_test_client(app, raise_app_exceptions=True) as async_client: @@ -1568,7 +1546,6 @@ async def test_invoke_returns_run_id(app: FastAPI) -> None: assert _is_valid_uuid(run_id) -@pytest.mark.asyncio async def test_batch_returns_run_id(app: FastAPI) -> None: """Test the server directly via HTTP requests.""" async with get_async_test_client(app, raise_app_exceptions=True) as async_client: @@ -1579,7 +1556,6 @@ async def test_batch_returns_run_id(app: FastAPI) -> None: assert _is_valid_uuid(run_id) -@pytest.mark.asyncio async def test_feedback_succeeds_when_langsmith_enabled() -> None: """Tests that the feedback endpoint can accept feedback to langsmith.""" @@ -1635,7 +1611,6 @@ async def test_feedback_succeeds_when_langsmith_enabled() -> None: assert json_response == expected_response_json -@pytest.mark.asyncio async def test_feedback_fails_when_langsmith_disabled(app: FastAPI) -> None: """Tests that feedback is not sent to langsmith if langsmith is disabled.""" with MonkeyPatch.context() as mp: @@ -1664,7 +1639,6 @@ async def test_feedback_fails_when_langsmith_disabled(app: FastAPI) -> None: assert response.status_code == 400 -@pytest.mark.asyncio async def test_feedback_fails_when_endpoint_disabled(app: FastAPI) -> None: """ Tests that the feedback endpoint returns 400s if the user turns it off. @@ -1684,7 +1658,6 @@ async def test_feedback_fails_when_endpoint_disabled(app: FastAPI) -> None: assert response.status_code == 400 -@pytest.mark.asyncio async def test_per_request_config_modifier( event_loop: AbstractEventLoop, mocker: MockerFixture ) -> None: @@ -1718,7 +1691,6 @@ def header_passthru_modifier( ) -@pytest.mark.asyncio async def test_uuid_serialization(event_loop: AbstractEventLoop) -> None: """Test updating the config based on the raw request object.""" import datetime From b60b52daf6e9782d91e7c4e7576bd55465ff837a Mon Sep 17 00:00:00 2001 From: jakerachleff Date: Mon, 20 Nov 2023 13:59:36 -0800 Subject: [PATCH 02/23] add default configs for all served runnables (#209) Configures the run name to be the path, and some information about the associated repo to be in the metadata of the traced run --------- Co-authored-by: Eugene Yurtsev --- langserve/server.py | 113 ++++++++++++++++++------- tests/unit_tests/test_server_client.py | 7 +- 2 files changed, 89 insertions(+), 31 deletions(-) diff --git a/langserve/server.py b/langserve/server.py index 7d9a4407..a80d6d50 100644 --- a/langserve/server.py +++ b/langserve/server.py @@ -7,6 +7,7 @@ """ import contextlib import json +import os import re import weakref from inspect import isclass @@ -132,6 +133,56 @@ def _unpack_request_config( ) +def _update_config_with_defaults( + path: str, + incomingConfig: RunnableConfig, + request: Request, + *, + endpoint: Optional[str] = None, +) -> RunnableConfig: + """Set up some baseline configuration for the underlying runnable.""" + + # Currently all defaults are non-overridable + overridable_default_config = RunnableConfig() + + metadata = { + "__useragent": request.headers.get("user-agent"), + "__langserve_version": __version__, + } + + if endpoint: + metadata["__langserve_endpoint"] = endpoint + + is_hosted = os.environ.get("HOSTED_LANGSERVE_ENABLED", "false").lower() == "true" + if is_hosted: + hosted_metadata = { + "__langserve_hosted_git_commit_sha": os.environ.get( + "HOSTED_LANGSERVE_GIT_COMMIT", "" + ), + "__langserve_hosted_repo_subdirectory_path": os.environ.get( + "HOSTED_LANGSERVE_GIT_REPO_PATH", "" + ), + "__langserve_hosted_repo_url": os.environ.get( + "HOSTED_LANGSERVE_GIT_REPO", "" + ), + } + metadata.update(hosted_metadata) + + non_overridable_default_config = RunnableConfig( + run_name=path, + metadata=metadata, + ) + + # merge_configs is last-writer-wins, so we specifically pass in the + # overridable configs first, then the user provided configs, then + # finally the non-overridable configs + return merge_configs( + overridable_default_config, + incomingConfig, + non_overridable_default_config, + ) + + def _unpack_input(validated_model: BaseModel) -> Any: """Unpack the decoded input from the validated model.""" if hasattr(validated_model, "__root__"): @@ -232,24 +283,6 @@ def _add_namespace_to_model(namespace: str, model: Type[BaseModel]) -> Type[Base return model_with_unique_name -def _add_tracing_info_to_metadata(config: Dict[str, Any], request: Request) -> None: - """Add information useful for tracing and debugging purposes. - - Args: - config: The config to expand with tracing information. - request: The request to use for expanding the metadata. - """ - - metadata = config["metadata"] if "metadata" in config else {} - - info = { - "__useragent": request.headers.get("user-agent"), - "__langserve_version": __version__, - } - metadata.update(info) - config["metadata"] = metadata - - def _scrub_exceptions_in_event(event: CallbackEventDict) -> CallbackEventDict: """Scrub exceptions and change to a serializable format.""" type_ = event["type"] @@ -467,7 +500,8 @@ def add_routes( This parameter may get deprecated! config_keys: list of config keys that will be accepted, by default will accept `configurable` key in the config. Will only be used - if the runnable is configurable. + if the runnable is configurable. Cannot configure run_name, + which is set by default to the path of the API. include_callback_events: Whether to include callback events in the response. If true, the client will be able to show trace information including events that occurred on the server side. @@ -503,6 +537,11 @@ def add_routes( f"If specifying path please start it with a `/`" ) + if "run_name" in config_keys: + raise ValueError( + "Cannot configure run_name. Please remove it from config_keys." + ) + namespace = path or "" model_namespace = _replace_non_alphanumeric_with_underscores(path.strip("/")) @@ -614,7 +653,7 @@ def _route_name_with_config(name: str) -> str: BatchResponse = create_batch_response_model(model_namespace, output_type_) async def _get_config_and_input( - request: Request, config_hash: str + request: Request, config_hash: str, *, endpoint: Optional[str] = None ) -> Tuple[RunnableConfig, Any]: """Extract the config and input from the request, validating the request.""" try: @@ -625,7 +664,7 @@ async def _get_config_and_input( body = InvokeRequestShallowValidator.validate(body) # Merge the config from the path with the config from the body. - config = _unpack_request_config( + user_provided_config = _unpack_request_config( config_hash, body.config, config_keys=config_keys, @@ -633,6 +672,9 @@ async def _get_config_and_input( request=request, per_req_config_modifier=per_req_config_modifier, ) + config = _update_config_with_defaults( + path, user_provided_config, request, endpoint=endpoint + ) # Unpack the input dynamically using the input schema of the runnable. # This takes into account changes in the input type when # using configuration. @@ -654,10 +696,11 @@ async def invoke( """Invoke the runnable with the given input and config.""" # We do not use the InvokeRequest model here since configurable runnables # have dynamic schema -- so the validation below is a bit more involved. - config, input_ = await _get_config_and_input(request, config_hash) + config, input_ = await _get_config_and_input( + request, config_hash, endpoint="invoke" + ) event_aggregator = AsyncEventAggregatorCallback() - _add_tracing_info_to_metadata(config, request) config["callbacks"] = [event_aggregator] output = await runnable.ainvoke(input_, config=config) @@ -752,11 +795,14 @@ async def batch( # Update the configuration with callbacks aggregators = [AsyncEventAggregatorCallback() for _ in range(len(inputs))] + final_configs = [] for config_, aggregator in zip(configs_, aggregators): - _add_tracing_info_to_metadata(config_, request) config_["callbacks"] = [aggregator] + final_configs.append( + _update_config_with_defaults(path, config_, request, endpoint="batch") + ) - output = await runnable.abatch(inputs, config=configs_) + output = await runnable.abatch(inputs, config=final_configs) if include_callback_events: callback_events = [ @@ -794,7 +840,9 @@ async def stream( err_event = {} validation_exception: Optional[BaseException] = None try: - config, input_ = await _get_config_and_input(request, config_hash) + config, input_ = await _get_config_and_input( + request, config_hash, endpoint="stream" + ) except BaseException as e: validation_exception = e if isinstance(e, RequestValidationError): @@ -992,13 +1040,14 @@ async def _stream_log() -> AsyncIterator[dict]: async def input_schema(request: Request, config_hash: str = "") -> Any: """Return the input schema of the runnable.""" with _with_validation_error_translation(): - config = _unpack_request_config( + user_provided_config = _unpack_request_config( config_hash, config_keys=config_keys, model=ConfigPayload, request=request, per_req_config_modifier=per_req_config_modifier, ) + config = _update_config_with_defaults(path, user_provided_config, request) return runnable.get_input_schema(config).schema() @@ -1015,13 +1064,14 @@ async def input_schema(request: Request, config_hash: str = "") -> Any: async def output_schema(request: Request, config_hash: str = "") -> Any: """Return the output schema of the runnable.""" with _with_validation_error_translation(): - config = _unpack_request_config( + user_provided_config = _unpack_request_config( config_hash, config_keys=config_keys, model=ConfigPayload, request=request, per_req_config_modifier=per_req_config_modifier, ) + config = _update_config_with_defaults(path, user_provided_config, request) return runnable.get_output_schema(config).schema() @app.get( @@ -1035,13 +1085,14 @@ async def output_schema(request: Request, config_hash: str = "") -> Any: async def config_schema(request: Request, config_hash: str = "") -> Any: """Return the config schema of the runnable.""" with _with_validation_error_translation(): - config = _unpack_request_config( + user_provided_config = _unpack_request_config( config_hash, config_keys=config_keys, model=ConfigPayload, request=request, per_req_config_modifier=per_req_config_modifier, ) + config = _update_config_with_defaults(path, user_provided_config, request) return runnable.with_config(config).config_schema(include=config_keys).schema() @app.get( @@ -1054,7 +1105,7 @@ async def playground( ) -> Any: """Return the playground of the runnable.""" with _with_validation_error_translation(): - config = _unpack_request_config( + user_provided_config = _unpack_request_config( config_hash, config_keys=config_keys, model=ConfigPayload, @@ -1062,6 +1113,8 @@ async def playground( per_req_config_modifier=per_req_config_modifier, ) + config = _update_config_with_defaults(path, user_provided_config, request) + if isinstance(app, FastAPI): # type: ignore base_url = f"{namespace}/playground" else: diff --git a/tests/unit_tests/test_server_client.py b/tests/unit_tests/test_server_client.py index 05c60635..4c62b854 100644 --- a/tests/unit_tests/test_server_client.py +++ b/tests/unit_tests/test_server_client.py @@ -882,7 +882,7 @@ async def add_one(x: int) -> int: server_runnable2, input_type=int, path="/add_one_config", - config_keys=["tags", "run_name", "metadata"], + config_keys=["tags", "metadata"], ) async with get_async_remote_runnable( @@ -909,8 +909,11 @@ async def add_one(x: int) -> int: # will still be added config_seen = server_runnable_spy.call_args[0][1] assert "metadata" in config_seen + assert "a" not in config_seen["metadata"] assert "__useragent" in config_seen["metadata"] assert "__langserve_version" in config_seen["metadata"] + assert "__langserve_endpoint" in config_seen["metadata"] + assert config_seen["metadata"]["__langserve_endpoint"] == "invoke" server_runnable2_spy = mocker.spy(server_runnable2, "ainvoke") async with get_async_remote_runnable(app, path="/add_one_config") as runnable2: @@ -923,6 +926,8 @@ async def add_one(x: int) -> int: assert config_seen["metadata"]["a"] == 5 assert "__useragent" in config_seen["metadata"] assert "__langserve_version" in config_seen["metadata"] + assert "__langserve_endpoint" in config_seen["metadata"] + assert config_seen["metadata"]["__langserve_endpoint"] == "invoke" async def test_input_validation_with_lc_types(event_loop: AbstractEventLoop) -> None: From eef38b532d7c1df24fd5a89090df971828094d3a Mon Sep 17 00:00:00 2001 From: jakerachleff Date: Mon, 20 Nov 2023 14:04:52 -0800 Subject: [PATCH 03/23] add auto metadata logging for stream log (#249) --- langserve/server.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/langserve/server.py b/langserve/server.py index a80d6d50..e33605c5 100644 --- a/langserve/server.py +++ b/langserve/server.py @@ -135,7 +135,7 @@ def _unpack_request_config( def _update_config_with_defaults( path: str, - incomingConfig: RunnableConfig, + incoming_config: RunnableConfig, request: Request, *, endpoint: Optional[str] = None, @@ -178,7 +178,7 @@ def _update_config_with_defaults( # finally the non-overridable configs return merge_configs( overridable_default_config, - incomingConfig, + incoming_config, non_overridable_default_config, ) @@ -935,7 +935,9 @@ async def stream_log( err_event = {} validation_exception: Optional[BaseException] = None try: - config, input_ = await _get_config_and_input(request, config_hash) + config, input_ = await _get_config_and_input( + request, config_hash, endpoint="stream_log" + ) except BaseException as e: validation_exception = e if isinstance(e, RequestValidationError): From 0e971b367fb2e09972260f1c9b704172bdcc4d6c Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 20 Nov 2023 17:06:39 -0500 Subject: [PATCH 04/23] Release 0.0.30 (#250) See release notes --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7b9d7017..4cec90d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langserve" -version = "0.0.29" +version = "0.0.30" description = "" readme = "README.md" authors = ["LangChain"] From 099fc666e53f8bc562acce7accfbad591ba0113f Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 21 Nov 2023 01:47:06 +0100 Subject: [PATCH 05/23] Refactor schema loading to deal with race conditions, get rid of embedding for now --- examples/configurable_chain/server.py | 23 +- langserve/playground/package.json | 1 + langserve/playground/src/App.tsx | 581 +++++------------- .../src/components/CustomAnyOfRenderer.tsx | 2 +- .../playground/src/components/ShareDialog.tsx | 31 +- .../src/components/SubmitButton.tsx | 50 ++ langserve/playground/src/main.tsx | 7 + langserve/playground/src/renderers.tsx | 111 ++++ .../src/sections/SectionConfigure.tsx | 50 ++ .../playground/src/sections/SectionInputs.tsx | 64 ++ langserve/playground/src/useSchemas.tsx | 104 ++-- .../playground/src/useStreamCallback.tsx | 29 + langserve/playground/src/utils/url.ts | 32 +- langserve/playground/yarn.lock | 18 + 14 files changed, 591 insertions(+), 512 deletions(-) create mode 100644 langserve/playground/src/components/SubmitButton.tsx create mode 100644 langserve/playground/src/renderers.tsx create mode 100644 langserve/playground/src/sections/SectionConfigure.tsx create mode 100644 langserve/playground/src/sections/SectionInputs.tsx diff --git a/examples/configurable_chain/server.py b/examples/configurable_chain/server.py index 1050fff1..a2fe2af8 100755 --- a/examples/configurable_chain/server.py +++ b/examples/configurable_chain/server.py @@ -63,7 +63,28 @@ ############################################################################### -# EXAMPLE 2: Configure fields based on Request metadata # +# EXAMPLE 2: Configure prompt based on RunnableConfig # +############################################################################### +configurable_prompt = PromptTemplate.from_template( + "tell me a joke about {topic}." +).configurable_alternatives( + ConfigurableField( + id="prompt", + name="Prompt", + description="The prompt to use. Must contain {topic}.", + ), + default_key="joke", + fact=PromptTemplate.from_template( + "tell me a fact about {topic} in {language} language." + ), +) +prompt_chain = configurable_prompt | model | StrOutputParser() + +add_routes(app, prompt_chain, path="/configurable_prompt") + + +############################################################################### +# EXAMPLE 3: Configure fields based on Request metadata # ############################################################################### diff --git a/langserve/playground/package.json b/langserve/playground/package.json index 30cf5485..dc374164 100644 --- a/langserve/playground/package.json +++ b/langserve/playground/package.json @@ -28,6 +28,7 @@ "lz-string": "^1.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "swr": "^2.2.4", "tailwind-merge": "^1.14.0", "use-debounce": "^9.0.4", "vaul": "^0.7.3" diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx index f78d03c8..5693d975 100644 --- a/langserve/playground/src/App.tsx +++ b/langserve/playground/src/App.tsx @@ -1,260 +1,54 @@ import "./App.css"; -import { useEffect, useMemo, useRef, useState } from "react"; -import defaults from "./utils/defaults"; -import { JsonForms } from "@jsonforms/react"; -import { - materialAllOfControlTester, - MaterialAllOfRenderer, - MaterialObjectRenderer, - materialOneOfControlTester, - MaterialOneOfRenderer, -} from "@jsonforms/material-renderers"; -import dayjs from "dayjs"; -import utc from "dayjs/plugin/utc"; -import relativeDate from "dayjs/plugin/relativeTime"; -import SendIcon from "./assets/SendIcon.svg?react"; +import { useEffect, useRef, useState } from "react"; + import ShareIcon from "./assets/ShareIcon.svg?react"; -import { compressToEncodedURIComponent } from "lz-string"; -import { - BooleanCell, - DateCell, - DateTimeCell, - EnumCell, - IntegerCell, - NumberCell, - SliderCell, - TimeCell, - booleanCellTester, - dateCellTester, - dateTimeCellTester, - enumCellTester, - integerCellTester, - numberCellTester, - sliderCellTester, - textAreaCellTester, - textCellTester, - timeCellTester, - vanillaRenderers, - InputControl, -} from "@jsonforms/vanilla-renderers"; -import { useSchemas } from "./useSchemas"; +import { useConfigSchema, useInputSchema } from "./useSchemas"; import { useStreamLog } from "./useStreamLog"; -import { StreamCallback } from "./types"; -import { AppCallbackContext } from "./useStreamCallback"; -import { - JsonFormsCore, - RankedTester, - rankWith, - and, - uiTypeIs, - schemaMatches, - schemaTypeIs, -} from "@jsonforms/core"; -import CustomArrayControlRenderer, { - materialArrayControlTester, -} from "./components/CustomArrayControlRenderer"; -import CustomTextAreaCell from "./components/CustomTextAreaCell"; -import JsonTextAreaCell from "./components/JsonTextAreaCell"; -import { getStateFromUrl, ShareDialog } from "./components/ShareDialog"; -import { - chatMessagesTester, - ChatMessagesControlRenderer, -} from "./components/ChatMessagesControlRenderer"; -import { - ChatMessageTuplesControlRenderer, - chatMessagesTupleTester, -} from "./components/ChatMessageTuplesControlRenderer"; -import { - fileBase64Tester, - FileBase64ControlRenderer, -} from "./components/FileBase64Tester"; +import { AppCallbackContext, useAppStreamCallbacks } from "./useStreamCallback"; +import { JsonSchema } from "@jsonforms/core"; +import { ShareDialog } from "./components/ShareDialog"; import { IntermediateSteps } from "./components/IntermediateSteps"; import { StreamOutput } from "./components/StreamOutput"; -import { - customAnyOfTester, - CustomAnyOfRenderer, -} from "./components/CustomAnyOfRenderer"; +import { ConfigValue, SectionConfigure } from "./sections/SectionConfigure"; +import { InputValue, SectionInputs } from "./sections/SectionInputs"; +import { SubmitButton } from "./components/SubmitButton"; +import { useDebounce } from "use-debounce"; import { cn } from "./utils/cn"; +import { getStateFromUrl } from "./utils/url"; -dayjs.extend(relativeDate); -dayjs.extend(utc); - -const isObjectWithPropertiesControl = rankWith( - 2, - and( - uiTypeIs("Control"), - schemaTypeIs("object"), - schemaMatches((schema) => - Object.prototype.hasOwnProperty.call(schema, "properties") - ) - ) -); - -const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); -const isElse = rankWith(1, and(uiTypeIs("Control"))); - -export const renderers = [ - ...vanillaRenderers, - - // use material renderers to handle objects and json schema references - // they should yield the rendering to simpler cells - { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, - { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, - { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, - - { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, - - // custom renderers - { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, - { tester: isObject, renderer: InputControl }, - { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, - { - tester: chatMessagesTupleTester, - renderer: ChatMessageTuplesControlRenderer, - }, - { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, -]; - -const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { - return jsonSchema.type === "array"; -}); - -export const cells = [ - { tester: booleanCellTester, cell: BooleanCell }, - { tester: dateCellTester, cell: DateCell }, - { tester: dateTimeCellTester, cell: DateTimeCell }, - { tester: enumCellTester, cell: EnumCell }, - { tester: integerCellTester, cell: IntegerCell }, - { tester: numberCellTester, cell: NumberCell }, - { tester: sliderCellTester, cell: SliderCell }, - { tester: textAreaCellTester, cell: CustomTextAreaCell }, - { tester: textCellTester, cell: CustomTextAreaCell }, - { tester: timeCellTester, cell: TimeCell }, - { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, - { tester: isElse, cell: JsonTextAreaCell }, -]; +function InputPlayground(props: { + configSchema: { schema: JsonSchema; defaults: unknown }; + inputSchema: { schema: JsonSchema; defaults: unknown }; -function App() { - const [isEmbedded] = useState(() => - window.location.search.includes("embeded=true") - ); - - // it is possible that defaults are being applied _after_ - // the initial update message has been sent from the parent window - // so we store the initial config data in a ref - const initConfigData = useRef(null); + configData: ConfigValue; - // store form state - const [configData, setConfigData] = useState< - Pick & { defaults: boolean } - >({ data: {}, errors: [], defaults: true }); + startStream: (input: unknown, config: unknown) => void; + stopStream: (() => void) | undefined; - const [inputData, setInputData] = useState< - Pick - >({ data: null, errors: [] }); - // fetch input and config schemas from the server - const schemas = useSchemas(configData); - // apply defaults defined in each schema - useEffect(() => { - if (schemas.config) { - const state = getStateFromUrl(window.location.href); - setConfigData({ - data: - state.configFromUrl ?? - initConfigData.current ?? - defaults(schemas.config), - errors: [], - defaults: true, - }); - - setInputData({ data: defaults(schemas.input), errors: [] }); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [schemas.config]); - - // callbacks handling - const callbacks = useRef<{ - onStart: Exclude[]; - onSuccess: Exclude[]; - onError: Exclude[]; - }>({ onStart: [], onSuccess: [], onError: [] }); - - // the runner - const { startStream, stopStream, latest } = useStreamLog({ - onStart(...args) { - for (const callback of callbacks.current.onStart) { - callback(...args); - } - }, - onSuccess(...args) { - for (const callback of callbacks.current.onSuccess) { - callback(...args); - } - }, - onError(...args) { - for (const callback of callbacks.current.onError) { - callback(...args); - } - }, + children?: React.ReactNode; +}) { + const [inputData, setInputData] = useState({ + data: props.inputSchema.defaults, + errors: [], }); - useEffect(() => { - window.parent?.postMessage({ type: "init" }, "*"); - }, []); - - useEffect(() => { - function listener(event: MessageEvent) { - if (event.source === window.parent) { - const message = event.data; - if (typeof message === "object" && message != null) { - switch (message.type) { - case "update": { - const value: { config: JsonFormsCore["data"] } = message.value; - if (Object.keys(value.config).length > 0) { - initConfigData.current = value.config; - setConfigData({ - data: value.config, - errors: [], - defaults: false, - }); - break; - } - } - } - } - } - } - - window.addEventListener("message", listener); - return () => window.removeEventListener("message", listener); - }, []); - - const isInputResetable = useMemo(() => { - if (!schemas.input) return false; - return ( - JSON.stringify(defaults(schemas.input)) !== JSON.stringify(inputData.data) - ); - }, [schemas.input, inputData.data]); - - function onSubmit() { + const submitRef = useRef<(() => void) | null>(null); + submitRef.current = () => { if ( - !stopStream && - (!!inputData.errors?.length || !!configData.errors?.length) + !props.stopStream && + (!!inputData.errors?.length || !!props.configData.errors?.length) ) { return; } - if (stopStream) { - stopStream(); + if (props.stopStream) { + props.stopStream(); } else { - startStream(inputData.data, configData.data); + props.startStream(inputData.data, props.configData.data); } - } - - const submitRef = useRef<(() => void) | null>(null); - submitRef.current = onSubmit; + }; useEffect(() => { window.addEventListener("keydown", (e) => { @@ -266,206 +60,147 @@ function App() { }, []); const isSendDisabled = - !stopStream && (!!inputData.errors?.length || !!configData.errors?.length); - - if (!schemas.config || !schemas.input) { - return <>; - } + !props.stopStream && + (!!inputData.errors?.length || !!props.configData.errors?.length); return ( - -
-
-

- 🦜 LangServe Playground -

- - {Object.keys(schemas.config).length > 0 && ( -
- {!isEmbedded && ( -

Configure

- )} + <> + setInputData(input)} + /> + + {props.children} + +
+ +
+
+ + + + + + +
+ + ); +} -
- - data - ? setConfigData({ data, errors, defaults: false }) - : undefined - } - /> +function ConfigPlayground(props: { + configSchema: { + schema: JsonSchema; + defaults: unknown; + }; +}) { + const urlState = getStateFromUrl(window.location.href); + const [configData, setConfigData] = useState({ + data: urlState.configFromUrl ?? props.configSchema.defaults, + errors: [], + defaults: true, + }); - {!!configData.errors?.length && configData.data && ( -
-
- Validation Errors -
    - {configData.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
-
-
- )} -
-
- )} + // input schema is derived from config data + const [debouncedConfigData, debounceState] = useDebounce( + configData.data, + 500 + ); - {!isEmbedded && ( -
-

Try it

+ const inputSchema = useInputSchema( + debouncedConfigData !== props.configSchema.defaults + ? debouncedConfigData + : undefined + ); -
-
-

Inputs

- {isInputResetable && ( - - )} -
+ const { context, callbacks } = useAppStreamCallbacks(); + const { startStream, stopStream, latest } = useStreamLog(callbacks); - - setInputData({ data, errors }) - } - /> - {!!inputData.errors?.length && inputData.data && ( -
- Validation Errors -
    - {inputData.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
+ return ( + + + +
+ {inputSchema.error != null ? ( +
+
+ {inputSchema.error.toString()} +
+
+ ) : ( + <> + {inputSchema.data != null ? ( + + {latest && ( +
+

Output

+
+ +
+
)} -
- - {latest && ( -
-

Output

-
- -
- -
- )} -
- )} - -
- -
-
+ + ) : null} + + )} +
+ + ); +} - {isEmbedded ? ( - <> - - - - ) : ( - <> - - - - - - )} -
+ if (configSchema.error != null) { + return ( +
+
+ {configSchema.error.toString()}
- + ); + } + if (configSchema.data == null) return "No config schema found"; + return ; +} + +export function App() { + return ( +
+
+

+ 🦜 LangServe Playground +

+ +
+
); } diff --git a/langserve/playground/src/components/CustomAnyOfRenderer.tsx b/langserve/playground/src/components/CustomAnyOfRenderer.tsx index 8dcbb657..52da90b9 100644 --- a/langserve/playground/src/components/CustomAnyOfRenderer.tsx +++ b/langserve/playground/src/components/CustomAnyOfRenderer.tsx @@ -5,7 +5,7 @@ import { JsonSchema, isAnyOfControl, } from "@jsonforms/core"; -import { renderers, cells } from "../App"; +import { renderers, cells } from "../renderers"; export const CustomAnyOfRenderer = withJsonFormsAnyOfProps((props) => { const anyOfRenderInfos = createCombinatorRenderInfos( diff --git a/langserve/playground/src/components/ShareDialog.tsx b/langserve/playground/src/components/ShareDialog.tsx index 494581d3..dcc6debb 100644 --- a/langserve/playground/src/components/ShareDialog.tsx +++ b/langserve/playground/src/components/ShareDialog.tsx @@ -4,37 +4,11 @@ import CodeIcon from "../assets/CodeIcon.svg?react"; import PadlockIcon from "../assets/PadlockIcon.svg?react"; import CopyIcon from "../assets/CopyIcon.svg?react"; import CheckCircleIcon from "../assets/CheckCircleIcon.svg?react"; -import { - compressToEncodedURIComponent, - decompressFromEncodedURIComponent, -} from "lz-string"; +import { compressToEncodedURIComponent } from "lz-string"; +import { getStateFromUrl } from "../utils/url"; const URL_LENGTH_LIMIT = 2000; -export function getStateFromUrl(path: string) { - let configFromUrl = null; - let basePath = path; - if (basePath.endsWith("/")) { - basePath = basePath.slice(0, -1); - } - - if (basePath.endsWith("/playground")) { - basePath = basePath.slice(0, -"/playground".length); - } - - // check if we can omit the last segment - const [configHash, c, ...rest] = basePath.split("/").reverse(); - if (c === "c") { - basePath = rest.reverse().join("/"); - try { - configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); - } catch (error) { - console.error(error); - } - } - return { basePath, configFromUrl }; -} - function CopyButton(props: { value: string }) { const [copied, setCopied] = useState(false); const cbRef = useRef(null); @@ -121,7 +95,6 @@ const result = await chain.invoke({ ... });
{playgroundUrl.split("://")[1]} - PadlockIcon
diff --git a/langserve/playground/src/components/SubmitButton.tsx b/langserve/playground/src/components/SubmitButton.tsx new file mode 100644 index 00000000..2dce60ea --- /dev/null +++ b/langserve/playground/src/components/SubmitButton.tsx @@ -0,0 +1,50 @@ +import SendIcon from "../assets/SendIcon.svg?react"; +import { cn } from "../utils/cn"; + +export function SubmitButton(props: { + disabled: boolean; + isLoading?: boolean; + onSubmit: () => void; +}) { + return ( + + ); +} diff --git a/langserve/playground/src/main.tsx b/langserve/playground/src/main.tsx index 164cb889..7c3050b2 100644 --- a/langserve/playground/src/main.tsx +++ b/langserve/playground/src/main.tsx @@ -1,4 +1,11 @@ import ReactDOM from "react-dom/client"; import App from "./App.tsx"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; +import relativeDate from "dayjs/plugin/relativeTime"; + +dayjs.extend(relativeDate); +dayjs.extend(utc); + ReactDOM.createRoot(document.getElementById("root")!).render(); diff --git a/langserve/playground/src/renderers.tsx b/langserve/playground/src/renderers.tsx new file mode 100644 index 00000000..630244b2 --- /dev/null +++ b/langserve/playground/src/renderers.tsx @@ -0,0 +1,111 @@ +import { + materialAllOfControlTester, + MaterialAllOfRenderer, + MaterialObjectRenderer, + materialOneOfControlTester, + MaterialOneOfRenderer, +} from "@jsonforms/material-renderers"; +import { + BooleanCell, + DateCell, + DateTimeCell, + EnumCell, + IntegerCell, + NumberCell, + SliderCell, + TimeCell, + booleanCellTester, + dateCellTester, + dateTimeCellTester, + enumCellTester, + integerCellTester, + numberCellTester, + sliderCellTester, + textAreaCellTester, + textCellTester, + timeCellTester, + vanillaRenderers, + InputControl, +} from "@jsonforms/vanilla-renderers"; +import { + RankedTester, + rankWith, + and, + uiTypeIs, + schemaMatches, + schemaTypeIs, +} from "@jsonforms/core"; +import CustomArrayControlRenderer, { + materialArrayControlTester, +} from "./components/CustomArrayControlRenderer"; +import CustomTextAreaCell from "./components/CustomTextAreaCell"; +import JsonTextAreaCell from "./components/JsonTextAreaCell"; +import { + chatMessagesTester, + ChatMessagesControlRenderer, +} from "./components/ChatMessagesControlRenderer"; +import { + ChatMessageTuplesControlRenderer, + chatMessagesTupleTester, +} from "./components/ChatMessageTuplesControlRenderer"; +import { + fileBase64Tester, + FileBase64ControlRenderer, +} from "./components/FileBase64Tester"; +import { + customAnyOfTester, + CustomAnyOfRenderer, +} from "./components/CustomAnyOfRenderer"; + +const isObjectWithPropertiesControl = rankWith( + 2, + and( + uiTypeIs("Control"), + schemaTypeIs("object"), + schemaMatches((schema) => + Object.prototype.hasOwnProperty.call(schema, "properties") + ) + ) +); +const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); +const isElse = rankWith(1, and(uiTypeIs("Control"))); + +export const renderers = [ + ...vanillaRenderers, + + // use material renderers to handle objects and json schema references + // they should yield the rendering to simpler cells + { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, + { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, + { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, + + { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, + + // custom renderers + { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, + { tester: isObject, renderer: InputControl }, + { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, + { + tester: chatMessagesTupleTester, + renderer: ChatMessageTuplesControlRenderer, + }, + { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, +]; +const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { + return jsonSchema.type === "array"; +}); + +export const cells = [ + { tester: booleanCellTester, cell: BooleanCell }, + { tester: dateCellTester, cell: DateCell }, + { tester: dateTimeCellTester, cell: DateTimeCell }, + { tester: enumCellTester, cell: EnumCell }, + { tester: integerCellTester, cell: IntegerCell }, + { tester: numberCellTester, cell: NumberCell }, + { tester: sliderCellTester, cell: SliderCell }, + { tester: textAreaCellTester, cell: CustomTextAreaCell }, + { tester: textCellTester, cell: CustomTextAreaCell }, + { tester: timeCellTester, cell: TimeCell }, + { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, + { tester: isElse, cell: JsonTextAreaCell }, +]; diff --git a/langserve/playground/src/sections/SectionConfigure.tsx b/langserve/playground/src/sections/SectionConfigure.tsx new file mode 100644 index 00000000..2977bedb --- /dev/null +++ b/langserve/playground/src/sections/SectionConfigure.tsx @@ -0,0 +1,50 @@ +import { JsonForms } from "@jsonforms/react"; +import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; +import { renderers, cells } from "../renderers"; + +export type ConfigValue = Pick & { + defaults: boolean; +}; + +export function SectionConfigure(props: { + config: JsonSchema | undefined; + value: ConfigValue; + onChange: (value: ConfigValue) => void; +}) { + if (props.config == null || Object.keys(props.config).length === 0) { + return null; + } + + return ( +
+

Configure

+ +
+ { + if (data) { + props.onChange({ data, errors, defaults: false }); + } + }} + /> + + {!!props.value.errors?.length && props.value.data && ( +
+
+ Validation Errors +
    + {props.value.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+
+ )} +
+
+ ); +} diff --git a/langserve/playground/src/sections/SectionInputs.tsx b/langserve/playground/src/sections/SectionInputs.tsx new file mode 100644 index 00000000..da4668da --- /dev/null +++ b/langserve/playground/src/sections/SectionInputs.tsx @@ -0,0 +1,64 @@ +import { useMemo } from "react"; +import defaults from "../utils/defaults"; +import { JsonForms } from "@jsonforms/react"; +import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; +import { renderers, cells } from "../renderers"; + +export type InputValue = Pick; + +export function SectionInputs(props: { + input: JsonSchema | undefined; + value: InputValue; + onChange: (value: InputValue) => void; +}) { + const isInputResetable = useMemo(() => { + if (!props.input) return false; + return ( + JSON.stringify(defaults(props.input)) !== JSON.stringify(props.value.data) + ); + }, [props.input, props.value.data]); + + return ( +
+

Try it

+ +
+
+

Inputs

+ {isInputResetable && ( + + )} +
+ + props.onChange({ data, errors })} + /> + {!!props.value.errors?.length && props.value.data && ( +
+ Validation Errors +
    + {props.value.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+ )} +
+
+ ); +} diff --git a/langserve/playground/src/useSchemas.tsx b/langserve/playground/src/useSchemas.tsx index 901e4fe5..a63a9e6f 100644 --- a/langserve/playground/src/useSchemas.tsx +++ b/langserve/playground/src/useSchemas.tsx @@ -1,9 +1,10 @@ -import { useEffect, useState } from "react"; import { resolveApiUrl } from "./utils/url"; import { simplifySchema } from "./utils/simplifySchema"; -import { JsonFormsCore } from "@jsonforms/core"; +import { JsonSchema } from "@jsonforms/core"; import { compressToEncodedURIComponent } from "lz-string"; -import { useDebounce } from "use-debounce"; + +import useSWR from "swr"; +import defaults from "./utils/defaults"; declare global { interface Window { @@ -14,63 +15,54 @@ declare global { } } -export function useSchemas( - configData: Pick & { defaults: boolean } -) { - const [schemas, setSchemas] = useState<{ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - config: null | any; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - input: null | any; - }>({ - config: null, - input: null, - }); +export function useConfigSchema() { + return useSWR(["/config_schema"], async () => { + let schema: JsonSchema | null = null; + if (!import.meta.env.DEV && window.CONFIG_SCHEMA) { + schema = await simplifySchema(window.CONFIG_SCHEMA); + } else { + const response = await fetch(resolveApiUrl(`/config_schema`)); + if (!response.ok) throw new Error(await response.text()); - useEffect(() => { - async function save() { - if (import.meta.env.DEV) { - const [config, input] = await Promise.all([ - fetch(resolveApiUrl("/config_schema")) - .then((r) => r.json()) - .then(simplifySchema), - fetch(resolveApiUrl("/input_schema")) - .then((r) => r.json()) - .then(simplifySchema), - ]); - setSchemas({ config, input }); - } else { - setSchemas({ - config: window.CONFIG_SCHEMA - ? await simplifySchema(window.CONFIG_SCHEMA) - : null, - input: window.INPUT_SCHEMA - ? await simplifySchema(window.INPUT_SCHEMA) - : null, - }); - } + const json = await response.json(); + schema = await simplifySchema(json); } - save(); - }, []); + if (schema == null) return null; + return { + schema, + defaults: defaults(schema), + }; + }); +} - const [debouncedConfigData] = useDebounce(configData, 500); +export function useInputSchema(configData?: unknown) { + return useSWR( + ["/input_schema", configData], + async ([, configData]) => { + // TODO: this won't work if we're already seeing a prefixed URL + const prefix = configData + ? `/c/${compressToEncodedURIComponent(JSON.stringify(configData))}` + : ""; - useEffect(() => { - if (!debouncedConfigData.defaults) { - fetch( - resolveApiUrl( - `/c/${compressToEncodedURIComponent( - JSON.stringify(debouncedConfigData.data) - )}/input_schema` - ) - ) - .then((r) => r.json()) - .then(simplifySchema) - .then((input) => setSchemas((current) => ({ ...current, input }))) - .catch(() => {}); // ignore errors, eg. due to incomplete config - } - }, [debouncedConfigData]); + let schema: JsonSchema | null = null; + + if (!prefix && !import.meta.env.DEV && window.INPUT_SCHEMA) { + schema = await simplifySchema(window.INPUT_SCHEMA); + } else { + const response = await fetch(resolveApiUrl(`${prefix}/input_schema`)); + if (!response.ok) throw new Error(await response.text()); + + const json = await response.json(); + schema = await simplifySchema(json); + } - return schemas; + if (schema == null) return null; + return { + schema, + defaults: defaults(schema), + }; + }, + { keepPreviousData: true } + ); } diff --git a/langserve/playground/src/useStreamCallback.tsx b/langserve/playground/src/useStreamCallback.tsx index 137bfe07..31a3ca8b 100644 --- a/langserve/playground/src/useStreamCallback.tsx +++ b/langserve/playground/src/useStreamCallback.tsx @@ -14,6 +14,35 @@ export const AppCallbackContext = createContext[]; }> | null>(null); +export function useAppStreamCallbacks() { + // callbacks handling + const context = useRef<{ + onStart: Exclude[]; + onSuccess: Exclude[]; + onError: Exclude[]; + }>({ onStart: [], onSuccess: [], onError: [] }); + + const callbacks: StreamCallback = { + onStart(...args) { + for (const callback of context.current.onStart) { + callback(...args); + } + }, + onSuccess(...args) { + for (const callback of context.current.onSuccess) { + callback(...args); + } + }, + onError(...args) { + for (const callback of context.current.onError) { + callback(...args); + } + }, + }; + + return { context, callbacks }; +} + export function useStreamCallback< Type extends "onStart" | "onSuccess" | "onError" >(type: Type, callback: Exclude) { diff --git a/langserve/playground/src/utils/url.ts b/langserve/playground/src/utils/url.ts index 6f560db1..88f40a4d 100644 --- a/langserve/playground/src/utils/url.ts +++ b/langserve/playground/src/utils/url.ts @@ -1,5 +1,33 @@ +import { decompressFromEncodedURIComponent } from "lz-string"; + +export function getStateFromUrl(path: string) { + let configFromUrl = null; + let basePath = path; + if (basePath.endsWith("/")) { + basePath = basePath.slice(0, -1); + } + + if (basePath.endsWith("/playground")) { + basePath = basePath.slice(0, -"/playground".length); + } + + // check if we can omit the last segment + const [configHash, c, ...rest] = basePath.split("/").reverse(); + if (c === "c") { + basePath = rest.reverse().join("/"); + try { + configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); + } catch (error) { + console.error(error); + } + } + return { basePath, configFromUrl }; +} + export function resolveApiUrl(path: string) { - let prefix = window.location.pathname.split("/playground")[0]; + const { basePath } = getStateFromUrl(window.location.href); + let prefix = new URL(basePath).pathname; if (prefix.endsWith("/")) prefix = prefix.slice(0, -1); - return new URL(prefix + path, window.location.origin); + + return new URL(prefix + path, basePath); } diff --git a/langserve/playground/yarn.lock b/langserve/playground/yarn.lock index 39092cb6..b3f755da 100644 --- a/langserve/playground/yarn.lock +++ b/langserve/playground/yarn.lock @@ -1407,6 +1407,11 @@ chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" +client-only@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + clsx@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b" @@ -2620,6 +2625,14 @@ svg-parser@^2.0.4: resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== +swr@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.4.tgz#03ec4c56019902fbdc904d78544bd7a9a6fa3f07" + integrity sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ== + dependencies: + client-only "^0.0.1" + use-sync-external-store "^1.2.0" + tailwind-merge@^1.14.0: version "1.14.0" resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.14.0.tgz#e677f55d864edc6794562c63f5001f45093cdb8b" @@ -2751,6 +2764,11 @@ use-sidecar@^1.1.2: detect-node-es "^1.1.0" tslib "^2.0.0" +use-sync-external-store@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== + util-deprecate@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" From 786165936826db2fe5bd6015bdc7c04f3688909f Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 21 Nov 2023 01:48:04 +0100 Subject: [PATCH 06/23] New JS build --- .../playground/dist/assets/index-32c8d712.js | 247 ----------------- .../playground/dist/assets/index-849f2582.js | 255 ++++++++++++++++++ ...{index-c6cde0dd.css => index-8968db79.css} | 2 +- langserve/playground/dist/index.html | 4 +- 4 files changed, 258 insertions(+), 250 deletions(-) delete mode 100644 langserve/playground/dist/assets/index-32c8d712.js create mode 100644 langserve/playground/dist/assets/index-849f2582.js rename langserve/playground/dist/assets/{index-c6cde0dd.css => index-8968db79.css} (76%) diff --git a/langserve/playground/dist/assets/index-32c8d712.js b/langserve/playground/dist/assets/index-32c8d712.js deleted file mode 100644 index 523262b2..00000000 --- a/langserve/playground/dist/assets/index-32c8d712.js +++ /dev/null @@ -1,247 +0,0 @@ -var f7=Object.defineProperty;var p7=(e,t,n)=>t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ud=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n);function h7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XM={exports:{}},Gg={},QM={exports:{}},an={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Lp=Symbol.for("react.element"),v7=Symbol.for("react.portal"),g7=Symbol.for("react.fragment"),y7=Symbol.for("react.strict_mode"),b7=Symbol.for("react.profiler"),x7=Symbol.for("react.provider"),w7=Symbol.for("react.context"),C7=Symbol.for("react.forward_ref"),$7=Symbol.for("react.suspense"),S7=Symbol.for("react.memo"),_7=Symbol.for("react.lazy"),iT=Symbol.iterator;function E7(e){return e===null||typeof e!="object"?null:(e=iT&&e[iT]||e["@@iterator"],typeof e=="function"?e:null)}var eI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tI=Object.assign,nI={};function Qu(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}Qu.prototype.isReactComponent={};Qu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rI(){}rI.prototype=Qu.prototype;function FC(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}var zC=FC.prototype=new rI;zC.constructor=FC;tI(zC,Qu.prototype);zC.isPureReactComponent=!0;var sT=Array.isArray,oI=Object.prototype.hasOwnProperty,BC={current:null},aI={key:!0,ref:!0,__self:!0,__source:!0};function iI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)oI.call(t,r)&&!aI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=H[L];if(0>>1;Lo(N,X))Vo(Z,N)?(H[L]=Z,H[V]=X,L=V):(H[L]=N,H[D]=X,L=D);else if(Vo(Z,X))H[L]=Z,H[V]=X,L=V;else break e}}return J}function o(H,J){var X=H.sortIndex-J.sortIndex;return X!==0?X:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=H)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(H){if(v=!1,w(H),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-H)}}function _(H,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||H&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var K=L(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var $=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RH||125L?(H.sortIndex=X,t(c,H),n(l)===null&&H===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-L))):(H.sortIndex=K,t(l,H),b||m||(b=!0,Y(_))),H},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(H){var J=p;return function(){var X=p;p=J;try{return H.apply(this,arguments)}finally{p=X}}}})(uI);cI.exports=uI;var j7=cI.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dI=S,qo=j7;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wx=Object.prototype.hasOwnProperty,L7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cT={},uT={};function F7(e){return Wx.call(uT,e)?!0:Wx.call(cT,e)?!1:L7.test(e)?uT[e]=!0:(cT[e]=!0,!1)}function z7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B7(e,t,n,r){if(t===null||typeof t>"u"||z7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function io(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var UC=/[\-:]([a-z])/g;function WC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!0,!0)});function HC(e,t,n,r){var o=Nr.hasOwnProperty(t)?Nr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yf(e):""}function V7(e){switch(e.tag){case 5:return yf(e.type);case 16:return yf("Lazy");case 13:return yf("Suspense");case 19:return yf("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function Yx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ou:return"Fragment";case ru:return"Portal";case Hx:return"Profiler";case GC:return"StrictMode";case Gx:return"Suspense";case qx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hI:return(e.displayName||"Context")+".Consumer";case pI:return(e._context.displayName||"Context")+".Provider";case qC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YC:return t=e.displayName||null,t!==null?t:Yx(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return Yx(e(t))}catch{}}return null}function U7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yx(t);case 8:return t===GC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W7(e){var t=vI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){e._valueTracker||(e._valueTracker=W7(e))}function gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kx(e,t){var n=t.checked;return Yn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yI(e,t){t=t.checked,t!=null&&HC(e,"checked",t,!1)}function Jx(e,t){yI(e,t);var n=Ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zx(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zx(e,t,n){(t!=="number"||zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bf=Array.isArray;function bu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},H7=["Webkit","ms","Moz","O"];Object.keys(kf).forEach(function(e){H7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kf[t]=kf[e]})});function CI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kf.hasOwnProperty(e)&&kf[e]?(""+t).trim():t+"px"}function $I(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=CI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G7=Yn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,t){if(t){if(G7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function tw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nw=null;function KC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rw=null,xu=null,wu=null;function vT(e){if(e=Bp(e)){if(typeof rw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Zg(t),rw(e.stateNode,e.type,t))}}function SI(e){xu?wu?wu.push(e):wu=[e]:xu=e}function _I(){if(xu){var e=xu,t=wu;if(wu=xu=null,vT(e),t)for(e=0;e>>=0,e===0?32:31-(rz(e)/oz|0)|0}var ym=64,bm=4194304;function xf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=xf(s):(a&=i,a!==0&&(r=xf(a)))}else i=n&~o,i!==0?r=xf(i):a!==0&&(r=xf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Va(t),e[t]=n}function lz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rf),_T=String.fromCharCode(32),ET=!1;function HI(e,t){switch(e){case"keyup":return Nz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var au=!1;function Lz(e,t){switch(e){case"compositionend":return GI(t);case"keypress":return t.which!==32?null:(ET=!0,_T);case"textInput":return e=t.data,e===_T&&ET?null:e;default:return null}}function Fz(e,t){if(au)return e==="compositionend"||!r$&&HI(e,t)?(e=UI(),pv=e$=Ms=null,au=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=OT(n)}}function JI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ZI(){for(var e=window,t=zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zv(e.document)}return t}function o$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yz(e){var t=ZI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&JI(n.ownerDocument.documentElement,n)){if(r!==null&&o$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=RT(n,a);var i=RT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,iu=null,cw=null,Mf=null,uw=!1;function DT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uw||iu==null||iu!==zv(r)||(r=iu,"selectionStart"in r&&o$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mf&&lp(Mf,r)||(Mf=r,r=qv(cw,"onSelect"),0cu||(e.current=vw[cu],vw[cu]=null,cu--)}function Rn(e,t){cu++,vw[cu]=e.current,e.current=t}var Js={},Gr=tl(Js),xo=tl(!1),Wl=Js;function Iu(e,t){var n=e.type.contextTypes;if(!n)return Js;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wo(e){return e=e.childContextTypes,e!=null}function Kv(){jn(xo),jn(Gr)}function FT(e,t,n){if(Gr.current!==Js)throw Error(at(168));Rn(Gr,t),Rn(xo,n)}function iA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,U7(e)||"Unknown",o));return Yn({},n,r)}function Jv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Js,Wl=Gr.current,Rn(Gr,e),Rn(xo,xo.current),!0}function zT(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=iA(e,t,Wl),r.__reactInternalMemoizedMergedChildContext=e,jn(xo),jn(Gr),Rn(Gr,e)):jn(xo),Rn(xo,n)}var Vi=null,Xg=!1,yb=!1;function sA(e){Vi===null?Vi=[e]:Vi.push(e)}function iB(e){Xg=!0,sA(e)}function nl(){if(!yb&&Vi!==null){yb=!0;var e=0,t=wn;try{var n=Vi;for(wn=1;e>=i,o-=i,Wi=1<<32-Va(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R,E=I}if(k===w.length)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,E=I}if(R.done)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return Fn&&_l(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return e&&E.forEach(function(U){return t(g,U)}),Fn&&_l(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===ou&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mm:e:{for(var _=w.key,$=y;$!==null;){if($.key===_){if(_=w.type,_===ou){if($.tag===7){n(g,$.sibling),y=o($,w.props.children),y.return=g,g=y;break e}}else if($.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ts&&qT(_)===$.type){n(g,$.sibling),y=o($,w.props),y.ref=Kd(g,$,w),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}w.type===ou?(y=zl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=wv(w.type,w.key,w.props,null,g.mode,C),C.ref=Kd(g,y,w),C.return=g,g=C)}return i(g);case ru:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Eb(w,g.mode,C),y.return=g,g=y}return i(g);case Ts:return $=w._init,x(g,y,$(w._payload),C)}if(bf(w))return b(g,y,w,C);if(Wd(w))return v(g,y,w,C);Em(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=_b(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Nu=mA(!0),vA=mA(!1),Vp={},vi=tl(Vp),fp=tl(Vp),pp=tl(Vp);function Nl(e){if(e===Vp)throw Error(at(174));return e}function p$(e,t){switch(Rn(pp,t),Rn(fp,e),Rn(vi,Vp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qx(t,e)}jn(vi),Rn(vi,t)}function ju(){jn(vi),jn(fp),jn(pp)}function gA(e){Nl(pp.current);var t=Nl(vi.current),n=Qx(t,e.type);t!==n&&(Rn(fp,e),Rn(vi,n))}function h$(e){fp.current===e&&(jn(vi),jn(fp))}var Gn=tl(0);function ng(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bb=[];function m$(){for(var e=0;en?n:4,e(!0);var r=xb.transition;xb.transition={};try{e(!1),t()}finally{wn=n,xb.transition=r}}function MA(){return ba().memoizedState}function uB(e,t,n){var r=Hs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},IA(e))AA(t,n);else if(n=dA(e,t,n,r),n!==null){var o=ro();Ua(n,e,r,o),NA(n,t,r)}}function dB(e,t,n){var r=Hs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(IA(e))AA(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ha(s,i)){var l=t.interleaved;l===null?(o.next=o,d$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dA(e,t,o,r),n!==null&&(o=ro(),Ua(n,e,r,o),NA(n,t,r))}}function IA(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function AA(e,t){If=rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function NA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}var og={readContext:ya,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},fB={readContext:ya,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:KT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gv(4194308,4,TA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gv(4194308,4,e,t)},useInsertionEffect:function(e,t){return gv(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uB.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:YT,useDebugValue:x$,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=YT(!1),t=e[0];return e=cB.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,o=ai();if(Fn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Tr===null)throw Error(at(349));Gl&30||xA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,KT(CA.bind(null,r,a,e),[e]),r.flags|=2048,vp(9,wA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ai(),t=Tr.identifierPrefix;if(Fn){var n=Hi,r=Wi;n=(r&~(1<<32-Va(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ci]=t,e[dp]=r,HA(e,t,!1,!1),t.stateNode=e;e:{switch(i=tw(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;oFu&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304)}else{if(!r)if(e=ng(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Fn)return zr(t),null}else 2*sr()-a.renderingStartTime>Fu&&n!==1073741824&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,Rn(Gn,r?n&1|2:n&1),t):(zr(t),null);case 22:case 23:return E$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jo&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function xB(e,t){switch(i$(t),t.tag){case 1:return wo(t.type)&&Kv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ju(),jn(xo),jn(Gr),m$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h$(t),null;case 13:if(jn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Au()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Gn),null;case 4:return ju(),null;case 10:return u$(t.type._context),null;case 22:case 23:return E$(),null;case 24:return null;default:return null}}var Tm=!1,Wr=!1,wB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function Tw(e,t,n){try{n()}catch(r){er(e,t,r)}}var ok=!1;function CB(e,t){if(dw=Hv,e=ZI(),o$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fw={focusedElem:e,selectionRange:n},Hv=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ma(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){er(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=ok,ok=!1,b}function Af(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Tw(t,n,a)}o=o.next}while(o!==r)}}function ty(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function YA(e){var t=e.alternate;t!==null&&(e.alternate=null,YA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[dp],delete t[mw],delete t[oB],delete t[aB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function KA(e){return e.tag===5||e.tag===3||e.tag===4}function ak(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ow(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yv));else if(r!==4&&(e=e.child,e!==null))for(Ow(e,t,n),e=e.sibling;e!==null;)Ow(e,t,n),e=e.sibling}function Rw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rw(e,t,n),e=e.sibling;e!==null;)Rw(e,t,n),e=e.sibling}var Dr=null,Ia=!1;function xs(e,t,n){for(n=n.child;n!==null;)JA(e,t,n),n=n.sibling}function JA(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(qg,n)}catch{}switch(n.tag){case 5:Wr||pu(n,t);case 6:var r=Dr,o=Ia;Dr=null,xs(e,t,n),Dr=r,Ia=o,Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dr.removeChild(n.stateNode));break;case 18:Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?gb(e.parentNode,n):e.nodeType===1&&gb(e,n),ip(e)):gb(Dr,n.stateNode));break;case 4:r=Dr,o=Ia,Dr=n.stateNode.containerInfo,Ia=!0,xs(e,t,n),Dr=r,Ia=o;break;case 0:case 11:case 14:case 15:if(!Wr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Tw(n,t,i),o=o.next}while(o!==r)}xs(e,t,n);break;case 1:if(!Wr&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){er(n,t,s)}xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:n.mode&1?(Wr=(r=Wr)||n.memoizedState!==null,xs(e,t,n),Wr=r):xs(e,t,n);break;default:xs(e,t,n)}}function ik(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wB),t.forEach(function(r){var o=RB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ka(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SB(r/1960))-r,10e?16:e,Is===null)var r=!1;else{if(e=Is,Is=null,sg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-S$?Fl(e,0):$$|=n),Co(e,t)}function o3(e,t){t===0&&(e.mode&1?(t=bm,bm<<=1,!(bm&130023424)&&(bm=4194304)):t=1);var n=ro();e=Xi(e,t),e!==null&&(Fp(e,t,n),Co(e,n))}function OB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o3(e,n)}function RB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),o3(e,n)}var a3;a3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xo.current)bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bo=!1,yB(e,t,n);bo=!!(e.flags&131072)}else bo=!1,Fn&&t.flags&1048576&&lA(t,Xv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yv(e,t),e=t.pendingProps;var o=Iu(t,Gr.current);$u(t,n),o=g$(null,t,r,e,o,n);var a=y$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)?(a=!0,Jv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,f$(t),o.updater=Qg,t.stateNode=o,o._reactInternals=t,ww(t,r,e,n),t=Sw(null,t,r,!0,a,n)):(t.tag=0,Fn&&a&&a$(t),to(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MB(r),e=Ma(r,e),o){case 0:t=$w(null,t,r,e,n);break e;case 1:t=tk(null,t,r,e,n);break e;case 11:t=QT(null,t,r,e,n);break e;case 14:t=ek(null,t,r,Ma(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),$w(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),tk(e,t,r,o,n);case 3:e:{if(VA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,fA(e,t),tg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Lu(Error(at(423)),t),t=nk(e,t,r,n,o);break e}else if(r!==o){o=Lu(Error(at(424)),t),t=nk(e,t,r,n,o);break e}else for(Vo=Vs(t.stateNode.containerInfo.firstChild),Ho=t,Fn=!0,Aa=null,n=vA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Au(),r===o){t=Qi(e,t,n);break e}to(e,t,r,n)}t=t.child}return t;case 5:return gA(t),e===null&&yw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,pw(r,o)?i=null:a!==null&&pw(r,a)&&(t.flags|=32),BA(e,t),to(e,t,i,n),t.child;case 6:return e===null&&yw(t),null;case 13:return UA(e,t,n);case 4:return p$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nu(t,null,r,n):to(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),QT(e,t,r,o,n);case 7:return to(e,t,t.pendingProps,n),t.child;case 8:return to(e,t,t.pendingProps.children,n),t.child;case 12:return to(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Rn(Qv,r._currentValue),r._currentValue=i,a!==null)if(Ha(a.value,i)){if(a.children===o.children&&!xo.current){t=Qi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Gi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}to(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$u(t,n),o=ya(o),r=r(o),t.flags|=1,to(e,t,r,n),t.child;case 14:return r=t.type,o=Ma(r,t.pendingProps),o=Ma(r.type,o),ek(e,t,r,o,n);case 15:return FA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),yv(e,t),t.tag=1,wo(r)?(e=!0,Jv(t)):e=!1,$u(t,n),hA(t,r,o),ww(t,r,o,n),Sw(null,t,r,!0,e,n);case 19:return WA(e,t,n);case 22:return zA(e,t,n)}throw Error(at(156,t.tag))};function i3(e,t){return DI(e,t)}function DB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(e,t,n,r){return new DB(e,t,n,r)}function T$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MB(e){if(typeof e=="function")return T$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qC)return 11;if(e===YC)return 14}return 2}function Gs(e,t){var n=e.alternate;return n===null?(n=ha(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")T$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ou:return zl(n.children,o,a,t);case GC:i=8,o|=8;break;case Hx:return e=ha(12,n,t,o|2),e.elementType=Hx,e.lanes=a,e;case Gx:return e=ha(13,n,t,o),e.elementType=Gx,e.lanes=a,e;case qx:return e=ha(19,n,t,o),e.elementType=qx,e.lanes=a,e;case mI:return ry(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pI:i=10;break e;case hI:i=9;break e;case qC:i=11;break e;case YC:i=14;break e;case Ts:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=ha(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function zl(e,t,n,r){return e=ha(7,e,r,t),e.lanes=n,e}function ry(e,t,n,r){return e=ha(22,e,r,t),e.elementType=mI,e.lanes=n,e.stateNode={isHidden:!1},e}function _b(e,t,n){return e=ha(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=ha(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function k$(e,t,n,r,o,a,i,s,l){return e=new IB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ha(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},f$(a),e}function AB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u3)}catch(e){console.error(e)}}u3(),lI.exports=Jo;var nd=lI.exports;const Cf=Bt(nd);var hk=nd;Ux.createRoot=hk.createRoot,Ux.hydrateRoot=hk.hydrateRoot;const ug=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),ly=e=>JSON.parse(JSON.stringify(e)),M$=(e,t)=>{e=ly(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];ug(r)&&ug(o)?e[n]=M$(o,r):e[n]=r}return e},d3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return ug(o)?ly(o):o},zB=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=zB(e.allOf,t);return Zc(n,t)}else if(typeof e.$ref<"u"){const n=d3(e.$ref,t);return Zc(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=Zc(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>Zc(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=Zc(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:ug(e.definitions)&&(t=M$(t,e.definitions)),Zc(ly(e),t)}var BB=typeof yo=="object"&&yo&&yo.Object===Object&&yo,f3=BB,VB=f3,UB=typeof self=="object"&&self&&self.Object===Object&&self,WB=VB||UB||Function("return this")(),so=WB,HB=so,GB=HB.Symbol,rd=GB,mk=rd,p3=Object.prototype,qB=p3.hasOwnProperty,YB=p3.toString,Xd=mk?mk.toStringTag:void 0;function KB(e){var t=qB.call(e,Xd),n=e[Xd];try{e[Xd]=void 0;var r=!0}catch{}var o=YB.call(e);return r&&(t?e[Xd]=n:delete e[Xd]),o}var JB=KB,ZB=Object.prototype,XB=ZB.toString;function QB(e){return XB.call(e)}var eV=QB,vk=rd,tV=JB,nV=eV,rV="[object Null]",oV="[object Undefined]",gk=vk?vk.toStringTag:void 0;function aV(e){return e==null?e===void 0?oV:rV:gk&&gk in Object(e)?tV(e):nV(e)}var rl=aV;function iV(e){return e!=null&&typeof e=="object"}var Xo=iV,sV=rl,lV=Xo,cV="[object Symbol]";function uV(e){return typeof e=="symbol"||lV(e)&&sV(e)==cV}var od=uV,dV=od;function fV(e,t,n){for(var r=-1,o=e.length;++rt}var mV=hV;function vV(){this.__data__=[],this.size=0}var gV=vV;function yV(e,t){return e===t||e!==e&&t!==t}var Up=yV,bV=Up;function xV(e,t){for(var n=e.length;n--;)if(bV(e[n][0],t))return n;return-1}var cy=xV,wV=cy,CV=Array.prototype,$V=CV.splice;function SV(e){var t=this.__data__,n=wV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$V.call(t,n,1),--this.size,!0}var _V=SV,EV=cy;function PV(e){var t=this.__data__,n=EV(t,e);return n<0?void 0:t[n][1]}var TV=PV,kV=cy;function OV(e){return kV(this.__data__,e)>-1}var RV=OV,DV=cy;function MV(e,t){var n=this.__data__,r=DV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IV=MV,AV=gV,NV=_V,jV=TV,LV=RV,FV=IV;function ad(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&oH?new eH:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=nG}var F$=rG,oG=rl,aG=F$,iG=Xo,sG="[object Arguments]",lG="[object Array]",cG="[object Boolean]",uG="[object Date]",dG="[object Error]",fG="[object Function]",pG="[object Map]",hG="[object Number]",mG="[object Object]",vG="[object RegExp]",gG="[object Set]",yG="[object String]",bG="[object WeakMap]",xG="[object ArrayBuffer]",wG="[object DataView]",CG="[object Float32Array]",$G="[object Float64Array]",SG="[object Int8Array]",_G="[object Int16Array]",EG="[object Int32Array]",PG="[object Uint8Array]",TG="[object Uint8ClampedArray]",kG="[object Uint16Array]",OG="[object Uint32Array]",An={};An[CG]=An[$G]=An[SG]=An[_G]=An[EG]=An[PG]=An[TG]=An[kG]=An[OG]=!0;An[sG]=An[lG]=An[xG]=An[cG]=An[wG]=An[uG]=An[dG]=An[fG]=An[pG]=An[hG]=An[mG]=An[vG]=An[gG]=An[yG]=An[bG]=!1;function RG(e){return iG(e)&&aG(e.length)&&!!An[oG(e)]}var DG=RG;function MG(e){return function(t){return e(t)}}var z$=MG,pg={exports:{}};pg.exports;(function(e,t){var n=f3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(pg,pg.exports);var B$=pg.exports,IG=DG,AG=z$,Pk=B$,Tk=Pk&&Pk.isTypedArray,NG=Tk?AG(Tk):IG,hy=NG,Ob,kk;function _3(){if(kk)return Ob;kk=1;var e=BH(),t=Hp,n=lr,r=Gp,o=qp,a=hy,i=Object.prototype,s=i.hasOwnProperty;function l(c,u){var f=n(c),p=!f&&t(c),m=!f&&!p&&r(c),b=!f&&!p&&!m&&a(c),v=f||p||m||b,x=v?e(c.length,String):[],g=x.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||o(y,g)))&&x.push(y);return x}return Ob=l,Ob}var jG=Object.prototype;function LG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jG;return e===n}var my=LG;function FG(e,t){return function(n){return e(t(n))}}var E3=FG,zG=E3,BG=zG(Object.keys,Object),VG=BG,UG=my,WG=VG,HG=Object.prototype,GG=HG.hasOwnProperty;function qG(e){if(!UG(e))return WG(e);var t=[];for(var n in Object(e))GG.call(e,n)&&n!="constructor"&&t.push(n);return t}var V$=qG,YG=Wp,KG=F$;function JG(e){return e!=null&&KG(e.length)&&!YG(e)}var os=JG,Rb,Ok;function _i(){if(Ok)return Rb;Ok=1;var e=_3(),t=V$,n=os;function r(o){return n(o)?e(o):t(o)}return Rb=r,Rb}var ZG=w3,XG=L$,QG=_i();function eq(e){return ZG(e,QG,XG)}var P3=eq,Rk=P3,tq=1,nq=Object.prototype,rq=nq.hasOwnProperty;function oq(e,t,n,r,o,a){var i=n&tq,s=Rk(e),l=s.length,c=Rk(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:rq.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:KJ(e,t,n)}var ZJ=JJ,XJ="\\ud800-\\udfff",QJ="\\u0300-\\u036f",eZ="\\ufe20-\\ufe2f",tZ="\\u20d0-\\u20ff",nZ=QJ+eZ+tZ,rZ="\\ufe0e\\ufe0f",oZ="\\u200d",aZ=RegExp("["+oZ+XJ+nZ+rZ+"]");function iZ(e){return aZ.test(e)}var t4=iZ;function sZ(e){return e.split("")}var lZ=sZ,n4="\\ud800-\\udfff",cZ="\\u0300-\\u036f",uZ="\\ufe20-\\ufe2f",dZ="\\u20d0-\\u20ff",fZ=cZ+uZ+dZ,pZ="\\ufe0e\\ufe0f",hZ="["+n4+"]",Bw="["+fZ+"]",Vw="\\ud83c[\\udffb-\\udfff]",mZ="(?:"+Bw+"|"+Vw+")",r4="[^"+n4+"]",o4="(?:\\ud83c[\\udde6-\\uddff]){2}",a4="[\\ud800-\\udbff][\\udc00-\\udfff]",vZ="\\u200d",i4=mZ+"?",s4="["+pZ+"]?",gZ="(?:"+vZ+"(?:"+[r4,o4,a4].join("|")+")"+s4+i4+")*",yZ=s4+i4+gZ,bZ="(?:"+[r4+Bw+"?",Bw,o4,a4,hZ].join("|")+")",xZ=RegExp(Vw+"(?="+Vw+")|"+bZ+yZ,"g");function wZ(e){return e.match(xZ)||[]}var CZ=wZ,$Z=lZ,SZ=t4,_Z=CZ;function EZ(e){return SZ(e)?_Z(e):$Z(e)}var PZ=EZ,TZ=ZJ,kZ=t4,OZ=PZ,RZ=dd;function DZ(e){return function(t){t=RZ(t);var n=kZ(t)?OZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?TZ(n,1).join(""):t.slice(1);return r[e]()+o}}var MZ=DZ,IZ=MZ,AZ=IZ("toUpperCase"),NZ=AZ,jZ=qJ,LZ=NZ,FZ=jZ(function(e,t,n){return e+(n?" ":"")+LZ(t)}),l4=FZ;const yy=Bt(l4);var zZ=_i();const BZ=Bt(zZ);var VZ=ic,UZ=function(){try{var e=VZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),c4=UZ,Zk=c4;function WZ(e,t,n){t=="__proto__"&&Zk?Zk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var q$=WZ,HZ=q$,GZ=Up;function qZ(e,t,n){(n!==void 0&&!GZ(e[t],n)||n===void 0&&!(t in e))&&HZ(e,t,n)}var u4=qZ;function YZ(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var KZ=YZ,JZ=KZ,ZZ=JZ(),d4=ZZ,hg={exports:{}};hg.exports;(function(e,t){var n=so,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(hg,hg.exports);var f4=hg.exports,Xk=y3;function XZ(e){var t=new e.constructor(e.byteLength);return new Xk(t).set(new Xk(e)),t}var Y$=XZ,QZ=Y$;function eX(e,t){var n=t?QZ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var p4=eX;function tX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=SQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var x4=PQ,TQ=$Q,kQ=x4,OQ=kQ(TQ),Q$=OQ,RQ=vy,DQ=b4,MQ=Q$;function IQ(e,t){return MQ(DQ(e,t,RQ),e+"")}var w4=IQ,AQ=Up,NQ=os,jQ=qp,LQ=Qo;function FQ(e,t,n){if(!LQ(n))return!1;var r=typeof t;return(r=="number"?NQ(n)&&jQ(t,n.length):r=="string"&&t in n)?AQ(n[t],e):!1}var C4=FQ,zQ=w4,BQ=C4;function VQ(e){return zQ(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&BQ(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,le&&le<=Z?re:Ib(re,Z)):re}},mixin:function(N){return function(V){var Z=this;if(!C(Z))return N(Z,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,Z.prototype[le]])}),N(Z,Object(V)),g(re,function(le){var xe=le[1];C(xe)?Z.prototype[le[0]]=xe:delete Z.prototype[le[0]]}),Z}},nthArg:function(N){return function(V){var Z=V<0?1:k(V)+1;return x(N(V),Z)}},rearg:function(N){return function(V,Z){var re=Z?Z.length:0;return x(N(V,Z),re)}},runInContext:function(N){return function(V){return Uw(e,N(V),r)}}};function U(N,V){if(i.cap){var Z=yr.iterateeRearg[N];if(Z)return X(V,Z);var re=!o&&yr.iterateeAry[N];if(re)return J(V,re)}return V}function G(N,V,Z){return l||i.curry&&Z>1?x(V,Z):V}function B(N,V,Z){if(i.fixed&&(c||!yr.skipFixed[N])){var re=yr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,Z):Sne(V,le)}return V}function z(N,V,Z){return i.rearg&&Z>1&&(u||!yr.skipRearg[N])?E(V,yr.methodRearg[N]||yr.aryRearg[Z]):V}function Y(N,V){V=I(V);for(var Z=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Qne,`{ -/* [wrapped with `+t+`] */ -`)}var tre=ere;function nre(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var z4=fre,pre=eS,hre=z4,mre=1,vre=2,gre=8,yre=16,bre=32,xre=64,wre=128,Cre=256,$re=512,Sre=[["ary",wre],["bind",mre],["bindKey",vre],["curry",gre],["curryRight",yre],["flip",$re],["partial",bre],["partialRight",xre],["rearg",Cre]];function _re(e,t){return pre(Sre,function(n){var r="_."+n[0];t&n[1]&&!hre(e,r)&&e.push(r)}),e.sort()}var Ere=_re,Pre=Xne,Tre=tre,kre=Q$,Ore=Ere;function Rre(e,t,n){var r=t+"";return kre(e,Tre(r,Ore(Pre(r),n)))}var B4=Rre,Dre=N4(),Mre=j4,Ire=B4,Are=1,Nre=2,jre=4,Lre=8,TO=32,kO=64;function Fre(e,t,n,r,o,a,i,s,l,c){var u=t&Lre,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?TO:kO,t&=~(u?kO:TO),t&jre||(t&=~(Are|Nre));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Dre(e)&&Mre(x,v),x.placeholder=r,Ire(x,e,t)}var V4=Fre;function zre(e){var t=e;return t.placeholder}var U4=zre,Bre=Kp,Vre=qp,Ure=Math.min;function Wre(e,t){for(var n=e.length,r=Ure(t.length,n),o=Bre(e);r--;){var a=t[r];e[r]=Vre(a,n)?o[a]:void 0}return e}var Hre=Wre,OO="__lodash_placeholder__";function Gre(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?Y4(s,t-1,n,r,o):Lae(o,s):r||(o[o.length]=s)}return o}var K4=Y4,zae=K4;function Bae(e){var t=e==null?0:e.length;return t?zae(e,1):[]}var Vae=Bae,Uae=Vae,Wae=b4,Hae=Q$;function Gae(e){return Hae(Wae(e,void 0,Uae),e+"")}var lS=Gae,qae=iS,Yae=lS,Kae=256,Jae=Yae(function(e,t){return qae(e,Kae,void 0,void 0,void 0,t)}),Zae=Jae,Xae=ud,Qae=Kp,eie=lr,tie=od,nie=A3,rie=lc,oie=dd;function aie(e){return eie(e)?Xae(e,rie):tie(e)?[e]:Qae(nie(oie(e)))}var iie=aie,sie={ary:cae,assign:$4,clone:pae,curry:vae,forEach:eS,isArray:lr,isError:$ae,isFunction:Wp,isWeakMap:Tae,iteratee:Mae,keys:V$,rearg:Zae,toInteger:Zp,toPath:iie},lie=_ne,cie=sie;function uie(e,t,n){return lie(cie,e,t,n)}var pd=uie,Jb,HO;function die(){if(HO)return Jb;HO=1;var e=Z$,t=Yp,n=qp,r=Qo,o=lc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Jie=Kie,Zie=Jie,Xie=j3,Qie=Zp,ese=dd;function tse(e,t,n){e=ese(e),t=Xie(t);var r=e.length;n=n===void 0?r:Zie(Qie(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var nse=tse;const rse=Bt(nse);function ose(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var ase=ose,ise=z3,sse=cS,lse=cc,cse=ase,use=lr;function dse(e,t,n){var r=use(e)?ise:cse,o=arguments.length<3;return r(e,lse(t),n,o,sse)}var fse=dse;const Ww=Bt(fse);var pse=ud;function hse(e,t){return pse(t,function(n){return[n,e[n]]})}var mse=hse;function vse(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var gse=vse,yse=mse,bse=sc,xse=b3,wse=gse,Cse="[object Map]",$se="[object Set]";function Sse(e){return function(t){var n=bse(t);return n==Cse?xse(t):n==$se?wse(t):yse(t,e(t))}}var _se=Sse,Ese=_se,Pse=_i(),Tse=Ese(Pse),kse=Tse;const Ose=Bt(kse);var Rse=rl,Dse=lr,Mse=Xo,Ise="[object String]";function Ase(e){return typeof e=="string"||!Dse(e)&&Mse(e)&&Rse(e)==Ise}var Nse=Ase,jse=ud;function Lse(e,t){return jse(t,function(n){return e[n]})}var Fse=Lse,zse=Fse,Bse=_i();function Vse(e){return e==null?[]:zse(e,Bse(e))}var Use=Vse,Wse=F4,Hse=os,Gse=Nse,qse=Zp,Yse=Use,Kse=Math.max;function Jse(e,t,n,r){e=Hse(e)?e:Yse(e),n=n&&!r?qse(n):0;var o=e.length;return n<0&&(n=Kse(o+n,0)),Gse(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wse(e,t,n)>-1}var Zse=Jse;const eN=Bt(Zse);var Xse=cc,Qse=os,ele=_i();function tle(e){return function(t,n,r){var o=Object(t);if(!Qse(t)){var a=Xse(n);t=ele(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var nle=tle,rle=L4,ole=cc,ale=Zp,ile=Math.max;function sle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:ale(n);return o<0&&(o=ile(r+o,0)),rle(e,ole(t),o)}var lle=sle,cle=nle,ule=lle,dle=cle(ule),fle=dle;const uS=Bt(fle);var ple=Math.ceil,hle=Math.max;function mle(e,t,n,r){for(var o=-1,a=hle(ple((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var vle=mle,gle=vle,yle=C4,Xb=q4;function ble(e){return function(t,n,r){return r&&typeof r!="number"&&yle(t,n,r)&&(n=r=void 0),t=Xb(t),n===void 0?(n=t,t=0):n=Xb(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(Gw);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yp,n=Gw;var r=yp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=Gw;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,V){super(),this.varKind=D,this.name=N,this.rhs=V}render({es5:D,_n:N}){const V=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,V){super(),this.lhs=D,this.rhs=N,this.sideEffects=V}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,V,Z){super(D,V,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=B(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,V)=>N+V.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const V=D[N].optimizeNodes();Array.isArray(V)?D.splice(N,1,...V):V?D[N]=V:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:V}=this;let Z=V.length;for(;Z--;){const re=V[Z];re.optimizeNames(D,N)||(z(D,re.names),V.splice(Z,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const V=N.optimizeNodes();N=this.else=Array.isArray(V)?new x(V):V}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=B(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=B(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,V,Z){super(),this.varKind=D,this.name=N,this.from=V,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:V,from:Z,to:re}=this;return`for(${N} ${V}=${Z}; ${V}<${re}; ${V}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,V,Z){super(),this.loop=D,this.varKind=N,this.name=V,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=B(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class $ extends b{constructor(D,N,V){super(),this.name=D,this.args=N,this.async=V}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}$.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var V,Z;return super.optimizeNames(D,N),(V=this.catch)===null||V===void 0||V.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const V=this._extScope.value(D,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,V,Z){const re=this._scope.toName(N);return V!==void 0&&Z&&(this._constants[re.str]=V),this._leafNode(new i(D,re,V)),re}const(D,N,V){return this._def(n.varKinds.const,D,N,V)}let(D,N,V){return this._def(n.varKinds.let,D,N,V)}var(D,N,V){return this._def(n.varKinds.var,D,N,V)}assign(D,N,V){return this._leafNode(new s(D,N,V))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[V,Z]of D)N.length>1&&N.push(","),N.push(V),(V!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,V){if(this._blockNode(new g(D)),N&&V)this.code(N).else().code(V).endIf();else if(N)this.code(N).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,V,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(D);return this._for(new C(re,le,N,V),()=>Z(le))}forOf(D,N,V,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const le=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${le}.length`,xe=>{this.var(re,(0,t._)`${le}[${xe}]`),V(re)})}return this._for(new _("of",Z,re,N),()=>V(re))}forIn(D,N,V,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return V&&(this._currNode=Z.finally=new R,this.code(V)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-N;if(V<0||D!==void 0&&V!==D)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,V,Z){return this._blockNode(new $(D,N,V)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const V=this._currNode;if(V instanceof D||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function B(q,D,N){if(q instanceof t.Name)return V(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,le)=>(le instanceof t.Name&&(le=V(le)),le instanceof t._Code?re.push(...le._items):re.push(le),re),[]));function V(re){const le=N[re.str];return le===void 0||D[re.str]!==1?re:(delete D[re.str],le)}function Z(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&D[le.str]===1&&N[le.str]!==void 0)}}function z(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=L(e.operators.AND);function H(...q){return q.reduce(Q)}e.and=H;const J=L(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function L(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=yp;function r($){const E={};for(const k of $)E[k]=!0;return E}e.toHash=r;function o($,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a($,E),!i(E,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,E=$.schema){const{opts:k,self:I}=$;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,E){if(typeof $=="boolean")return!$;for(const k in $)if(E[k])return!0;return!1}e.schemaHasRules=i;function s($,E){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c($){return p(decodeURIComponent($))}e.unescapeFragment=c;function u($){return encodeURIComponent(f($))}e.escapeFragment=u;function f($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m($,E){if(Array.isArray($))for(const k of $)E(k);else E($)}e.eachItem=m;function b({mergeNames:$,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const B=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?$(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(B instanceof t.Name)?I(R,B):B}}e.mergeEvaluated={props:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{$.if((0,t._)`${E} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>{E===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),x($,k,E))}),mergeValues:($,E)=>$===!0?!0:{...$,...E},resultToName:v}),items:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>$.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:($,E)=>$===!0?!0:Math.max($,E),resultToName:($,E)=>$.var("items",E)})};function v($,E){if(E===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return E!==void 0&&x($,k,E),k}e.evaluatedPropsToName=v;function x($,E,k){Object.keys(k).forEach(I=>$.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y($,E){return $.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(w=e.Type||(e.Type={}));function C($,E,k){if($ instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,E,k=$.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);$.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});const Br=Jt,Mle={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ei.default=Mle;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ei;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:$,allErrors:E}=C,k=f(x,g,y);w??($||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:$}=w,E=f(x,g,y);l(C,E),_||$||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const $=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const($,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${$}.instancePath === undefined`,()=>x.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${$}.schema`,y),x.assign((0,t._)`${$}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:$,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,$],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(Xp);Object.defineProperty(zu,"__esModule",{value:!0});zu.boolOrEmptySchema=zu.topBoolOrEmptySchema=void 0;const Ile=Xp,Ale=Jt,Nle=Ei,jle={message:"boolean schema is false"};function Lle(e){const{gen:t,schema:n,validateName:r}=e;n===!1?nN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Nle.default.data):(t.assign((0,Ale._)`${r}.errors`,null),t.return(!0))}zu.topBoolOrEmptySchema=Lle;function Fle(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),nN(e)):n.var(t,!0)}zu.boolOrEmptySchema=Fle;function nN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Ile.reportError)(o,jle,void 0,t)}var Qp={},Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.getRules=Kl.isJSONType=void 0;const zle=["string","number","integer","boolean","null","object","array"],Ble=new Set(zle);function Vle(e){return typeof e=="string"&&Ble.has(e)}Kl.isJSONType=Vle;function Ule(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Kl.getRules=Ule;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.shouldUseRule=qi.shouldUseGroup=qi.schemaHasRulesForType=void 0;function Wle({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&rN(e,r)}qi.schemaHasRulesForType=Wle;function rN(e,t){return t.rules.some(n=>oN(e,n))}qi.shouldUseGroup=rN;function oN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}qi.shouldUseRule=oN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Kl,n=qi,r=Xp,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:$,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,$,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:$,data:E,opts:k}=w,I=$.let("dataType",(0,o._)`typeof ${E}`),R=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>$.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>$.assign(R,E))),$.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);$.else(),g(w),$.endIf(),$.if((0,o._)`${R} !== undefined`,()=>{$.assign(E,R),m(w,R)});function F(U){switch(U){case"string":$.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${I} == "boolean" || ${E} === null - || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":$.elseIf((0,o._)`${I} === "boolean" || ${E} === null - || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":$.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":$.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),$.assign(R,null);return;case"array":$.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},$){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,$))}function b(w,C,_,$=i.Correct){const E=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return $===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,$){if(w.length===1)return b(w[0],C,_,$);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,$));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:$}=w,E=(0,a.schemaRefOrVal)(w,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:E,schemaValue:E,parentSchema:$,params:{},it:w}}})(Qp);var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.assignDefaults=void 0;const jc=Jt,Hle=dn;function Gle(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)qO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>qO(e,a,o.default))}Cy.assignDefaults=Gle;function qO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,jc._)`${a}${(0,jc.getProperty)(t)}`;if(o){(0,Hle.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,jc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,jc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,jc._)`${s} = ${(0,jc.stringify)(n)}`)}var hi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const Nn=Jt,dS=dn,ws=Ei,qle=dn;function Yle(e,t){const{gen:n,data:r,it:o}=e;n.if(pS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Nn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Yle;function Kle({gen:e,data:t,it:{opts:n}},r,o){return(0,Nn.or)(...r.map(a=>(0,Nn.and)(pS(e,t,a,n.ownProperties),(0,Nn._)`${o} = ${a}`)))}Qt.checkMissingProp=Kle;function Jle(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Jle;function aN(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=aN;function fS(e,t,n){return(0,Nn._)`${aN(e)}.call(${t}, ${n})`}Qt.isOwnProperty=fS;function Zle(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} !== undefined`;return r?(0,Nn._)`${o} && ${fS(e,t,n)}`:o}Qt.propertyInData=Zle;function pS(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} === undefined`;return r?(0,Nn.or)(o,(0,Nn.not)(fS(e,t,n))):o}Qt.noPropertyInData=pS;function iN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=iN;function Xle(e,t){return iN(t).filter(n=>!(0,dS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=Xle;function Qle({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,Nn._)`${e}, ${t}, ${r}${o}`:t,f=[[ws.default.instancePath,(0,Nn.strConcat)(ws.default.instancePath,a)],[ws.default.parentData,i.parentData],[ws.default.parentDataProperty,i.parentDataProperty],[ws.default.rootData,ws.default.rootData]];i.opts.dynamicRef&&f.push([ws.default.dynamicAnchors,ws.default.dynamicAnchors]);const p=(0,Nn._)`${u}, ${n.object(...f)}`;return l!==Nn.nil?(0,Nn._)`${s}.call(${l}, ${p})`:(0,Nn._)`${s}(${p})`}Qt.callValidateCode=Qle;const ece=(0,Nn._)`new RegExp`;function tce({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Nn._)`${o.code==="new RegExp"?ece:(0,qle.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=tce;function nce(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,Nn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:dS.Type.Num},a),t.if((0,Nn.not)(a),s)})}}Qt.validateArray=nce;function rce(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,dS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,Nn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,Nn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=rce;Object.defineProperty(hi,"__esModule",{value:!0});hi.validateKeywordUsage=hi.validSchemaType=hi.funcKeywordCode=hi.macroKeywordCode=void 0;const no=Jt,Rl=Ei,oce=Qt,ace=Xp;function ice(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=sN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:no.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}hi.macroKeywordCode=ice;function sce(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;cce(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=sN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&YO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&YO(e),x(()=>lce(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,no._)`await `),y=>r.assign(f,!1).if((0,no._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,no._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,no._)`${u}.errors`;return r.assign(g,null),v(no.nil),g}function v(g=t.async?(0,no._)`await `:no.nil){const y=l.opts.passContext?Rl.default.this:Rl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,no._)`${g}${(0,oce.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,no.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}hi.funcKeywordCode=sce;function YO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,no._)`${r.parentData}[${r.parentDataProperty}]`))}function lce(e,t){const{gen:n}=e;n.if((0,no._)`Array.isArray(${t})`,()=>{n.assign(Rl.default.vErrors,(0,no._)`${Rl.default.vErrors} === null ? ${t} : ${Rl.default.vErrors}.concat(${t})`).assign(Rl.default.errors,(0,no._)`${Rl.default.vErrors}.length`),(0,ace.extendErrors)(e)},()=>e.error())}function cce({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function sN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,no.stringify)(n)})}function uce(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}hi.validSchemaType=uce;function dce({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}hi.validateKeywordUsage=dce;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.extendSubschemaMode=qs.extendSubschemaData=qs.getSubschema=void 0;const ui=Jt,lN=dn;function fce(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,lN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}qs.getSubschema=fce;function pce(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(n)}`,!0);l(p),e.errorPath=(0,ui.str)`${c}${(0,lN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof ui.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}qs.extendSubschemaData=pce;function hce(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}qs.extendSubschemaMode=hce;var Ir={},cN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},uN={exports:{}},As=uN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};$v(t,r,o,e,"",e)};As.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};As.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};As.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};As.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $v(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in As.arrayKeywords)for(var p=0;pt+=dN(r)),t===1/0))return 1/0}return t}function fN(e,t="",n){n!==!1&&(t=_u(t));const r=e.parse(t);return pN(e,r)}Ir.getFullPath=fN;function pN(e,t){return e.serialize(t).split("#")[0]+"#"}Ir._getFullPath=pN;const $ce=/#\/?$/;function _u(e){return e?e.replace($ce,""):""}Ir.normalizeId=_u;function Sce(e,t,n){return n=_u(n),e.resolve(t,n)}Ir.resolveUrl=Sce;const _ce=/^[a-z_][-a-z0-9._]*$/i;function Ece(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=_u(e[n]||t),a={"":o},i=fN(r,o,!1),s={},l=new Set;return bce(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=_u(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==_u(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!_ce.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!yce(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ir.getSchemaRefs=Ece;Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getData=Wa.KeywordCxt=Wa.validateFunctionCode=void 0;const hN=zu,KO=Qp,hS=qi,vg=Qp,Pce=Cy,Lf=hi,Qb=qs,St=Jt,Lt=Ei,Tce=Ir,Yi=dn,ef=Xp;function kce(e){if(gN(e)&&(yN(e),vN(e))){Dce(e);return}mN(e,()=>(0,hN.topBoolOrEmptySchema)(e))}Wa.validateFunctionCode=kce;function mN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${JO(n,o)}`),Rce(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Oce(o)}`,r.$async,()=>e.code(JO(n,o)).code(a))}function Oce(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Rce(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Dce(e){const{schema:t,opts:n,gen:r}=e;mN(e,()=>{n.$comment&&t.$comment&&xN(e),jce(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Mce(e),bN(e),zce(e)})}function Mce(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function JO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function Ice(e,t){if(gN(e)&&(yN(e),vN(e))){Ace(e,t);return}(0,hN.boolOrEmptySchema)(e,t)}function vN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function gN(e){return typeof e.schema!="boolean"}function Ace(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&xN(e),Lce(e),Fce(e);const a=r.const("_errs",Lt.default.errors);bN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function yN(e){(0,Yi.checkUnknownRules)(e),Nce(e)}function bN(e,t){if(e.opts.jtd)return ZO(e,[],!1,t);const n=(0,KO.getSchemaTypes)(e.schema),r=(0,KO.coerceAndCheckDataType)(e,n);ZO(e,n,!r,t)}function Nce(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Yi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function jce(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Yi.checkStrictMode)(e,"default is ignored in the schema root")}function Lce(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Tce.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Fce(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function xN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function zce(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Bce(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Bce({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function ZO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Yi.schemaHasRulesButRef)(a,u))){o.block(()=>$N(e,"$ref",u.all.$ref.definition));return}l.jtd||Vce(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,hS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,vg.checkDataType)(p.type,i,l.strictNumbers)),XO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,vg.reportTypeError)(e)),o.endIf()):XO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function XO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Pce.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,hS.shouldUseRule)(r,a)&&$N(e,a.keyword,a.definition,t.type)})}function Vce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Uce(e,t),e.opts.allowUnionTypes||Wce(e,t),Hce(e,e.dataTypes))}function Uce(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{wN(e.dataTypes,n)||mS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),qce(e,t)}}function Wce(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mS(e,"use allowUnionTypes to allow union type keyword")}function Hce(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,hS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Gce(t,i))&&mS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Gce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function wN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qce(e,t){const n=[];for(const r of e.dataTypes)wN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function mS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Yi.checkStrictMode)(e,t,e.opts.strictTypes)}class CN{constructor(t,n,r){if((0,Lf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",SN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Lf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?ef.reportExtraError:ef.reportError)(this,this.def.error,n)}$dataError(){(0,ef.reportError)(this,this.def.$dataError||ef.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ef.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,vg.checkDataTypes)(l,n,a.opts.strictNumbers,vg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Qb.getSubschema)(this.it,t);(0,Qb.extendSubschemaData)(r,this.it,t),(0,Qb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Ice(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Yi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Yi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Wa.KeywordCxt=CN;function $N(e,t,n,r){const o=new CN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Lf.funcKeywordCode)(o,n):"macro"in n?(0,Lf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Lf.funcKeywordCode)(o,n)}const Yce=/^\/(?:[^~]|~0|~1)*$/,Kce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function SN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Yce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Kce.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Yi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Wa.getData=SN;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});class Jce extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}eh.default=Jce;var th={};Object.defineProperty(th,"__esModule",{value:!0});const ex=Ir;class Zce extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,ex.resolveUrl)(t,n,r),this.missingSchema=(0,ex.normalizeId)((0,ex.getFullPath)(t,this.missingRef))}}th.default=Zce;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.resolveSchema=go.getCompilingSchema=go.resolveRef=go.compileSchema=go.SchemaEnv=void 0;const Oa=Jt,Xce=eh,xl=Ei,ja=Ir,QO=dn,Qce=Wa;class $y{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,ja.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}go.SchemaEnv=$y;function vS(e){const t=_N.call(this,e);if(t)return t;const n=(0,ja.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Oa.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:Xce.default,code:(0,Oa._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:xl.default.data,parentData:xl.default.parentData,parentDataProperty:xl.default.parentDataProperty,dataNames:[xl.default.data],dataPathArr:[Oa.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Oa.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Oa.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Oa._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Qce.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(xl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${xl.default.self}`,`${xl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Oa.Name?void 0:b,items:v instanceof Oa.Name?void 0:v,dynamicProps:b instanceof Oa.Name,dynamicItems:v instanceof Oa.Name},m.source&&(m.source.evaluated=(0,Oa.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}go.compileSchema=vS;function eue(e,t,n){var r;n=(0,ja.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=rue.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new $y({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=tue.call(this,a)}go.resolveRef=eue;function tue(e){return(0,ja.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vS.call(this,e)}function _N(e){for(const t of this._compilations)if(nue(t,e))return t}go.getCompilingSchema=_N;function nue(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function rue(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Sy.call(this,e,t)}function Sy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,ja._getFullPath)(this.opts.uriResolver,n);let o=(0,ja.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return tx.call(this,n,e);const a=(0,ja.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=Sy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:tx.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||vS.call(this,i),a===(0,ja.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,ja.resolveUrl)(this.opts.uriResolver,o,c)),new $y({schema:s,schemaId:l,root:e,baseId:o})}return tx.call(this,n,i)}}go.resolveSchema=Sy;const oue=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tx(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,QO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!oue.has(s)&&c&&(t=(0,ja.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,QO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,ja.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Sy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new $y({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const aue="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",iue="Meta-schema for $data reference (JSON AnySchema extension proposal)",sue="object",lue=["$data"],cue={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},uue=!1,due={$id:aue,description:iue,type:sue,required:lue,properties:cue,additionalProperties:uue};var gS={},Yw={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(yo,function(n){function r(){for(var se=arguments.length,oe=Array(se),ue=0;ue1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function B(se){throw new RangeError(R[se])}function z(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function Y(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(I,".");var Ee=se.split("."),pt=z(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=U(oe/ue);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var ue=[],ke=oe.length,Ee=0,pt=_,me=C,pe=oe.lastIndexOf($);pe<0&&(pe=0);for(var De=0;De=128&&B("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&B("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>U((b-Ee)/xt))&&B("overflow"),Ee+=ut*xt;var yt=Nt<=me?x:Nt>=me+g?g:Nt-me;if(utU(b/Wt)&&B("overflow"),xt*=Wt}var En=ue.length+1;me=L(Ee-lt,En,lt==0),U(Ee/En)>b-pt&&B("overflow"),pt+=U(Ee/En),Ee%=En,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},q=function(oe){var ue=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,me=C,pe=!0,De=!1,nt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(pe=(xt=lt.next()).done);pe=!0){var Nt=xt.value;Nt<128&&ue.push(G(Nt))}}catch(co){De=!0,nt=co}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&ZaU((b-pt)/Kr)&&B("overflow"),pt+=(Wt-Ee)*Kr,Ee=Wt;var Do=!0,Xa=!1,Un=void 0;try{for(var dl=oe[Symbol.iterator](),Jr;!(Do=(Jr=dl.next()).done);Do=!0){var $h=Jr.value;if($hb&&B("overflow"),$h==Ee){for(var fl=pt,Mo=v;;Mo+=v){var Oi=Mo<=me?x:Mo>=me+g?g:Mo-me;if(fl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():ue="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),ue}function le(se){for(var oe="",ue=0,ke=se.length;ue=194&&Ee<224){if(ke-ue>=6){var pt=parseInt(se.substr(ue+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=se.substr(ue,6);ue+=6}else if(Ee>=224){if(ke-ue>=9){var me=parseInt(se.substr(ue+4,2),16),pe=parseInt(se.substr(ue+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(me&63)<<6|pe&63)}else oe+=se.substr(ue,9);ue+=9}else oe+=se.substr(ue,3),ue+=3}return oe}function xe(se,oe){function ue(ke){var Ee=le(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return se.scheme&&(se.scheme=String(se.scheme).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),se.host!==void 0&&(se.host=String(se.host).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),se.path!==void 0&&(se.path=String(se.path).replace(oe.PCT_ENCODED,ue).replace(se.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),se.query!==void 0&&(se.query=String(se.query).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),se}function fe(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ge(se,oe){var ue=se.match(oe.IPV4ADDRESS)||[],ke=p(ue,2),Ee=ke[1];return Ee?Ee.split(".").map(fe).join("."):se}function he(se,oe){var ue=se.match(oe.IPV6ADDRESS)||[],ke=p(ue,3),Ee=ke[1],pt=ke[2];if(Ee){for(var me=Ee.toLowerCase().split("::").reverse(),pe=p(me,2),De=pe[0],nt=pe[1],lt=nt?nt.split(":").map(fe):[],xt=De.split(":").map(fe),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),En=0;En1){var ki=Wt.slice(0,Vn.index),Za=Wt.slice(Vn.index+Vn.length);Ro=ki.join(":")+"::"+Za.join(":")}else Ro=Wt.join(":");return pt&&(Ro+="%"+pt),Ro}else return se}var _e=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Be(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(se=(oe.scheme?oe.scheme+":":"")+"//"+se);var Ee=se.match(_e);if(Ee){ve?(ue.scheme=Ee[1],ue.userinfo=Ee[3],ue.host=Ee[4],ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=Ee[7],ue.fragment=Ee[8],isNaN(ue.port)&&(ue.port=Ee[5])):(ue.scheme=Ee[1]||void 0,ue.userinfo=se.indexOf("@")!==-1?Ee[3]:void 0,ue.host=se.indexOf("//")!==-1?Ee[4]:void 0,ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=se.indexOf("?")!==-1?Ee[7]:void 0,ue.fragment=se.indexOf("#")!==-1?Ee[8]:void 0,isNaN(ue.port)&&(ue.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),ue.host&&(ue.host=he(ge(ue.host,ke),ke)),ue.scheme===void 0&&ue.userinfo===void 0&&ue.host===void 0&&ue.port===void 0&&!ue.path&&ue.query===void 0?ue.reference="same-document":ue.scheme===void 0?ue.reference="relative":ue.fragment===void 0?ue.reference="absolute":ue.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==ue.reference&&(ue.error=ue.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||ue.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(ue.host&&(oe.domainHost||pt&&pt.domainHost))try{ue.host=V.toASCII(ue.host.replace(ke.PCT_ENCODED,le).toLowerCase())}catch(me){ue.error=ue.error||"Host's domain name can not be converted to ASCII via punycode: "+me}xe(ue,u)}else xe(ue,ke);pt&&pt.parse&&pt.parse(ue,oe)}else ue.error=ue.error||"URI can not be parsed.";return ue}function Ue(se,oe){var ue=oe.iri!==!1?f:u,ke=[];return se.userinfo!==void 0&&(ke.push(se.userinfo),ke.push("@")),se.host!==void 0&&ke.push(he(ge(String(se.host),ue),ue).replace(ue.IPV6ADDRESS,function(Ee,pt,me){return"["+pt+(me?"%25"+me:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(ke.push(":"),ke.push(String(se.port))),ke.length?ke.join(""):void 0}var ze=/^\.\.?\//,He=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function Ce(se){for(var oe=[];se.length;)if(se.match(ze))se=se.replace(ze,"");else if(se.match(He))se=se.replace(He,"/");else if(se.match(be))se=se.replace(be,"/"),oe.pop();else if(se==="."||se==="..")se="";else{var ue=se.match(we);if(ue){var ke=ue[0];se=se.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function qe(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||se.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(se,oe),se.host&&!ue.IPV6ADDRESS.test(se.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{se.host=oe.iri?V.toUnicode(se.host):V.toASCII(se.host.replace(ue.PCT_ENCODED,le).toLowerCase())}catch(pe){se.error=se.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+pe}}xe(se,ue),oe.reference!=="suffix"&&se.scheme&&(ke.push(se.scheme),ke.push(":"));var pt=Ue(se,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),se.path&&se.path.charAt(0)!=="/"&&ke.push("/")),se.path!==void 0){var me=se.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(me=Ce(me)),pt===void 0&&(me=me.replace(/^\/\//,"/%2F")),ke.push(me)}return se.query!==void 0&&(ke.push("?"),ke.push(se.query)),se.fragment!==void 0&&(ke.push("#"),ke.push(se.fragment)),ke.join("")}function rt(se,oe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(se=Be(qe(se,ue),ue),oe=Be(qe(oe,ue),ue)),ue=ue||{},!ue.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=Ce(oe.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?Ee.path="/"+oe.path:se.path?Ee.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=Ce(Ee.path)),Ee.query=oe.query):(Ee.path=se.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=se.query),Ee.userinfo=se.userinfo,Ee.host=se.host,Ee.port=se.port),Ee.scheme=se.scheme),Ee.fragment=oe.fragment,Ee}function Ae(se,oe,ue){var ke=l({scheme:"null"},ue);return qe(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=qe(Be(se,oe),oe):a(se)==="object"&&(se=Be(qe(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=qe(Be(se,ue),ue):a(se)==="object"&&(se=qe(se,ue)),typeof oe=="string"?oe=qe(Be(oe,ue),ue):a(oe)==="object"&&(oe=qe(oe,ue)),se===oe}function Pe(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,le)}var it={scheme:"http",domainHost:!0,parse:function(oe,ue){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,ue){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ne={scheme:"ws",domainHost:!0,parse:function(oe,ue){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,ue){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],me=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=me,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$e="[0-9A-Fa-f]",Se=o(o("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+o("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+o("%"+$e+$e)),Ze="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(tt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(Se,"g"),Et=new RegExp(r("[^]",Ze,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(se){var oe=le(se);return oe.match(vt)?oe:se}var Vt={scheme:"mailto",parse:function(oe,ue){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,me={},pe=ke.query.split("&"),De=0,nt=pe.length;Denew RegExp(X,L);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var L,K,q,D,N,V,Z,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,qe,rt,Ae;const Le=X.strict,Fe=(L=X.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(V=(N=X.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=X.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=X.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=X.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=X.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=X.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=X.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=X.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=X.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=X.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(qe=X.validateFormats)!==null&&qe!==void 0?qe:!0,unicodeRegExp:(rt=X.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=X.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:it}}class C{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...w(L)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(L.logger);const D=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=R.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&I.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),E.call(this),L.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&L&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:L,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[K]||L:void 0}validate(L,K){let q;if(typeof L=="string"){if(q=this.getSchema(L),!q)throw new Error(`no schema with key or ref "${L}"`)}else q=this.compile(L);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(L,K){const q=this._addSchema(L,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(L,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,L,K);async function D(xe,fe){await N.call(this,xe.$schema);const ge=this._addSchema(xe,fe);return ge.validate||V.call(this,ge)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return Z.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function Z({missingSchema:xe,missingRef:fe}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${fe} cannot be resolved`)}async function re(xe){const fe=await le.call(this,xe);this.refs[xe]||await N.call(this,fe.$schema),this.refs[xe]||this.addSchema(fe,xe,K)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(L,K,q,D=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,q,D);return this}let N;if(typeof L=="object"){const{schemaId:V}=this.opts;if(N=L[V],N!==void 0&&typeof N!="string")throw new Error(`schema ${V} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(L,q,K,D,!0),this}addMetaSchema(L,K,q=this.opts.validateSchema){return this.addSchema(L,K,!0,q),this}validateSchema(L,K){if(typeof L=="boolean")return!0;let q;if(q=L.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,L);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(L){let K;for(;typeof(K=$.call(this,L))=="string";)L=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,L),!K)return;this.refs[L]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=$.call(this,L);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const K=L;this._cache.delete(K);let q=L[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const K of L)this.addKeyword(K);return this}addKeyword(L,K){let q;if(typeof L=="string")q=L,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof L=="object"&&K===void 0){if(K=L,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,q,K),!K)return(0,u.eachItem)(q,N=>z.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>z.call(this,N,D):N=>D.type.forEach(V=>z.call(this,N,D,V))),this}getKeyword(L){const K=this.RULES.all[L];return typeof K=="object"?K.definition:!!K}removeKeyword(L){const{RULES:K}=this;delete K.keywords[L],delete K.all[L];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===L);D>=0&&q.rules.splice(D,1)}return this}addFormat(L,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[L]=K,this}errorsText(L=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!L||L.length===0?"No errors":L.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(L,K){const q=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const D of K){const N=D.split("/").slice(1);let V=L;for(const Z of N)V=V[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[Z];le&&xe&&(V[Z]=J(xe))}}return L}_removeAllSchemas(L,K){for(const q in L){const D=L[q];(!K||K.test(q))&&(typeof D=="string"?delete L[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete L[q]))}}_addSchema(L,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:Z}=this.opts;if(typeof L=="object")V=L[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(L);if(re!==void 0)return re;q=(0,l.normalizeId)(V||q);const le=l.getSchemaRefs.call(this,L,q);return re=new i.SchemaEnv({schema:L,schemaId:Z,meta:K,baseId:q,localRefs:le}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(L,!0),re}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):i.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,L,K,q="error"){for(const D in X){const N=D;N in L&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function $(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const L in X)this.addSchema(X[L],L)}function k(){for(const X in this.opts.formats){const L=this.opts.formats[X];L&&this.addFormat(X,L)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in X){const K=X[L];K.keyword||(K.keyword=L),this.addKeyword(K)}}function R(){const X={...this.opts};for(const L of b)delete X[L];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function B(X,L){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function z(X,L,K){var q;const D=L==null?void 0:L.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=D?N.post:N.rules.find(({type:re})=>re===K);if(V||(V={type:K,rules:[]},N.rules.push(V)),N.keywords[X]=!0,!L)return;const Z={keyword:X,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?Y.call(this,V,Z,L.before):V.rules.push(Z),N.all[X]=Z,(q=L.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,L,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,L):(X.rules.push(L),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:L}=X;L!==void 0&&(X.$data&&this.opts.$data&&(L=J(L)),X.validateSchema=this.compile(L,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,H]}}})(tN);var yS={},bS={},xS={};Object.defineProperty(xS,"__esModule",{value:!0});const pue={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xS.default=pue;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.callRef=Jl.getValidate=void 0;const hue=th,eR=Qt,mo=Jt,Lc=Ei,tR=go,Mm=dn,mue={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=tR.resolveRef.call(l,c,o,n);if(u===void 0)throw new hue.default(r.opts.uriResolver,o,n);if(u instanceof tR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Sv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Sv(e,(0,mo._)`${b}.validate`,c,c.$async)}function p(b){const v=PN(e,b);Sv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,mo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:mo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function PN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,mo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Jl.getValidate=PN;function Sv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Lc.default.this:mo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,mo._)`await ${(0,eR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,mo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,eR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,mo._)`${b}.errors`;o.assign(Lc.default.vErrors,(0,mo._)`${Lc.default.vErrors} === null ? ${v} : ${Lc.default.vErrors}.concat(${v})`),o.assign(Lc.default.errors,(0,mo._)`${Lc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Mm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,mo._)`${b}.evaluated.props`);a.props=Mm.mergeEvaluated.props(o,g,a.props,mo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Mm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,mo._)`${b}.evaluated.items`);a.items=Mm.mergeEvaluated.items(o,g,a.items,mo.Name)}}}Jl.callRef=Sv;Jl.default=mue;Object.defineProperty(bS,"__esModule",{value:!0});const vue=xS,gue=Jl,yue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",vue.default,gue.default];bS.default=yue;var wS={},CS={};Object.defineProperty(CS,"__esModule",{value:!0});const gg=Jt,Cs=gg.operators,yg={maximum:{okStr:"<=",ok:Cs.LTE,fail:Cs.GT},minimum:{okStr:">=",ok:Cs.GTE,fail:Cs.LT},exclusiveMaximum:{okStr:"<",ok:Cs.LT,fail:Cs.GTE},exclusiveMinimum:{okStr:">",ok:Cs.GT,fail:Cs.LTE}},bue={message:({keyword:e,schemaCode:t})=>(0,gg.str)`must be ${yg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,gg._)`{comparison: ${yg[e].okStr}, limit: ${t}}`},xue={keyword:Object.keys(yg),type:"number",schemaType:"number",$data:!0,error:bue,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,gg._)`${n} ${yg[t].fail} ${r} || isNaN(${n})`)}};CS.default=xue;var $S={};Object.defineProperty($S,"__esModule",{value:!0});const Ff=Jt,wue={message:({schemaCode:e})=>(0,Ff.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ff._)`{multipleOf: ${e}}`},Cue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:wue,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Ff._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Ff._)`${i} !== parseInt(${i})`;e.fail$data((0,Ff._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};$S.default=Cue;var SS={},_S={};Object.defineProperty(_S,"__esModule",{value:!0});function TN(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Dl._)`{limit: ${e}}`},Eue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_ue,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Dl.operators.GT:Dl.operators.LT,i=o.opts.unicode===!1?(0,Dl._)`${n}.length`:(0,Dl._)`${(0,$ue.useFunc)(e.gen,Sue.default)}(${n})`;e.fail$data((0,Dl._)`${i} ${a} ${r}`)}};SS.default=Eue;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Pue=Qt,bg=Jt,Tue={message:({schemaCode:e})=>(0,bg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bg._)`{pattern: ${e}}`},kue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Tue,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,bg._)`(new RegExp(${o}, ${i}))`:(0,Pue.usePattern)(e,r);e.fail$data((0,bg._)`!${s}.test(${t})`)}};ES.default=kue;var PS={};Object.defineProperty(PS,"__esModule",{value:!0});const zf=Jt,Oue={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,zf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,zf._)`{limit: ${e}}`},Rue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Oue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?zf.operators.GT:zf.operators.LT;e.fail$data((0,zf._)`Object.keys(${n}).length ${o} ${r}`)}};PS.default=Rue;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const tf=Qt,Bf=Jt,Due=dn,Mue={message:({params:{missingProperty:e}})=>(0,Bf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bf._)`{missingProperty: ${e}}`},Iue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Mue,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Due.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Bf.nil,f);else for(const m of n)(0,tf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,tf.checkMissingProp)(e,n,m)),(0,tf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,tf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,tf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Bf.not)(b),()=>{e.error(),t.break()})},Bf.nil)}}};TS.default=Iue;var kS={};Object.defineProperty(kS,"__esModule",{value:!0});const Vf=Jt,Aue={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Vf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Vf._)`{limit: ${e}}`},Nue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Aue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Vf.operators.GT:Vf.operators.LT;e.fail$data((0,Vf._)`${n}.length ${o} ${r}`)}};kS.default=Nue;var OS={},nh={};Object.defineProperty(nh,"__esModule",{value:!0});const kN=cN;kN.code='require("ajv/dist/runtime/equal").default';nh.default=kN;Object.defineProperty(OS,"__esModule",{value:!0});const nx=Qp,Rr=Jt,jue=dn,Lue=nh,Fue={message:({params:{i:e,j:t}})=>(0,Rr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Rr._)`{i: ${e}, j: ${t}}`},zue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Fue,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,nx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Rr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Rr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Rr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,nx.checkDataTypes)(c,x,s.opts.strictNumbers,nx.DataType.Wrong),y=t.const("indices",(0,Rr._)`{}`);t.for((0,Rr._)`;${b}--;`,()=>{t.let(x,(0,Rr._)`${n}[${b}]`),t.if(g,(0,Rr._)`continue`),c.length>1&&t.if((0,Rr._)`typeof ${x} == "string"`,(0,Rr._)`${x} += "_"`),t.if((0,Rr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Rr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Rr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,jue.useFunc)(t,Lue.default),g=t.name("outer");t.label(g).for((0,Rr._)`;${b}--;`,()=>t.for((0,Rr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Rr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};OS.default=zue;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});const Kw=Jt,Bue=dn,Vue=nh,Uue={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kw._)`{allowedValue: ${e}}`},Wue={keyword:"const",$data:!0,error:Uue,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Kw._)`!${(0,Bue.useFunc)(t,Vue.default)}(${n}, ${o})`):e.fail((0,Kw._)`${a} !== ${n}`)}};RS.default=Wue;var DS={};Object.defineProperty(DS,"__esModule",{value:!0});const $f=Jt,Hue=dn,Gue=nh,que={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,$f._)`{allowedValues: ${e}}`},Yue={keyword:"enum",schemaType:"array",$data:!0,error:que,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Hue.useFunc)(t,Gue.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,$f.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,$f._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,$f._)`${c()}(${n}, ${m}[${b}])`:(0,$f._)`${n} === ${v}`}}};DS.default=Yue;Object.defineProperty(wS,"__esModule",{value:!0});const Kue=CS,Jue=$S,Zue=SS,Xue=ES,Que=PS,ede=TS,tde=kS,nde=OS,rde=RS,ode=DS,ade=[Kue.default,Jue.default,Zue.default,Xue.default,Que.default,ede.default,tde.default,nde.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rde.default,ode.default];wS.default=ade;var MS={},md={};Object.defineProperty(md,"__esModule",{value:!0});md.validateAdditionalItems=void 0;const Ml=Jt,Jw=dn,ide={message:({params:{len:e}})=>(0,Ml.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ml._)`{limit: ${e}}`},sde={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ide,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Jw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}ON(e,r)}};function ON(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Ml._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Ml._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,Jw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Ml._)`${s} <= ${t.length}`);n.if((0,Ml.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:Jw.Type.Num},c),i.allErrors||n.if((0,Ml.not)(c),()=>n.break())})}}md.validateAdditionalItems=ON;md.default=sde;var IS={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.validateTuple=void 0;const nR=Jt,_v=dn,lde=Qt,cde={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return RN(e,"additionalItems",t);n.items=!0,!(0,_v.alwaysValidSchema)(n,t)&&e.ok((0,lde.validateArray)(e))}};function RN(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=_v.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,nR._)`${a}.length`);n.forEach((f,p)=>{(0,_v.alwaysValidSchema)(s,f)||(r.if((0,nR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,_v.checkStrictMode)(s,x,p.strictTuples)}}}vd.validateTuple=RN;vd.default=cde;Object.defineProperty(IS,"__esModule",{value:!0});const ude=vd,dde={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ude.validateTuple)(e,"items")};IS.default=dde;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});const rR=Jt,fde=dn,pde=Qt,hde=md,mde={message:({params:{len:e}})=>(0,rR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rR._)`{limit: ${e}}`},vde={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mde,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,fde.alwaysValidSchema)(r,t)&&(o?(0,hde.validateAdditionalItems)(e,o):e.ok((0,pde.validateArray)(e)))}};AS.default=vde;var NS={};Object.defineProperty(NS,"__esModule",{value:!0});const ua=Jt,Im=dn,gde={message:({params:{min:e,max:t}})=>t===void 0?(0,ua.str)`must contain at least ${e} valid item(s)`:(0,ua.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ua._)`{minContains: ${e}}`:(0,ua._)`{minContains: ${e}, maxContains: ${t}}`},yde={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:gde,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,ua._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Im.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Im.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Im.alwaysValidSchema)(a,n)){let v=(0,ua._)`${u} >= ${i}`;s!==void 0&&(v=(0,ua._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,ua._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Im.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,ua._)`${v}++`),s===void 0?t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,ua._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};NS.default=yde;var DN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, - missingProperty: ${f}, - depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(DN);var jS={};Object.defineProperty(jS,"__esModule",{value:!0});const MN=Jt,bde=dn,xde={message:"property name must be valid",params:({params:e})=>(0,MN._)`{propertyName: ${e.propertyName}}`},wde={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:xde,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,bde.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,MN.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};jS.default=wde;var _y={};Object.defineProperty(_y,"__esModule",{value:!0});const Am=Qt,Da=Jt,Cde=Ei,Nm=dn,$de={message:"must NOT have additional properties",params:({params:e})=>(0,Da._)`{additionalProperty: ${e.additionalProperty}}`},Sde={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$de,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Nm.alwaysValidSchema)(i,n))return;const c=(0,Am.allSchemaProperties)(r.properties),u=(0,Am.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Da._)`${a} === ${Cde.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,Nm.schemaRefOrVal)(i,r.properties,"properties");g=(0,Am.isOwnProperty)(t,y,x)}else c.length?g=(0,Da.or)(...c.map(y=>(0,Da._)`${x} === ${y}`)):g=Da.nil;return u.length&&(g=(0,Da.or)(g,...u.map(y=>(0,Da._)`${(0,Am.usePattern)(e,y)}.test(${x})`))),(0,Da.not)(g)}function m(x){t.code((0,Da._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,Nm.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Da.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Da.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:Nm.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};_y.default=Sde;var LS={};Object.defineProperty(LS,"__esModule",{value:!0});const _de=Wa,oR=Qt,rx=dn,aR=_y,Ede={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&aR.default.code(new _de.KeywordCxt(a,aR.default,"additionalProperties"));const i=(0,oR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=rx.mergeEvaluated.props(t,(0,rx.toHash)(i),a.props));const s=i.filter(f=>!(0,rx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,oR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};LS.default=Ede;var FS={};Object.defineProperty(FS,"__esModule",{value:!0});const iR=Qt,jm=Jt,sR=dn,lR=dn,Pde={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,iR.allSchemaProperties)(n),l=s.filter(v=>(0,sR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof jm.Name)&&(a.props=(0,lR.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,sR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,jm._)`${(0,iR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:lR.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,jm._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,jm.not)(u),()=>t.break())})})}}};FS.default=Pde;var zS={};Object.defineProperty(zS,"__esModule",{value:!0});const Tde=dn,kde={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Tde.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zS.default=kde;var BS={};Object.defineProperty(BS,"__esModule",{value:!0});const Ode=Qt,Rde={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ode.validateUnion,error:{message:"must match a schema in anyOf"}};BS.default=Rde;var VS={};Object.defineProperty(VS,"__esModule",{value:!0});const Ev=Jt,Dde=dn,Mde={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ev._)`{passingSchemas: ${e.passing}}`},Ide={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Mde,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Dde.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Ev._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Ev._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Ev.Name)})})}}};VS.default=Ide;var US={};Object.defineProperty(US,"__esModule",{value:!0});const Ade=dn,Nde={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ade.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};US.default=Nde;var WS={};Object.defineProperty(WS,"__esModule",{value:!0});const xg=Jt,IN=dn,jde={message:({params:e})=>(0,xg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xg._)`{failingKeyword: ${e.ifClause}}`},Lde={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jde,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,IN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=cR(r,"then"),a=cR(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,xg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,xg._)`${u}`):e.setParams({ifClause:u})}}}};function cR(e,t){const n=e.schema[t];return n!==void 0&&!(0,IN.alwaysValidSchema)(e,n)}WS.default=Lde;var HS={};Object.defineProperty(HS,"__esModule",{value:!0});const Fde=dn,zde={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Fde.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};HS.default=zde;Object.defineProperty(MS,"__esModule",{value:!0});const Bde=md,Vde=IS,Ude=vd,Wde=AS,Hde=NS,Gde=DN,qde=jS,Yde=_y,Kde=LS,Jde=FS,Zde=zS,Xde=BS,Qde=VS,efe=US,tfe=WS,nfe=HS;function rfe(e=!1){const t=[Zde.default,Xde.default,Qde.default,efe.default,tfe.default,nfe.default,qde.default,Yde.default,Gde.default,Kde.default,Jde.default];return e?t.push(Vde.default,Wde.default):t.push(Bde.default,Ude.default),t.push(Hde.default),t}MS.default=rfe;var GS={},qS={};Object.defineProperty(qS,"__esModule",{value:!0});const ar=Jt,ofe={message:({schemaCode:e})=>(0,ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ar._)`{format: ${e}}`},afe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ofe,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ar._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ar._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ar._)`${v}.type || "string"`).assign(g,(0,ar._)`${v}.validate`),()=>n.assign(x,(0,ar._)`"string"`).assign(g,v)),e.fail$data((0,ar.or)(y(),w()));function y(){return l.strictSchema===!1?ar.nil:(0,ar._)`${i} && !${g}`}function w(){const C=u.$async?(0,ar._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ar._)`${g}(${r})`,_=(0,ar._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ar._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const $=_ instanceof RegExp?(0,ar.regexpCode)(_):l.code.formats?(0,ar._)`${l.code.formats}${(0,ar.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ar._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${g}(${r})`}return typeof x=="function"?(0,ar._)`${g}(${r})`:(0,ar._)`${g}.test(${r})`}}}};qS.default=afe;Object.defineProperty(GS,"__esModule",{value:!0});const ife=qS,sfe=[ife.default];GS.default=sfe;var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.contentVocabulary=Bu.metadataVocabulary=void 0;Bu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(yS,"__esModule",{value:!0});const lfe=bS,cfe=wS,ufe=MS,dfe=GS,uR=Bu,ffe=[lfe.default,cfe.default,(0,ufe.default)(),dfe.default,uR.metadataVocabulary,uR.contentVocabulary];yS.default=ffe;var YS={},AN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(AN);Object.defineProperty(YS,"__esModule",{value:!0});const Qc=Jt,Zw=AN,dR=go,pfe=dn,hfe={message:({params:{discrError:e,tagName:t}})=>e===Zw.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Qc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},mfe={keyword:"discriminator",type:"object",schemaType:"object",error:hfe,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Qc._)`${n}${(0,Qc.getProperty)(s)}`);t.if((0,Qc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zw.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,Qc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Zw.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,Qc.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Wa;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=eh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=th;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Hw,Hw.exports);var NN=Hw.exports;const $fe=Bt(NN);var Xw={exports:{}},jN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function $(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(jN);var LN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=NN,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(LN);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jN,r=LN,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Xw,Xw.exports);var Sfe=Xw.exports;const _fe=Bt(Sfe),Pv="additionalProperties",Tv="required",Efe=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Pfe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Pv)},a=this.findOption(r)(Tv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Efe(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const FN=(e,t={})=>{const n=o=>a=>{switch(a){case Pv:return Object.prototype.hasOwnProperty.call(t,Pv)?t[Pv]:!0;case Tv:return Object.prototype.hasOwnProperty.call(t,Tv)?t[Tv](o):Object.keys(o);default:return}};return new Pfe(n).schemaObject(e)};var wi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(wi||(wi={}));const zN=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Tfe=e=>e.type==="Group",BN=e=>e.elements!==void 0,kfe=e=>!!e&&typeof e=="object",Ofe=e=>kfe(e)&&typeof e.scope=="string",Rfe=e=>!!e&&typeof e=="object",VN=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},UN=(e,t)=>{VN(e,t,-1)},WN=(e,t)=>{VN(e,t,1)},Dfe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},fR=(e={})=>tn({},Dfe,e),pR=(e=fR(),t)=>{switch(t.type){case x_:return fR(t.config);default:return e}},zi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Mfe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Qw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),hR=(e,t)=>{if(t){if(Ife(t.options))return t.options.ajv;if(t.options!==void 0&&rU(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Qw(e.ajv,t.schema):e.ajv:zpe()},Ife=e=>e?e.ajv!==void 0:!1,mR=(e,t)=>t&&Afe(t.options)?t.options.validationMode:e.validationMode,Afe=e=>e?e.validationMode!==void 0:!1,Nfe=e=>e?e.additionalErrors!==void 0:!1,vR=(e,t)=>t&&Nfe(t.options)?t.options.additionalErrors:e.additionalErrors,gR=(e=Mfe,t)=>{switch(t.type){case m_:{const n=hR(e,t),r=mR(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data),i=vR(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case v_:{const n=hR(e,t),r=mR(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data)):e.data!==t.data&&(a=zi(o,t.data));const i=vR(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:X4(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case g_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=zi(r,e.data);return{...e,validator:r,errors:o}}case w_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Qw(e.ajv,t.schema).compile(t.schema):e.validator,o=zi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case C_:return{...e,uischema:t.uischema};case y_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(pO(e.data)),r=zi(e.validator,n);return{...e,data:n,errors:r}}else{const n=dr(e.data,t.path),r=t.updater(pO(n)),o=mie(t.path,r,e.data===void 0?{}:e.data),a=zi(e.validator,o);return{...e,data:o,errors:a}}}case b_:return{...e,errors:t.errors};case $_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=zi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Qw(e.ajv,e.schema).compile(e.schema),r=zi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},jfe=e=>dr(e,"data"),Lfe=e=>dr(e,"schema"),Ffe=e=>dr(e,"uischema"),zfe=e=>dr(e,"ajv"),Bfe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},wg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Bfe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ty(t),t},KS=(e,t,n)=>r=>{const o=mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>wg(a));return mg(r,a=>{if(Ufe.indexOf(a.keyword)!==-1&&!Sg(a.parentSchema))return!1;const i=wg(a);let s=n(i);const l=a.parentSchema;return s&&!Vfe(l)&&!Sg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&X4(l,t)),s})},Vfe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Ufe=["additionalProperties","allOf","anyOf","oneOf"],HN=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return KS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Wfe=(e,t)=>HN(e,t,n=>n===e),Hfe=(e,t)=>HN(e,t,n=>n.startsWith(e+".")),JS=(e,t)=>zN(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Gfe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ci=(e,t,n)=>JS(e,t)??Gfe(n),Cg=(e,t,n,r)=>`${Ci(e,t,n)}.${r}`,qfe=(e,t)=>`${e}.${t}`,ZS=(e,t)=>t,XS=(e,t,n)=>{var s;const r=Cg(e.parentSchema,n,wg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},QS=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Cg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return u_(e.map(i=>t(i,n,o)))},Ey=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!zN(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=JS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},GN=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=qfe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Ur;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Ur||(Ur={}));const qN=[{key:Ur.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Ur.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Ur.removeTooltip,default:()=>"Delete"},{key:Ur.removeAriaLabel,default:()=>"Delete button"},{key:Ur.upAriaLabel,default:()=>"Move item up"},{key:Ur.up,default:()=>"Up"},{key:Ur.down,default:()=>"Down"},{key:Ur.downAriaLabel,default:()=>"Move item down"},{key:Ur.noDataMessage,default:()=>"No data"},{key:Ur.noSelection,default:()=>"No selection"},{key:Ur.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Ur.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Ur.deleteDialogAccept,default:()=>"Yes"},{key:Ur.deleteDialogDecline,default:()=>"No"}],mu={locale:"en",translate:ZS,translateError:XS},yR=(e=mu,t)=>{switch(t.type){case E_:{const n=t.locale??mu.locale,r=t.translator??mu.translate,o=t.errorTranslator??mu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case __:return{...e,translate:t.translator??ZS,translateError:t.errorTranslator??XS};case S_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Yfe=e=>e===void 0?ZS:e.translate,Kfe=e=>e===void 0?XS:e.translateError,Vu=-1,Ga=e=>!Mt(e)&&e.scope!==void 0,qr=e=>(t,n,r)=>{if(Mt(t)||!Ga(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Zs(n,"object")&&(a=wa(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},e_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ga(n))return!1;const a=n.scope;let i=r;return Zs(r,"object")&&(i=wa(r,a,o==null?void 0:o.rootSchema)),i=dr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},qa=e=>qr(t=>!Mt(t)&&Zs(t,e)),Py=e=>qr(t=>!Mt(t)&&t.format===e&&Zs(t,"string")),Sn=e=>t=>!Mt(t)&&t.type===e,as=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Jfe=e=>t=>Mt(e)||!Ga(t)?!1:rse(t.scope,e),Zfe=e=>t=>{if(Mt(e)||!Ga(t))return!1;const n=t.scope;return!Mt(n)&&Lie(n.split("/"))===e},Cn=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),dc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),mn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Vu,Xfe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Vu?Vu:a+e},YN=Cn(Sn("Control"),qa("boolean")),Qfe=Cn(Sn("Control"),qa("object")),KN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),JN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),ZN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),t_=Cn(Sn("Control"),dc(qr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),qr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),XN=Cn(Sn("Control"),qr(e=>Sg(e))),QN=Cn(Sn("Control"),qa("integer")),e5=Cn(Sn("Control"),qa("number")),t5=Cn(Sn("Control"),qa("string")),n5=Cn(Sn("Control"),as("multi",!0)),r5=Cn(Sn("Control"),dc(Py("date"),as("format","date"))),o5=Cn(Sn("Control"),dc(Py("time"),as("format","time"))),a5=Cn(Sn("Control"),dc(Py("date-time"),as("format","date-time"))),i5=Cn(qr((e,t)=>Zs(e,"array")&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e;return Zs(n,"object")})),n_=Cn(Sn("Control"),i5),Sf=(e,t,n)=>{if(x3(e))return Ww(e,(r,o)=>r||Sf(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=wa(n,e.$ref,n);if(r&&!r.$ref)return Sf(r,t,n)}return e.items?Sf(e.items,t,n):e.properties?Ww(Ose(e.properties),(r,[o,a])=>r||Sf(a,t,n),!1):!1},r_=(e,t,n)=>{if(!Sn("Control")(e,t,n))return!1;const r=e.scope,o=wa(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Sf(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Sg(i)||Zs(i,"object")&&(a++,a===2)||Zs(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},epe=n_,s5=Cn(Sn("Control"),qr((e,t)=>Uu(e).length!==0&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e,r=Uu(n);return r.length===1&&eN(["integer","number","boolean","string"],r[0])})),l5=Cn(Sn("Control"),dc(qa("number"),qa("integer")),qr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),as("slider",!0)),tpe=Cn(Sn("Control"),qa("integer"),as("format",!0)),c5=e=>e.type==="Categorization",u5=e=>e.type==="Category",o_=e=>Mt(e.elements)?!1:e.elements.map(t=>c5(t)?o_(t):u5(t)).reduce((t,n)=>t&&n,!0),npe=e=>o_(e),rpe=e=>(t,n,r)=>!e(t,n,r);var ope=Object.freeze({__proto__:null,NOT_APPLICABLE:Vu,isControl:Ga,schemaMatches:qr,schemaSubPathMatches:e_,schemaTypeIs:qa,formatIs:Py,uiTypeIs:Sn,optionIs:as,scopeEndsWith:Jfe,scopeEndIs:Zfe,and:Cn,or:dc,rankWith:mn,withIncreasedRank:Xfe,isBooleanControl:YN,isObjectControl:Qfe,isAllOfControl:KN,isAnyOfControl:JN,isOneOfControl:ZN,isEnumControl:t_,isOneOfEnumControl:XN,isIntegerControl:QN,isNumberControl:e5,isStringControl:t5,isMultiLineControl:n5,isDateControl:r5,isTimeControl:o5,isDateTimeControl:a5,isObjectArray:i5,isObjectArrayControl:n_,isObjectArrayWithNesting:r_,isArrayObjectControl:epe,isPrimitiveArrayControl:s5,isRangeControl:l5,isNumberFormatControl:tpe,isCategorization:c5,isCategory:u5,hasCategory:o_,categorizationHasCategory:npe,not:rpe});const d5=e=>(t,n,r)=>{const o=gy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Vu)return o.uischema},rh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():Ql.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=d5(e)(t,n,r);return s===void 0?typeof o=="function"?o():Ql.uiSchema(t,o,"#",i):s},f5=(e,t)=>n=>Wfe(e,t)(n.jsonforms.core),p5=(e,t)=>n=>Hfe(e,t)(n.jsonforms.core),Zl=e=>e.jsonforms.config,xa=()=>e=>Yfe(dr(e,"jsonforms.i18n")),a_=()=>e=>Kfe(dr(e,"jsonforms.i18n")),oh=e=>jfe(dr(e,"jsonforms.core")),$g=e=>Lfe(dr(e,"jsonforms.core")),ape=e=>Ffe(dr(e,"jsonforms.core")),gd=e=>zfe(dr(e,"jsonforms.core")),i_=e=>dr(e,"jsonforms.renderers"),s_=e=>dr(e,"jsonforms.cells"),ipe=e=>dr(e,"jsonforms.uischemas"),fc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},h5=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Ty),a=r[0]==="#"||r[0]===""?2:1;return hd(a,r.length,2).map(i=>r[i])},m5=(e,t)=>{if(!Ofe(e))return t??"";const n=h5(e.scope);return Mt(n)?t??"":fc(t,n.join("."))},Xl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ty=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),eC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),spe=e=>e==="#"||e===void 0||e==="",wa=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Ty);return kv(e,r,n)},kv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=wa(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(spe(r))return kv(e,o,n);const a=dr(e,r),i=kv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=kv(c,[r,...o],n),s)break;return s}},lpe=e=>e.type==="OR",cpe=e=>e.type==="AND",upe=e=>e.type==="LEAF",dpe=e=>Dle(e,"schema"),bR=(e,t)=>m5(e,t),tC=(e,t,n,r)=>{if(cpe(t))return t.conditions.reduce((o,a)=>o&&tC(e,a,n,r),!0);if(lpe(t))return t.conditions.reduce((o,a)=>o||tC(e,a,n,r),!1);if(upe(t))return eC(e,bR(t,n))===t.expectedValue;if(dpe(t)){const o=eC(e,bR(t,n));return r.validate(t.schema,o)}else return!0},v5=(e,t,n,r)=>{const o=e.rule.condition;return tC(t,o,n,r)},fpe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.HIDE:return!o;case wi.SHOW:return o;default:return!0}},ppe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.DISABLE:return!o;case wi.ENABLE:return o;default:return!0}},l_=e=>!!(e.rule&&(e.rule.effect===wi.SHOW||e.rule.effect===wi.HIDE)),hpe=e=>!!(e.rule&&(e.rule.effect===wi.ENABLE||e.rule.effect===wi.DISABLE)),yd=(e,t,n=void 0,r)=>e.rule?fpe(e,t,n,r):!0,mpe=(e,t,n=void 0,r)=>e.rule?ppe(e,t,n,r):!0,c_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&hpe(n)?mpe(n,o,t==null?void 0:t.path,gd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},g5=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),u_=e=>e==null?"":e.join(` -`),Zs=(e,t)=>eN(Uu(e),t),Uu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(x3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=uS(e.allOf,n=>Uu(n).length!==0);if(t)return Uu(t)}return[]},_o={schema:wa,data:eC},vpe=e=>h5(e.scope).join("."),ir={compose:fc,fromScoped:vpe},ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Ty(n.substr(n.lastIndexOf("/")+1));return yy(r)}return""},y5=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Lm(ox(e,t),n);if(typeof n=="string")return Lm(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return Lm(r,o)}return Lm(ox(e,t),!0)},Lm=(e,t)=>({text:e,show:t}),gpe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=_o.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},ky=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Oy=(e,t)=>e&&!t,es=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},Eo=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,bp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},d_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},bd=(e,t)=>{const{uischema:n}=t,r=oh(e),o=m5(n,t.path),a=t.visible===void 0||l_(n)?yd(n,r,t.path,gd(e)):t.visible,i=n,s=t.id,l=$g(e),c=i.scope!==void 0&&gpe(t.schema,i.scope,l),u=_o.schema(t.schema||l,i.scope,l),f=f5(o,u)(e),p=u!==void 0?u.description:"",m=_o.data(r,o),b=y5(n,u),v=b.show?b.text:"",x=Zl(e),g=c_(e,t,n,u||l,r,x),y=u??l,w=xa()(e),C=a_()(e),_=Ci(y,n,o),$=w(Cg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Cg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=QS(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Zl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},ype=e=>({handleChange(t,n){e(Fa(t,()=>n))}}),bpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},xpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},wpe=(e,t)=>{var a;const n=bd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return d_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return bp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))}));return{...n,options:o}},Cpe=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?uS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=fc(r,`${o}`),s=_o.data(oh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},f_=(e,t)=>{const{...n}=bd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},$pe=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=f_(e,t),l=_o.schema(r,"items",s.rootSchema),c=p5(n,l)(e),u=xa()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||i_(e),cells:t.cells||s_(e),translations:GN(u,qN,a,i)}},Spe=e=>({addItem:(t,n)=>()=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Fa(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Fa(t,r=>(UN(r,n),r)))},moveDown:(t,n)=>()=>{e(Fa(t,r=>(WN(r,n),r)))}}),_pe=e=>({addItem:(t,n)=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Fa(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),b5={visible:!0,enabled:!0,path:"",direction:"column"},Epe=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":b5.direction,Ppe=(e,t)=>{const n=oh(e),{uischema:r}=t,o=t.visible===void 0||l_(r)?yd(t.uischema,n,t.path,gd(e)):t.visible,a=_o.data(n,t.path),i=Zl(e),s=c_(e,t,r,void 0,n,i),l=xa()(e),c=Rfe(r)?Ey(r,l):void 0;return{...b5,renderers:t.renderers||i_(e),cells:t.cells||s_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Epe(r),config:i,label:c}},Tpe=(e,t)=>({renderers:t.renderers||dr(e.jsonforms,"renderers"),cells:t.cells||dr(e.jsonforms,"cells"),schema:t.schema||$g(e),rootSchema:$g(e),uischema:t.uischema||ape(e),path:t.path,enabled:t.enabled,config:Zl(e)}),p_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=bd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=_o.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:ipe(e)}},kpe=(e,t)=>p_(e,t,"allOf"),Ope=(e,t)=>p_(e,t,"anyOf"),Rpe=(e,t)=>p_(e,t,"oneOf"),Dpe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=f_(e,t),c=_o.schema(r,"items",l.rootSchema),u=xa()(e),f=QS(p5(n,c)(e),a_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:GN(u,qN,i,s)}},Mpe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||l_(n)?yd(t.uischema,oh(e),t.path,gd(e)):t.visible,o=n.text,a=xa()(e),i=JS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Zl(e),renderers:t.renderers||i_(e),cells:t.cells||s_(e)}},Ry=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=oh(e),c=t.visible!==void 0?t.visible:yd(a,l,void 0,gd(e)),u=$g(e),f=Zl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=c_(e,t,a,r||u,l,f);const m=xa()(e),b=a_()(e),v=QS(f5(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:_o.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:Zl(e),rootSchema:u,renderers:i,cells:s}},Ipe=(e,t)=>{const n=Ry(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Ape=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},Npe=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},jpe=(e,t,n)=>e.title?e.title:n+"-"+t,Dy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?_o.schema(t,i.$ref,t):i;return{schema:l,uischema:rh(a,l,r.scope,o,void 0,r,t),label:jpe(i,s,n)}}),h_=new Set,x5=(e,t)=>t<=1?e:e+t.toString(),Lpe=(e,t)=>{const n=x5(e,t);return!h_.has(n)},w5=e=>{e===void 0&&(e="undefined");let t=0;for(;!Lpe(e,t);)t++;const n=x5(e,t);return h_.add(n),n},C5=e=>h_.delete(e),Fpe=e=>{if(e.properties)return uS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Sg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),zpe=e=>{const t=new $fe({allErrors:!0,verbose:!0,strict:!1,...e});return _fe(t),t},$5=e=>({type:e,elements:[]}),Ov=e=>({type:"Control",scope:e}),Bpe=(e,t)=>{if(!Mt(e)&&!BN(e)){const n=$5(t);return n.elements.push(e),n}return e},Vpe=(e,t)=>{if(!Mt(t)){const n=yy(t);if(Tfe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Upe=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),nC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return nC(wa(a,e.$ref,a),t,n,r,o,a);if(Upe(e)){const s=Ov(n);return t.push(s),s}const i=Uu(e);if(i.length===0)return null;if(i.length>1){const s=Ov(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=$5(o);if(t.push(s),e.properties&&BZ(e.properties).length>1&&Vpe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Xl(c)}`;u.$ref!==void 0&&(u=wa(a,u.$ref,a)),nC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Ov(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},S5=(e,t="VerticalLayout",n="#",r=e)=>Bpe(nC(e,[],n,"",t,r),t),Ql={jsonSchema:FN,uiSchema:S5,controlElement:Ov},m_="jsonforms/INIT",v_="jsonforms/UPDATE_CORE",g_="jsonforms/SET_AJV",y_="jsonforms/UPDATE",b_="jsonforms/UPDATE_ERRORS",Wpe="jsonforms/VALIDATE",_5="jsonforms/ADD_RENDERER",E5="jsonforms/REMOVE_RENDERER",P5="jsonforms/ADD_CELL",T5="jsonforms/REMOVE_CELL",x_="jsonforms/SET_CONFIG",k5="jsonforms/ADD_UI_SCHEMA",O5="jsonforms/REMOVE_UI_SCHEMA",w_="jsonforms/SET_SCHEMA",C_="jsonforms/SET_UISCHEMA",$_="jsonforms/SET_VALIDATION_MODE",S_="jsonforms/SET_LOCALE",__="jsonforms/SET_TRANSLATOR",E_="jsonforms/UPDATE_I18N",R5="jsonforms/ADD_DEFAULT_DATA",D5="jsonforms/REMOVE_DEFAULT_DATA",Hpe=(e,t=FN(e),n,r)=>({type:m_,data:e,schema:t,uischema:typeof n=="object"?n:S5(t),options:r}),Gpe=(e,t,n,r)=>({type:v_,data:e,schema:t,uischema:n,options:r}),qpe=(e,t)=>({type:R5,schemaPath:e,data:t}),Ype=e=>({type:D5,schemaPath:e}),Kpe=e=>({type:g_,ajv:e}),Fa=(e,t)=>({type:y_,path:e,updater:t}),Jpe=e=>({type:b_,errors:e}),Zpe=(e,t)=>({type:_5,tester:e,renderer:t}),Xpe=(e,t)=>({type:P5,tester:e,cell:t}),Qpe=(e,t)=>({type:T5,tester:e,cell:t}),ehe=(e,t)=>({type:E5,tester:e,renderer:t}),the=e=>({type:x_,config:e}),nhe=e=>({type:$_,validationMode:e}),rhe=(e,t)=>({type:k5,tester:e,uischema:t}),ohe=e=>({type:O5,tester:e}),ahe=e=>({type:S_,locale:e}),ihe=e=>({type:w_,schema:e}),she=(e,t)=>({type:__,translator:e,errorTranslator:t}),lhe=(e,t,n)=>({type:E_,locale:e,translator:t,errorTranslator:n}),che=e=>({type:C_,uischema:e});var Fc=Object.freeze({__proto__:null,INIT:m_,UPDATE_CORE:v_,SET_AJV:g_,UPDATE_DATA:y_,UPDATE_ERRORS:b_,VALIDATE:Wpe,ADD_RENDERER:_5,REMOVE_RENDERER:E5,ADD_CELL:P5,REMOVE_CELL:T5,SET_CONFIG:x_,ADD_UI_SCHEMA:k5,REMOVE_UI_SCHEMA:O5,SET_SCHEMA:w_,SET_UISCHEMA:C_,SET_VALIDATION_MODE:$_,SET_LOCALE:S_,SET_TRANSLATOR:__,UPDATE_I18N:E_,ADD_DEFAULT_DATA:R5,REMOVE_DEFAULT_DATA:D5,init:Hpe,updateCore:Gpe,registerDefaultData:qpe,unregisterDefaultData:Ype,setAjv:Kpe,update:Fa,updateErrors:Jpe,registerRenderer:Zpe,registerCell:Xpe,unregisterCell:Qpe,unregisterRenderer:ehe,setConfig:the,setValidationMode:nhe,registerUISchema:rhe,unregisterUISchema:ohe,setLocale:ahe,setSchema:ihe,setTranslator:she,updateI18n:lhe,setUISchema:che});const _g={createLabelDescriptionFrom:y5,convertToValidClassName:g5};var uhe=so,dhe=function(){return uhe.Date.now()},fhe=dhe,phe=Qo,ax=fhe,xR=G4,hhe="Expected a function",mhe=Math.max,vhe=Math.min;function ghe(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(hhe);t=xR(t)||0,phe(n)&&(u=!!n.leading,f="maxWait"in n,a=f?mhe(xR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var E=r,k=o;return r=o=void 0,c=$,i=e.apply(k,E),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var E=$-l,k=$-c,I=t-E;return f?vhe(I,a-k):I}function x($){var E=$-l,k=$-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var $=ax();if(x($))return y($);s=setTimeout(g,v($))}function y($){return s=void 0,p&&r?m($):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(ax())}function _(){var $=ax(),E=x($);if(r=arguments,o=this,l=$,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var yhe=ghe;const M5=Bt(yhe);class I5 extends M.Component{constructor(t){super(t)}}class A5 extends I5{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class N5 extends S.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const bhe={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},j5=M.createContext({core:bhe,renderers:[]}),xhe=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},whe=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=S.useReducer(gR,void 0,()=>gR(t.core,Fc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Fc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(pR,void 0,()=>pR(void 0,Fc.setConfig(t.config)));xhe(()=>{p(Fc.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(yR,void 0,()=>{var _,$,E;return yR(t.i18n,Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))});S.useEffect(()=>{var _,$,E;b(Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=S.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=S.useRef(n);S.useEffect(()=>{x.current=n},[n]);const g=S.useCallback(M5((..._)=>{var $;return($=x.current)==null?void 0:$.call(x,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(j5.Provider,{value:v},e)},pc=()=>S.useContext(j5),Che=(e,t)=>Dpe({jsonforms:{...e}},t),$he=(e,t)=>$pe({jsonforms:{...e}},t),She=(e,t)=>Ppe({jsonforms:{...e}},t),_he=(e,t)=>bd({jsonforms:{...e}},t),Ehe=(e,t)=>{var o;const n=bpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Phe=(e,t)=>{var o;const n=xpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},The=(e,t)=>{var o;const n=wpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},khe=(e,t)=>f_({jsonforms:{...e}},t),Ohe=(e,t)=>({...kpe({jsonforms:{...e}},t)}),Oo=e=>S.useMemo(()=>ype(e),[e]),Rhe=(e,t)=>{const n=Ope({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Dhe=(e,t)=>{const n=Rpe({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Mhe=(e,t)=>Tpe({jsonforms:{...e}},t),L5=e=>({...Oo(e),...S.useMemo(()=>Spe(e),[e])}),Ihe=(e,t)=>Cpe({jsonforms:{...e}},t),Ahe=(e,t)=>Ry({jsonforms:{...e}},t),Nhe=(e,t)=>{var o;const n=Ape({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},jhe=(e,t)=>{var o;const n=Npe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Lhe=(e,t)=>Ipe({jsonforms:{...e}},t),Fhe=e=>({...Oo(e),...S.useMemo(()=>_pe(e),[e])}),zhe=(e,t)=>Mpe({jsonforms:{...e}},t),Sr=e=>function(n){const r=pc();return M.createElement(e,{ctx:r,props:n})},Bhe=e=>function({ctx:n,props:r}){const o=Mhe(n,r);return M.createElement(e,Object.assign({},r,o))},Vhe=e=>function({ctx:n,props:r}){const o=_he(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Uhe=e=>function({ctx:n,props:r}){const o=She(n,r);return M.createElement(e,Object.assign({},r,o))},Whe=e=>function({ctx:n,props:r}){const o=Dhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Hhe=e=>function({ctx:n,props:r}){const o=Rhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Ghe=e=>function({ctx:n,props:r}){const o=Ohe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},qhe=e=>function({ctx:n,props:r}){const o=khe(n,r);return M.createElement(e,Object.assign({},r,o))},Yhe=e=>function({ctx:n,props:r}){const o=Che(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Khe=e=>function({ctx:n,props:r}){const o=$he(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Jhe=e=>function({ctx:n,props:r}){const o=Ihe(n,r);return M.createElement(e,Object.assign({},r,o))},Zhe=e=>function({ctx:n,props:r}){const o=Ahe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Xhe=e=>function({ctx:n,props:r}){const o=Lhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Qhe=e=>function({ctx:n,props:r}){const o=Nhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},eme=e=>function({ctx:n,props:r}){const o=Ehe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},tme=e=>function({ctx:n,props:r}){const o=jhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},nme=e=>function({ctx:n,props:r}){const o=Phe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},rme=e=>function({ctx:n,props:r}){const o=The(n,r),a=Fhe(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},ome=e=>function({ctx:n,props:r}){const o=zhe(n,r);return M.createElement(e,Object.assign({},r,o))},F5=(e,t=!0)=>Sr(Bhe(t?M.memo(e):e)),lo=(e,t=!0)=>Sr(Vhe(t?M.memo(e):e)),is=(e,t=!0)=>Sr(Uhe(t?M.memo(e):e)),ame=(e,t=!0)=>Sr(Whe(t?M.memo(e):e)),z5=(e,t=!0)=>Sr(Hhe(t?M.memo(e):e)),ime=(e,t=!0)=>Sr(Ghe(t?M.memo(e):e)),sme=(e,t=!0)=>Sr(qhe(t?M.memo(e):e)),My=(e,t=!0)=>Sr(Yhe(t?M.memo(e):e)),B5=(e,t=!0)=>Sr(Khe(t?M.memo(e):e)),lme=(e,t=!0)=>Sr(Jhe(t?M.memo(e):e)),pr=(e,t=!0)=>Sr(Zhe(t?M.memo(e):e)),cme=(e,t=!0)=>Sr(Xhe(t?M.memo(e):e)),V5=(e,t=!0)=>Sr(Qhe(t?M.memo(e):e)),P_=(e,t=!0)=>Sr(eme(t?M.memo(e):e)),ume=(e,t=!0)=>Sr(tme(t?M.memo(e):e)),T_=(e,t=!0)=>Sr(nme(t?M.memo(e):e)),dme=(e,t=!0)=>Sr(rme(t?M.memo(e):e)),U5=(e,t=!0)=>Sr(ome(t?M.memo(e):e)),ol=e=>function(n){var i,s;const r=pc(),o=((i=r.i18n)==null?void 0:i.locale)??mu.locale,a=((s=r.i18n)==null?void 0:s.translate)??mu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class W5 extends M.Component{constructor(t){super(t),this.state={id:Ga(t.uischema)?w5(t.uischema.scope):void 0}}componentWillUnmount(){Ga(this.props.uischema)&&C5(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(fme,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const fme=M.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>gy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(N5,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class pme extends W5{constructor(t){super(t)}}const Po=F5(W5);F5(pme);const wR=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=S.useMemo(()=>r!==void 0?r:Ql.jsonSchema(n),[r,n]),v=S.useMemo(()=>typeof o=="object"?o:Ql.uiSchema(b),[o,b]);return M.createElement(whe,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(Po,null))},hme=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=S.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=S.useMemo(()=>gy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(N5,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ec=cme(hme),mme={black:"#000",white:"#fff"},xp=mme,vme={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},zc=vme,gme={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Bc=gme,yme={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Vc=yme,bme={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uc=bme,xme={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wc=xme,wme={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},nf=wme,Cme={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$me=Cme;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=H5(e[n])}),t}function Hr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ui(t[o])&&o in e&&Ui(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Ui(t[o])?H5(t[o]):t[o]:r[o]=t[o])}),r}var G5={exports:{}},Sme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_me=Sme,Eme=_me;function q5(){}function Y5(){}Y5.resetWarningCache=q5;var Pme=function(){function e(r,o,a,i,s,l){if(l!==Eme){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y5,resetWarningCache:q5};return n.PropTypes=n,n};G5.exports=Pme();var Tme=G5.exports;const j=Bt(Tme);function Xs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ah(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ome(e,t){return()=>null}function Eu(e,t){var n,r;return S.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zn(e){return e&&e.ownerDocument||document}function $i(e){return zn(e).defaultView||window}function Rme(e,t){return()=>null}function wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Dme=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kn=Dme;let CR=0;function Mme(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(CR+=1,n(`mui-${CR}`))},[t]),r}const $R=ep["useId".toString()];function Ya(e){if($R!==void 0){const t=$R();return e??t}return Mme(e)}function Ime(e,t,n,r,o){return null}function Cr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),s=o?e:a,l=S.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=S.useRef(e);return Kn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wp(n,t)})},e)}let Iy=!0,rC=!1,SR;const Ame={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Nme(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ame[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jme(e){e.metaKey||e.altKey||e.ctrlKey||(Iy=!0)}function ix(){Iy=!1}function Lme(){this.visibilityState==="hidden"&&rC&&(Iy=!0)}function Fme(e){e.addEventListener("keydown",jme,!0),e.addEventListener("mousedown",ix,!0),e.addEventListener("pointerdown",ix,!0),e.addEventListener("touchstart",ix,!0),e.addEventListener("visibilitychange",Lme,!0)}function zme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Iy||Nme(t)}function Ay(){const e=S.useCallback(o=>{o!=null&&Fme(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(rC=!0,window.clearTimeout(SR),SR=window.setTimeout(()=>{rC=!1},100),t.current=!1,!0):!1}function r(o){return zme(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function K5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Hc;function J5(){if(Hc)return Hc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Hc="reverse",e.scrollLeft>0?Hc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Hc="negative")),document.body.removeChild(e),Hc}function Bme(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(J5()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Vme=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},k_=Vme,Ume={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wme=Ume;function O_(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=O_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const _R=e=>e,Hme=()=>{let e=_R;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_R}}},Gme=Hme(),Z5=Gme,qme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function et(e,t,n="Mui"){const r=qme[t];return r?`${n}-${r}`:`${Z5.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const Ny="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function X5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yme=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kme=X5(function(e){return Yme.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jme(e){if(e.sheet)return e.sheet;for(var t=0;t0?Mr(wd,--To):0,Wu--,cr===10&&(Wu=1,Ly--),cr}function Go(){return cr=To2||$p(cr)>3?"":" "}function cve(e,t){for(;--t&&Go()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ih(e,Rv()+(t<6&&gi()==32&&Go()==32))}function aC(e){for(;Go();)switch(cr){case e:return To;case 34:case 39:e!==34&&e!==39&&aC(cr);break;case 40:e===41&&aC(e);break;case 92:Go();break}return To}function uve(e,t){for(;Go()&&e+cr!==47+10;)if(e+cr===42+42&&gi()===47)break;return"/*"+ih(t,To-1)+"*"+jy(e===47?e:Go())}function dve(e){for(;!$p(gi());)Go();return ih(e,To)}function fve(e){return oj(Mv("",null,null,null,[""],e=rj(e),0,[0],e))}function Mv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,$=r,E=w;x;)switch(b=y,y=Go()){case 40:if(b!=108&&Mr(E,f-1)==58){oC(E+=hn(Dv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Dv(y);break;case 9:case 10:case 13:case 32:E+=lve(b);break;case 92:E+=cve(Rv()-1,7);continue;case 47:switch(gi()){case 42:case 47:Fm(pve(uve(Go(),Rv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=si(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=hn(E,/\f/g,"")),m>0&&si(E)-f&&Fm(m>32?PR(E+";",r,n,f-1):PR(hn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Fm($=ER(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Mv(E,t,$,$,C,a,f,s,_);else switch(p===99&&Mr(E,3)===110?100:p){case 100:case 108:case 109:case 115:Mv(e,$,$,r&&Fm(ER(e,$,$,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Mv(E,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+si(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&sve()==125)continue}switch(E+=jy(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(si(E)-1)*g,g=1;break;case 64:gi()===45&&(E+=Dv(Go())),p=gi(),u=f=si(w=E+=dve(Rv())),y++;break;case 45:b===45&&si(E)==2&&(v=0)}}return a}function ER(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=M_(p),b=0,v=0,x=0;b0?p[g]+" "+y:hn(y,/&\f/g,p[g])))&&(l[x++]=w);return Fy(e,t,n,o===0?R_:s,l,c,u)}function pve(e,t,n){return Fy(e,t,n,Q5,jy(ive()),Cp(e,2,-2),0)}function PR(e,t,n,r){return Fy(e,t,n,D_,Cp(e,0,r),Cp(e,r+1,-1),r)}function Pu(e,t){for(var n="",r=M_(e),o=0;o6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+Pg+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oC(e,"stretch")?aj(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,si(e)-3-(~oC(e,"!important")&&10))){case 107:return hn(e,":",":"+pn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Mr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+Vr+e+e}return e}var Cve=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case D_:t.return=aj(t.value,t.length);break;case ej:return Pu([rf(t,{value:hn(t.value,"@","@"+pn)})],o);case R_:if(t.length)return ave(t.props,function(a){switch(ove(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pu([rf(t,{props:[hn(a,/:(read-\w+)/,":"+Pg+"$1")]})],o);case"::placeholder":return Pu([rf(t,{props:[hn(a,/:(plac\w+)/,":"+pn+"input-$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,":"+Pg+"$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,Vr+"input-$1")]})],o)}return""})}},$ve=[Cve],Sve=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||$ve,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nve={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jve=/[A-Z]|^ms/g,Lve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fj=function(t){return t.charCodeAt(1)===45},kR=function(t){return t!=null&&typeof t!="boolean"},sx=X5(function(e){return fj(e)?e:e.replace(jve,"-$&").toLowerCase()}),OR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lve,function(r,o,a){return li={name:o,styles:a,next:li},o})}return Nve[t]!==1&&!fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return li={name:n.name,styles:n.styles,next:li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)li={name:r.name,styles:r.styles,next:li},r=r.next;var o=n.styles+";";return o}return Fve(e,t,n)}case"function":{if(e!==void 0){var a=li,i=n(e);return li=a,Sp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Fve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Wve:Hve},IR=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Gve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return uj(n,r,o),Bve(function(){return dj(n,r,o)}),null},qve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=IR(t,n,r),l=s||MR(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Kve(o)?n:o):t;return O.jsx(Vve,{styles:r})}/** - * @mui/styled-engine v5.14.14 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Zve(e,t){return iC(e,t)}const Xve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qve=["values","unit","step"],ege=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function tge(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Qve),a=ege(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${z_[e]}px)`};function ko(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||AR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||AR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||z_).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function vj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function gj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function oge(e,...t){const n=vj(e),r=[n,...t].reduce((o,a)=>Hr(o,a),{});return gj(Object.keys(n),r)}function age(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Bl({values:e,breakpoints:t,base:n}){const r=n||age(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Jy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Tg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Jy(e,n)||r,t&&(o=t(o,r,e)),o}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Jy(l,r)||{};return ko(i,s,f=>{let p=Tg(c,o,f);return f===p&&typeof f=="string"&&(p=Tg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function ige(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sge={m:"margin",p:"padding"},lge={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cge=ige(e=>{if(e.length>2)if(NR[e])e=NR[e];else return[e];const[t,n]=e.split(""),r=sge[t],o=lge[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),B_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...B_,...V_];function sh(e,t,n,r){var o;const a=(o=Jy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function U_(e){return sh(e,"spacing",8)}function tc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function uge(e,t){return n=>e.reduce((r,o)=>(r[o]=tc(t,n),r),{})}function dge(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=cge(n),a=uge(o,r),i=e[n];return ko(e,i,a)}function yj(e,t){const n=U_(e.theme);return Object.keys(e).map(r=>dge(e,t,r,n)).reduce(Uf,{})}function Zn(e){return yj(e,B_)}Zn.propTypes={};Zn.filterProps=B_;function Xn(e){return yj(e,V_)}Xn.propTypes={};Xn.filterProps=V_;function fge(e=8){if(e.mui)return e;const t=U_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Zy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Uf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function di(e){return typeof e!="number"?e:`${e}px solid`}const pge=yn({prop:"border",themeKey:"borders",transform:di}),hge=yn({prop:"borderTop",themeKey:"borders",transform:di}),mge=yn({prop:"borderRight",themeKey:"borders",transform:di}),vge=yn({prop:"borderBottom",themeKey:"borders",transform:di}),gge=yn({prop:"borderLeft",themeKey:"borders",transform:di}),yge=yn({prop:"borderColor",themeKey:"palette"}),bge=yn({prop:"borderTopColor",themeKey:"palette"}),xge=yn({prop:"borderRightColor",themeKey:"palette"}),wge=yn({prop:"borderBottomColor",themeKey:"palette"}),Cge=yn({prop:"borderLeftColor",themeKey:"palette"}),Xy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tc(t,r)});return ko(e,e.borderRadius,n)}return null};Xy.propTypes={};Xy.filterProps=["borderRadius"];Zy(pge,hge,mge,vge,gge,yge,bge,xge,wge,Cge,Xy);const Qy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sh(e.theme,"spacing",8),n=r=>({gap:tc(t,r)});return ko(e,e.gap,n)}return null};Qy.propTypes={};Qy.filterProps=["gap"];const e0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({columnGap:tc(t,r)});return ko(e,e.columnGap,n)}return null};e0.propTypes={};e0.filterProps=["columnGap"];const t0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({rowGap:tc(t,r)});return ko(e,e.rowGap,n)}return null};t0.propTypes={};t0.filterProps=["rowGap"];const $ge=yn({prop:"gridColumn"}),Sge=yn({prop:"gridRow"}),_ge=yn({prop:"gridAutoFlow"}),Ege=yn({prop:"gridAutoColumns"}),Pge=yn({prop:"gridAutoRows"}),Tge=yn({prop:"gridTemplateColumns"}),kge=yn({prop:"gridTemplateRows"}),Oge=yn({prop:"gridTemplateAreas"}),Rge=yn({prop:"gridArea"});Zy(Qy,e0,t0,$ge,Sge,_ge,Ege,Pge,Tge,kge,Oge,Rge);function Tu(e,t){return t==="grey"?t:e}const Dge=yn({prop:"color",themeKey:"palette",transform:Tu}),Mge=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tu}),Ige=yn({prop:"backgroundColor",themeKey:"palette",transform:Tu});Zy(Dge,Mge,Ige);function Bo(e){return e<=1&&e!==0?`${e*100}%`:e}const Age=yn({prop:"width",transform:Bo}),W_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||z_[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bo(n)}};return ko(e,e.maxWidth,t)}return null};W_.filterProps=["maxWidth"];const Nge=yn({prop:"minWidth",transform:Bo}),jge=yn({prop:"height",transform:Bo}),Lge=yn({prop:"maxHeight",transform:Bo}),Fge=yn({prop:"minHeight",transform:Bo});yn({prop:"size",cssProperty:"width",transform:Bo});yn({prop:"size",cssProperty:"height",transform:Bo});const zge=yn({prop:"boxSizing"});Zy(Age,W_,Nge,jge,Lge,Fge,zge);const Bge={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xy},color:{themeKey:"palette",transform:Tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tu},backgroundColor:{themeKey:"palette",transform:Tu},p:{style:Xn},pt:{style:Xn},pr:{style:Xn},pb:{style:Xn},pl:{style:Xn},px:{style:Xn},py:{style:Xn},padding:{style:Xn},paddingTop:{style:Xn},paddingRight:{style:Xn},paddingBottom:{style:Xn},paddingLeft:{style:Xn},paddingX:{style:Xn},paddingY:{style:Xn},paddingInline:{style:Xn},paddingInlineStart:{style:Xn},paddingInlineEnd:{style:Xn},paddingBlock:{style:Xn},paddingBlockStart:{style:Xn},paddingBlockEnd:{style:Xn},m:{style:Zn},mt:{style:Zn},mr:{style:Zn},mb:{style:Zn},ml:{style:Zn},mx:{style:Zn},my:{style:Zn},margin:{style:Zn},marginTop:{style:Zn},marginRight:{style:Zn},marginBottom:{style:Zn},marginLeft:{style:Zn},marginX:{style:Zn},marginY:{style:Zn},marginInline:{style:Zn},marginInlineStart:{style:Zn},marginInlineEnd:{style:Zn},marginBlock:{style:Zn},marginBlockStart:{style:Zn},marginBlockEnd:{style:Zn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qy},rowGap:{style:t0},columnGap:{style:e0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:W_},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n0=Bge;function Vge(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Uge(e,t){return typeof e=="function"?e(t):e}function Wge(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Jy(o,c)||{};return f?f(i):ko(i,r,b=>{let v=Tg(p,u,b);return b===v&&typeof b=="string"&&(v=Tg(p,u,`${n}${b==="default"?"":je(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:n0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=vj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Uge(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Uf(p,e(m,b,a,i));else{const v=ko({theme:a},b,x=>({[m]:x}));Vge(v,b)?p[m]=t({sx:b,theme:a}):p=Uf(p,v)}else p=Uf(p,e(m,b,a,i))}),gj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const bj=Wge();bj.filterProps=["sx"];const H_=bj,Hge=["breakpoints","palette","spacing","shape"];function r0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,Hge),s=tge(n),l=fge(o);let c=Hr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},rge,a)},i);return c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}function Gge(e){return Object.keys(e).length===0}function G_(e=null){const t=S.useContext(L_);return!t||Gge(t)?e:t}const qge=r0();function lh(e=qge){return G_(e)}function Yge({styles:e,themeId:t,defaultTheme:n={}}){const r=lh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Jve,{styles:o})}const Kge=["sx"],Jge=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:n0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function q_(e){const{sx:t}=e,n=Oe(e,Kge),{systemProps:r,otherProps:o}=Jge(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ui(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function xj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=jR(r)?e[o]:je(e[o]):r+=`${jR(r)?o:je(o)}${je(e[o].toString())}`}),r}const Xge=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qge(e){return Object.keys(e).length===0}function eye(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tye=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,kg=e=>{const t={};return e&&e.forEach(n=>{const r=wj(n.props);t[r]=n.style}),t},nye=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),kg(n)},Og=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[wj(a.props)])}),o},rye=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Og(e,t,a)};function Wf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oye=r0(),aye=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Iv({defaultTheme:e,theme:t,themeId:n}){return Qge(t)?e:t[n]||t}function iye(e){return e?(t,n)=>n[e]:null}const LR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Iv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Og(t,kg(a),a);return[o,...i]}return o};function Cj(e={}){const{themeId:t,defaultTheme:n=oye,rootShouldForwardProp:r=Wf,slotShouldForwardProp:o=Wf}=e,a=i=>H_(T({},i,{theme:Iv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Xve(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=iye(aye(c))}=s,m=Oe(s,Xge),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Wf;c==="Root"||c==="root"?g=r:c?g=o:eye(i)&&(g=void 0);const y=Zve(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const $=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>LR({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Ui(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let B=R;return Og(G,kg(U),U).forEach(Y=>{B=Hr(B,Y)}),B}),F}return R}):[];let E=C;if(Ui(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Og(F,kg(R),R).forEach(B=>{U=Hr(U,B)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>LR({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t})),U=tye(l,F);if(U){const G={};return Object.entries(U).forEach(([B,z])=>{G[B]=typeof z=="function"?z(T({},R,{theme:F})):z}),p(R,G)}return null}),l&&!b&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t}));return rye(R,nye(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...$);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const sye=Cj(),lye=sye;function Y_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:O_(t.components[n].defaultProps,r)}function $j({props:e,name:t,defaultTheme:n,themeId:r}){let o=lh(n);return r&&(o=o[r]||o),Y_({theme:o,name:t,props:e})}function K_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cye(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function nc(e){if(e.type)return e;if(e.charAt(0)==="#")return nc(cye(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Xs(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Xs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function o0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function uye(e){e=nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),o0({type:s,values:l})}function FR(e){e=nc(e);let t=e.type==="hsl"||e.type==="hsla"?nc(uye(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dye(e,t){const n=FR(e),r=FR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=nc(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function a0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o0(e)}function i0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o0(e)}const fye=["component","direction","spacing","divider","children","className","useFlexGap"],pye=r0(),hye=lye("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mye(e){return $j({props:e,name:"MuiStack",defaultTheme:pye})}function vye(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yye=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},ko({theme:t},Bl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U_(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Bl({values:e.direction,base:o}),i=Bl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Hr(n,ko({theme:t},i,(l,c)=>e.useFlexGap?{gap:tc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gye(c?a[c]:e.direction)}`]:tc(r,l)}}))}return n=oge(t.breakpoints,n),n};function bye(e={}){const{createStyledComponent:t=hye,useThemeProps:n=mye,componentName:r="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>et(r,l),{}),a=t(yye);return S.forwardRef(function(l,c){const u=n(l),f=q_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,fye),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ie(_.root,g)},w,{children:v?vye(x,v):x}))})}function xye(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wye=["mode","contrastThreshold","tonalOffset"],zR={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xp.white,default:xp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lx={text:{primary:xp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function BR(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function Cye(e="light"){return e==="dark"?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function $ye(e="light"){return e==="dark"?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[500],light:Bc[300],dark:Bc[700]}}function Sye(e="light"){return e==="dark"?{main:zc[500],light:zc[300],dark:zc[700]}:{main:zc[700],light:zc[400],dark:zc[800]}}function _ye(e="light"){return e==="dark"?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:Uc[700],light:Uc[500],dark:Uc[900]}}function Eye(e="light"){return e==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}function Pye(e="light"){return e==="dark"?{main:nf[400],light:nf[300],dark:nf[700]}:{main:"#ed6c02",light:nf[500],dark:nf[900]}}function Tye(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,wye),a=e.primary||Cye(t),i=e.secondary||$ye(t),s=e.error||Sye(t),l=e.info||_ye(t),c=e.success||Eye(t),u=e.warning||Pye(t);function f(v){return dye(v,lx.text.primary)>=n?lx.text.primary:zR.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Xs(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(Xs(12,x?` (${x})`:"",JSON.stringify(v.main)));return BR(v,"light",y,r),BR(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:lx,light:zR};return Hr(T({common:T({},xp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:$me,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const kye=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Oye(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},UR='"Roboto", "Helvetica", "Arial", sans-serif';function Rye(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=UR,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,kye),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===UR?{letterSpacing:`${Oye(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,VR),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Dye=.2,Mye=.14,Iye=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Dye})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mye})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Iye})`].join(",")}const Aye=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],Nye=Aye,jye=["duration","easing","delay"],Lye={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Sj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WR(e){return`${Math.round(e)}ms`}function Fye(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zye(e){const t=T({},Lye,e.easing),n=T({},Sj,e.duration);return T({getAutoHeightDuration:Fye,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,jye),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:WR(i)} ${s} ${typeof l=="string"?l:WR(l)}`).join(",")}},e,{easing:t,duration:n})}const Bye={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vye=Bye,Uye=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wye(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Uye);if(e.vars)throw new Error(Xs(18));const s=Tye(r),l=r0(e);let c=Hr(l,{mixins:xye(l.breakpoints,n),palette:s,shadows:Nye.slice(),typography:Rye(s,a),transitions:zye(o),zIndex:T({},Vye)});return c=Hr(c,i),c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}const Hye=Wye(),s0=Hye;function nr(){const e=lh(s0);return e[Ny]||e}function Ke({props:e,name:t}){return $j({props:e,name:t,defaultTheme:s0,themeId:Ny})}const ta=e=>Wf(e)&&e!=="classes",J_=Wf,Gye=Cj({themeId:Ny,defaultTheme:s0,rootShouldForwardProp:ta}),de=Gye,qye=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},HR=qye;function Yye(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kye=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Xe(o,Yye,r)},Zye=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),_j=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Kye),b=S.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Jye(v);return O.jsxs(Zye,T({as:s,className:Ie(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});_j.muiName="SvgIcon";const sC=_j;function rr(e,t){function n(r,o){return O.jsx(sC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sC.muiName,S.memo(S.forwardRef(n))}const Xye={configure:e=>{Z5.configure(e)}},Qye=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:Eg,createSvgIcon:rr,debounce:ah,deprecatedPropType:Ome,isMuiElement:Eu,ownerDocument:zn,ownerWindow:$i,requirePropFactory:Rme,setRef:wp,unstable_ClassNameGenerator:Xye,unstable_useEnhancedEffect:Kn,unstable_useId:Ya,unsupportedProp:Ime,useControlled:Cr,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Ay},Symbol.toStringTag,{value:"Module"}));var _n={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Z_=Symbol.for("react.element"),X_=Symbol.for("react.portal"),l0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),u0=Symbol.for("react.profiler"),d0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),e0e=Symbol.for("react.server_context"),p0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),m0=Symbol.for("react.suspense_list"),v0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),t0e=Symbol.for("react.offscreen"),Ej;Ej=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z_:switch(e=e.type,e){case l0:case u0:case c0:case h0:case m0:return e;default:switch(e=e&&e.$$typeof,e){case e0e:case f0:case p0:case g0:case v0:case d0:return e;default:return t}}case X_:return t}}}_n.ContextConsumer=f0;_n.ContextProvider=d0;_n.Element=Z_;_n.ForwardRef=p0;_n.Fragment=l0;_n.Lazy=g0;_n.Memo=v0;_n.Portal=X_;_n.Profiler=u0;_n.StrictMode=c0;_n.Suspense=h0;_n.SuspenseList=m0;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return _a(e)===f0};_n.isContextProvider=function(e){return _a(e)===d0};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z_};_n.isForwardRef=function(e){return _a(e)===p0};_n.isFragment=function(e){return _a(e)===l0};_n.isLazy=function(e){return _a(e)===g0};_n.isMemo=function(e){return _a(e)===v0};_n.isPortal=function(e){return _a(e)===X_};_n.isProfiler=function(e){return _a(e)===u0};_n.isStrictMode=function(e){return _a(e)===c0};_n.isSuspense=function(e){return _a(e)===h0};_n.isSuspenseList=function(e){return _a(e)===m0};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l0||e===u0||e===c0||e===h0||e===m0||e===t0e||typeof e=="object"&&e!==null&&(e.$$typeof===g0||e.$$typeof===v0||e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===p0||e.$$typeof===Ej||e.getModuleId!==void 0)};_n.typeOf=_a;function lC(e,t){return lC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lC(e,t)}function Q_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lC(e,t)}function n0e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function r0e(e,t){e.classList?e.classList.add(t):n0e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o0e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GR(e.className,t):e.setAttribute("class",GR(e.className&&e.className.baseVal||"",t))}const qR={disabled:!1},Rg=M.createContext(null);var Pj=function(t){return t.scrollTop},_f="unmounted",Tl="exited",kl="entering",eu="entered",cC="exiting",ss=function(e){Q_(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Tl,a.appearStatus=kl):l=eu:r.unmountOnExit||r.mountOnEnter?l=_f:l=Tl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===_f?{status:Tl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==kl&&i!==eu&&(a=kl):(i===kl||i===eu)&&(a=cC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this);i&&Pj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tl&&this.setState({status:_f})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Cf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||qR.disabled){this.safeSetState({status:eu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:kl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:eu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Cf.findDOMNode(this);if(!a||qR.disabled){this.safeSetState({status:Tl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Tl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===_f)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Rg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ss.contextType=Rg;ss.propTypes={};function Gc(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc};ss.UNMOUNTED=_f;ss.EXITED=Tl;ss.ENTERING=kl;ss.ENTERED=eu;ss.EXITING=cC;const y0=ss;var a0e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return r0e(t,r)})},cx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return o0e(t,r)})},e2=function(e){Q_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Hu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function p0e(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const h0e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],m0e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(r,p0e,n)},v0e=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g0e=de("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y0e=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Sj.standard,TransitionComponent:C=y0}=r,_=Oe(r,h0e),$=T({},r,{orientation:g,collapsedSize:s}),E=m0e($),k=nr(),I=S.useRef(),R=S.useRef(null),F=S.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",B=G?"width":"height";S.useEffect(()=>()=>{clearTimeout(I.current)},[]);const z=S.useRef(null),Y=sn(n,z),Q=V=>Z=>{if(V){const re=z.current;Z===void 0?V(re):V(re,Z)}},H=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((V,Z)=>{R.current&&G&&(R.current.style.position="absolute"),V.style[B]=U,f&&f(V,Z)}),X=Q((V,Z)=>{const re=H();R.current&&G&&(R.current.style.position="");const{duration:le,easing:xe}=Hu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const fe=k.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${fe}ms`,F.current=fe}else V.style.transitionDuration=typeof le=="string"?le:`${le}ms`;V.style[B]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,Z)}),L=Q((V,Z)=>{V.style[B]="auto",p&&p(V,Z)}),K=Q(V=>{V.style[B]=`${H()}px`,b&&b(V)}),q=Q(v),D=Q(V=>{const Z=H(),{duration:re,easing:le}=Hu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[B]=U,V.style.transitionTimingFunction=le,x&&x(V)}),N=V=>{w==="auto"&&(I.current=setTimeout(V,F.current||0)),o&&o(z.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:z,timeout:w==="auto"?null:w},_,{children:(V,Z)=>O.jsx(v0e,T({as:l,className:Ie(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[V]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},$,{state:V}),ref:Y},Z,{children:O.jsx(g0e,{ownerState:T({},$,{state:V}),className:E.wrapper,ref:R,children:O.jsx(y0e,{ownerState:T({},$,{state:V}),className:E.wrapperInner,children:a})})}))}))});kj.muiSupportAuto=!0;const b0e=kj;function x0e(e){return et("MuiPaper",e)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const w0e=["className","component","elevation","square","variant"],C0e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xe(a,x0e,o)},$0e=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",HR(t.elevation))}, ${Tt("#fff",HR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),S0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,w0e),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=C0e(u);return O.jsx($0e,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),ls=S0e,_0e=S.createContext({}),Oj=_0e;function E0e(e){return et("MuiAccordion",e)}const P0e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),zm=P0e,T0e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],k0e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},E0e,t)},O0e=de(ls,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${zm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${zm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${zm.expanded}`]:{margin:"16px 0"}})),R0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=b0e,TransitionProps:m}=r,b=Oe(r,T0e),[v,x]=Cr({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=S.Children.toArray(o),C=S.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),$=k0e(_);return O.jsxs(O0e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Oj.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:$.region,children:w})}))]}))}),D0e=R0e;function M0e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const I0e=["className"],A0e=e=>{const{classes:t}=e;return Xe({root:["root"]},M0e,t)},N0e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),j0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,I0e),i=r,s=A0e(i);return O.jsx(N0e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),L0e=j0e;function F0e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=S.useState(!1),p=Ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),S.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const z0e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=z0e,B0e=["center","classes","className"];let b0=e=>e,YR,KR,JR,ZR;const uC=550,V0e=80,U0e=F_(YR||(YR=b0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),W0e=F_(KR||(KR=b0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),H0e=F_(JR||(JR=b0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),G0e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),q0e=de(F0e,{name:"MuiTouchRipple",slot:"Ripple"})(ZR||(ZR=b0` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),da.rippleVisible,U0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,W0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,H0e,({theme:e})=>e.transitions.easing.easeInOut),Y0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,B0e),[l,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=S.useRef(!1),m=S.useRef(0),b=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=S.useCallback(C=>{const{pulsate:_,rippleX:$,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(q0e,{classes:{ripple:Ie(a.ripple,da.ripple),rippleVisible:Ie(a.rippleVisible,da.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,da.ripplePulsate),child:Ie(a.child,da.child),childLeaving:Ie(a.childLeaving,da.childLeaving),childPulsate:Ie(a.childPulsate,da.childPulsate)},timeout:uC,pulsate:_,rippleX:$,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,B;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:z,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(z-F.left),G=Math.round(Y-F.top)}if(k)B=Math.sqrt((2*F.width**2+F.height**2)/3),B%2===0&&(B+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;B=Math.sqrt(z**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},V0e)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},[o,x]),y=S.useCallback(()=>{g({},{pulsate:!0})},[g]),w=S.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c($=>$.length>0?$.slice(1):$),f.current=_},[]);return S.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(G0e,T({className:Ie(da.root,a.root,i),ref:v},s,{children:O.jsx(r2,{component:null,exit:!0,children:l})}))}),K0e=Y0e;function J0e(e){return et("MuiButtonBase",e)}const Z0e=Qe("MuiButtonBase",["root","disabled","focusVisible"]),X0e=Z0e,Q0e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],e1e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},J0e,o);return n&&r&&(i.root+=` ${r}`),i},t1e=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${X0e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),n1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:$,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:B,type:z}=r,Y=Oe(r,Q0e),Q=S.useRef(null),H=S.useRef(null),J=sn(H,B),{isFocusVisibleRef:X,onFocus:L,onBlur:K,ref:q}=Ay(),[D,N]=S.useState(!1);c&&D&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,Z]=S.useState(!1);S.useEffect(()=>{Z(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{D&&p&&!u&&V&&H.current.pulsate()},[u,p,D,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&H.current&&H.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",x),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),ve=le("start",F),Be=le("stop",I),Ue=le("stop",R),ze=le("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),be=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=S.useRef(!1),Ce=mt(Te=>{p&&!we.current&&D&&H.current&&Te.key===" "&&(we.current=!0,H.current.stop(Te,()=>{H.current.start(Te)})),Te.target===Te.currentTarget&&be()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&be()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),qe=mt(Te=>{p&&Te.key===" "&&H.current&&D&&!Te.defaultPrevented&&(we.current=!1,H.current.stop(Te,()=>{H.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(Y.href||Y.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=z===void 0?"button":z,Ae.disabled=c):(!Y.href&&!Y.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=sn(n,q,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=e1e(Fe);return O.jsxs(t1e,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:qe,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:U,type:z},Ae,Y,{children:[i,re?O.jsx(K0e,T({ref:J,center:a},G)):null]}))}),Ca=n1e;function r1e(e){return et("MuiAccordionSummary",e)}const o1e=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vu=o1e,a1e=["children","className","expandIcon","focusVisibleClassName","onClick"],i1e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},r1e,t)},s1e=de(Ca,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vu.expanded}`]:{minHeight:64}})}),l1e=de("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{margin:"20px 0"}})),c1e=de("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{transform:"rotate(180deg)"}})),u1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,a1e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(Oj),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=i1e(v);return O.jsxs(s1e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ie(x.root,a),focusVisibleClassName:Ie(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(l1e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(c1e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),d1e=u1e;function f1e(e){return et("MuiIconButton",e)}const p1e=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h1e=p1e,m1e=["edge","children","className","color","disabled","disableFocusRipple","size"],v1e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(a)}`]};return Xe(i,f1e,t)},g1e=de(Ca,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h1e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),y1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,m1e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=v1e(p);return O.jsx(g1e,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),tr=y1e,b1e=rr(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function x1e(e){return et("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const w1e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],C1e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xe(s,x1e,i)},$1e=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),XR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},S1e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_1e=e=>S1e[e]||e,E1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=_1e(r.color),a=q_(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=XR}=a,b=Oe(a,w1e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||XR[p])||"span",g=C1e(v);return O.jsx($1e,T({as:x,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),gn=E1e;function P1e(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1e=["className","color","enableColorOnDark","position"],k1e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Xe(o,P1e,r)},Bm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O1e=de(ls,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),R1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,T1e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=k1e(c);return O.jsx(O1e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),D1e=R1e;function yi(e){return typeof e=="string"}function Ef(e,t,n){return e===void 0||yi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function M1e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const I1e={disableDefaultClasses:!1},A1e=S.createContext(I1e);function N1e(e){const{disableDefaultClasses:t}=S.useContext(A1e);return n=>t?"":e(n)}function Hf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function al(e,t,n){return typeof e=="function"?e(t,n):e}function QR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function j1e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ie(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Hf(T({},o,r)),s=QR(r),l=QR(o),c=t(i),u=Ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const L1e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,L1e),s=a?{}:al(r,o),{props:l,internalRef:c}=j1e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ef(n,T({},l,{ref:u}),o)}function F1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=k_({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const z1e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B1e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V1e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function U1e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V1e(e))}function W1e(e){const t=[],n=[];return Array.from(e.querySelectorAll(z1e)).forEach((r,o)=>{const a=B1e(r);a===-1||!U1e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function H1e(){return!0}function Rj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=W1e,isEnabled:i=H1e,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(!1),b=S.useRef(null),v=sn(t.ref,b),x=S.useRef(null);S.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const $=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval($),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs(S.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var $o="top",$a="bottom",Sa="right",So="left",o2="auto",ch=[$o,$a,Sa,So],Gu="start",_p="end",G1e="clippingParents",Dj="viewport",of="popper",q1e="reference",eD=ch.reduce(function(e,t){return e.concat([t+"-"+Gu,t+"-"+_p])},[]),Mj=[].concat(ch,[o2]).reduce(function(e,t){return e.concat([t,t+"-"+Gu,t+"-"+_p])},[]),Y1e="beforeRead",K1e="read",J1e="afterRead",Z1e="beforeMain",X1e="main",Q1e="afterMain",ebe="beforeWrite",tbe="write",nbe="afterWrite",rbe=[Y1e,K1e,J1e,Z1e,X1e,Q1e,ebe,tbe,nbe];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rc(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function va(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a2(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function obe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!va(a)||!Si(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function abe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!va(o)||!Si(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const ibe={name:"applyStyles",enabled:!0,phase:"write",fn:obe,effect:abe,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Vl=Math.max,Dg=Math.min,qu=Math.round;function dC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ij(){return!/^((?!chrome|android).)*safari/i.test(dC())}function Yu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&va(e)&&(o=e.offsetWidth>0&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var i=rc(e)?Yo(e):window,s=i.visualViewport,l=!Ij()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function i2(e){var t=Yu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Aj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return Yo(e).getComputedStyle(e)}function sbe(e){return["table","td","th"].indexOf(Si(e))>=0}function il(e){return((rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function x0(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(a2(e)?e.host:null)||il(e)}function tD(e){return!va(e)||ts(e).position==="fixed"?null:e.offsetParent}function lbe(e){var t=/firefox/i.test(dC()),n=/Trident/i.test(dC());if(n&&va(e)){var r=ts(e);if(r.position==="fixed")return null}var o=x0(e);for(a2(o)&&(o=o.host);va(o)&&["html","body"].indexOf(Si(o))<0;){var a=ts(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function uh(e){for(var t=Yo(e),n=tD(e);n&&sbe(n)&&ts(n).position==="static";)n=tD(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||lbe(e)||t}function s2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gf(e,t,n){return Vl(e,Dg(t,n))}function cbe(e,t,n){var r=Gf(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function jj(e){return Object.assign({},Nj(),e)}function Lj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ube=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jj(typeof t!="number"?t:Lj(t,ch))};function dbe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=bi(n.placement),l=s2(s),c=[So,Sa].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=ube(o.padding,n),p=i2(a),m=l==="y"?$o:So,b=l==="y"?$a:Sa,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=uh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],$=y/2-p[u]/2+w,E=Gf(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function fbe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Aj(t.elements.popper,o)&&(t.elements.arrow=o))}const pbe={name:"arrow",enabled:!0,phase:"main",fn:dbe,effect:fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var hbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mbe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qu(n*o)/o||0,y:qu(r*o)/o||0}}function nD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=So,C=$o,_=window;if(c){var $=uh(n),E="clientHeight",k="clientWidth";if($===Yo(n)&&($=il(n),ts($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,o===$o||(o===So||o===Sa)&&a===_p){C=$a;var I=f&&$===_&&_.visualViewport?_.visualViewport.height:$[E];v-=I-r.height,v*=l?1:-1}if(o===So||(o===$o||o===$a)&&a===_p){w=Sa;var R=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&hbe),U=u===!0?mbe({x:m,y:v},Yo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function vbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:bi(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vbe,data:{}};var Vm={passive:!0};function ybe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Yo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Vm)}),s&&l.addEventListener("resize",n.update,Vm),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Vm)}),s&&l.removeEventListener("resize",n.update,Vm)}}const bbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ybe,data:{}};var xbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Av(e){return e.replace(/left|right|bottom|top/g,function(t){return xbe[t]})}var wbe={start:"end",end:"start"};function rD(e){return e.replace(/start|end/g,function(t){return wbe[t]})}function l2(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c2(e){return Yu(il(e)).left+l2(e).scrollLeft}function Cbe(e,t){var n=Yo(e),r=il(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ij();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+c2(e),y:l}}function $be(e){var t,n=il(e),r=l2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+c2(e),l=-r.scrollTop;return ts(o||n).direction==="rtl"&&(s+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function u2(e){var t=ts(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Fj(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:va(e)&&u2(e)?e:Fj(x0(e))}function qf(e,t){var n;t===void 0&&(t=[]);var r=Fj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),i=o?[a].concat(a.visualViewport||[],u2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qf(x0(i)))}function fC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sbe(e,t){var n=Yu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function oD(e,t,n){return t===Dj?fC(Cbe(e,n)):rc(t)?Sbe(t,n):fC($be(il(e)))}function _be(e){var t=qf(x0(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&va(e)?uh(e):e;return rc(r)?t.filter(function(o){return rc(o)&&Aj(o,r)&&Si(o)!=="body"}):[]}function Ebe(e,t,n,r){var o=t==="clippingParents"?_be(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=oD(e,c,r);return l.top=Vl(u.top,l.top),l.right=Dg(u.right,l.right),l.bottom=Dg(u.bottom,l.bottom),l.left=Vl(u.left,l.left),l},oD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zj(e){var t=e.reference,n=e.element,r=e.placement,o=r?bi(r):null,a=r?Ku(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case $o:l={x:i,y:t.y-n.height};break;case $a:l={x:i,y:t.y+t.height};break;case Sa:l={x:t.x+t.width,y:s};break;case So:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?s2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Gu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _p:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?G1e:s,c=n.rootBoundary,u=c===void 0?Dj:c,f=n.elementContext,p=f===void 0?of:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=jj(typeof x!="number"?x:Lj(x,ch)),y=p===of?q1e:of,w=e.rects.popper,C=e.elements[b?y:p],_=Ebe(rc(C)?C:C.contextElement||il(e.elements.popper),l,u,i),$=Yu(e.elements.reference),E=zj({reference:$,element:w,strategy:"absolute",placement:o}),k=fC(Object.assign({},w,E)),I=p===of?k:$,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===of&&F){var U=F[o];Object.keys(R).forEach(function(G){var B=[Sa,$a].indexOf(G)>=0?1:-1,z=[$o,$a].indexOf(G)>=0?"y":"x";R[G]+=U[z]*B})}return R}function Pbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Mj:l,u=Ku(r),f=u?s?eD:eD.filter(function(b){return Ku(b)===u}):ch,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Ep(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[bi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Tbe(e){if(bi(e)===o2)return[];var t=Av(e);return[rD(e),t,rD(t)]}function kbe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=bi(x),y=g===x,w=l||(y||!b?[Av(x)]:Tbe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(bi(N)===o2?Pbe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,z=B?"width":"height",Y=Ep(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=B?G?Sa:So:G?$a:$o;_[z]>$[z]&&(Q=Av(Q));var H=Av(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[H]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,L=function(N){var V=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return I=V,"break"},K=X;K>0;K--){var q=L(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Obe={name:"flip",enabled:!0,phase:"main",fn:kbe,requiresIfExists:["offset"],data:{_skip:!1}};function aD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iD(e){return[$o,Sa,$a,So].some(function(t){return e[t]>=0})}function Rbe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ep(t,{elementContext:"reference"}),s=Ep(t,{altBoundary:!0}),l=aD(i,r),c=aD(s,o,a),u=iD(l),f=iD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Dbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rbe};function Mbe(e,t,n){var r=bi(e),o=[So,$o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[So,Sa].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function Ibe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=Mj.reduce(function(u,f){return u[f]=Mbe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Abe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ibe};function Nbe(e){var t=e.state,n=e.name;t.modifiersData[n]=zj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jbe={name:"popperOffsets",enabled:!0,phase:"read",fn:Nbe,data:{}};function Lbe(e){return e==="x"?"y":"x"}function Fbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Ep(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=bi(t.placement),y=Ku(t.placement),w=!y,C=s2(g),_=Lbe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if($){if(a){var G,B=C==="y"?$o:So,z=C==="y"?$a:Sa,Y=C==="y"?"height":"width",Q=$[C],H=Q+x[B],J=Q-x[z],X=m?-k[Y]/2:0,L=y===Gu?E[Y]:k[Y],K=y===Gu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?i2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),V=N[B],Z=N[z],re=Gf(0,E[Y],D[Y]),le=w?E[Y]/2-X-re-V-R.mainAxis:L-re-V-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,fe=t.elements.arrow&&uh(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(G=F==null?void 0:F[C])!=null?G:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=Gf(m?Dg(H,_e):H,Q,m?Vl(J,ve):J);$[C]=Be,U[C]=Be-Q}if(s){var Ue,ze=C==="x"?$o:So,He=C==="x"?$a:Sa,be=$[_],we=_==="y"?"height":"width",Ce=be+x[ze],qe=be-x[He],rt=[$o,So].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-E[we]-k[we]-Ae+R.altAxis,Fe=rt?be+E[we]+k[we]-Ae-R.altAxis:qe,Pe=m&&rt?cbe(Le,be,Fe):Gf(m?Le:Ce,be,m?Fe:qe);$[_]=Pe,U[_]=Pe-be}t.modifiersData[r]=U}}const zbe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fbe,requiresIfExists:["offset"]};function Bbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vbe(e){return e===Yo(e)||!va(e)?l2(e):Bbe(e)}function Ube(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wbe(e,t,n){n===void 0&&(n=!1);var r=va(t),o=va(t)&&Ube(t),a=il(t),i=Yu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||u2(a))&&(s=Vbe(t)),va(t)?(l=Yu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=c2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Hbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Gbe(e){var t=Hbe(e);return rbe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ybe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sD={placement:"bottom",modifiers:[],strategy:"absolute"};function lD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(Xbe(o)||document.body)},[o,a]),Kn(()=>{if(i&&!a)return wp(n,i),()=>{wp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return O.jsx(S.Fragment,{children:r})}return O.jsx(S.Fragment,{children:i&&nd.createPortal(r,i)})});function Qbe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const exe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],txe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nxe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pC(e){return typeof e=="function"?e():e}function rxe(e){return e.nodeType!==void 0}const oxe=()=>Xe({root:["root"]},N1e(Qbe)),axe={},ixe=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,exe),g=S.useRef(null),y=sn(g,n),w=S.useRef(null),C=sn(w,p),_=S.useRef(C);Kn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>w.current,[]);const $=nxe(u,i),[E,k]=S.useState($),[I,R]=S.useState(pC(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&R(pC(o))},[o]),Kn(()=>{if(!I||!c)return;const z=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=Zbe(I,g.current,T({placement:$},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,$]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=oxe(),G=(r=b.root)!=null?r:"div",B=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},B,{children:typeof a=="function"?a(F):a}))}),sxe=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=axe,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,txe),[w,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=pC(r);E=R&&rxe(R)?zn(R).body:zn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(Bj,{disablePortal:s,container:E,children:O.jsx(ixe,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function lxe(e){const t=zn(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cD(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function uD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!cxe(i);s&&l&&Yf(i,o)})}function ux(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uxe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lxe(r)){const i=K5(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cD(r)+i}px`;const s=zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cD(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=zn(r).body;else{const i=r.parentElement,s=$i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function dxe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fxe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Yf(t.modalRef,!1);const o=dxe(n);uD(n,t.mount,t.modalRef,o,!0);const a=ux(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ux(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=uxe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ux(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Yf(t.modalRef,n),uD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Yf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pxe(e){return typeof e=="function"?e():e}function hxe(e){return e?e.props.hasOwnProperty("in"):!1}const mxe=new fxe;function vxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mxe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=S.useRef({}),m=S.useRef(null),b=S.useRef(null),v=sn(b,f),[x,g]=S.useState(!u),y=hxe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>zn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=pxe(t)||C().body;o.add(_(),Y),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?$():b.current&&Yf(b.current,w))}),R=S.useCallback(()=>{o.remove(_(),w)},[w,o]);S.useEffect(()=>()=>{R()},[R]),S.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var H;(H=Y.onKeyDown)==null||H.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var H;(H=Y.onClick)==null||H.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Hf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const H=T({},Q,Y);return T({role:"presentation"},H,{onKeyDown:F(H),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Eg(Y,l==null?void 0:l.props.onEnter),onExited:Eg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const gxe=2;function Vj(e,t){return e-t}function af(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function dD(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Cxe=e=>e;let Gm;function dx(){return Gm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Gm=CSS.supports("touch-action","none"):Gm=!0),Gm}function $xe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=Cxe,step:v=1,tabIndex:x,value:g}=e,y=S.useRef(),[w,C]=S.useState(-1),[_,$]=S.useState(-1),[E,k]=S.useState(!1),I=S.useRef(0),[R,F]=Cr({controlled:g,default:n??l,name:"Slider"}),U=u&&((Ae,Le,Fe)=>{const Pe=Ae.nativeEvent||Ae,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:Le,name:c}}),u(Te,Le,Fe)}),G=Array.isArray(R);let B=G?R.slice().sort(Vj):[R];B=B.map(Ae=>af(Ae,l,s));const z=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],Y=z.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:H,onFocus:J,ref:X}=Ay(),[L,K]=S.useState(-1),q=S.useRef(),D=sn(X,q),N=sn(m,D),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&K(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},Z=Ae=>Le=>{var Fe;H(Le),Q.current===!1&&K(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Kn(()=>{if(r&&q.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&w!==-1&&C(-1),r&&L!==-1&&K(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=B[Pe],it=Y.indexOf(Te);let ct=Le.target.valueAsNumber;if(z&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:Fe}=q,{width:Pe,height:Te,bottom:it,left:ct}=Fe.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Ae.y)/Te:gt=(Ae.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Ne;if(Ne=yxe(gt,l,s),v)Ne=xxe(Ne,v,l);else{const te=dD(Y,Ne);Ne=Y[te]}Ne=af(Ne,l,s);let ne=0;if(G){Le?ne=le.current:ne=dD(B,Ne),o&&(Ne=af(Ne,B[ne-1]||-1/0,B[ne+1]||1/0));const te=Ne;Ne=fD({values:B,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=Um(Ae,y);if(!Le)return;if(I.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});Wm({sliderRef:q,activeIndex:Pe,setActive:C}),F(Fe),!E&&I.current>gxe&&k(!0),U&&!Hm(Fe,R)&&U(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=Um(Ae,y);if(k(!1),!Le)return;const{newValue:Fe}=fe({finger:Le,move:!0});C(-1),Ae.type==="touchend"&&$(-1),f&&f(Ae,Fe),y.current=void 0,ve()}),_e=mt(Ae=>{if(r)return;dx()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=Um(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});Wm({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!Hm(Te,R)&&U(Ae,Te,it)}I.current=0;const Pe=zn(q.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=zn(q.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=q;return Ae.addEventListener("touchstart",_e,{passive:dx()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:dx()}),ve()}},[ve,_e]),S.useEffect(()=>{r&&ve()},[r,ve]);const Be=Ae=>Le=>{var Fe;if((Fe=Ae.onMouseDown)==null||Fe.call(Ae,Le),r||Le.defaultPrevented||Le.button!==0)return;Le.preventDefault();const Pe=Um(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});Wm({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!Hm(it,R)&&U(Le,it,ct)}I.current=0;const Te=zn(q.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=Mg(G?B[0]:l,l,s),ze=Mg(B[B.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Hf(Ae),Fe={onMouseDown:Be(Le||{})},Pe=T({},Le,Fe);return T({},Ae,{ref:N},Pe)},be=Ae=>Le=>{var Fe;(Fe=Ae.onMouseOver)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index"));$(Pe)},we=Ae=>Le=>{var Fe;(Fe=Ae.onMouseLeave)==null||Fe.call(Ae,Le),$(-1)};return{active:w,axis:xe,axisProps:wxe,dragging:E,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Hf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:Z(Fe||{})},Te=T({},Fe,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Le=e.step)!=null?Le:void 0,disabled:r},Ae,Te,{style:T({},Wme,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Hf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:z,open:_,range:G,rootRef:N,trackLeap:ze,trackOffset:Ue,values:B,getThumbStyle:Ae=>({pointerEvents:w!==-1&&w!==Ae?"none":void 0})}}const Sxe=["onChange","maxRows","minRows","style","value"];function qm(e){return parseInt(e,10)||0}const _xe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Exe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Sxe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=sn(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),x=S.useCallback(()=>{const C=u.current,$=$i(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=$.boxSizing,I=qm($.paddingBottom)+qm($.paddingTop),R=qm($.borderBottomWidth)+qm($.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const B=G+(k==="border-box"?I+R:0),z=Math.abs(G-F)<=1;return{outerHeightStyle:B,overflow:z}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:E}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=x();pD(C)||v(_=>g(_,C))},[x]);Kn(()=>{const C=()=>{const F=x();pD(F)||nd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let $;const E=ah(_),k=u.current,I=$i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame($),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Kn(()=>{y()}),S.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs(S.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},_xe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function hD(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pxe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=hD(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=hD(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function fx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Oxe(e){const{unstable_isActiveElementInListbox:t=kxe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=Txe,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=me=>{var pe;return(pe=me.label)!=null?pe:me},groupBy:_,handleHomeEndKeys:$=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(me,pe)=>me===pe,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:B,onInputChange:z,onOpen:Y,open:Q,openOnFocus:H=!1,options:J,readOnly:X=!1,selectOnFocus:L=!e.freeSolo,value:K}=e,q=Ya(E);let D=C;D=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),Z=S.useRef(null),re=S.useRef(null),[le,xe]=S.useState(null),[fe,ge]=S.useState(-1),he=o?0:-1,_e=S.useRef(he),[ve,Be]=Cr({controlled:K,default:u,name:c}),[Ue,ze]=Cr({controlled:I,default:"",name:c,state:"inputValue"}),[He,be]=S.useState(!1),we=S.useCallback((me,pe)=>{if(!(F?ve.length!(g&&(F?ve:[ve]).some(pe=>pe!==null&&R(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:D}):[],Te=k_({filteredOptions:Pe,value:ve,inputValue:Ue});S.useEffect(()=>{const me=ve!==Te.value;He&&!me||y&&!me||we(null,ve)},[ve,we,He,Te.value,y]);const it=Ce&&Pe.length>0&&!X,ct=mt(me=>{me===-1?Z.current.focus():le.querySelector(`[data-tag-index="${me}"]`).focus()});S.useEffect(()=>{F&&fe>ve.length-1&&(ge(-1),ct(-1))},[ve,F,fe,ct]);function gt(me,pe){if(!re.current||me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===Pe.length||pe==="previous"&&De===-1)return-1;const nt=re.current.querySelector(`[data-option-index="${De}"]`),lt=b?!1:!nt||nt.disabled||nt.getAttribute("aria-disabled")==="true";if(nt&&!nt.hasAttribute("tabindex")||lt)De+=pe==="next"?1:-1;else return De}}const Ne=mt(({event:me,index:pe,reason:De="auto"})=>{if(_e.current=pe,pe===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${pe}`),B&&B(me,pe===-1?null:Pe[pe],De),!re.current)return;const nt=re.current.querySelector(`[role="option"].${n}-focused`);nt&&(nt.classList.remove(`${n}-focused`),nt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(pe===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${pe}"]`);if(xt&&(xt.classList.add(`${n}-focused`),De==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&De!=="mouse"&&De!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!Fe)return;const xt=gt((()=>{const Nt=Pe.length-1;if(pe==="reset")return he;if(pe==="start")return 0;if(pe==="end")return Nt;const ut=_e.current+pe;return ut<0?ut===-1&&k?-1:v&&_e.current!==-1||Math.abs(pe)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(pe)>1?Nt:0:ut})(),De);if(Ne({index:xt,reason:nt,event:me}),r&&pe!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?D(pe):"",lt=De?D(De):"";return nt===lt};if(_e.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?ve.length===Te.value.length&&Te.value.every((pe,De)=>D(ve[De])===D(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>D(nt)===D(pe)))return!0}return!1},ie=S.useCallback(()=>{if(!Fe||te())return;const me=F?ve[0]:ve;if(Pe.length===0||me==null){ne({diff:"reset"});return}if(re.current){if(me!=null){const pe=Pe[_e.current];if(F&&pe&&fx(ve,nt=>R(pe,nt))!==-1)return;const De=fx(Pe,nt=>R(nt,me));De===-1?ne({diff:"reset"}):Ne({index:De});return}if(_e.current>=Pe.length-1){Ne({index:Pe.length-1});return}Ne({index:_e.current})}},[Pe.length,F?!1:ve,g,ne,Ne,Fe,Ue,F]),$e=mt(me=>{wp(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(qe(!0),Ae(!0),Y&&Y(me))},Ze=(me,pe)=>{Ce&&(qe(!1),G&&G(me,pe))},tt=(me,pe,De,nt)=>{if(F){if(ve.length===pe.length&&ve.every((lt,xt)=>lt===pe[xt]))return}else if(ve===pe)return;U&&U(me,pe,De,nt),Be(pe)},ft=S.useRef(!1),_t=(me,pe,De="selectOption",nt="options")=>{let lt=De,xt=pe;if(F){xt=Array.isArray(ve)?ve.slice():[];const Nt=fx(xt,ut=>R(pe,ut));Nt===-1?xt.push(pe):nt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(me,xt),tt(me,xt,lt,{option:pe}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&Ze(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(me,pe){if(me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===ve.length||pe==="previous"&&De===-1)return-1;const nt=le.querySelector(`[data-tag-index="${De}"]`);if(!nt||!nt.hasAttribute("tabindex")||nt.disabled||nt.getAttribute("aria-disabled")==="true")De+=pe==="next"?1:-1;else return De}}const dt=(me,pe)=>{if(!F)return;Ue===""&&Ze(me,"toggleInput");let De=fe;fe===-1?Ue===""&&pe==="previous"&&(De=ve.length-1):(De+=pe==="next"?1:-1,De<0&&(De=0),De===ve.length&&(De=-1)),De=vt(De,pe),ge(De),ct(De)},Et=me=>{N.current=!0,ze(""),z&&z(me,"","clear"),tt(me,F?[]:null,"clear")},Yt=me=>pe=>{if(me.onKeyDown&&me.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(pe.key)===-1&&(ge(-1),ct(-1)),pe.which!==229))switch(pe.key){case"Home":Fe&&$&&(pe.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":Fe&&$&&(pe.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),ne({diff:-mD,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:mD,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowDown":pe.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowUp":pe.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowLeft":dt(pe,"previous");break;case"ArrowRight":dt(pe,"next");break;case"Enter":if(_e.current!==-1&&Fe){const De=Pe[_e.current],nt=w?w(De):!1;if(pe.preventDefault(),nt)return;_t(pe,De,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Ze(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!X&&Ue===""&&ve.length>0){const De=fe===-1?ve.length-1:fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break;case"Delete":if(F&&!X&&Ue===""&&ve.length>0&&fe!==-1){const De=fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break}},kt=me=>{be(!0),H&&!N.current&&Se(me)},ln=me=>{if(t(re)){Z.current.focus();return}be(!1),V.current=!0,N.current=!1,a&&_e.current!==-1&&Fe?_t(me,Pe[_e.current],"blur"):a&&y&&Ue!==""?_t(me,Ue,"blur","freeSolo"):s&&we(me,ve),Ze(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),z&&z(me,pe,"input")),pe===""?!f&&!F&&tt(me,null,"clear"):Se(me)},Ut=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_e.current!==pe&&Ne({event:me,index:pe,reason:"mouse"})},Kt=me=>{Ne({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},bn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Bn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Ze(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==q&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(Z.current.focus(),L&&V.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),V.current=!1)},ke=me=>{!m&&(Ue===""||!Ce)&&se(me)};let Ee=y&&Ue.length>0;Ee=Ee||(F?ve.length>0:ve!==null);let pt=Pe;return _&&(pt=Pe.reduce((me,pe,De)=>{const nt=_(pe);return me.length>0&&me[me.length-1].group===nt?me[me.length-1].options.push(pe):me.push({key:De,index:De,group:nt,options:[pe]}),me},[])),m&&He&&ln(),{getRootProps:(me={})=>T({"aria-owns":it?`${q}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:se}),getTagProps:({index:me})=>T({key:me,"data-tag-index":me,tabIndex:-1},!X&&{onDelete:Bn(me)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&R(pe,lt)),nt=w?w(pe):!1;return{key:D(pe),tabIndex:-1,role:"option",id:`${q}-option-${me}`,onMouseMove:Ut,onClick:bn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:q,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const Rxe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Dxe=de(sxe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mxe=S.forwardRef(function(t,n){var r;const o=G_(),a=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,Rxe),$=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(Dxe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},E,{ref:n}))}),dh=Mxe;function Ixe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Axe=["className","color","component","disableGutters","disableSticky","inset"],Nxe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Xe(i,Ixe,t)},jxe=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Uj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,Axe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=Nxe(f);return O.jsx(jxe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});Uj.muiSkipListHighlight=!0;const Lxe=Uj,Fxe=rr(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function zxe(e){return et("MuiChip",e)}const Bxe=Qe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=Bxe,Vxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Uxe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,i&&"deletable",i&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(a)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Xe(c,zxe,t)},Wxe=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${je(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${je(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hxe=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function vD(e){return e.key==="Backspace"||e.key==="Delete"}const Gxe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,Vxe),$=S.useRef(null),E=sn($,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&vD(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&vD(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Ca:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),B=Uxe(G),z=U===Ca?T({component:l||"div",focusVisibleClassName:B.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,B.deleteIcon),onClick:k}):O.jsx(Fxe,{className:Ie(B.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(B.avatar,o.props.className)}));let H=null;return f&&S.isValidElement(f)&&(H=S.cloneElement(f,{className:Ie(B.icon,f.props.className)})),O.jsxs(Wxe,T({as:U,className:Ie(B.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},z,_,{children:[Q||H,O.jsx(Hxe,{className:Ie(B.label),ownerState:G,children:p}),Y]}))}),Wj=Gxe;function sl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const qxe=S.createContext(void 0),w0=qxe;function Pi(){return S.useContext(w0)}function Yxe(e){return O.jsx(Yge,T({},e,{defaultTheme:s0,themeId:Ny}))}function gD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ig(e,t=!1){return e&&(gD(e.value)&&e.value!==""||t&&gD(e.defaultValue)&&e.defaultValue!=="")}function Kxe(e){return e.startAdornment}function Jxe(e){return et("MuiInputBase",e)}const Zxe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=Zxe,Xxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],C0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qxe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,Jxe,t)},S0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ewe=O.jsx(Yxe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),twe=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:$=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:B,readOnly:z,renderSuffix:Y,rows:Q,slotProps:H={},slots:J={},startAdornment:X,type:L="text",value:K}=o,q=Oe(o,Xxe),D=y.value!=null?y.value:K,{current:N}=S.useRef(D!=null),V=S.useRef(),Z=S.useCallback(Pe=>{},[]),re=sn(V,w,y.ref,Z),[le,xe]=S.useState(!1),fe=Pi(),ge=sl({props:o,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&p&&le&&(xe(!1),k&&k())},[fe,p,le,k]);const he=fe&&fe.onFilled,_e=fe&&fe.onEmpty,ve=S.useCallback(Pe=>{Ig(Pe)?he&&he():_e&&_e()},[he,_e]);Kn(()=>{N&&ve({value:D})},[D,ve,N]);const Be=Pe=>{if(ge.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),fe&&fe.onFocus?fe.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),fe&&fe.onBlur?fe.onBlur(Pe):xe(!1)},ze=(Pe,...Te)=>{if(!N){const it=Pe.target||V.current;if(it==null)throw new Error(Xs(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),R&&R(Pe)};let be=g,we=y;$&&be==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),be=Exe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!X)},[fe,X]);const qe=T({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:b,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:X,type:L}),rt=Qxe(qe),Ae=J.root||c.Root||S0,Le=H.root||u.root||{},Fe=J.input||c.Input||_0;return we=T({},we,(r=H.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&ewe,O.jsxs(Ae,T({},Le,!yi(Ae)&&{ownerState:T({},qe,Le.ownerState)},{ref:n,onClick:He},q,{className:Ie(rt.root,Le.className,l,z&&"MuiInputBase-readOnly"),children:[X,O.jsx(w0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:qe,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:x,onAnimationStart:Ce,name:E,placeholder:B,readOnly:z,required:ge.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:L},we,!yi(Fe)&&{as:be,ownerState:T({},qe,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,z&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,Y?Y(T({},ge,{startAdornment:X})):null]}))]})}),d2=twe;function nwe(e){return et("MuiInput",e)}const rwe=T({},Fo,Qe("MuiInput",["root","underline","input"])),Ds=rwe;function owe(e){return et("MuiOutlinedInput",e)}const awe=T({},Fo,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),ii=awe;function iwe(e){return et("MuiFilledInput",e)}const swe=T({},Fo,Qe("MuiFilledInput",["root","underline","input"])),zo=swe,Hj=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function lwe(e){return et("MuiAutocomplete",e)}const cwe=Qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=cwe;var yD,bD;const uwe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],dwe=["ref"],fwe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(f,lwe,t)},pwe=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ds.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ds.root}.${Fo.sizeSmall}`]:{[`& .${Ds.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ii.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ii.root}.${Fo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${zo.root}.${Fo.sizeSmall}`]:{paddingBottom:1,[`& .${zo.input}`]:{padding:"2.5px 4px"}},[`& .${Fo.hiddenLabel}`]:{paddingTop:8},[`& .${zo.root}.${Fo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zo.root}.${Fo.hiddenLabel}.${Fo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),hwe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),mwe=de(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vwe=de(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gwe=de(dh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),ywe=de(ls,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),bwe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),xwe=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),wwe=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Cwe=de(Lxe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$we=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),Swe=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=yD||(yD=O.jsx(b1e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:$=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:B=!1,getLimitTagsText:z=De=>`+${De}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:L="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:le=ls,PopperComponent:xe=dh,popupIcon:fe=bD||(bD=O.jsx(Hj,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,uwe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:qe,getPopupIndicatorProps:rt,getClearProps:Ae,getTagProps:Le,getListboxProps:Fe,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Ne,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:$e,inputValue:Se,groupedOptions:Ze}=Oxe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!E&&it&&!ge,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=K??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,dwe),kt=sn(Et,vt),Vt=Y||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:B,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=fwe(Ut);let bn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:E},Le(nt));Be?bn=Be(Te,De,Ut):bn=Te.map((nt,lt)=>O.jsx(Wj,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(X>-1&&Array.isArray(bn)){const De=bn.length-X;!ne&&De>0&&(bn=bn.splice(0,X),bn.push(O.jsx("span",{className:Kt.tag,children:z(De)},bn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(Cwe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx($we,{className:Kt.groupUl,ownerState:Ut,children:De.children})]},De.key)),ue=ve||((De,nt)=>O.jsx("li",T({},De,{children:Vt(nt)}))),ke=(De,nt)=>{const lt=Pe({option:De,index:nt});return ue(T({},lt,{className:Kt.option}),De,{selected:lt["aria-selected"],index:nt,inputValue:Se},Ut)},Ee=(r=He.clearIndicator)!=null?r:w.clearIndicator,pt=(o=He.paper)!=null?o:w.paper,me=(a=He.popper)!=null?a:w.popper,pe=(i=He.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs(S.Fragment,{children:[O.jsx(pwe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:E,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:qe(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:bn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(hwe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(mwe,T({},Ae(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ie(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(vwe,T({},rt(),{disabled:E,"aria-label":Ne?y:re,title:Ne?y:re,ownerState:Ut},pe,{className:Ie(Kt.popupIndicator,pe==null?void 0:pe.className),children:fe})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ge},Ce())})})),ie?O.jsx(gwe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Ne},me,{className:Ie(Kt.popper,me==null?void 0:me.className),children:O.jsxs(ywe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[q&&Ze.length===0?O.jsx(bwe,{className:Kt.loading,ownerState:Ut,children:D}):null,Ze.length===0&&!G&&!q?O.jsx(xwe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Ze.length>0?O.jsx(wwe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Ze.map((De,nt)=>Q?se({key:De.key,group:De.group,children:De.options.map((lt,xt)=>ke(lt,De.index+xt))}):ke(De,nt))})):null]}))})):null]})}),_we=Swe,Ewe=rr(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Pwe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Twe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],kwe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Pwe,t)},Owe=de("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Rwe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Dwe=de(Ewe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Mwe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const Iwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,Twe);let b=null;const v=Mwe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=kwe(y);return g?b=O.jsx(Rwe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(Dwe,{ownerState:y,className:w.fallback}),O.jsx(Owe,T({as:s,ownerState:y,className:Ie(w.root,i),ref:n},m,{children:b}))}),Gj=Iwe,Awe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Nwe={entering:{opacity:1},entered:{opacity:1}},jwe=S.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=y0}=t,w=Oe(t,Awe),C=S.useRef(null),_=sn(C,s.ref,n),$=B=>z=>{if(B){const Y=C.current;z===void 0?B(Y):B(Y,z)}},E=$(p),k=$((B,z)=>{Tj(B);const Y=Hu({style:x,timeout:g,easing:l},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",Y),B.style.transition=r.transitions.create("opacity",Y),u&&u(B,z)}),I=$(f),R=$(v),F=$(B=>{const z=Hu({style:x,timeout:g,easing:l},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",z),B.style.transition=r.transitions.create("opacity",z),m&&m(B)}),U=$(b),G=B=>{a&&a(C.current,B)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(B,z)=>S.cloneElement(s,T({style:T({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},Nwe[B],x,s.props.style),ref:_},z))}))}),Cd=jwe;function Lwe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const Fwe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zwe=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},Lwe,t)},Bwe=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vwe=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=Cd,transitionDuration:g}=i,y=Oe(i,Fwe),w=T({},i,{component:c,invisible:p}),C=zwe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(Bwe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ie(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),qj=Vwe;function Uwe(e){return et("MuiBadge",e)}const Wwe=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),$s=Wwe,Hwe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],px=10,hx=4,Gwe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Xe(s,Uwe,i)},qwe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ywe=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:px*2,lineHeight:1,padding:"0 6px",height:px*2,borderRadius:px,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:hx,height:hx*2,minWidth:hx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Kwe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:$,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,Hwe),{badgeContent:R,invisible:F,max:U,displayValue:G}=F1e({max:w,invisible:y,badgeContent:C,showZero:E}),B=k_({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),z=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:H=u,variant:J=k}=z?B:c,X=J!=="dot"?G:void 0,L=T({},c,{badgeContent:R,invisible:z,max:U,displayValue:X,showZero:E,anchorOrigin:H,color:Y,overlap:Q,variant:J}),K=Gwe(L),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:qwe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:Ywe,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:V,ownerState:L,className:Ie(K.badge,V==null?void 0:V.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),Yj=Kwe;function Jwe(e){return et("MuiButton",e)}const Zwe=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ym=Zwe,Xwe=S.createContext({}),Qwe=Xwe,eCe=S.createContext(void 0),tCe=eCe,nCe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rCe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${je(t)}`,`size${je(o)}`,`${a}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Xe(s,Jwe,i);return T({},i,l)},Kj=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oCe=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ym.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ym.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ym.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ym.disabled}`]:{boxShadow:"none"}}),aCe=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kj(e))),iCe=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kj(e))),sCe=S.forwardRef(function(t,n){const r=S.useContext(Qwe),o=S.useContext(tCe),a=O_(r,t),i=Ke({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,nCe),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=rCe($),k=y&&O.jsx(aCe,{className:E.startIcon,ownerState:$,children:y}),I=b&&O.jsx(iCe,{className:E.endIcon,ownerState:$,children:b}),R=o||"";return O.jsxs(oCe,T({ownerState:$,className:Ie(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Uo=sCe;function lCe(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const cCe=["className","raised"],uCe=e=>{const{classes:t}=e;return Xe({root:["root"]},lCe,t)},dCe=de(ls,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),fCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,cCe),s=T({},r,{raised:a}),l=uCe(s);return O.jsx(dCe,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),pCe=fCe;function hCe(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const mCe=["className","component"],vCe=e=>{const{classes:t}=e;return Xe({root:["root"]},hCe,t)},gCe=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),yCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,mCe),s=T({},r,{component:a}),l=vCe(s);return O.jsx(gCe,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),bCe=yCe;function xCe(e){return et("MuiCardHeader",e)}const wCe=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),xD=wCe,CCe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$Ce=e=>{const{classes:t}=e;return Xe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},xCe,t)},SCe=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${xD.title}`]:t.title,[`& .${xD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_Ce=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ECe=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),PCe=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),TCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,CCe),b=T({},r,{component:s,disableTypography:l}),v=$Ce(b);let x=f;x!=null&&x.type!==gn&&!l&&(x=O.jsx(gn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==gn&&!l&&(g=O.jsx(gn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(SCe,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(_Ce,{className:v.avatar,ownerState:b,children:a}),O.jsxs(PCe,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(ECe,{className:v.action,ownerState:b,children:o})]}))}),kCe=TCe;function OCe(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RCe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DCe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Xe(a,OCe,t)},MCe=de(Ca)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ICe=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ACe=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:$,value:E}=t,k=Oe(t,RCe),[I,R]=Cr({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Pi(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},B=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let z=l;F&&typeof z>"u"&&(z=F.disabled);const Y=$==="checkbox"||$==="radio",Q=T({},t,{checked:I,disabled:z,disableFocusRipple:c,edge:u}),H=DCe(Q);return O.jsxs(MCe,T({component:"span",className:Ie(H.root,i),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(ICe,T({autoFocus:r,checked:o,defaultChecked:s,className:H.input,disabled:z,id:Y?p:void 0,name:v,onChange:B,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),f2=ACe,NCe=rr(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jCe=rr(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LCe=rr(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function FCe(e){return et("MuiCheckbox",e)}const zCe=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mx=zCe,BCe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],VCe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Xe(a,FCe,t);return T({},t,i)},UCe=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mx.checked}, &.${mx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),WCe=O.jsx(jCe,{}),HCe=O.jsx(NCe,{}),GCe=O.jsx(LCe,{}),qCe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=WCe,color:s="primary",icon:l=HCe,indeterminate:c=!1,indeterminateIcon:u=GCe,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,BCe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=VCe(g);return O.jsx(UCe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ie(y.root,m)},b,{classes:y}))}),YCe=qCe;function KCe(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const JCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ZCe=e=>{const{open:t,exited:n,classes:r}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},KCe,r)},XCe=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),QCe=de(qj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),e$e=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=QCe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:B}=c,z=Oe(c,JCe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:H,getTransitionProps:J,portalRef:X,isTopModal:L,exited:K,hasTransition:q}=vxe(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=ZCe(D),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),q){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const Z=(r=(o=B==null?void 0:B.root)!=null?o:g.Root)!=null?r:XCe,re=(a=(i=B==null?void 0:B.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,fe=zt({elementType:Z,externalSlotProps:le,externalForwardedProps:z,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ge=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>H(T({},he,{onClick:_e=>{F&&F(_e),he!=null&&he.onClick&&he.onClick(_e)}})),className:Ie(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(Bj,{ref:X,container:v,disablePortal:$,children:O.jsxs(Z,T({},fe,{children:[!I&&u?O.jsx(re,T({},ge)):null,O.jsx(Rj,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:L,open:U,children:S.cloneElement(b,V)})]}))})}),Jj=e$e;function t$e(e){return et("MuiDialog",e)}const n$e=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Kf=n$e,r$e=S.createContext({}),Zj=r$e,o$e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],a$e=de(qj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),i$e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${je(n)}`],paper:["paper",`paperScroll${je(n)}`,`paperWidth${je(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,t$e,t)},s$e=de(Jj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),l$e=de("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${je(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),c$e=de(ls,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${je(n.scroll)}`],t[`paperWidth${je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Kf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),u$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ls,PaperProps:C={},scroll:_="paper",TransitionComponent:$=Cd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,o$e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=i$e(R),U=S.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},B=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},z=Ya(s),Y=S.useMemo(()=>({titleId:z}),[z]);return O.jsx(s$e,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:a$e},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:B,ownerState:R},I,{children:O.jsx($,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(l$e,{className:Ie(F.container),onMouseDown:G,ownerState:R,children:O.jsx(c$e,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":z},C,{className:Ie(F.paper,C.className),ownerState:R,children:O.jsx(Zj.Provider,{value:Y,children:u})}))})}))}))}),E0=u$e;function d$e(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const f$e=["className","disableSpacing"],p$e=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},d$e,t)},h$e=de("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),m$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,f$e),s=T({},r,{disableSpacing:a}),l=p$e(s);return O.jsx(h$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),P0=m$e;function v$e(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function g$e(e){return et("MuiDialogTitle",e)}const y$e=Qe("MuiDialogTitle",["root"]),b$e=y$e,x$e=["className","dividers"],w$e=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},v$e,t)},C$e=de("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${b$e.root} + &`]:{paddingTop:0}})),$$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,x$e),s=T({},r,{dividers:a}),l=w$e(s);return O.jsx(C$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),T0=$$e;function S$e(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const _$e=["children","className"],E$e=e=>{const{classes:t}=e,r=Xe({root:["root"]},S$e,t);return T({},t,r)},P$e=de(gn,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,_$e),i=E$e(a);return O.jsx(P$e,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),p2=T$e,k$e=["className","id"],O$e=e=>{const{classes:t}=e;return Xe({root:["root"]},g$e,t)},R$e=de(gn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),D$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,k$e),s=r,l=O$e(s),{titleId:c=a}=S.useContext(Zj);return O.jsx(R$e,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),h2=D$e;function M$e(e){return et("MuiDivider",e)}const I$e=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wD=I$e,A$e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],N$e=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},M$e,r)},j$e=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),L$e=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,A$e),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=N$e(v);return O.jsx(j$e,T({as:s,className:Ie(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(L$e,{className:x.wrapper,ownerState:v,children:a}):null}))});Xj.muiSkipListHighlight=!0;const CD=Xj,F$e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],z$e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},iwe,t);return T({},t,o)},B$e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${zo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zo.disabled}, .${zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),V$e=de(_0,{name:"MuiFilledInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Qj=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,F$e),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=z$e(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Hr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:B$e,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:V$e;return O.jsx(d2,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});Qj.muiName="Input";const e6=Qj;function U$e(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const W$e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],H$e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Xe(o,U$e,t)},G$e=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),q$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,W$e),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=H$e(y),[C,_]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{if(!Eu(B,["Input","Select"]))return;const z=Eu(B,["Select"])?B.props.input:B;z&&Kxe(z.props)&&(G=!0)}),G}),[$,E]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{Eu(B,["Input","Select"])&&(Ig(B.props,!0)||Ig(B.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=S.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,$,R,f,p,F,b,v,x]);return O.jsx(w0.Provider,{value:U,children:O.jsx(G$e,T({as:s,ownerState:y,className:Ie(w.root,a),ref:n},g,{children:o}))})}),fh=q$e,Y$e=bye({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),K$e=Y$e;function J$e(e){return et("MuiFormControlLabel",e)}const Z$e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pf=Z$e,X$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q$e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,J$e,t)},eSe=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pf.label}`]:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),tSe=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),nSe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,X$e),x=Pi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=sl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=Q$e(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==gn&&!u&&(k=O.jsx(gn,T({component:"span"},E,{className:Ie($.label,E==null?void 0:E.className),children:k}))),O.jsxs(eSe,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,w),y?O.jsxs(K$e,{direction:"row",alignItems:"center",children:[k,O.jsxs(tSe,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),k0=nSe;function rSe(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const oSe=["className","row"],aSe=e=>{const{classes:t,row:n,error:r}=e;return Xe({root:["root",n&&"row",r&&"error"]},rSe,t)},iSe=de("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),sSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,oSe),s=Pi(),l=sl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=aSe(c);return O.jsx(iSe,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),t6=sSe;function lSe(e){return et("MuiFormHelperText",e)}const cSe=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$D=cSe;var SD;const uSe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dSe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,lSe,t)},fSe=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$D.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$D.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),pSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,uSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=dSe(u);return O.jsx(fSe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?SD||(SD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),fr=pSe;function hSe(e){return et("MuiFormLabel",e)}const mSe=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jf=mSe,vSe=["children","className","color","component","disabled","error","filled","focused","required"],gSe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,hSe,t)},ySe=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Jf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Jf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),bSe=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),xSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,vSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gSe(u);return O.jsxs(ySe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(bSe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),m2=xSe,wSe=S.createContext(),_D=wSe;function CSe(e){return et("MuiGrid",e)}const $Se=[0,1,2,3,4,5,6,7,8,9,10],SSe=["column-reverse","column","row-reverse","row"],_Se=["nowrap","wrap-reverse","wrap"],sf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Pp=Qe("MuiGrid",["root","container","item","zeroMinWidth",...$Se.map(e=>`spacing-xs-${e}`),...SSe.map(e=>`direction-xs-${e}`),..._Se.map(e=>`wrap-xs-${e}`),...sf.map(e=>`grid-xs-${e}`),...sf.map(e=>`grid-sm-${e}`),...sf.map(e=>`grid-md-${e}`),...sf.map(e=>`grid-lg-${e}`),...sf.map(e=>`grid-xl-${e}`)]),ESe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ku(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PSe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Bl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${ku(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function TSe({theme:e,ownerState:t}){const n=Bl({values:t.direction,breakpoints:e.breakpoints.values});return ko({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Pp.item}`]={maxWidth:"none"}),o})}function n6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function kSe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingTop:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Pp.item}`]:{paddingTop:0}}})}return o}function OSe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${ku(u)})`,marginLeft:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingLeft:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Pp.item}`]:{paddingLeft:0}}})}return o}function RSe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const DSe=de("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=RSe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),TSe,kSe,OSe,PSe);function MSe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const ISe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=MSe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(f,CSe,t)},ASe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=nr(),a=q_(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,ESe),y=m||b,w=l||b,C=S.useContext(_D),_=u?s||12:C,$={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&($[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},$,{breakpoints:o.keys}),I=ISe(k);return O.jsx(_D.Provider,{value:_,children:O.jsx(DSe,T({ownerState:k,className:Ie(I.root,i),as:c,ref:n},E))})}),en=ASe,NSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hC(e){return`scale(${e}, ${e**2})`}const jSe={entering:{opacity:1,transform:hC(1)},entered:{opacity:1,transform:"none"}},vx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r6=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=y0}=t,g=Oe(t,NSe),y=S.useRef(),w=S.useRef(),C=nr(),_=S.useRef(null),$=sn(_,a.ref,n),E=z=>Y=>{if(z){const Q=_.current;Y===void 0?z(Q):z(Q,Y)}},k=E(u),I=E((z,Y)=>{Tj(z);const{duration:Q,delay:H,easing:J}=Hu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=X):X=Q,z.style.transition=[C.transitions.create("opacity",{duration:X,delay:H}),C.transitions.create("transform",{duration:vx?X:X*.666,delay:H,easing:J})].join(","),l&&l(z,Y)}),R=E(c),F=E(m),U=E(z=>{const{duration:Y,delay:Q,easing:H}=Hu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=J):J=Y,z.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:vx?J:J*.666,delay:vx?Q:Q||J*.333,easing:H})].join(","),z.style.opacity=0,z.style.transform=hC(.75),f&&f(z)}),G=E(p),B=z=>{v==="auto"&&(y.current=setTimeout(z,w.current||0)),r&&r(_.current,z)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:B,timeout:v==="auto"?null:v},g,{children:(z,Y)=>S.cloneElement(a,T({style:T({opacity:0,transform:hC(.75),visibility:z==="exited"&&!s?"hidden":void 0},jSe[z],b,a.props.style),ref:$},Y))}))});r6.muiSupportAuto=!0;const Ag=r6;function LSe(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Kn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const o6=ep["useSyncExternalStore"];function FSe(e,t,n,r,o){const a=S.useCallback(()=>t,[t]),i=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return o6(l,s,i)}function ph(e,t={}){const n=G_(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Y_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(o6!==void 0?FSe:LSe)(l,o,a,i,s)}const zSe=["initialWidth","width"],Ns=["xs","sm","md","lg","xl"],BSe=(e,t,n=!0)=>n?Ns.indexOf(e)<=Ns.indexOf(t):Ns.indexOf(e)n?Ns.indexOf(t)<=Ns.indexOf(e):Ns.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=nr(),l=i.theme||s,c=Y_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,zSe),[m,b]=S.useState(!1);Kn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},WSe=USe;function HSe(e){const{children:t,only:n,width:r}=e,o=nr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${je(o)}`:`${o}${je(a)}`)]};return Xe(r,qSe,t)},JSe=de("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function ZSe(e){const{children:t,className:n,only:r}=e,o=Oe(e,YSe),a=nr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=KSe(s);return O.jsx(JSe,{className:Ie(l.root,n),ownerState:s,children:t})}const XSe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Pn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,XSe);return t==="js"?O.jsx(GSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(ZSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const QSe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],e_e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},nwe,t);return T({},t,o)},t_e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}})}),n_e=de(_0,{name:"MuiInput",slot:"Input",overridesResolver:$0})({}),a6=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,QSe),y=e_e(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Hr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:t_e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:n_e;return O.jsx(d2,T({slots:{root:$,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});a6.muiName="Input";const cs=a6;function r_e(e){return et("MuiInputAdornment",e)}const o_e=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),ED=o_e;var PD;const a_e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],i_e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s_e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,i,r&&"hiddenLabel",a&&`size${je(a)}`]};return Xe(s,r_e,t)},l_e=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i_e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ED.positionStart}&:not(.${ED.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),c_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,a_e),p=Pi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=s_e(b);return O.jsx(w0.Provider,{value:null,children:O.jsx(l_e,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(gn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?PD||(PD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),v2=c_e;function u_e(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d_e=["disableAnimation","margin","shrink","variant","className"],f_e=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,u_e,t);return T({},t,c)},p_e=de(m2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),h_e=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,d_e),l=Pi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=sl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=f_e(f);return O.jsx(p_e,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),i6=h_e,m_e=S.createContext({}),Ki=m_e;function v_e(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const g_e=["children","className","component","dense","disablePadding","subheader"],y_e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},v_e,t)},b_e=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),x_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,g_e),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=y_e(p);return O.jsx(Ki.Provider,{value:f,children:O.jsxs(b_e,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),g2=x_e;function w_e(e){return et("MuiListItem",e)}const C_e=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),tu=C_e,$_e=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),S_e=$_e;function __e(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const E_e=["className"],P_e=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},__e,n)},T_e=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),s6=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,E_e),i=S.useContext(Ki),s=T({},r,{disableGutters:i.disableGutters}),l=P_e(s);return O.jsx(T_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});s6.muiName="ListItemSecondaryAction";const l6=s6,k_e=["className"],O_e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],R_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},D_e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},w_e,r)},M_e=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:R_e})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${S_e.root}`]:{paddingRight:48}},{[`&.${tu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),I_e=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:$={},slots:E={}}=r,k=Oe(r.ContainerProps,k_e),I=Oe(r,O_e),R=S.useContext(Ki),F=S.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=S.useRef(null);Kn(()=>{a&&U.current&&U.current.focus()},[a]);const G=S.Children.toArray(s),B=G.length&&Eu(G[G.length-1],["ListItemSecondaryAction"]),z=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:B,selected:_}),Y=D_e(z),Q=sn(U,n),H=E.root||u.Root||M_e,J=$.root||f.root||{},X=T({className:Ie(Y.root,J.className,l),disabled:v},I);let L=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ie(tu.focusVisible,w),L=Ca),B?(L=!X.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":X.component==="li"&&(X.component="div")),O.jsx(Ki.Provider,{value:F,children:O.jsxs(I_e,T({as:p,className:Ie(Y.container,m),ref:Q,ownerState:z},k,{children:[O.jsx(H,T({},J,!yi(H)&&{as:L,ownerState:T({},z,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(Ki.Provider,{value:F,children:O.jsxs(H,T({},J,{as:L,ref:Q},!yi(H)&&{ownerState:T({},z,J.ownerState)},X,{children:[G,C&&O.jsx(l6,{children:C})]}))})}),c6=A_e;function N_e(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const j_e=["className"],L_e=e=>{const{alignItems:t,classes:n}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},N_e,n)},F_e=de("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),z_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,j_e),i=S.useContext(Ki),s=T({},r,{alignItems:i.alignItems}),l=L_e(s);return O.jsx(F_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),B_e=z_e,V_e=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),TD=V_e;function U_e(e){return et("MuiListItemText",e)}const W_e=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ng=W_e,H_e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],G_e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Xe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},U_e,t)},q_e=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ng.primary}`]:t.primary},{[`& .${Ng.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Y_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,H_e),{dense:m}=S.useContext(Ki);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=G_e(x);return b!=null&&b.type!==gn&&!i&&(b=O.jsx(gn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==gn&&!i&&(v=O.jsx(gn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(q_e,T({className:Ie(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),K_e=Y_e,J_e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function u6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function lf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!u6(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Z_e=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,J_e),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,$=zn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),lf(C,$,c,l,gx);else if(_==="ArrowUp")w.preventDefault(),lf(C,$,c,l,kD);else if(_==="Home")w.preventDefault(),lf(C,null,c,l,gx);else if(_==="End")w.preventDefault(),lf(C,null,c,l,kD);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=$&&!E.repeating&&u6($,E);E.previousKeyMatched&&(R||lf(C,$,!1,l,gx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;S.Children.forEach(i,(w,C)=>{if(!S.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=S.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),S.cloneElement(w,_)}return w});return O.jsx(g2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),y2=Z_e;function X_e(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const Q_e=["onEntering"],e2e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],t2e=["slotProps"];function OD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function DD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function yx(e){return typeof e=="function"?e():e}const n2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},X_e,t)},r2e=de(Jj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d6=de(ls,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o2e=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:$=Ag,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Q_e),F=Oe(i,e2e),U=(r=C==null?void 0:C.paper)!=null?r:y,G=S.useRef(),B=sn(G,U.ref),z=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:$,transitionDuration:E,TransitionProps:R}),Y=n2e(z),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=yx(l),ve=(he&&he.nodeType===1?he:zn(G.current).body).getBoundingClientRect();return{top:ve.top+OD(ve,c.vertical),left:ve.left+RD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),H=S.useCallback(he=>({vertical:OD(he,_.vertical),horizontal:RD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=H(_e);if(f==="none")return{top:null,left:null,transformOrigin:DD(ve)};const Be=Q();let Ue=Be.top-ve.vertical,ze=Be.left-ve.horizontal;const He=Ue+_e.height,be=ze+_e.width,we=$i(yx(l)),Ce=we.innerHeight-x,qe=we.innerWidth-x;if(x!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(x!==null&&zeqe){const rt=be-qe;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:DD(ve)}},[l,f,Q,H,x]),[X,L]=S.useState(g),K=S.useCallback(()=>{const he=G.current;if(!he)return;const _e=J(he);_e.top!==null&&(he.style.top=_e.top),_e.left!==null&&(he.style.left=_e.left),he.style.transformOrigin=_e.transformOrigin,L(!0)},[J]);S.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(he,_e)=>{k&&k(he,_e),K()},D=()=>{L(!1)};S.useEffect(()=>{g&&K()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),S.useEffect(()=>{if(!g)return;const he=ah(()=>{K()}),_e=$i(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,K]);let N=E;E==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?zn(yx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:r2e,re=(a=w==null?void 0:w.paper)!=null?a:d6,le=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:B},ownerState:z,className:Ie(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:z,className:Ie(Y.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,t2e);return O.jsx(Z,T({},ge,!yi(Z)&&{slotProps:fe,disableScrollLock:I},{children:O.jsx($,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},le,{children:p}))}))}))}),a2e=o2e;function i2e(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const s2e=["onEntering"],l2e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],c2e={vertical:"top",horizontal:"right"},u2e={vertical:"top",horizontal:"left"},d2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},i2e,t)},f2e=de(a2e,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p2e=de(d6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h2e=de(y2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),m2e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,s2e),_=Oe(a,l2e),$=nr(),E=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=d2e(k),R=i&&!c&&p,F=S.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let B=-1;S.Children.map(s,(J,X)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||B===-1)&&(B=X))});const z=(r=y.paper)!=null?r:p2e,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),H=zt({elementType:z,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(f2e,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?c2e:u2e,slots:{paper:z,root:y.root},slotProps:{root:Q,paper:H},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(h2e,T({onKeyDown:G,actions:F,autoFocus:i&&(B===-1||c),autoFocusItem:R,variant:g},u,{className:Ie(I.list,u.className),children:s}))}))}),v2e=m2e;function g2e(e){return et("MuiMenuItem",e)}const y2e=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cf=y2e,b2e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x2e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},w2e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},g2e,i);return T({},i,l)},C2e=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x2e})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wD.inset}`]:{marginLeft:52},[`& .${Ng.root}`]:{marginTop:0,marginBottom:0},[`& .${Ng.inset}`]:{paddingLeft:36},[`& .${TD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${TD.root} svg`]:{fontSize:"1.25rem"}}))),$2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,b2e),b=S.useContext(Ki),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=S.useRef(null);Kn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=w2e(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(Ki.Provider,{value:v,children:O.jsx(C2e,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),jg=$2e;function S2e(e){return et("MuiNativeSelect",e)}const _2e=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b2=_2e,E2e=["className","disabled","error","IconComponent","inputRef","variant"],P2e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return Xe(s,S2e,t)},f6=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${b2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),T2e=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ta,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b2.multiple}`]:t.multiple}]}})(f6),p6=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${b2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),k2e=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),O2e=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,E2e),u=T({},t,{disabled:o,variant:l,error:a}),f=P2e(u);return O.jsxs(S.Fragment,{children:[O.jsx(T2e,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(k2e,{as:i,ownerState:u,className:f.icon})]})}),R2e=O2e;var MD;const D2e=["children","classes","className","label","notched"],M2e=de("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),I2e=de("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function A2e(e){const{className:t,label:n,notched:r}=e,o=Oe(e,D2e),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(M2e,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(I2e,{ownerState:i,children:a?O.jsx("span",{children:n}):MD||(MD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const N2e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],j2e=e=>{const{classes:t}=e,r=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},owe,t);return T({},t,r)},L2e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ii.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ii.focused} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ii.error} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ii.disabled} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),F2e=de(A2e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),z2e=de(_0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),h6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,N2e),y=j2e(l),w=Pi(),C=sl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),$=(r=(o=v.root)!=null?o:c.Root)!=null?r:L2e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:z2e;return O.jsx(d2,T({slots:{root:$,input:E},renderSuffix:k=>O.jsx(F2e,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs(S.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});h6.muiName="Input";const m6=h6,B2e=rr(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),V2e=rr(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),U2e=de("span")({position:"relative",display:"flex"}),W2e=de(B2e)({transform:"scale(1)"}),H2e=de(V2e)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function v6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(U2e,{className:n.root,ownerState:o,children:[O.jsx(W2e,{fontSize:r,className:n.background,ownerState:o}),O.jsx(H2e,{fontSize:r,className:n.dot,ownerState:o})]})}const G2e=S.createContext(void 0),g6=G2e;function q2e(){return S.useContext(g6)}function Y2e(e){return et("MuiRadio",e)}const K2e=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ID=K2e,J2e=["checked","checkedIcon","color","icon","name","onChange","size","className"],Z2e=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Xe(o,Y2e,t))},X2e=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ID.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${ID.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Q2e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const AD=O.jsx(v6,{checked:!0}),ND=O.jsx(v6,{}),eEe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=AD,color:l="primary",icon:c=ND,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,J2e),v=T({},a,{color:l,size:p}),x=Z2e(v),g=q2e();let y=i;const w=Eg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=Q2e(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(X2e,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=ND.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=AD.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ie(x.root,m)},b))}),tEe=eEe,nEe=["actions","children","defaultValue","name","onChange","value"],rEe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,nEe),u=S.useRef(null),[f,p]=Cr({controlled:l,default:a,name:"RadioGroup"});S.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Ya(i),v=S.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(g6.Provider,{value:v,children:O.jsx(t6,T({role:"radiogroup",ref:m},c,{children:o}))})}),oEe=rEe;function aEe(e){return et("MuiSelect",e)}const iEe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uf=iEe;var jD;const sEe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lEe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${uf.select}`]:t.select},{[`&.${uf.select}`]:t[n.variant]},{[`&.${uf.error}`]:t.error},{[`&.${uf.multiple}`]:t.multiple}]}})(f6,{[`&.${uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cEe=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),uEe=de("input",{shouldForwardProp:e=>J_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function LD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dEe(e){return e==null||typeof e=="string"&&!e.trim()}const fEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,aEe,t)},pEe=S.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:$,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:B,value:z,variant:Y="standard"}=t,Q=Oe(t,sEe),[H,J]=Cr({controlled:z,default:f,name:"Select"}),[X,L]=Cr({controlled:R,default:u,name:"Select"}),K=S.useRef(null),q=S.useRef(null),[D,N]=S.useState(null),{current:V}=S.useRef(R!=null),[Z,re]=S.useState(),le=sn(n,x),xe=S.useCallback(Ne=>{q.current=Ne,Ne&&N(Ne)},[]),fe=D==null?void 0:D.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{q.current.focus()},node:K.current,value:H}),[H]),S.useEffect(()=>{u&&X&&D&&!V&&(re(s?null:fe.clientWidth),q.current.focus())},[D,s]),S.useEffect(()=>{i&&q.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=zn(q.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?I&&I(ne):E&&E(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),q.current.focus(),ge(!0,Ne))},_e=Ne=>{ge(!1,Ne)},ve=S.Children.toArray(l),Be=Ne=>{const ne=ve.find(te=>te.props.value===Ne.target.value);ne!==void 0&&(J(ne.props.value),$&&$(Ne,ne))},Ue=Ne=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(H)?H.slice():[];const ie=H.indexOf(Ne.props.value);ie===-1?te.push(Ne.props.value):te.splice(ie,1)}else te=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ne),H!==te&&(J(te),$)){const ie=ne.nativeEvent||ne,$e=new ie.constructor(ie.type,ie);Object.defineProperty($e,"target",{writable:!0,value:{value:te,name:C}}),$($e,Ne)}w||ge(!1,ne)}},ze=Ne=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},He=D!==null&&X,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const qe=[];let rt=!1;(Ig({value:H})||m)&&(U?we=U(H):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(w){if(!Array.isArray(H))throw new Error(Xs(2));ne=H.some(te=>LD(te,Ne.props.value)),ne&&rt&&qe.push(Ne.props.children)}else ne=LD(H,Ne.props.value),ne&&rt&&(Ce=Ne.props.children);return S.cloneElement(Ne,{"aria-selected":ne?"true":"false",onClick:Ue(Ne),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Ne.props.value})});rt&&(w?qe.length===0?we=null:we=qe.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},x2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ta(e)&&e!=="variant",slot:"Root"},yEe=de(cs,x2)(""),bEe=de(m6,x2)(""),xEe=de(e6,x2)(""),y6=S.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Hj,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,mEe),R=y?R2e:hEe,F=Pi(),U=sl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,B=T({},r,{variant:G,classes:i}),z=gEe(B),Y=Oe(z,vEe),Q=p||{standard:O.jsx(yEe,{ownerState:B}),outlined:O.jsx(bEe,{label:b,ownerState:B}),filled:O.jsx(xEe,{ownerState:B})}[G],H=sn(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:T({id:f},E)},m,{classes:m?Hr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:H,className:Ie(Q.props.className,s,z.root)},!p&&{variant:G},I))})});y6.muiName="Select";const b6=y6,wEe=e=>!e||!yi(e),CEe=wEe;function $Ee(e){return et("MuiSlider",e)}const SEe=Qe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),za=SEe,_Ee=e=>{const{open:t}=e;return{offset:Ie(t&&za.valueLabelOpen),circle:za.valueLabelCircle,label:za.valueLabelLabel}};function EEe(e){const{children:t,className:n,value:r}=e,o=_Ee(e);return t?S.cloneElement(t,{className:Ie(t.props.className)},O.jsxs(S.Fragment,{children:[t.props.children,O.jsx("span",{className:Ie(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const PEe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function FD(e){return e}const TEe=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`],n.size!=="medium"&&t[`size${je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${za.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${za.dragging}`]:{[`& .${za.thumb}, & .${za.track}`]:{transition:"none"}}})),kEe=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),OEe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),REe=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${je(n.color)}`],n.size!=="medium"&&t[`thumbSize${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${za.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${za.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${za.disabled}`]:{"&:hover":{boxShadow:"none"}}})),DEe=de(EEe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${za.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),MEe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>J_(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),IEe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>J_(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),AEe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${je(s)}`,l&&`size${je(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${je(l)}`,s&&`thumbColor${je(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xe(c,$Ee,i)},NEe=({children:e})=>e,jEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,$,E,k,I,R;const F=Ke({props:t,name:"MuiSlider"}),G=nr().direction==="rtl",{"aria-label":B,"aria-valuetext":z,"aria-labelledby":Y,component:Q="span",components:H={},componentsProps:J={},color:X="primary",classes:L,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:V,marks:Z=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=FD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=FD}=F,He=Oe(F,PEe),be=T({},F,{isRtl:G,max:re,min:le,classes:L,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:qe,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=$xe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=AEe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:H.Root)!=null?r:TEe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:H.Rail)!=null?a:kEe,Ze=(s=(l=ve==null?void 0:ve.track)!=null?l:H.Track)!=null?s:OEe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:H.Thumb)!=null?c:REe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:H.ValueLabel)!=null?f:DEe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:H.Mark)!=null?m:MEe,vt=(v=(x=ve==null?void 0:ve.markLabel)!=null?x:H.MarkLabel)!=null?v:IEe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:H.Input)!=null?g:"input",Et=(w=_e==null?void 0:_e.root)!=null?w:J.root,Yt=(C=_e==null?void 0:_e.rail)!=null?C:J.rail,kt=(_=_e==null?void 0:_e.track)!=null?_:J.track,ln=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(E=_e==null?void 0:_e.valueLabel)!=null?E:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(I=_e==null?void 0:_e.markLabel)!=null?I:J.markLabel,bn=(R=_e==null?void 0:_e.input)!=null?R:J.input,Bn=zt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},CEe($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),se=zt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=zt({elementType:Ze,externalSlotProps:kt,additionalProps:{style:T({},we[Fe].offset(Ne),we[Fe].leap(ne))},ownerState:T({},be,kt==null?void 0:kt.ownerState),className:ie.track}),ue=zt({elementType:tt,getSlotProps:rt,externalSlotProps:ln,ownerState:T({},be,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=zt({elementType:dt,getSlotProps:qe,externalSlotProps:bn,ownerState:be});return O.jsxs($e,T({},Bn,{children:[O.jsx(Se,T({},se)),O.jsx(Ze,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=Mg(pe.value,le,re),lt=we[Fe].offset(nt);let xt;return Be===!1?xt=gt.indexOf(pe.value)!==-1:xt=Be==="normal"&&(Te?pe.value>=gt[0]&&pe.value<=gt[gt.length-1]:pe.value<=gt[0])||Be==="inverted"&&(Te?pe.value<=gt[0]||pe.value>=gt[gt.length-1]:pe.value>=gt[0]),O.jsxs(S.Fragment,{children:[O.jsx(_t,T({"data-index":De},Ee,!yi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ie(Ee.className,xt&&ie.markActive)})),pe.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":De},pt,!yi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ie(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:pe.label})):null]},De)}),gt.map((pe,De)=>{const nt=Mg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?NEe:ft;return O.jsx(xt,T({},!yi(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:D},ke,{children:O.jsx(tt,T({"data-index":De},ue,{className:Ie(ie.thumb,ue.className,Le===De&&ie.active,Pe===De&&ie.focusVisible),style:T({},lt,te(De),ue.style),children:O.jsx(dt,T({"data-index":De,"aria-label":N?N(De):B,"aria-valuenow":he(pe),"aria-labelledby":Y,"aria-valuetext":V?V(he(pe),De):z,value:gt[De]},me))}))}),De)})]}))}),LEe=jEe;function FEe(e){return et("MuiTooltip",e)}const zEe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),js=zEe,BEe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function VEe(e){return Math.round(e*1e5)/1e5}const UEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,FEe,t)},WEe=de(dh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${js.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${js.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${js.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${js.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),HEe=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${js.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${js.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${js.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${js.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),GEe=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Km=!1,bx=null,df={x:0,y:0};function Jm(e,t){return n=>{t&&t(n),e(n)}}const qEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const $=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:B=!1,disableTouchListener:z=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:H=700,followCursor:J=!1,id:X,leaveDelay:L=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:V="bottom",PopperComponent:Z,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=Ag,TransitionProps:he}=$,_e=Oe($,BEe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=nr(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),qe=B||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=Cr({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Ya(X),gt=S.useRef(),Ne=S.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(Fe.current)},[]);S.useEffect(()=>()=>{clearTimeout(rt.current),clearTimeout(Ae.current),clearTimeout(Le.current),Ne()},[Ne]);const ne=yt=>{clearTimeout(bx),Km=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(bx),bx=setTimeout(()=>{Km=!1},800+L),Te(!1),q&&it&&q(yt),clearTimeout(rt.current),rt.current=setTimeout(()=>{Ce.current=!1},Be.transitions.duration.shortest)}),ie=yt=>{Ce.current&&yt.type!=="touchstart"||(ze&&ze.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Le.current),Y||Km&&Q?Ae.current=setTimeout(()=>{ne(yt)},Km?Q:Y):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Ze,onFocus:tt,ref:ft}=Ay(),[,_t]=S.useState(!1),vt=yt=>{Ze(yt),Se.current===!1&&(_t(!1),$e(yt))},dt=yt=>{ze||He(yt.currentTarget),tt(yt),Se.current===!0&&(_t(!0),ie(yt))},Et=yt=>{Ce.current=!0;const Wt=ve.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=$e,ln=yt=>{Et(yt),clearTimeout(Le.current),clearTimeout(rt.current),Ne(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},H)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},K)};S.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),bn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),df={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},se=typeof fe=="string";F?(Bn.title=!it&&se&&!G?fe:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=se?fe:null,Bn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Bn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:bn}:{}),ue={};z||(oe.onTouchStart=ln,oe.onTouchEnd=Vt),G||(oe.onMouseOver=Jm(Yt,oe.onMouseOver),oe.onMouseLeave=Jm(kt,oe.onMouseLeave),qe||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),U||(oe.onFocus=Jm(dt,oe.onFocus),oe.onBlur=Jm(vt,oe.onBlur),qe||(ue.onFocus=dt,ue.onBlur=vt));const ke=S.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!be,options:{element:be,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[be,re]),Ee=T({},$,{isRtl:Ue,arrow:E,disableInteractive:qe,placement:V,PopperComponentProp:Z,touch:Ce.current}),pt=UEe(Ee),me=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:WEe,pe=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ge)!=null?a:Ag,De=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:HEe,nt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:GEe,lt=Ef(me,T({},re,(p=le.popper)!=null?p:R.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=Ef(pe,T({},he,(v=le.transition)!=null?v:R.transition),Ee),Nt=Ef(De,T({},(x=le.tooltip)!=null?x:R.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=Ef(nt,T({},(w=le.arrow)!=null?w:R.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:Z??dh,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:df.y,left:df.x,right:df.x,bottom:df.y,width:0,height:0})}:ze,popperRef:Kt,open:ze?it:!1,id:ct,transition:!0},ue,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(pe,T({timeout:Be.transitions.duration.shorter},yt,xt,{children:O.jsxs(De,T({},Nt,{children:[fe,E?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),hc=qEe,YEe=S.createContext({}),hh=YEe,KEe=S.createContext({}),O0=KEe;function JEe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const ZEe=["active","children","className","component","completed","disabled","expanded","index","last"],XEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Xe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},JEe,t)},QEe=de("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),ePe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,ZEe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=S.useContext(hh);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=XEe(E),I=O.jsxs(QEe,T({as:s,className:Ie(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(O0.Provider,{value:$,children:v&&!x&&f!==0?O.jsxs(S.Fragment,{children:[v,I]}):I})}),tPe=ePe,nPe=rr(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),rPe=rr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function oPe(e){return et("MuiStepIcon",e)}const aPe=Qe("MuiStepIcon",["root","active","completed","error","text"]),xx=aPe;var zD;const iPe=["active","className","completed","error","icon"],sPe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Xe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},oPe,t)},wx=de(sC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${xx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.error}`]:{color:(e.vars||e).palette.error.main}})),lPe=de("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),cPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,iPe),u=T({},r,{active:o,completed:i,error:s}),f=sPe(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(wx,T({as:rPe,className:p,ref:n,ownerState:u},c)):i?O.jsx(wx,T({as:nPe,className:p,ref:n,ownerState:u},c)):O.jsxs(wx,T({className:p,ref:n,ownerState:u},c,{children:[zD||(zD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(lPe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),uPe=cPe;function dPe(e){return et("MuiStepLabel",e)}const fPe=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ls=fPe,pPe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],hPe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Xe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},dPe,t)},mPe=de("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ls.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ls.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),vPe=de("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ls.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.alternativeLabel}`]:{marginTop:16},[`&.${Ls.error}`]:{color:(e.vars||e).palette.error.main}})),gPe=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ls.alternativeLabel}`]:{paddingRight:0}})),yPe=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ls.alternativeLabel}`]:{textAlign:"center"}})),x6=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,pPe),{alternativeLabel:v,orientation:x}=S.useContext(hh),{active:g,disabled:y,completed:w,icon:C}=S.useContext(O0),_=c||C;let $=p;_&&!$&&($=uPe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=hPe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(mPe,T({className:Ie(k.root,i),ref:n,ownerState:E},b,{children:[_||$?O.jsx(gPe,{className:k.iconContainer,ownerState:E,children:O.jsx($,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(yPe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(vPe,T({ownerState:E},I,{className:Ie(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});x6.muiName="StepLabel";const bPe=x6;function xPe(e){return et("MuiStepButton",e)}const wPe=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),BD=wPe,CPe=["children","className","icon","optional"],$Pe=e=>{const{classes:t,orientation:n}=e;return Xe({root:["root",n],touchRipple:["touchRipple"]},xPe,t)},SPe=de(Ca,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BD.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${BD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),_Pe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,CPe),{disabled:c,active:u}=S.useContext(O0),{orientation:f}=S.useContext(hh),p=T({},r,{orientation:f}),m=$Pe(p),b={icon:i,optional:s},v=Eu(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(bPe,T({},b,{children:o}));return O.jsx(SPe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ie(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),EPe=_Pe;function PPe(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const TPe=["className"],kPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${je(n)}`]};return Xe(s,PPe,t)},OPe=de("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),RPe=de("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${je(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),DPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,TPe),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(hh),{active:l,disabled:c,completed:u}=S.useContext(O0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=kPe(f);return O.jsx(OPe,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(RPe,{className:p.line,ownerState:f})}))}),MPe=DPe;function IPe(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const APe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],NPe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Xe({root:["root",t,n&&"alternativeLabel"]},IPe,r)},jPe=de("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),LPe=O.jsx(MPe,{}),FPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=LPe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,APe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=NPe(m),v=S.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>S.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=S.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(hh.Provider,{value:g,children:O.jsx(jPe,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:x}))})}),zPe=FPe;function BPe(e){return et("MuiSwitch",e)}const VPe=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eo=VPe,UPe=["className","color","edge","size","sx"],WPe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Xe(s,BPe,t);return T({},t,l)},HPe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${eo.thumb}`]:{width:16,height:16},[`& .${eo.switchBase}`]:{padding:4,[`&.${eo.checked}`]:{transform:"translateX(16px)"}}})),GPe=de(f2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${eo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${eo.checked}`]:{transform:"translateX(20px)"},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${eo.checked} + .${eo.track}`]:{opacity:.5},[`&.${eo.disabled} + .${eo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${eo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.55)}`}},[`&.${eo.checked} + .${eo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),qPe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),YPe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),KPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,UPe),u=T({},r,{color:a,edge:i,size:s}),f=WPe(u),p=O.jsx(YPe,{className:f.thumb,ownerState:u});return O.jsxs(HPe,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(GPe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(qPe,{className:f.track,ownerState:u})]})}),JPe=KPe;function ZPe(e){return et("MuiTab",e)}const XPe=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),wl=XPe,QPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],eTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(c,ZPe,t)},tTe=de(Ca,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${wl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${wl.selected}`]:{opacity:1},[`&.${wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),nTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,QPe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),$=eTe(_),E=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(tTe,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[E,f]}):O.jsxs(S.Fragment,{children:[f,E]}),u]}))}),Tp=nTe,rTe=S.createContext(),w6=rTe;function oTe(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const aTe=["className","component","padding","size","stickyHeader"],iTe=e=>{const{classes:t,stickyHeader:n}=e;return Xe({root:["root",n&&"stickyHeader"]},oTe,t)},sTe=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),VD="table",lTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=VD,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,aTe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=iTe(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(w6.Provider,{value:p,children:O.jsx(sTe,T({as:a,role:a===VD?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),C6=lTe,cTe=S.createContext(),R0=cTe;function uTe(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const dTe=["className","component"],fTe=e=>{const{classes:t}=e;return Xe({root:["root"]},uTe,t)},pTe=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),hTe={variant:"body"},UD="tbody",mTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=UD}=r,i=Oe(r,dTe),s=T({},r,{component:a}),l=fTe(s);return O.jsx(R0.Provider,{value:hTe,children:O.jsx(pTe,T({className:Ie(l.root,o),as:a,ref:n,role:a===UD?null:"rowgroup",ownerState:s},i))})}),$6=mTe;function vTe(e){return et("MuiTableCell",e)}const gTe=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yTe=gTe,bTe=["align","className","component","padding","scope","size","sortDirection","variant"],xTe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(a)}`]};return Xe(s,vTe,t)},wTe=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?i0(Tt(e.palette.divider,1),.88):a0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${yTe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),CTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,bTe),m=S.useContext(w6),b=S.useContext(R0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=xTe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(wTe,T({as:x,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),$d=CTe;function $Te(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const STe=["className","component"],_Te=e=>{const{classes:t}=e;return Xe({root:["root"]},$Te,t)},ETe=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),PTe={variant:"head"},WD="thead",TTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=WD}=r,i=Oe(r,STe),s=T({},r,{component:a}),l=_Te(s);return O.jsx(R0.Provider,{value:PTe,children:O.jsx(ETe,T({as:a,className:Ie(l.root,o),ref:n,role:a===WD?null:"rowgroup",ownerState:s},i))})}),S6=TTe;function kTe(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const OTe=["className","component","disableGutters","variant"],RTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Xe({root:["root",!n&&"gutters",r]},kTe,t)},DTe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),MTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,OTe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=RTe(c);return O.jsx(DTe,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),ITe=MTe,ATe=rr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),NTe=rr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function jTe(e){return et("MuiTableRow",e)}const LTe=Qe("MuiTableRow",["root","selected","hover","head","footer"]),HD=LTe,FTe=["className","component","hover","selected"],zTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Xe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},jTe,t)},BTe=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),GD="tr",VTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=GD,hover:i=!1,selected:s=!1}=r,l=Oe(r,FTe),c=S.useContext(R0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=zTe(u);return O.jsx(BTe,T({as:a,ref:n,className:Ie(f.root,o),role:a===GD?null:"row",ownerState:u},l))}),ll=VTe;function UTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WTe(e,t,n,r={},o=()=>{}){const{ease:a=UTe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const HTe=["onChange"],GTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qTe(e){const{onChange:t}=e,n=Oe(e,HTe),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Kn(()=>{const i=ah(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=$i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:GTe,ref:o},n))}function YTe(e){return et("MuiTabScrollButton",e)}const KTe=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JTe=KTe,ZTe=["className","slots","slotProps","direction","orientation","disabled"],XTe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Xe({root:["root",n,r&&"disabled"]},YTe,t)},QTe=de(Ca,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${JTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),eke=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,ZTe),p=nr().direction==="rtl",m=T({isRtl:p},a),b=XTe(m),v=(r=s.StartScrollButtonIcon)!=null?r:ATe,x=(o=s.EndScrollButtonIcon)!=null?o:NTe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(QTe,T({component:"div",className:Ie(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),tke=eke;function nke(e){return et("MuiTabs",e)}const rke=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Nv=rke,oke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},ake=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nke,l)},ike=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.scrollButtons}`]:t.scrollButtons},{[`& .${Nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ske=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lke=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cke=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),uke=de(qTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KD={},dke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=nr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=tke,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,oke),G=R==="scrollable",B=x==="vertical",z=B?"scrollTop":"scrollLeft",Y=B?"top":"left",Q=B?"bottom":"right",H=B?"clientHeight":"clientWidth",J=B?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:B,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!B,scrollableY:G&&B,centered:c&&!G,scrollButtonsHideMobile:!m}),L=ake(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=S.useState(!1),[V,Z]=S.useState(KD),[re,le]=S.useState(!1),[xe,fe]=S.useState(!1),[ge,he]=S.useState(!1),[_e,ve]=S.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Ue=S.useRef(null),ze=S.useRef(null),He=()=>{const te=Ue.current;let ie;if(te){const Se=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:Bme(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&I!==!1){const Se=ze.current.children;if(Se.length>0){const Ze=Se[Be.get(I)];$e=Ze?Ze.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(B)Se="top",ie&&te&&($e=ie.top-te.top+te.scrollTop);else if(Se=a?"right":"left",ie&&te){const tt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;$e=(a?-1:1)*(ie[Se]-te[Se]+tt)}const Ze={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))Z(Ze);else{const tt=Math.abs(V[Se]-Ze[Se]),ft=Math.abs(V[J]-Ze[J]);(tt>=1||ft>=1)&&Z(Ze)}}),we=(te,{animation:ie=!0}={})=>{ie?WTe(z,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[z]=te},Ce=te=>{let ie=Ue.current[z];B?ie+=te:(ie+=te*(a?-1:1),ie*=a&&J5()==="reverse"?-1:1),we(ie)},qe=()=>{const te=Ue.current[H];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Ze=$e[Se];if(ie+Ze[H]>te){Se===0&&(ie=te);break}ie+=Ze[H]}return ie},rt=()=>{Ce(-1*qe())},Ae=()=>{Ce(qe())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(uke,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:rt,disabled:!re},E,{className:Ie(L.scrollButtons,E.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Ae,disabled:!xe},E,{className:Ie(L.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[Y]ie[Q]){const Se=ie[z]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=ah(()=>{Ue.current&&be()});let ie;const $e=tt=>{tt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},Se=$i(Ue.current);Se.addEventListener("resize",te);let Ze;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Ze=new MutationObserver($e),Ze.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Ze)==null||tt.disconnect(),(ft=ie)==null||ft.disconnect()}},[be,Te]),S.useEffect(()=>{const te=Array.from(ze.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const $e=te[0],Se=te[ie-1],Ze={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Ze);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Ze);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(KD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(cke,T({},$,{className:Ie(L.indicator,$.className),ownerState:X,style:T({},V,$.style)}));let ct=0;const gt=S.Children.map(u,te=>{if(!S.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Be.set(ie,ct);const $e=ie===I;return ct+=1,S.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:$e&&!D&&it,selected:$e,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=zn(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Ze=x==="horizontal"?"ArrowLeft":"ArrowUp",tt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Ze="ArrowRight",tt="ArrowLeft"),te.key){case Ze:te.preventDefault(),Zm(ie,$e,YD);break;case tt:te.preventDefault(),Zm(ie,$e,qD);break;case"Home":te.preventDefault(),Zm(ie,null,qD);break;case"End":te.preventDefault(),Zm(ie,null,YD);break}},ne=Fe();return O.jsxs(ike,T({className:Ie(L.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(ske,{className:L.scroller,ownerState:X,style:{overflow:_e.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(lke,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:L.flexContainer,ownerState:X,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),D0=dke;function fke(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const pke=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],hke={standard:cs,filled:e6,outlined:m6},mke=e=>{const{classes:t}=e;return Xe({root:["root"]},fke,t)},vke=de(fh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:$,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:B,select:z=!1,SelectProps:Y,type:Q,value:H,variant:J="outlined"}=r,X=Oe(r,pke),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:z,variant:J}),K=mke(L),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),z&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Ya(v),N=b&&D?`${D}-helper-text`:void 0,V=C&&D?`${D}-label`:void 0,Z=hke[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:B,maxRows:_,minRows:$,type:Q,value:H,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(vke,T({className:Ie(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:L},X,{children:[C!=null&&C!==""&&O.jsx(i6,T({htmlFor:D,id:V},x,{children:C})),z?O.jsx(b6,T({"aria-describedby":N,id:D,labelId:V,value:H,input:re},Y,{children:i})):re,b&&O.jsx(fr,T({id:N},p,{children:b}))]}))}),mh=gke;var yke=J$;function bke(e){return yke(e)?void 0:e}var xke=bke,wke=ud,Cke=xy,$ke=Yie,Ske=Yp,_ke=fd,Eke=xke,Pke=lS,Tke=_4,kke=1,Oke=2,Rke=4,Dke=Pke(function(e,t){var n={};if(e==null)return n;var r=!1;t=wke(t,function(a){return a=Ske(a,e),r||(r=a.length>1),a}),_ke(e,Tke(e),n),r&&(n=Cke(n,kke|Oke|Rke,Eke));for(var o=t.length;o--;)$ke(n,t[o]);return n}),Mke=Dke;const Ike=Bt(Mke);function Ake(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Yke){var c=t?null:Gke(e);if(c)return qke(c);i=!1,o=Hke,l=new Vke}else l=t?[]:s;e:for(;++r=B?G:""+Array(B+1-Y.length).join(z)+G},C={s:w,z:function(G){var B=-G.utcOffset(),z=Math.abs(B),Y=Math.floor(z/60),Q=z%60;return(B<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(B,z){if(B.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(T6);var _Oe=T6.exports;const EOe=Bt(_Oe);var k2={},POe=mc;Object.defineProperty(k2,"__esModule",{value:!0});var k6=k2.default=void 0,TOe=POe(vc()),kOe=O,OOe=(0,TOe.default)((0,kOe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");k6=k2.default=OOe;var ROe=cS,DOe=os;function MOe(e,t){var n=-1,r=DOe(e)?Array(e.length):[];return ROe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var IOe=MOe,AOe=ud,NOe=cc,jOe=IOe,LOe=lr;function FOe(e,t){var n=LOe(e)?AOe:jOe;return n(e,NOe(t))}var O6=FOe;const R6=Bt(O6),zOe=["localeText"],mC=S.createContext(null),vh=function(t){var n;const{localeText:r}=t,o=Oe(t,zOe),{utils:a,localeText:i}=(n=S.useContext(mC))!=null?n:{utils:void 0,localeText:void 0},s=Ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=S.useMemo(()=>T({},m,i,r),[m,i,r]),v=S.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),x=S.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=S.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(mC.Provider,{value:g,children:l})},BOe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),D6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},VOe=D6;BOe(D6);const gc=()=>{const e=S.useContext(mC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` -`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=S.useMemo(()=>T({},VOe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>gc().utils,yc=()=>gc().defaultDates,_r=()=>gc().localeText,cl=e=>{const t=qt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},UOe=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WOe=rr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),HOe=rr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),M6=rr(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),qOe=rr(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),YOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),KOe=rr(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function JOe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const ZOe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],XOe=["ownerState"],QOe=["ownerState"],eRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),tRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ZD=de(tr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),nRe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"]},JOe,t)},I6=S.forwardRef(function(t,n){var r,o,a,i;const l=nr().direction==="rtl",c=Ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,$=Oe(c,ZOe),E=c,k=nRe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:ZD,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:ZD,B=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),z=(a=p==null?void 0:p.leftArrowIcon)!=null?a:WOe,Y=zt({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,XOe),H=(i=p==null?void 0:p.rightArrowIcon)!=null?i:HOe,J=zt({elementType:H,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,QOe);return O.jsxs(eRe,T({ref:n,className:Ie(k.root,f),ownerState:E},$,{children:[O.jsx(F,T({},U,{children:l?O.jsx(H,T({},X)):O.jsx(z,T({},Q))})),u?O.jsx(gn,{variant:"subtitle1",component:"span",children:u}):O.jsx(tRe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},B,{children:l?O.jsx(z,T({},Q)):O.jsx(H,T({},X))}))]}))}),fi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),O2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},A6=["hours","minutes","seconds"],Ju=e=>A6.includes(e),Es=e=>A6.includes(e)||e==="meridiem",rRe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,kp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,oRe=(e,t,n,r)=>{const o=kp(r.getHours(e),t,n);return r.setHours(e,o)},XD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gh=(e,t)=>(n,r)=>e?t.isAfter(n,r):XD(n,t)>XD(r,t),Lg=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return fi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:fi(n,["minutes"])?o.minutes:fi(n,["seconds"])?o.seconds:fi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:fi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function yh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=S.useRef(n),f=S.useRef(o),p=S.useRef(o.includes(n)?n:o[0]),[m,b]=Cr({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[x,g]=Cr({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),$=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&$(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",B=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function aRe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function iRe(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function N0(e,t,n,r){const o=qt(),a=rRe(e,o),i=S.useCallback(s=>{const l=e==null?null:oRe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Op=36,j0=2,L0=320,sRe=280,F0=334,N6=232,Tf=48,z0=de("div")({overflow:"hidden",width:L0,maxHeight:F0,display:"flex",flexDirection:"column",margin:"0 auto"});function lRe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Zu=220,xi=36,Rp={x:Zu/2,y:Zu/2},j6={x:Rp.x,y:0},cRe=j6.x-Rp.x,uRe=j6.y-Rp.y,dRe=e=>e*(180/Math.PI),L6=(e,t,n)=>{const r=t-Rp.x,o=n-Rp.y,a=Math.atan2(cRe,uRe)-Math.atan2(r,o);let i=dRe(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},fRe=(e,t,n=1)=>{const r=n*6;let{value:o}=L6(r,e,t);return o=o*n%60,o},pRe=(e,t,n)=>{const{value:r,distance:o}=L6(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},hRe,t)},gRe=de("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),yRe=de("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${xi/2}px)`,border:`${(xi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function bRe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,mRe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=vRe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Zu),transform:`rotateZ(${p}deg)`}};return O.jsx(gRe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(yRe,{ownerState:l,className:c.thumb})}))}function xRe(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Zf=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},wRe=(e,t)=>t==null||!e.isValid(t)?null:t,Yr=(e,t,n)=>t==null||!e.isValid(t)?n:t,CRe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),R2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},vC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},D2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ba=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},$Re=["year","month","day"],Ou=e=>$Re.includes(e),Dp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return fi(n,["year"])?o.year:fi(n,["month"])?o.month:fi(n,["day"])?o.dayOfMonth:fi(n,["month","year"])?`${o.month} ${o.year}`:fi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},SRe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},_Re=e=>{const{classes:t}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},xRe,t)},ERe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),PRe=de("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),TRe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),kRe=de("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ORe=de("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),RRe=de(tr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),DRe=de(tr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),QD=de(gn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function MRe(e){const t=Ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=_r(),_=S.useRef(!1),$=_Re(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:L,offsetY:K}=J;if(L===void 0){const D=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?fRe(L,K,u):pRe(L,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},B=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},z=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=S.useRef(null);Kn(()=>{o&&Q.current.focus()},[o]);const H=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(ERe,{className:Ie(g,$.root),children:[O.jsxs(PRe,{className:$.clock,children:[O.jsx(kRe,{onTouchMove:F,onTouchEnd:U,onMouseUp:B,onMouseMove:G,ownerState:{disabled:v},className:$.squareMask}),!E&&O.jsxs(S.Fragment,{children:[O.jsx(ORe,{className:$.pin}),i!=null&&O.jsx(bRe,{type:m,viewValue:b,isInner:k,hasSelected:z})]}),O.jsx(TRe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:H,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(RRe,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Ba(w,"am"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"am")})}),O.jsx(DRe,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Ba(w,"pm"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"pm")})})]})]})}function IRe(e){return et("MuiClockNumber",e)}const Xm=Qe("MuiClockNumber",["root","selected","disabled"]),ARe=["className","disabled","index","inner","label","selected"],NRe=e=>{const{classes:t,selected:n,disabled:r}=e;return Xe({root:["root",n&&"selected",r&&"disabled"]},IRe,t)},jRe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Xm.disabled}`]:t.disabled},{[`&.${Xm.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:xi,width:xi,position:"absolute",left:`calc((100% - ${xi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Xm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Xm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function F6(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,ARe),c=t,u=NRe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Zu-xi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(jRe,T({className:Ie(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(Zu-xi)/2}px`},ownerState:c},l,{children:i}))}const LRe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(F6,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},eM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(F6,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},M2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=S.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=S.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=S.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Sd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=Cr({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return M2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Na={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},FRe=e=>Math.max(...e.map(t=>{var n;return(n=Na[t.type])!=null?n:1})),ff=(e,t,n)=>{if(t===Na.year)return e.startOfYear(n);if(t===Na.month)return e.startOfMonth(n);if(t===Na.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():ff(t,n,D2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ff(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ff(t,n,e.maxDate));const s=gh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vC(t,i,e.maxTime))),i},z6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BRe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},B0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},B6=(e,t,n,r)=>{switch(n){case"month":return R2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return B0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},V6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?V6(e,a,o.maxLength):a},VRe=(e,t,n,r,o,a,i)=>{const s=BRe(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>U6(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=B6(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},I2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},gu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),W6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},tM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),H6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,G6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return H6(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},WRe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},nM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=z6(e,w),_=G6(e,t,C.contentType,C.type,w),$=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if($)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=V6(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:URe(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:$,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=WRe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],$=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!$&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):$&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let $=_;return s&&$!==null&&$.includes(" ")&&($=`⁩${$}⁦`),a==="spacious"&&["/",".","-"].includes($)&&($=` ${$} `),$};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},HRe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=I2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qRe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=R2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:H6(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=B0(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},YRe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=B0(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},rM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},oM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>rM[i.type]-rM[s.type]).reduce((i,s)=>!a||s.modified?YRe(e,t,s,n,i):i,o),KRe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,JRe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ZRe=["value","referenceDate"],$r={emptyValue:null,getTodayValue:D2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,ZRe);return t!=null&&r.utils.isValid(t)?t:n??zRe(r)},cleanValue:wRe,areValuesEqual:CRe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},A2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:W6(o(t),r),getValueStrFromSections:GRe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},bh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},N2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>$r.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Na.day,timezone:o,getTodayDate:()=>D2(n,o,"date")}),[]);return e??a},XRe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],QRe=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},lRe,t)},eDe=de(z0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),tDe=de(I6,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),nDe=["hours","minutes"],rDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,showViewSwitcher:E,onChange:k,view:I,views:R=nDe,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:B,className:z,disabled:Y,readOnly:Q,timezone:H}=o,J=Oe(o,XRe),X=u??bh(l),L=f??c,{value:K,handleValueChange:q,timezone:D}=Sd({name:"TimeClock",timezone:H,value:p,defaultValue:m,onChange:k,valueManager:$r}),N=N2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),V=_r(),Z=cl(D),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=yh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:B}),{meridiemMode:he,handleMeridiemChange:_e}=N0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=gh(v,r),qe=we==="hours"||we==="minutes"&&R.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||x&&Ce(Le,x)||y&&Ce(Le,Z)||w&&Ce(Z,qe?Fe:Le)),Ae=(Le,Fe=1)=>{if(Le%Fe!==0||_!=null&&_(Le,we))return!1;if($)switch(we){case"hours":return!$(r.setHours(N,Le),"hours");case"minutes":return!$(r.setMinutes(N,Le),"minutes");case"seconds":return!$(r.setSeconds(N,Le),"seconds");default:return!1}return!0};switch(we){case"hours":{const Le=kp(be,he,a),Fe=r.setHours(N,Le),Pe=r.setSeconds(r.setMinutes(Fe,0),0),Te=r.setSeconds(r.setMinutes(Fe,59),59);return!rt({start:Pe,end:Te})||!Ae(Le)}case"minutes":{const Le=r.setMinutes(N,be),Fe=r.setSeconds(Le,0),Pe=r.setSeconds(Le,59);return!rt({start:Fe,end:Pe})||!Ae(be,C)}case"seconds":{const Le=r.setSeconds(N,be);return!rt({start:Le,end:Le})||!Ae(be)}default:throw new Error("not supported")}},[a,N,v,x,he,g,C,_,$,r,y,w,Z,R]),Be=Ya(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const qe=kp(we,he,a);ge(r.setHours(N,qe),Ce)};return{onChange:be,viewValue:r.getHours(N),children:LRe({value:K,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>Y||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,qe)=>{ge(r.setMinutes(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>Y||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,qe)=>{ge(r.setSeconds(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>Y||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,Y]),ze=o,He=QRe(ze);return O.jsxs(eDe,T({ref:n,className:Ie(He.root,z),ownerState:ze},J,{children:[O.jsx(MRe,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(tDe,{className:He.arrowSwitcher,slots:X,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function oDe(e){return et("MuiDigitalClock",e)}const aDe=Qe("MuiDigitalClock",["root","list","item"]),iDe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],sDe=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},oDe,t)},lDe=de(z0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:N6})),cDe=de(y2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),uDe=de(jg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),dDe=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=S.useRef(null),l=sn(n,s),c=Ke({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:$,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:B,onViewChange:z,focusedView:Y,onFocusedViewChange:Q,className:H,disabled:J,readOnly:X,views:L=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,iDe),{value:N,handleValueChange:V,timezone:Z}=Sd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:$r}),re=_r(),le=cl(Z),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=sDe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:uDe,he=zt({elementType:ge,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=N2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=yh({view:G,views:L,openTo:B,onViewChange:z,onChange:ve,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(be=>{Be(be,"finish")});S.useEffect(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;s.current.scrollTop=we-4});const ze=S.useCallback(be=>{const we=gh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||E&&we(be,le)||k&&we(le,be)),qe=()=>i.getMinutes(be)%I!==0||R!=null&&R(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!qe()},[C,i,$,_,E,le,k,I,R,F]),He=S.useMemo(()=>{const be=i.startOfDay(_e);return[be,...Array.from({length:Math.ceil(24*60/f)-1},(we,Ce)=>i.addMinutes(be,f*(Ce+1)))]},[_e,f,i]);return O.jsx(lDe,T({ref:l,className:Ie(fe.root,H),ownerState:xe},D,{children:O.jsx(cDe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(K&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!X&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function fDe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function pDe(e){return et("MuiMultiSectionDigitalClock",e)}const hDe=Qe("MuiMultiSectionDigitalClock",["root","item"]),mDe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vDe=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},pDe,t)},gDe=de(y2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:N6,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),yDe=de(jg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Tf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),bDe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=sn(n,o),i=S.useRef(null),s=Ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,mDe),w=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=vDe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:yDe;return S.useEffect(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][aria-selected="true"]');if(!$||i.current===$){i.current!==$&&(i.current=$);return}i.current=$,b&&l&&$.focus();const E=$.offsetTop;o.current.scrollTop=E-4}),O.jsx(gDe,T({ref:a,className:Ie(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var E,k;if(g&&(E=$.isDisabled)!=null&&E.call($,$.value))return null;const I=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:I,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))}),xDe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},aM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},wDe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],CDe=e=>{const{classes:t}=e;return Xe({root:["root"]},fDe,t)},$De=de(z0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),SDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:B,disabled:z,readOnly:Y,skipDisabled:Q=!1,timezone:H}=o,J=Oe(o,wDe),{value:X,handleValueChange:L,timezone:K}=Sd({name:"MultiSectionDigitalClock",timezone:H,value:p,defaultValue:m,onChange:E,valueManager:$r}),q=_r(),D=cl(K),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=N2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,Ce,qe)=>L(we,Ce,qe)),re=S.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:le,setValueAndGoToView:xe,focusedView:fe}=yh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=N0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const qe=gh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&qe(g,Pe)||x&&qe(Fe,x)||y&&qe(Fe,D)||w&&qe(D,rt?Pe:Fe)),Le=(Fe,Pe=1)=>{if(Fe%Pe!==0||_!=null&&_(Fe,Ce))return!1;if($)switch(Ce){case"hours":return!$(r.setHours(V,Fe),"hours");case"minutes":return!$(r.setMinutes(V,Fe),"minutes");case"seconds":return!$(r.setSeconds(V,Fe),"seconds");default:return!1}return!0};switch(Ce){case"hours":{const Fe=kp(we,he,a),Pe=r.setHours(V,Fe),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Ae({start:Te,end:it})||!Le(Fe)}case"minutes":{const Fe=r.setMinutes(V,we),Pe=r.setSeconds(Fe,0),Te=r.setSeconds(Fe,59);return!Ae({start:Pe,end:Te})||!Le(we,C)}case"seconds":{const Fe=r.setSeconds(V,we);return!Ae({start:Fe,end:Fe})||!Le(we)}default:throw new Error("not supported")}},[a,V,v,x,he,g,C,_,$,r,y,w,D,re]),Be=mt((we,Ce)=>{const qe=re.indexOf(we),rt=re[qe+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const qe=kp(Ce,he,a);Be("hours",r.setHours(V,qe))},items:xDe({now:D,value:X,ampm:a,utils:r,isDisabled:Ce=>z||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:aM({value:r.getMinutes(V),isDisabled:Ce=>z||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(D,Ce),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:aM({value:r.getSeconds(V),isDisabled:Ce=>z||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(D,Ce),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const Ce=Ba(r,"am"),qe=Ba(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!X&&he==="am",ariaLabel:Ce},{value:"pm",label:qe,isSelected:()=>!!X&&he==="pm",ariaLabel:qe}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,he,Be,V,z,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=CDe(He);return O.jsx($De,T({ref:n,className:Ie(be.root,B),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(bDe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:z,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function _De(e){return et("MuiPickersDay",e)}const Cl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),EDe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],PDe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_De,l)},q6=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Op,height:Op,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Cl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.disabled}:not(.${Cl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cl.disabled}&.${Cl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${j0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Cl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},TDe=de(Ca,{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(q6),kDe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(({theme:e,ownerState:t})=>T({},q6({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),pf=()=>{},ODe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=pf,onBlur:b=pf,onKeyDown:v=pf,onMouseDown:x=pf,onMouseEnter:g=pf,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,E=Oe(r,EDe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:$}),I=PDe(k),R=qt(),F=S.useRef(null),U=sn(F,n);Kn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=z=>{x(z),y&&z.preventDefault()},B=z=>{s||p(i),y&&z.currentTarget.focus(),f&&f(z)};return y&&!C?O.jsx(kDe,{className:Ie(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx(TDe,T({className:Ie(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:z=>v(z,i),onFocus:z=>m(z,i),onBlur:z=>b(z,i),onMouseEnter:z=>g(z,i),onClick:B,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),RDe=S.memo(ODe);function K6(e,t,n,r){const{value:o,onError:a}=e,i=gc(),s=S.useRef(r),l=t({adapter:i,value:o,props:e});return S.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const DDe=e=>{const t=qt(),n=_r(),r=gc(),a=nr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:$,handleValueChange:E}=M2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>qRe(t,_),[t,_]),I=S.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,V=>nM(t,_,n,v,V,x,w,a)),[s,v,n,a,w,t,x,_]),R=S.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=S.useState(()=>{const D=I($),N={sections:D,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=FRe(D),Z=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:Z})}),[G,B]=Cr({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),z=D=>{B(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=S.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:V})=>{U(re=>T({},re,{sections:V,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},H=(D,N)=>{const V=[...F.sections];return V[D]=T({},V[D],{value:N,modified:!0}),W6(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=H(Y.startIndex,""),le=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(le);(le!=null&&!t.isValid(le))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=D=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=nM(t,_,n,v,xe,x,w,a);return oM(t,_,xe,fe,le,!1)},V=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:Z,sections:I(V,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:V})=>{V&&Y&&Y.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return S.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),S.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,$)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,$):D=!0,D&&U(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:I($)}))},[$]),{state:F,selectedSectionIndexes:Y,setSelectedSections:z,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:L,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},MDe=5e3,qc=e=>e.saveQuery!=null,IDe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=S.useState(null),l=mt(()=>s(null));S.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),S.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),MDe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!qc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return qc(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),qc(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=$=>B6(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&z6(a,w).contentType==="letter"){const $=_(w),E=b(w,$,g);return qc(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>tM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:U6(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=G6(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qc(w))return w;const C=tM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(qc(y))return y;const w=B0(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function nu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ADe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Fg=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Fg(t.shadowRoot):t:null},j2="@media (pointer: fine)",NDe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=DDe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:$,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:B}=e,z=Oe(e.forwardedProps,NDe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=IDe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),H=S.useRef(null),J=sn(m,H),X=S.useRef(void 0),K=nr().direction==="rtl",q=S.useMemo(()=>JRe(n.sections,K),[n.sections,K]),D=()=>{var be;if(v){o(null);return}const we=(be=H.current.selectionStart)!=null?be:0;let Ce;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?Ce=1:Ce=n.sections.findIndex(rt=>rt.startInInput-rt.startSeparator.length>we);const qe=Ce===-1?n.sections.length-1:Ce-1;o(qe)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),D())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),Z=mt((...be)=>{C==null||C(...be);const we=H.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==H.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(E==null||E(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],qe=/^[a-zA-Z]+$/.test(we),rt=/^[0-9]+$/.test(we),Ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(Ce.contentType==="letter"&&qe||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(qe||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,qe=Ce&&Ce.length>1,rt=qe?Ce:we,Ae=gu(rt);if(r==null||qe){l(qe?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=gu(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-gu(it.endSeparator||"").length;Le=Ae.slice(it.start+gu(it.startSeparator||"").length,gt)}if(KRe()&&Le.length===0){c(rt);return}Y({keyPressed:Le,sectionIndex:r.startIndex})}),fe=mt(be=>{switch(w==null||w(be),!0){case(be.key==="a"&&(be.ctrlKey||be.metaKey)):{be.preventDefault(),o("all");break}case be.key==="ArrowRight":{if(be.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(be.key):{if(be.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(be.key):{if(be.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],Ce=U.getActiveDateManager(t,n,we),qe=VRe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:qe,shouldGoToNextSection:!1});break}}});Kn(()=>{if(!H.current)return;if(r==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,qe=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,qe+=we.endSeparator.length),Ce!==H.current.selectionStart||qe!==H.current.selectionEnd){const rt=H.current.scrollTop;H.current===Fg(document)&&H.current.setSelectionRange(Ce,qe),H.current.scrollTop=rt}});const ge=K6(T({},b,{value:n.value,timezone:p}),B,G.isSameError,G.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:G.hasError(ge),[G,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(H.current&&H.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=H.current&&H.current===Fg(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=H.current.selectionStart)!=null?be:0,qe=(we=H.current.selectionEnd)!=null?we:0;if(Ce===0&&qe===0)return null;const rt=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ce);return rt===-1?n.sections.length-1:rt-1},setSelectedSections:be=>o(be)}));const He=mt((be,...we)=>{var Ce;be.preventDefault(),R==null||R(be,...we),a(),H==null||(Ce=H.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},z,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},xh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Yr(n.utils,e.minDate,n.defaultDates.minDate),f=Yr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},gC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],J6=["minDateTime","maxDateTime"],jDe=[...gC,...yC,...J6],_d=e=>jDe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),LDe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],F2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return LDe.forEach(o),t==="date"?gC.forEach(o):t==="time"?yC.forEach(o):t==="date-time"&&(gC.forEach(o),yC.forEach(o),J6.forEach(o)),{forwardedProps:n,internalProps:r}},FDe=e=>{var t,n,r;const o=qt(),a=yc();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Yr(o,e.minDate,a.minDate),maxDate:Yr(o,e.maxDate,a.maxDate)})},zDe=({props:e,inputRef:t})=>{const n=FDe(e),{forwardedProps:r,internalProps:o}=F2(n,"date");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:xh,valueType:"date"})},BDe=de(E0)({[`& .${Kf.container}`]:{outline:0},[`& .${Kf.paper}`]:{outline:0,minWidth:L0}}),VDe=de(T0)({"&:first-of-type":{padding:0}});function UDe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:BDe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Cd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(VDe,{children:r})}))}function WDe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const HDe="@media (prefers-reduced-motion: reduce)",Ru=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),iM=Ru&&Ru[1]?parseInt(Ru[1],10):null,sM=Ru&&Ru[2]?parseInt(Ru[2],10):null,GDe=iM&&iM<10||sM&&sM<13||!1,Z6=()=>ph(HDe,{defaultMatches:!1})||GDe,qDe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YDe=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},WDe,t)},KDe=de(dh,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),JDe=de(ls,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ZDe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=zn(o.current);if(!o.current||"clientX"in l&&ZDe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return S.useEffect(()=>{if(e){const l=zn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),S.useEffect(()=>{if(e){const l=zn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const QDe=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,qDe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function eMe(e){var t,n,r,o;const a=Ke({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;S.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=S.useRef(null);S.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=Fg(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=XDe(p,u??f),$=S.useRef(null),E=sn($,l),k=sn(E,w),I=a,R=YDe(I),F=Z6(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},B=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?Cd:Ag,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:Rj,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:JDe,Q=(o=v==null?void 0:v.popper)!=null?o:KDe,H=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},H,{children:({TransitionProps:J,placement:X})=>O.jsx(z,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(B,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(QDe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function X6(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const tMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X6,t)},nMe=de("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),rMe=de("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),z2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=tMe(c);return s?null:O.jsxs(nMe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(rMe,{className:u.content,ownerState:c,children:o})]})});function oMe(e){return et("MuiPickersToolbarText",e)}const lM=Qe("MuiPickersToolbarText",["root","selected"]),aMe=["className","selected","value"],iMe=e=>{const{classes:t,selected:n}=e;return Xe({root:["root",n&&"selected"]},oMe,t)},sMe=de(gn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${lM.selected}`]:{color:(e.vars||e).palette.text.primary}})),B2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,aMe),s=iMe(r);return O.jsx(sMe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),lMe=["align","className","selected","typographyClassName","value","variant","width"],cMe=e=>{const{classes:t}=e;return Xe({root:["root"]},X6,t)},uMe=de(Uo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Lo=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,lMe),p=cMe(r);return O.jsx(uMe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(B2,{align:o,className:s,variant:c,value:l,selected:i})}))}),dMe=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,a]=S.useState(!1);S.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=S.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},fMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},pMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},hMe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},mMe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=S.useRef(l),{current:b}=S.useRef(s!==void 0),v=qt(),x=gc(),[g,y]=Cr({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=dMe(e),[_,$]=S.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=M2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});K6(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,Z.value,ge),isControlled:b,closeOnSelect:c},le=fMe(re),xe=pMe(re),fe=hMe(re);if($(ge=>T({},ge,{draft:Z.value,lastPublishedValue:le?Z.value:ge.lastPublishedValue,lastCommittedValue:xe?Z.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(he.shortcut=Z.shortcut),k(Z.value,he)}xe&&a&&a(Z.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),B=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),z=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),H=mt((Z,re,le)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:le})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),L={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:B,onOpen:z,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},V=T({},L,{value:q,onChange:Q,onSelectShortcut:H,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:V,actions:L}},vMe=["className","sx"],gMe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,vMe),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=yh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:E}=S.useMemo(()=>c.reduce((B,z)=>{let Y;return p?Y="field":m[z]!=null?Y="UI":Y="field",B.viewModeLookup[z]=Y,Y==="UI"&&(B.hasUIView=!0),B},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((B,z)=>m[z]!=null&&Ju(z)?B+1:B,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=S.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Kn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Kn(()=>{if(!i)return;let B=x;I==="field"&&F!=null&&(B=F),B!==y&&E[B]==="UI"&&E[y]==="UI"&&(B=y),B!==x&&g(B),C(B,!0)},[i]),{hasUIView:$,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const B=m[F];return B==null?null:B(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function cM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const yMe=(e,t)=>{const[n,r]=S.useState(cM);return Kn(()=>{const a=()=>{r(cM())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),nu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},bMe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=yMe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Q6=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Q6(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const eL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=mMe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=gMe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=bMe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function tL(e){return et("MuiPickersLayout",e)}const Sx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),xMe=["onAccept","onClear","onCancel","onSetToday","actions"];function wMe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,xMe),s=_r();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Uo,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Uo,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Uo,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Uo,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(P0,T({},i,{children:l}))}const CMe=["items","changeImportance","isLandscape","onChange","isValid"],$Me=["getValue"];function SMe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,CMe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,$Me);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(g2,T({dense:!0,sx:[{maxHeight:F0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(c6,{children:O.jsx(Wj,T({},s))},s.label))}))}function _Me(e){return e.view!==null}const EMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tL,t)},PMe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:$}=e,E=_??bh(w),k=$??C,I=EMe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:wMe,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,B=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),z=_Me(B)&&G?O.jsx(G,T({},B)):null,Y=y,Q=E==null?void 0:E.tabs,H=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:SMe,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},X)):null;return{toolbar:z,content:Y,tabs:H,actionBar:U,shortcuts:L}},TMe=PMe,kMe=e=>{const{isLandscape:t,classes:n}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tL,n)},nL=de("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Sx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Sx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));nL.propTypes={as:j.elementType,ownerState:j.shape({isLandscape:j.bool.isRequired}).isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const OMe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),rL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=TMe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=kMe(m);return O.jsxs(nL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(OMe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},V0=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=gh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},V2=({props:e,value:t,adapter:n})=>{const r=xh({adapter:n,value:t,props:e});return r!==null?r:V0({adapter:n,value:t,props:e})},RMe=e=>et("MuiPickersSlideTransition",e),ca=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),DMe=["children","className","reduceAnimations","slideDirection","transKey","classes"],MMe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Xe(r,RMe,t)},IMe=de(r2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ca["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ca["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ca.slideEnterActive}`]:t.slideEnterActive},{[`.${ca.slideExit}`]:t.slideExit},{[`.${ca["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ca["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ca["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ca["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ca.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ca.slideExit}`]:{transform:"translate(0%)"},[`& .${ca["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ca["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function AMe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,DMe),s=MMe(t),l=nr();if(o)return O.jsx("div",{className:Ie(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(IMe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(i0e,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const oL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=gc();return S.useCallback(c=>xh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},NMe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const jMe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LMe=["ownerState"],FMe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},NMe,t)},aL=(Op+j0*2)*6,zMe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BMe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),VMe=de(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),UMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),WMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Op,height:Op,padding:0,margin:`0 ${j0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),HMe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:aL}),GMe=de(AMe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:aL}),qMe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),YMe=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${j0}px 0`,display:"flex",justifyContent:"center"});function KMe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,jMe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),$=cl(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,$),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:RDe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,LMe),G=S.useMemo(()=>p||l(a),[p,l,a]),B=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),z=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:B,isFirstVisibleCell:z,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function JMe(e){const t=Ke({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:$,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,B=cl(G),z=qt(),Y=FMe(t),H=nr().direction==="rtl",J=$||((ze,He)=>z.format(He,"weekdayShort").charAt(0).toUpperCase()),X=oL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),L=_r(),[K,q]=Cr({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=S.useState(()=>i||B),V=mt(ze=>{u||l(ze)}),Z=ze=>{X(ze)||(n(ze),N(ze),k==null||k(!0),q(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":Z(z.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":Z(z.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=z.addDays(He,H?1:-1),we=z.addMonths(He,H?1:-1),Ce=Zf({utils:z,date:be,minDate:H?be:z.startOfMonth(we),maxDate:H?z.endOfMonth(we):be,isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=z.addDays(He,H?-1:1),we=z.addMonths(He,H?-1:1),Ce=Zf({utils:z,date:be,minDate:H?z.startOfMonth(we):be,maxDate:H?be:z.endOfMonth(we),isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"Home":Z(z.startOfWeek(He)),ze.preventDefault();break;case"End":Z(z.endOfWeek(He)),ze.preventDefault();break;case"PageUp":Z(z.addMonths(He,1)),ze.preventDefault();break;case"PageDown":Z(z.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>Z(He)),xe=mt((ze,He)=>{K&&z.isSameDay(D,He)&&(k==null||k(!1))}),fe=z.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>z.startOfDay(ze)),[z,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=z.startOfWeek(B),Be=S.useMemo(()=>{const ze=z.startOfMonth(o),He=z.endOfMonth(o);return X(D)||z.isAfterDay(D,He)||z.isBeforeDay(D,ze)?Zf({utils:z,date:D,minDate:ze,maxDate:He,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,z,G]),Ue=S.useMemo(()=>{const ze=z.setTimezone(o,G),He=z.getWeekArray(ze);let be=z.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=z.format(ze,"weekdayShort").slice(0,2);return O.jsx(VMe,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(ve,He),"weekday"),className:Y.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(HMe,{className:Y.loadingContainer,children:p()}):O.jsx(GMe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,Y.slideTransition)},b,{nodeRef:_e,children:O.jsx(qMe,{ref:_e,role:"rowgroup",className:Y.monthContainer,children:Ue.map((ze,He)=>O.jsxs(YMe,{role:"row",className:Y.weekContainer,"aria-rowindex":He+1,children:[R&&O.jsx(WMe,{className:Y.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(z.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(z.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(KMe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:X,currentMonthNumber:fe,isViewFocused:K,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const ZMe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},XMe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=cl(p),b=qt(),v=S.useRef(ZMe(!!u,i,b)).current,x=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),$r.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Na.day})},[]),[g,y]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=S.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=S.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=oL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:w}},QMe=["ownerState"],U2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=_r(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:tr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,QMe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:KOe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs(S.Fragment,{children:[O.jsx(v2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},eIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tIe=["inputRef"],nIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],iL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,eIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,tIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=zDe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,nIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),rIe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},oIe=({props:e,inputRef:t})=>{const n=rIe(e),{forwardedProps:r,internalProps:o}=F2(n,"time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V0,valueType:"time"})},aIe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],iIe=["inputRef"],sIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],sL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,aIe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,iIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=oIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,sIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),lIe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=yc(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Yr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Yr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},cIe=({props:e,inputRef:t})=>{const n=lIe(e),{forwardedProps:r,internalProps:o}=F2(n,"date-time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V2,valueType:"date-time"})},uIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],dIe=["inputRef"],fIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,uIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,dIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=cIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,fIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),pIe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const hIe=e=>{const{classes:t}=e;return Xe({root:["root"]},pIe,t)},mIe=de(r2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=hIe(t),s=nr();return o?n:O.jsx(mIe,{className:Ie(i.root,r),children:O.jsx(Cd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function vIe(e){return et("MuiPickersMonth",e)}const Qm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),gIe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],yIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vIe,r)},bIe=de("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),xIe=de("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Qm.disabled}`]:t.disabled},{[`&.${Qm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,gIe),x=S.useRef(null),g=yIe(n);return Kn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(bIe,T({className:g.root,ownerState:n},v,{children:O.jsx(xIe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function CIe(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const $Ie=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],SIe=e=>{const{classes:t}=e;return Xe({root:["root"]},CIe,t)};function _Ie(e,t){const n=qt(),r=yc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const EIe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:L0,boxSizing:"border-box"}),PIe=S.forwardRef(function(t,n){const r=_Ie(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:$,gridLabelId:E}=r,k=Oe(r,$Ie),{value:I,handleValueChange:R,timezone:F}=Sd({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:s,granularity:Na.month}),[]),Y=r,Q=SIe(Y),H=S.useMemo(()=>B.getMonth(U),[B,U]),J=S.useMemo(()=>I!=null?B.getMonth(I):x?null:B.getMonth(z),[I,B,x,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(fe=>{q(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=B.startOfMonth(u&&B.isAfter(U,p)?U:p),he=B.startOfMonth(c&&B.isBefore(U,f)?U:f),_e=B.startOfMonth(fe);return B.isBefore(_e,ge)||B.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,U,b,B]),V=mt((fe,ge)=>{if(v)return;const he=B.setMonth(I??z,ge);R(he)}),Z=mt(fe=>{N(B.setMonth(I??z,fe))||(L(fe),D(!0),y&&y(fe))});S.useEffect(()=>{L(fe=>J!==null&&fe!==J?J:fe)},[J]);const re=mt((fe,ge)=>{switch(fe.key){case"ArrowUp":Z((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":Z((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":Z((12+ge+(G.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":Z((12+ge+(G.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{Z(ge)}),xe=mt((fe,ge)=>{X===ge&&D(!1)});return O.jsx(EIe,T({ref:n,className:Ie(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:R2(B,I??z).map(fe=>{const ge=B.getMonth(fe),he=B.format(fe,"monthShort"),_e=B.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(wIe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:K&&ge===X,disabled:Be,tabIndex:ge===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function TIe(e){return et("MuiPickersYear",e)}const ev=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),kIe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],OIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},TIe,r)},RIe=de("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),DIe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),MIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,kIe),x=S.useRef(null),g=OIe(n);return S.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(RIe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(DIe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function IIe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const AIe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],NIe=e=>{const{classes:t}=e;return Xe({root:["root"]},IIe,t)};function jIe(e,t){var n;const r=qt(),o=yc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Yr(r,a.minDate,o.minDate),maxDate:Yr(r,a.maxDate,o.maxDate)})}const LIe=de("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:L0,maxHeight:sRe,boxSizing:"border-box",position:"relative"}),FIe=S.forwardRef(function(t,n){const r=jIe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:$,gridLabelId:E}=r,k=Oe(r,AIe),{value:I,handleValueChange:R,timezone:F}=Sd({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:l,granularity:Na.year}),[]),Y=r,Q=NIe(Y),H=S.useMemo(()=>B.getYear(U),[B,U]),J=S.useMemo(()=>I!=null?B.getYear(I):g?null:B.getYear(z),[I,B,g,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(he=>{q(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&B.isBeforeYear(he,U)||u&&B.isAfterYear(he,U)||m&&B.isBeforeYear(he,m)||p&&B.isAfterYear(he,p))return!0;if(!x)return!1;const _e=B.startOfYear(he);return x(_e)},[u,f,p,m,U,x,B]),V=mt((he,_e)=>{if(v)return;const ve=B.setYear(I??z,_e);R(ve)}),Z=mt(he=>{N(B.setYear(I??z,he))||(L(he),D(!0),y==null||y(he))});S.useEffect(()=>{L(he=>J!==null&&he!==J?J:he)},[J]);const re=mt((he,_e)=>{switch(he.key){case"ArrowUp":Z(_e-_),he.preventDefault();break;case"ArrowDown":Z(_e+_),he.preventDefault();break;case"ArrowLeft":Z(_e+(G.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":Z(_e+(G.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{Z(_e)}),xe=mt((he,_e)=>{X===_e&&D(!1)}),fe=S.useRef(null),ge=sn(n,fe);return S.useEffect(()=>{if(o||fe.current===null)return;const he=fe.current.querySelector('[tabindex="0"]');if(!he)return;const _e=he.offsetHeight,ve=he.offsetTop,Be=fe.current.clientHeight,Ue=fe.current.scrollTop,ze=ve+_e;_e>Be||ve{const _e=B.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(MIe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:K&&_e===X,disabled:Be,tabIndex:_e===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===_e?"date":void 0,yearsPerRow:_,children:B.format(he,"year")},B.format(he,"year"))})}))}),zIe=e=>et("MuiPickersCalendarHeader",e),BIe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),VIe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],UIe=["ownerState"],WIe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zIe,t)},HIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),GIe=de("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),YIe=de(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${BIe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),KIe=de(UOe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),JIe=S.forwardRef(function(t,n){var r,o;const a=_r(),i=qt(),s=Ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:$,timezone:E}=s,k=Oe(s,VIe),I=s,R=WIe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:YIe,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:KIe,B=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),z=Oe(B,UIe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),H=aRe(u,{disableFuture:p,maxDate:b,timezone:E}),J=iRe(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(L=>L!==y)||C[0]);else{const L=C.indexOf(y)!==0?0:1;g(C[L])}};return C.length===1&&C[0]==="year"?null:O.jsxs(HIe,T({},k,{ownerState:I,className:Ie($,R.root),ref:n,children:[O.jsxs(GIe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(cL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(qIe,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},z))}))]}),O.jsx(Cd,{in:y==="day",children:O.jsx(I6,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:H,nextLabel:a.nextMonth})})]}))}),ZIe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const XIe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],QIe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ZIe,t)};function eAe(e,t){var n,r,o,a,i,s,l;const c=qt(),u=yc(),f=Z6(),p=Ke({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Yr(c,p.minDate,u.minDate),maxDate:Yr(c,p.maxDate,u.maxDate)})}const tAe=de(z0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:F0}),nAe=de(cL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),uL=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Ya(),l=eAe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:B,maxDate:z,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:H,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,XIe),{value:he,handleValueChange:_e,timezone:ve}=Sd({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:$r}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=yh({view:k,views:I,openTo:R,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:H}),{referenceDate:Ce,calendarState:qe,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=XMe({value:he,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:B,maxDate:z,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=U&&he||B,it=U&&he||z,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:JIe,ne=zt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Be,currentMonth:qe.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(be(),Ae(Et)),rt(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(be(),Ae(Et)),rt(kt,!0)}),$e=mt(dt=>_e(dt&&vC(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Ze=QIe(Se),tt={disablePast:v,disableFuture:b,maxDate:z,minDate:B},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:ve,gridLabelId:ct},_t=S.useRef(Be);S.useEffect(()=>{_t.current!==Be&&(ze===_t.current&&He(Be,!0),_t.current=Be)},[ze,He,Be]);const vt=S.useMemo(()=>[he],[he]);return O.jsxs(tAe,T({ref:n,className:Ie(Ze.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(nAe,{reduceAnimations:C,className:Ze.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(FIe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(PIe,T({},tt,ft,{hasFocus:gt,className:F,value:he,onChange:te,shouldDisableMonth:$,onFocusedViewChange:dt=>He("month",dt),monthsPerRow:xe,referenceDate:Ce})),Be==="day"&&O.jsx(JMe,T({},qe,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z}))]})})]}))});function rAe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const oAe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aAe=e=>{const{classes:t}=e;return Xe({root:["root"],title:["title"]},rAe,t)},iAe=de(z2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sAe=de(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),lAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,oAe),u=qt(),f=_r(),p=aAe(r),m=S.useMemo(()=>{if(!o)return s;const v=Dp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(iAe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(sAe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function dL(e,t){var n,r,o,a;const i=qt(),s=yc(),l=Ke({props:e,name:t}),c=S.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:bh(l.components);return T({},l,{localeText:c},O2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Yr(i,l.minDate,s.minDate),maxDate:Yr(i,l.maxDate,s.maxDate),slots:T({toolbar:lAe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const cAe=["props","getOpenDialogAriaText"],uAe=["ownerState"],dAe=["ownerState"],W2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,cAe);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:$}=i,E=qt(),k=S.useRef(null),I=S.useRef(null),R=Ya(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:B,layoutProps:z,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:H}=eL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:v2,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(X,uAe),K=(o=c.openPickerButton)!=null?o:tr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(H.value,E),edge:L.position},ownerState:i}),D=Oe(q,dAe),N=c.openPickerIcon,V=c.field,Z=zt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},H,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});B&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),le=(a=c.layout)!=null?a:rL,xe=sn(k,Z.inputRef,g);let fe=R;F&&(x?fe=`${R}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(vh,{localeText:_,children:[O.jsx(V,T({},Z,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(eMe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},z,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:Y()}))}))]})}},ga=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q})=>O.jsx(uL,{view:e,onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q}),fL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=dL(t,"MuiDesktopDatePicker"),u=T({day:ga,month:ga,year:ga},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Dp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:M6,field:iL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},al((b=c.slotProps)==null?void 0:b.field,m),_d(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=W2({props:f,valueManager:$r,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:xh});return p()});fL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const fAe=["props","getOpenDialogAriaText"],H2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,fAe);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=S.useRef(null),_=Ya(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=eL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ADe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const B=T({textField:s.textField},G.slots),z=(r=s.layout)!=null?r:rL,Y=sn(C,G.inputRef,v);let Q=_;$&&(b?Q=`${_}-label`:Q=void 0);const H=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(vh,{localeText:y,children:[O.jsx(U,T({},G,{slots:B,slotProps:H,inputRef:Y})),O.jsx(UDe,T({},k,{open:E,slots:s,slotProps:H,children:O.jsx(z,T({},I,H==null?void 0:H.layout,{slots:s,slotProps:H,children:R()}))}))]})}},pL=S.forwardRef(function(t,n){var r,o,a;const i=_r(),s=qt(),l=dL(t,"MuiMobileDatePicker"),c=T({day:ga,month:ga,year:ga},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Dp(s,l,!1),slots:T({field:iL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},al((m=l.slotProps)==null?void 0:m.field,p),_d(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=H2({props:u,valueManager:$r,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:xh});return f()});pL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const pAe=["desktopModeMediaQuery"],hAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,pAe);return ph(o,{defaultMatches:!0})?O.jsx(fL,T({ref:n},a)):O.jsx(pL,T({ref:n},a))});function mAe(e){return et("MuiTimePickerToolbar",e)}const Xf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),vAe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],gAe=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,mAe,r)},yAe=de(z2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bAe=de(B2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),hL=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Xf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Xf.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));hL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const mL=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Xf.ampmLabel}`]:t.ampmLabel},{[`&.${Xf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Xf.ampmLabel}`]:{fontSize:17}}));mL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};function xAe(e){const t=Ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,vAe),m=qt(),b=_r(),v=nr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=N0(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=gAe(T({},C,{theme:v})),$=O.jsx(bAe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(yAe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(hL,{className:_.hourMinuteLabel,ownerState:C,children:[nu(c,"hours")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),nu(c,["hours","minutes"])&&$,nu(c,"minutes")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),nu(c,["minutes","seconds"])&&$,nu(c,"seconds")&&O.jsx(Lo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(mL,{className:_.ampmSelection,ownerState:C,children:[O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ba(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ba(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function vL(e,t){var n,r,o,a,i;const s=qt(),l=Ke({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=S.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:bh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},O2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:xAe},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Du=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B})=>O.jsx(rDe,{view:e,onViewChange:t,focusedView:n&&Ju(n)?n:null,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B}),gL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(dDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:B}),bC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(SDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B}),wAe=["views","format"],yL=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,wAe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Ju(c)?i.push(c):a.push(c)}),i.length===0)return Dp(e,T({views:a},o),!1);if(a.length===0)return Lg(e,T({views:i},o));const s=Lg(e,T({views:i},o));return`${Dp(e,T({views:a},o),!1)} ${s}`},CAe=(e,t,n)=>n?t.filter(r=>!Es(r)||r==="hours"):e?[...t,"meridiem"]:t,$Ae=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function bL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=$Ae(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:CAe(t,r,i)}}const xL=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=_r(),u=qt(),f=vL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=bL(f),v=p?gL:bC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===bC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:Lg(u,f),views:p?["hours"]:C,slots:T({field:sL,openPickerIcon:GOe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},al((k=f.slotProps)==null?void 0:k.field,E),_d(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:V0});return $()});xL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const wL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=vL(t,"MuiMobileTimePicker"),u=T({hours:Du,minutes:Du,seconds:Du},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Lg(l,c),slots:T({field:sL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},al((v=c.slotProps)==null?void 0:v.field,b),_d(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=H2({props:p,valueManager:$r,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:V0});return m()});wL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const SAe=["desktopModeMediaQuery"],_Ae=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,SAe);return ph(o,{defaultMatches:!0})?O.jsx(xL,T({ref:n},a)):O.jsx(wL,T({ref:n},a))});function EAe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const PAe=e=>Ou(e)?"date":"time",TAe=e=>e==="date"?"day":"hours",kAe=e=>{const{classes:t}=e;return Xe({root:["root"]},EAe,t)},OAe=de(D0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Nv.indicator}`]:{bottom:"auto",top:0}}})),RAe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(qOe,{}),onViewChange:o,timeIcon:a=O.jsx(YOe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=_r(),c=kAe(n),u=(f,p)=>{o(TAe(p))};return s?null:O.jsxs(OAe,{ownerState:n,variant:"fullWidth",value:PAe(i),onChange:u,className:c.root,children:[O.jsx(Tp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(Tp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function DAe(e){return et("MuiDateTimePickerToolbar",e)}const _x=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MAe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],IAe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,DAe,t)},CL=de(z2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));CL.propTypes={as:j.elementType,classes:j.object,className:j.string,isLandscape:j.bool.isRequired,isMobileKeyboardViewOpen:j.bool,landscapeDirection:j.oneOf(["column","row"]),ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),toggleMobileKeyboardView:j.func,toolbarTitle:j.node,viewType:j.oneOf(["date","time"])};const AAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),$L=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),NAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));$L.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const uM=de(B2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),jAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_x.ampmLabel}`]:t.ampmLabel},{[`&.${_x.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_x.ampmLabel}`]:{fontSize:17}}));function LAe(e){const t=Ke({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,MAe),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=N0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=_r(),E=nr(),k=IAe(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(CL,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(AAe,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(Lo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(Lo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs($L,{className:k.timeContainer,ownerState:x,children:[O.jsxs(NAe,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(jAe,{className:k.ampmSelection,ownerState:x,children:[O.jsx(Lo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ba(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(Lo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ba(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(Lo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ba(g,y):"--",width:Tf})]})]}))}function SL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=yc(),v=Ke({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=S.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:bh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,O2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Yr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Yr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:LAe,tabs:RAe},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const FAe=de("div")({display:"flex",margin:"0 auto"}),$l=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:$,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=al((Be=Q==null?void 0:Q.actionBar)!=null?Be:z==null?void 0:z.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:Es(e)?e:"hours",onViewChange:t,focusedView:r&&Es(r)?r:null,onFocusedViewChange:o,views:n.filter(Es),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:B,componentsProps:z,slots:Y,slotProps:Q,readOnly:L,disabled:K,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(FAe,{children:[O.jsx(uL,{view:Ou(e)?e:"day",onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:$,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(CD,{orientation:"vertical"}),_e?gL(T({},ze,{view:"hours",views:["hours"],focusedView:r&&Es(r)?"hours":null,sx:T({width:"auto",[`&.${aDe.root}`]:{maxHeight:F0}},Array.isArray(N)?N:[N])})):bC(T({},ze,{view:Es(e)?e:"hours",views:n.filter(Es),focusedView:r&&Es(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${hDe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(CD,{})]})},_L=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=_r(),f=qt(),p=SL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=bL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:$l,month:$l,year:$l,hours:$l,minutes:$l,seconds:$l,meridiem:$l}:T({day:ga,month:ga,year:ga,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:yL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:lL,openPickerIcon:M6},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},al((k=p.slotProps)==null?void 0:k.field,E),_d(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:V2});return $()});_L.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const EL=S.forwardRef(function(t,n){var r,o,a,i,s;const l=_r(),c=qt(),u=SL(t,"MuiMobileDateTimePicker"),f=T({day:ga,month:ga,year:ga,hours:Du,minutes:Du,seconds:Du},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:yL(c,u),ampmInClock:p,slots:T({field:lL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},al((x=u.slotProps)==null?void 0:x.field,v),_d(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=H2({props:m,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:V2});return b()});EL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const zAe=["desktopModeMediaQuery"],BAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,zAe);return ph(o,{defaultMatches:!0})?O.jsx(_L,T({ref:n},a)):O.jsx(EL,T({ref:n},a))});var PL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",m="year",b="date",v="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var z=["th","st","nd","rd"],Y=B%100;return"["+B+(z[(Y-20)%10]||z[Y]||z[0])+"]"}},w=function(B,z,Y){var Q=String(B);return!Q||Q.length>=z?B:""+Array(z+1-Q.length).join(Y)+B},C={s:w,z:function(B){var z=-B.utcOffset(),Y=Math.abs(z),Q=Math.floor(Y/60),H=Y%60;return(z<=0?"+":"-")+w(Q,2,"0")+":"+w(H,2,"0")},m:function B(z,Y){if(z.date()1)return B(X[0])}else{var L=z.name;$[L]=z,H=L}return!Q&&H&&(_=H),H||!Q&&_},R=function(B,z){if(k(B))return B.clone();var Y=typeof z=="object"?z:{};return Y.date=B,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(B,z){return R(B,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var U=function(){function B(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var z=B.prototype;return z.parse=function(Y){this.$d=function(Q){var H=Q.date,J=Q.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var X=H.match(x);if(X){var L=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(H)}(Y),this.init()},z.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(Y,Q){var H=R(Y);return this.startOf(Q)<=H&&H<=this.endOf(Q)},z.isAfter=function(Y,Q){return R(Y)25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(TL);var UAe=TL.exports;const WAe=Bt(UAe);var kL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(kL);var HAe=kL.exports;const GAe=Bt(HAe);var OL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(OL);var qAe=OL.exports;const YAe=Bt(qAe);var RL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(RL);var KAe=RL.exports;const JAe=Bt(KAe);br.extend(GAe);br.extend(YAe);br.extend(JAe);const ZAe=Q6(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),XAe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QAe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ex=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),dM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),e3e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class G2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=XAe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof br.utc<"u",this.hasTimezonePlugin=()=>typeof br.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return br.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=br.tz.guess();return i!=="UTC"?br.tz(a,i):br(a)}return br(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Ex);return br.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Ex);if(!this.hasTimezonePlugin())throw new Error(dM);const s=a!==void 0&&!a.endsWith("Z");return br(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=br.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(ZAe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Ex);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(dM)}return br.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=e3e((o=this.rawDayJsInstance)!=null?o:br,t),this.locale=t,this.formats=T({},QAe,n),br.extend(WAe)}}var q2={},t3e=mc;Object.defineProperty(q2,"__esModule",{value:!0});var DL=q2.default=void 0,n3e=t3e(vc()),r3e=O,o3e=(0,n3e.default)((0,r3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");DL=q2.default=o3e;const a3e=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=d5(i)(e,s.scope,a);if(l)return M.createElement(Pn,{xsUp:!n},M.createElement(Po,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Dy(e.allOf,t,"allOf",s,a,i);return M.createElement(Pn,{xsUp:!n},c.map((u,f)=>M.createElement(Po,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},i3e=mn(3,KN);var s3e=ime(a3e);class ML extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=Ike(t,n),a=Ql.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&BN(a)&&(i=a.elements.length>0),i?M.createElement(Po,{schema:o,path:r,uischema:a}):null}}const l3e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=S.useState(n||0),f=S.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Dy(e.anyOf,t,p,s,o,l);return M.createElement(Pn,{xsUp:!r},M.createElement(ML,{schema:e,combinatorKeyword:p,path:o}),M.createElement(D0,{value:c,onChange:f},m.map(b=>M.createElement(Tp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(Po,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};z5(l3e);const c3e=de($d)({borderBottom:"none"}),Mp=({children:e,...t})=>M.createElement(c3e,Object.assign({},t),e),u3e=de(Yj)(({theme:e})=>({color:e.palette.error.main})),IL=({errorMessages:e,id:t})=>M.createElement(hc,{id:t,title:e},M.createElement(u3e,{badgeContent:e.split(` -`).length},M.createElement(P2,{color:"inherit"}))),d3e={paddingLeft:0,paddingRight:0},f3e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(ll,null,M.createElement(Mp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Mp,{align:"right",style:d3e},M.createElement(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large"},M.createElement(_2,null)))):null)}),fM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},AL=(e,t,n,r,o)=>{if(t.type==="object")return NL(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},NL=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],p3e=({numColumns:e,translations:t})=>M.createElement(ll,null,M.createElement(Mp,{colSpan:e},M.createElement(gn,{align:"center"},t.noDataMessage))),h3e=M.memo(function({title:t}){return M.createElement($d,null,t)}),m3e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pM=e=>({type:"Control",scope:e,label:!1}),v3e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Mp,null,r.properties?M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:pM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ec,{schema:r,uischema:pM("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(fr,{error:!c},!c&&a))}),g3e=e=>{const t=pc(),n=m3e(t,e),r=Mt(n.errors);return M.createElement(v3e,Object.assign({},n,{isValid:r}))},y3e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(ll,{key:e,hover:!0},AL(g3e,t,e,c,u),c?M.createElement(Mp,{style:l?fM.fixedCell:fM.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(I0,null)))):null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(M0,null))))):null)},b3e=M.memo(y3e),x3e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(p3e,{numColumns:NL(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,hd(e).map(m=>{const b=ir.compose(t,`${m}`);return M.createElement(b3e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let w3e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?AL(h3e,r,n,c,u):void 0;return M.createElement(Pn,{xsUp:!l},M.createElement(C6,null,M.createElement(S6,null,M.createElement(f3e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(ll,null,b,c?M.createElement($d,null):null)),M.createElement($6,null,M.createElement(x3e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const C3e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(h2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(P0,null,M.createElement(Uo,{onClick:o,color:"primary"},l),M.createElement(Uo,{onClick:r,color:"primary"},s)))}),$3e=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return M.createElement(Pn,{xsUp:!l},M.createElement(w3e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(C3e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};My($3e);const ul=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},jL=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[$,E,k]=ul(),I=m.find(G=>G.value===i)??null,R=!Eo(r,t,$,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Pn,{xsUp:!r},M.createElement(_we,{className:s,id:l,disabled:!c,value:I,onChange:(G,B)=>{p(f,B==null?void 0:B.value)},inputValue:C,onInputChange:(G,B)=>{_(B)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(mh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:$})),renderOption:x,filterOptions:g}),M.createElement(fr,{error:!y&&!R},F),M.createElement(fr,{error:!y},U))},Y2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(YCe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});T2.extend(EOe);const K2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=T2(r).format(n);t(e,o)},J2=(e,t)=>{if(!e)return null;const n=T2(e,t);return n.toString()==="Invalid Date"?null:n},S3e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(Po,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),_3e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Pn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},S3e(t,n,r,o,i,s))),wh=M.memo(_3e),LL=e=>function(n){const r=pc(),o=gd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},E3e=e=>e.target.value,bc=(e,t,n,r,o=E3e,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(M5(f=>e(r,f),a),[e,r,a]),c=S.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=S.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},P3e={"enum.none":"None"},T3e=e=>e===""?void 0:parseInt(e,10),k3e=e=>T3e(e.target.value),FL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,k3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),O3e=e=>e===""?void 0:parseFloat(e),R3e=e=>O3e(e.target.value),zL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,R3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),D3e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=S.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=bc(l,"",b,s,v);return M.createElement(cs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),M3e=e=>e.target.value===""?void 0:e.target.value,BL=M.memo(function(t){var R,F,U;const[n,r]=S.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=bc(p,"",o,f,M3e),$=()=>r(!0),E=()=>r(!1),k=nr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(cs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:$,onPointerLeave:E,endAdornment:M.createElement(v2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(tr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(k6,{style:I}))),inputComponent:v})}),I3e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=bc(l,"",n,s);return M.createElement(cs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),U0=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=S.useMemo(()=>p("enum.none",P3e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(b6,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(jg,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(jg,{value:v.value,key:v.value},v.label))))}),VL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(JPe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),A3e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Pn,{xlUp:!t},M.createElement(fh,{component:"fieldset"},M.createElement(t6,{row:!0},o.map((u,f)=>{const p=ir.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(k0,{id:u.value,key:u.value,control:M.createElement(Y2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(fr,{error:!0},n)));dme(A3e);const N3e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>rh(n,r,l.scope,a,()=>Mt(a)?Ql.uiSchema(r,"VerticalLayout"):{...Ql.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Pn,{xsUp:!i},M.createElement(Po,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var j3e=sme(N3e);const L3e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=S.useState(!1),[b,v]=S.useState(l||0),[x,g]=S.useState(0),y=S.useCallback(()=>m(!1),[m]),w=S.useCallback(()=>{m(!1)},[m]),C=Dy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,es(C[k].schema)),v(k)},$=S.useCallback(()=>{_(x),m(!1)},[e,es,x]),E=S.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Pn,{xsUp:!s},M.createElement(ML,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(D0,{value:b,onChange:E},C.map(k=>M.createElement(Tp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(Po,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(E0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(h2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(P0,null,M.createElement(Uo,{onClick:w,color:"primary"},"No"),M.createElement(Uo,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},F3e=mn(3,ZN);var z3e=ame(L3e);const B3e=({text:e,visible:t})=>M.createElement(Pn,{xsUp:!t},M.createElement(gn,{variant:"h6"},e));U5(B3e);const UL=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(ITe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(hc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(_2,null))))))))}),V3e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(c6,{button:!0,selected:n,onClick:o(e)},M.createElement(B_e,null,M.createElement(Gj,{"aria-label":"Index"},e+1)),M.createElement(K_e,{primary:t}),r&&M.createElement(l6,null,M.createElement(tr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(M0,null))));var U3e=lme(V3e);const W3e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=S.useState(void 0),w=S.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>es(t),[es]),$=S.useMemo(()=>rh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Pn,{xsUp:!i},M.createElement(UL,{translations:x,label:ky(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(g2,null,f>0?R6(hd(f),k=>M.createElement(U3e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(Po,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:fc(r,`${g}`)}):M.createElement(gn,{variant:"h6"},x.noSelection))))};My(W3e);const Ed=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!Eo(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Pn,{xsUp:!c},M.createElement(fh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(i6,{htmlFor:o+"-input",error:!m,required:Oy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(fr,{error:!m&&!v},x),M.createElement(fr,{error:!m},g)))},H3e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),G3e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),q3e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=H3e(u.anyOf),m=G3e(u.anyOf).maxLength,b=S.useMemo(()=>tn({},n,i.options),[n,i.options]),v=S.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=bc(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(cs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Y3e extends A5{render(){return M.createElement(Ed,Object.assign({},this.props,{input:q3e}))}}lo(Y3e);const K3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(Y2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(K3e);const J3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(VL,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(J3e);const Z3e=e=>{const[t,n,r]=ul(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!Eo(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],$=y?o:x?null:i,E=y&&!x?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(hAe,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!x&&!y},$),M.createElement(fr,{error:!x},E)))};lo(Z3e);const X3e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(BAe,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(X3e);const Q3e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};P_(ol(M.memo(Q3e)),!1);const e4e=e=>M.createElement(Ed,Object.assign({},e,{input:FL}));lo(e4e);const t4e=e=>{const[t,n,r]=ul(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=bc(m,"",b,p),C=g.format??s.format,_=!Eo(u,l,t,g.showUnfocusedDescription);return M.createElement(Pn,{xsUp:!u},M.createElement(mh,{required:Oy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};lo(t4e);const n4e=e=>M.createElement(Ed,Object.assign({},e,{input:zL}));lo(n4e);const r4e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};T_(ol(M.memo(r4e)),!1);const WL=e=>{const[t,n,r]=ul(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!Eo(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Pn,{xsUp:!f},M.createElement(fh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(m2,{htmlFor:a,error:!x,component:"legend",required:Oy(s,g.hideRequiredAsterisk)},i),M.createElement(oEe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(k0,{value:C.value,key:C.label,control:M.createElement(tEe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(fr,{error:!x},x?y?l:null:c)))},o4e=e=>M.createElement(WL,Object.assign({},e));T_(o4e);const a4e=e=>M.createElement(WL,Object.assign({},e));P_(a4e);const i4e=e=>{const[t,n,r]=ul(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},$=!Eo(p,i,t,g.showUnfocusedDescription),E=S.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Pn,{xsUp:!p},M.createElement(fh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(m2,{htmlFor:o,error:!x,component:"legend",required:Oy(b,g.hideRequiredAsterisk)},M.createElement(gn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(gn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(gn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(LEe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(fr,{error:!x},x?$?i:null:l)))};lo(i4e);const s4e=e=>M.createElement(Ed,Object.assign({},e,{input:BL}));lo(s4e);const l4e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(_Ae,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(l4e);const Px={float:"right"},c4e=e=>{const[t]=S.useState(w5("expand-panel"));S.useEffect(()=>()=>{C5(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,$=S.useMemo(()=>rh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(D0e,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(d1e,{expandIcon:M.createElement(DL,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(Gj,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{onClick:l(m,a),style:Px,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{onClick:s(m,a),style:Px,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(I0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(tr,{onClick:p(m,[a]),style:Px,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(M0,null))))))))),M.createElement(L0e,null,M.createElement(Po,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:w})))},u4e=M.memo(c4e),d4e=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(UN(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(WN(o,n),o)))},[e])}),f4e=e=>function({ctx:n,props:r}){const o=d4e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=fc(s,`${l}`),f=_o.data(n.core.data,u),p=a?dr(f,a,""):dr(f,Fpe(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},p4e=e=>Sr(f4e(e));var h4e=p4e(u4e);const m4e={marginBottom:"10px"},v4e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Pn,{xsUp:!t},M.createElement(pCe,{style:m4e},!Mt(o)&&M.createElement(kCe,{title:o}),M.createElement(bCe,null,M.createElement(wh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),g4e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(v4e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};is(g4e);const y4e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(wh,Object.assign({},l,{renderers:t,cells:n}))};is(y4e);const b4e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(wh,Object.assign({},l,{renderers:a,cells:i}))};is(b4e);const x4e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=S.useState(i),[x,g]=S.useState(c??0),y=S.useMemo(()=>m.elements.filter(E=>yd(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},$=S.useMemo(()=>y.map(E=>Ey(E,p)),[y,p]);return M.createElement(Pn,{xsUp:!s},M.createElement(D1e,{position:"static"},M.createElement(D0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Tp,{key:k,label:$[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(wh,Object.assign({},C,{key:w}))))};LL(ol(is(x4e)));const w4e=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>es(e.schema),[e.schema]),o=S.useCallback($=>(E,k)=>{n(k?$:!1)},[]),a=$=>t===fc(e.path,`${$}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(UL,{translations:C,label:ky(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?R6(hd(s),$=>M.createElement(h4e,{enabled:i,index:$,expanded:a($),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:$,rootSchema:g,enableMoveUp:$!=0,enableMoveDown:${const r=S.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Pn,{xsUp:!e},M.createElement(C4e,Object.assign({visible:e,addItem:r},n)))};My($4e);const S4e=e=>M.createElement(Y2,Object.assign({},e));pr(S4e);const _4e=e=>M.createElement(VL,Object.assign({},e));pr(_4e);const E4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(cs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};pr(E4e);const P4e=e=>M.createElement(U0,Object.assign({},e));V5(ol(M.memo(P4e)),!1);const T4e=e=>M.createElement(FL,Object.assign({},e));pr(T4e);const k4e=e=>M.createElement(zL,Object.assign({},e));pr(k4e);const O4e=e=>M.createElement(D3e,Object.assign({},e));pr(O4e);const R4e=e=>M.createElement(U0,Object.assign({},e));ume(ol(M.memo(R4e)),!1);const D4e=e=>M.createElement(BL,Object.assign({},e));pr(D4e);const M4e=e=>M.createElement(I3e,Object.assign({},e));pr(M4e);const I4e=e=>{const[t,n]=S.useState(0),r=$=>{n($)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=S.useMemo(()=>b.elements.filter($=>yd($,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=S.useMemo(()=>w.map($=>Ey($,m)),[w,m]);return M.createElement(Pn,{xsUp:!c},M.createElement(zPe,{activeStep:t,nonLinear:!0},w.map(($,E)=>M.createElement(tPe,{key:_[E]},M.createElement(EPe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(wh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Uo,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Uo,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};LL(ol(is(I4e)));var HL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var $=_.match(r);if(!$)return null;var E=(""+$[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(HL);var A4e=HL.exports;const N4e=Bt(A4e);var GL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,$<=_.r||!_.r){$<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&($=m(""+$)),v=typeof E=="string"?E.replace("%d",$):E($,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(GL);var j4e=GL.exports;const L4e=Bt(j4e),F4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"})),z4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var Z2={exports:{}};Z2.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if($=$<<1,E==c-1){_.push(u($));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,$,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Z2);var W0=Z2.exports,B4e=Array.prototype,V4e=B4e.join;function U4e(e,t){return e==null?"":V4e.call(e,t)}var W4e=U4e;const qL=Bt(W4e);var H4e=pd,YL=H4e("filter",Z4);YL.placeholder=uc();var G4e=YL;const hM=Bt(G4e);var q4e=pd,KL=q4e("map",O6);KL.placeholder=uc();var Y4e=KL;const mM=Bt(Y4e);var Tx,vM;function K4e(){if(vM)return Tx;vM=1;var e=oS(),t=lS,n=rS(),r=A4(),o=lr,a=N4(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=mg(e,o=>o.name===t);return Ww(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},La=e=>(t,...n)=>qL(Qf(e)(t,n)," "),aNe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],iNe={styles:aNe},sNe=M.createContext(iNe),lNe=()=>S.useContext(sNe),X2=()=>{const{styles:e}=lNe();return e},Ti=e=>function(n){const r=pc(),o=X2(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Qf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${g5(a.scope)}`]);s&&(c=c.concat(Qf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>La(o)("control.label"),[o]),p=S.useMemo(()=>La(o)("input.description"),[o]),m=S.useMemo(()=>La(o)("control.validation"),[o]),b=S.useMemo(()=>La(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=S.useMemo(()=>La(o),[o]),g=S.useMemo(()=>Qf(o),[o]),y=c.join(" "),w=v.join(" "),C=S.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},Q2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=X2(),i=La(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:La(a),getStyle:Qf(a),className:o.join(" ")}))},Ka=Q2("control.input"),cNe=Q2("control.select"),uNe=Q2("control.checkbox"),dNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},fNe=mn(2,YN);var pNe=pr(uNe(dNe));const hNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},mNe=mn(2,r5);var vNe=pr(Ka(hNe));const gNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},yNe=mn(2,a5);var bNe=pr(Ka(gNe));const xNe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=S.useMemo(()=>u("enum.none",oNe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},wNe=mn(2,t_);var CNe=V5(ol(cNe(xNe)));const $Ne=e=>e===""?void 0:parseInt(e,10),SNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,$Ne(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},_Ne=mn(2,QN);var ENe=pr(Ka(SNe));const PNe=e=>e===""?void 0:Number(e),TNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,PNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},kNe=mn(2,e5);var ONe=pr(Ka(TNe));const RNe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};pr(Ka(RNe));const DNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},MNe=mn(4,l5);var INe=pr(Ka(DNe));const ANe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},NNe=mn(1,t5);pr(Ka(ANe));const jNe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},LNe=mn(2,n5);pr(Ka(jNe));const FNe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},zNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,FNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},BNe=mn(2,o5);var VNe=pr(Ka(zNe));class UNe extends A5{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!Eo(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=gy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Vu?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},ky(a,f,g.hideRequiredAsterisk)),M.createElement(ec,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const WNe=mn(1,Ga);var e9=Ti(lo(UNe));const t9=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=X2(),[v,x]=S.useState(!1),g=S.useMemo(()=>La(b)("control.radio"),[b]),y=S.useMemo(()=>La(b)("control.radio.option"),[b]),w=S.useMemo(()=>La(b)("control.radio.input"),[b]),C=S.useMemo(()=>La(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!Eo(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},ky(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:$},_?k?a:null:i))},HNe=e=>M.createElement(t9,Object.assign({},e)),GNe=mn(3,Cn(t_,as("format","radio")));var qNe=Ti(P_(HNe));const YNe=e=>M.createElement(t9,Object.assign({},e)),KNe=mn(3,Cn(XN,as("format","radio")));var JNe=Ti(T_(YNe));const{convertToValidClassName:ZNe}=_g,XNe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=S.useMemo(()=>rh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),$=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),ZNe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:$},n),M.createElement("button",{className:_,onClick:i(r,es(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?hd(0,t.length).map(U=>{const G=fc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(Po,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},QNe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=_g.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${_g.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:E};return M.createElement(XNe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var e5e=Ti(B5(QNe));const t5e=mn(4,r_),eE=e=>e.type==="Categorization",n5e=mn(1,Cn(Sn("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>eE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),r5e=(e,t)=>t===e?"selected":"",n9=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>Ey(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>eE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(n9,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:r5e(l,t)},M.createElement("span",null,s[c]))))},o5e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(Po,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class a5e extends I5{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(n9,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(o5e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:eE(n)?this.findCategory(n):n}}var i5e=Ti(ol(is(a5e)));const s5e=mn(1,Sn("Label")),l5e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var c5e=Ti(U5(l5e));const{convertToValidClassName:u5e}=_g,{or:d5e,isObjectArrayControl:f5e,isPrimitiveArrayControl:p5e,rankWith:h5e}=ope,m5e=h5e(3,d5e(f5e,p5e));class v5e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),u5e(m.scope)].join(" "),w=$=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${$}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,es(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?yM(xM,hM($=>r.properties[$].type!=="array"),mM($=>M.createElement("th",{key:$},r.properties[$].title??rNe($))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map(($,E)=>{const k=ir.compose(a,`${E}`),I=mg(f,G=>wg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?yM(xM,hM(G=>r.properties[G].type!=="array"),mM(G=>{const B=ir.compose(k,G.toString());return M.createElement("td",{key:B},M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(G)}`,o),uischema:w(Xl(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:ir.compose(k,E.toString())},M.createElement(ec,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},qL(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var g5e=Ti(B5(v5e));const tE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=pc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(Po,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},y5e=mn(1,Sn("Group")),b5e=e=>{const{data:t,...n}=e;return M.createElement(x5e,Object.assign({},n))},x5e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),tE(c,t,p,r,o))});var w5e=Ti(is(b5e));const r9=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),C5e=mn(1,Sn("HorizontalLayout")),$5e=e=>{const{data:t,...n}=e;return M.createElement(S5e,Object.assign({},n))},S5e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(r9,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},tE(l,t,f,s,a))});var _5e=Ti(is($5e,!1));const E5e=mn(1,Sn("VerticalLayout")),P5e=e=>{const{data:t,...n}=e;return M.createElement(T5e,Object.assign({},n))},T5e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(r9,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},tE(l,t,f,r,a))});var k5e=Ti(is(P5e,!1));const O5e=[{tester:WNe,renderer:e9},{tester:GNe,renderer:qNe},{tester:KNe,renderer:JNe},{tester:t5e,renderer:e5e},{tester:s5e,renderer:c5e},{tester:n5e,renderer:i5e},{tester:m5e,renderer:g5e},{tester:y5e,renderer:w5e},{tester:E5e,renderer:k5e},{tester:C5e,renderer:_5e}];function o9(e){let t=window.location.pathname.split("/playground")[0];return t.endsWith("/")&&(t=t.slice(0,-1)),new URL(t+e,window.location.origin)}const R5e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new $(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var B=0;B-1?D=N:(q=o.isUndefined(L)?void 0:R(L),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(V,Z){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function w(L,K){var q=L;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(L){return Object.keys(L).filter(function(K){return K!=="$ref"})}function _(L){var K;switch(L.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=L.uriDetails.reference}return K}function $(L,K){var q=p[L],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,Z){Z(void 0,JSON.parse(V.text))}),D=(D=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(V){return o.cloneDeep(V)})}function E(L,K){var q=!0;try{if(!o.isPlainObject(L))throw new Error("obj is not an Object");if(!o.isString(L.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function I(L,K){L.error=K.message,L.missing=!0}function R(L){return u.parse(L)}function F(L,K,q){w(L,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(L,K){var q,D;if(L=o.isUndefined(L)?{}:o.cloneDeep(L),!o.isObject(L))throw new TypeError("options must be an Object");if(!o.isUndefined(L.resolveCirculars)&&!o.isBoolean(L.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(L.filter)||o.isArray(L.filter)||o.isFunction(L.filter)||o.isString(L.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(L.includeInvalid)&&!o.isBoolean(L.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(L.location)&&!o.isString(L.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(L.refPreProcessor)&&!o.isFunction(L.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(L.refPostProcessor)&&!o.isFunction(L.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(L.subDocPath)&&!o.isArray(L.subDocPath)&&!Q(L.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(L.resolveCirculars)&&(L.resolveCirculars=!1),L.filter=function(N){var V,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?V=N.filter:o.isUndefined(N.filter)&&(V=function(){return!0}),function(re,le){return(re.type!=="invalid"||N.includeInvalid===!0)&&V(re,le)}}(L),o.isUndefined(L.location)&&(L.location=k("./root.json")),(q=L.location.split("#")).length>1&&(L.subDocPath="#"+q[1]),D=decodeURI(L.location)===L.location,L.location=x(L.location,void 0),D&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=H(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(K))try{w(K,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function G(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function B(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function z(L,K){var q={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function D(N,V,Z,re){var le=!0;function xe(fe,ge){Z.push(ge),D(N,fe,Z,re),Z.pop()}o.isFunction(re)&&(le=re(N,V,Z)),N.indexOf(V)===-1&&(N.push(V),le!==!1&&(o.isArray(V)?V.forEach(function(fe,ge){xe(fe,ge.toString())}):o.isObject(V)&&o.forOwn(V,function(fe,ge){xe(fe,ge)})),N.pop())}(function(D,N){var V,Z=[];return N.length>0&&(V=D,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],Z.push(V))})),Z}(L,(K=U(K,L)).subDocPath),w(L,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,V){var Z,re,le=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),V)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,V)),K.filter(Z,V)&&(re=J(V),q[re]=Z),C(N).length>0&&(le=!1)),le}),q}function Y(L){var K,q,D,N={def:L};try{if(E(L,!0),K=L.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,K){var q,D=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(q=L.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&L!=="#"&&L.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(L.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function H(L){try{Q(L,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=L.split("/");return K.shift(),G(K)}function J(L,K){if(!o.isArray(L))throw new Error("path must be an Array");return(K!==!1?"#":"")+(L.length>0?"/":"")+B(L).join("/")}function X(L,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");K=U(K,L),L=o.cloneDeep(L)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(V,Z,re){var le,xe,fe=Promise.resolve(),ge=J(Z.subDocPath),he=k(Z.location),_e=i.dirname(Z.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=z(V,Z),o.forOwn(le,function(Be,Ue){var ze,He,be=k(Z.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?x(_e,Be.uri):Z.location)+"#"+(Be.uri.indexOf("#")>-1?Be.uri.split("#")[1]:""));re.refs[be]=Be,y(Be)&&(Be.fqURI=we,re.deps[ve][Ue===ge?"#":Ue.replace(ge+"/","#/")]=we,be.indexOf(we+"/")!==0&&be!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:H(decodeURI(Be.uriDetails.fragment)),g(Be)?(delete xe.filter,xe.location=we.split("#")[0],fe=fe.then((ze=re,He=xe,function(){var Ce=k(He.location),qe=ze.docs[Ce];return o.isUndefined(qe)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return qe})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,qe,rt){return function(Ae){if(o.isError(Ae))I(rt,Ae);else try{return N(Ae,qe,Ce).catch(function(Le){I(rt,Le)})}catch(Le){I(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,K,D).then(function(){return D})}).then(function(D){var N={},V=[],Z=[],re=new a.Graph,le=k(K.location),xe=le+J(K.subDocPath),fe=i.dirname(le);return Object.keys(D.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e){re.setEdge(he,_e)})}),(V=a.alg.findCycles(re)).forEach(function(ge){ge.forEach(function(he){Z.indexOf(he)===-1&&Z.push(he)})}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=D.refs[he+ve.slice(1)],be=g(He);Z.indexOf(_e)>-1&&V.forEach(function(we){Ue||(Be=we.indexOf(_e))>-1&&we.forEach(function(Ce){Ue||ze.indexOf(Ce+"/")===0&&(be&&Be!==we.length-1&&_e[_e.length-1]==="#"||(Ue=!0))})}),Ue&&(He.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ge){var he=D.deps[ge],_e=ge.split("#"),ve=D.docs[_e[0]],Be=H(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=D.docs[He[0]],we=Be.concat(H(ze)),Ce=D.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!K.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=w(be,H(He[1]))}catch(qe){return void I(Ce,qe)}_e[1]===""&&ze==="#"?D.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(D.refs).forEach(function(ge){var he,_e,ve=D.refs[ge];ve.type!=="invalid"&&(ve.fqURI[ve.fqURI.length-1]==="#"&&ve.uri[ve.uri.length-1]!=="#"&&(ve.fqURI=ve.fqURI.substr(0,ve.fqURI.length-1)),he=ve.fqURI.split("/"),_e=ve.uri.split("/"),o.times(_e.length-1,function(Be){var Ue=_e[_e.length-Be-1],ze=_e[_e.length-Be],He=he.length-Be-1;Ue!=="."&&Ue!==".."&&ze!==".."&&(he[He]=Ue)}),ve.fqURI=he.join("/"),ve.fqURI.indexOf(le)===0?ve.fqURI=ve.fqURI.replace(le,""):ve.fqURI.indexOf(fe)===0&&(ve.fqURI=ve.fqURI.replace(fe,"")),ve.fqURI[0]==="/"&&(ve.fqURI="."+ve.fqURI)),ge.indexOf(xe)===0&&function Be(Ue,ze,He){var be,we=ze.split("#"),Ce=D.refs[ze];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=D.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(qe){Be(Ce.refdId,Ce.refdId+qe.substr(1),He.concat(H(qe)))})):!Ce.circular&&Ce.error&&(Ce.error=Ce.error.replace("options.subDocPath","JSON Pointer"),Ce.error.indexOf("#")>-1&&(Ce.error=Ce.error.replace(Ce.uri.substr(Ce.uri.indexOf("#")),Ce.uri)),Ce.error.indexOf("ENOENT:")!==0&&Ce.error.indexOf("Not Found")!==0||(Ce.error="JSON Pointer points to missing location: "+Ce.uri))}(xe,ge,H(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(D.docs[le],H(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:D.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return G(L)},e.exports.encodePath=function(L){return B(L)},e.exports.findRefs=function(L,K){return z(L,K)},e.exports.findRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=z(V,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:z(V,re),value:V}})}(L,K)},e.exports.getRefDetails=function(L){return Y(L)},e.exports.isPtr=function(L,K){return Q(L,K)},e.exports.isRef=function(L,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(L,K)},e.exports.pathFromPtr=function(L){return H(L)},e.exports.pathToPtr=function(L,K){return J(L,K)},e.exports.resolveRefs=function(L,K){return X(L,K)},e.exports.resolveRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){return X(V,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:V}})})}(L,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",$="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",H="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,he=RegExp(ge.source),_e=/^\s+|\s+$/g,ve=/^\s+/,Be=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Ne+"]",ie="["+gt+"]",$e="\\d+",Se="[\\u2700-\\u27bf]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tt="[^\\ud800-\\udfff"+Ne+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Ze+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",ln="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",bn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ut].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,me={};me[F]=me[U]=me[G]=me[B]=me[z]=me[Y]=me["[object Uint8ClampedArray]"]=me[Q]=me[H]=!0,me[u]=me[f]=me[I]=me[p]=me[R]=me[m]=me[b]=me[v]=me[g]=me[y]=me[w]=me[C]=me[_]=me[$]=me[k]=!1;var pe={};pe[u]=pe[f]=pe[I]=pe[R]=pe[p]=pe[m]=pe[F]=pe[U]=pe[G]=pe[B]=pe[z]=pe[g]=pe[y]=pe[w]=pe[C]=pe[_]=pe[$]=pe[E]=pe[Y]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[H]=!0,pe[b]=pe[v]=pe[k]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,En=Wt&&Wt.exports===yt,na=En&&xt.process,Vn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||na&&na.binding&&na.binding("util")}catch{}}(),Ro=Vn&&Vn.isArrayBuffer,ki=Vn&&Vn.isDate,Za=Vn&&Vn.isMap,Kr=Vn&&Vn.isRegExp,Do=Vn&&Vn.isSet,Xa=Vn&&Vn.isTypedArray;function Un(Me,Ye,Ge){switch(Ge.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,Ge[0]);case 2:return Me.call(Ye,Ge[0],Ge[1]);case 3:return Me.call(Ye,Ge[0],Ge[1],Ge[2])}return Me.apply(Ye,Ge)}function dl(Me,Ye,Ge,ht){for(var Ft=-1,cn=Me==null?0:Me.length;++Ft-1}function wc(Me,Ye,Ge){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return Ge}function vE(Me,Ye){for(var Ge=Me.length;Ge--&&Cc(Ye,Me[Ge],0)>-1;);return Ge}function a8(Me,Ye){for(var Ge=Me.length,ht=0;Ge--;)Me[Ge]===Ye&&++ht;return ht}var i8=e1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),s8=e1({"&":"&","<":"<",">":">",'"':""","'":"'"});function l8(Me){return"\\"+De[Me]}function $c(Me){return ue.test(Me)}function o1(Me){var Ye=-1,Ge=Array(Me.size);return Me.forEach(function(ht,Ft){Ge[++Ye]=[Ft,ht]}),Ge}function gE(Me,Ye){return function(Ge){return Me(Ye(Ge))}}function us(Me,Ye){for(var Ge=-1,ht=Me.length,Ft=0,cn=[];++Ge",""":'"',"'":"'"}),ds=function Me(Ye){var Ge,ht=(Ye=Ye==null?ut:ds.defaults(ut.Object(),Ye,ds.pick(ut,Ee))).Array,Ft=Ye.Date,cn=Ye.Error,hr=Ye.Function,Qa=Ye.Math,Dn=Ye.Object,a1=Ye.RegExp,d8=Ye.String,ra=Ye.TypeError,Eh=ht.prototype,f8=hr.prototype,_c=Dn.prototype,Ph=Ye["__core-js_shared__"],Th=f8.toString,xn=_c.hasOwnProperty,p8=0,yE=(Ge=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",kh=_c.toString,h8=Th.call(Dn),m8=ut._,v8=a1("^"+Th.call(xn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oh=En?Ye.Buffer:void 0,fs=Ye.Symbol,Rh=Ye.Uint8Array,bE=Oh?Oh.allocUnsafe:void 0,Dh=gE(Dn.getPrototypeOf,Dn),xE=Dn.create,wE=_c.propertyIsEnumerable,Mh=Eh.splice,CE=fs?fs.isConcatSpreadable:void 0,Td=fs?fs.iterator:void 0,pl=fs?fs.toStringTag:void 0,Ih=function(){try{var d=gl(Dn,"defineProperty");return d({},"",{}),d}catch{}}(),g8=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,y8=Ft&&Ft.now!==ut.Date.now&&Ft.now,b8=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,Ah=Qa.ceil,Nh=Qa.floor,i1=Dn.getOwnPropertySymbols,x8=Oh?Oh.isBuffer:void 0,$E=Ye.isFinite,w8=Eh.join,C8=gE(Dn.keys,Dn),mr=Qa.max,jr=Qa.min,$8=Ft.now,S8=Ye.parseInt,SE=Qa.random,_8=Eh.reverse,s1=gl(Ye,"DataView"),kd=gl(Ye,"Map"),l1=gl(Ye,"Promise"),Ec=gl(Ye,"Set"),Od=gl(Ye,"WeakMap"),Rd=gl(Dn,"create"),jh=Od&&new Od,Pc={},E8=yl(s1),P8=yl(kd),T8=yl(l1),k8=yl(Ec),O8=yl(Od),Lh=fs?fs.prototype:void 0,Dd=Lh?Lh.valueOf:void 0,_E=Lh?Lh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof oa)return d;if(xn.call(d,"__wrapped__"))return EP(d)}return new oa(d)}var Tc=function(){function d(){}return function(h){if(!Wn(h))return{};if(xE)return xE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Fh(){}function oa(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function hl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function aa(d,h,P,A,W,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(P&&(ce=W?P(d,A,W,ae):P(d)),ce!==void 0)return ce;if(!Wn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&xn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!ye)return uo(d,ce)}else{var ot=Lr(d),Ct=ot==v||ot==x;if(gs(d))return XE(d,ye);if(ot==w||ot==u||Ct&&!W){if(ce=Re||Ct?{}:gP(d),!ye)return Re?function(Je,st){return ti(Je,mP(Je),st)}(d,function(Je,st){return Je&&ti(st,po(st),Je)}(ce,d)):function(Je,st){return ti(Je,M1(Je),st)}(d,TE(ce,d))}else{if(!pe[ot])return W?d:{};ce=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return E1(Je);case p:case m:return new wt(+Je);case R:return function(jt,Xt){var Pt=Xt?E1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case B:case z:case Y:case"[object Uint8ClampedArray]":case Q:case H:return QE(Je,It);case g:return new wt;case y:case $:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,qe.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Dd?Dn(Dd.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new Pa);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),WP(d)?d.forEach(function(Je){ce.add(aa(Je,h,P,Je,d,ae))}):VP(d)&&d.forEach(function(Je,st){ce.set(st,aa(Je,h,P,st,d,ae))});var Rt=Ve?void 0:(We?Re?O1:k1:Re?po:Er)(d);return Jr(Rt||d,function(Je,st){Rt&&(Je=d[st=Je]),Md(ce,st,aa(Je,h,P,st,d,ae))}),ce}function kE(d,h,P){var A=P.length;if(d==null)return!A;for(d=Dn(d);A--;){var W=P[A],ae=h[W],ce=d[W];if(ce===void 0&&!(W in d)||!ae(ce))return!1}return!0}function OE(d,h,P){if(typeof d!="function")throw new ra(s);return zd(function(){d.apply(void 0,P)},h)}function Id(d,h,P,A){var W=-1,ae=Oi,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;P&&(h=Tn(h,Io(P))),A?(ae=wc,ce=!1):h.length>=200&&(ae=Pd,ce=!1,h=new ml(h));e:for(;++W-1},Ri.prototype.set=function(d,h){var P=this.__data__,A=zh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Di.prototype.clear=function(){this.size=0,this.__data__={hash:new hl,map:new(kd||Ri),string:new hl}},Di.prototype.delete=function(d){var h=Xh(this,d).delete(d);return this.size-=h?1:0,h},Di.prototype.get=function(d){return Xh(this,d).get(d)},Di.prototype.has=function(d){return Xh(this,d).has(d)},Di.prototype.set=function(d,h){var P=Xh(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},ml.prototype.add=ml.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},ml.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.clear=function(){this.__data__=new Ri,this.size=0},Pa.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},Pa.prototype.get=function(d){return this.__data__.get(d)},Pa.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ri){var A=P.__data__;if(!kd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Di(A)}return P.set(d,h),this.size=P.size,this};var ps=rP(ei),RE=rP(f1,!0);function I8(d,h){var P=!0;return ps(d,function(A,W,ae){return P=!!h(A,W,ae)}),P}function Bh(d,h,P){for(var A=-1,W=d.length;++A0&&P(ye)?h>1?Or(ye,h-1,P,A,W):co(W,ye):A||(W[W.length]=ye)}return W}var d1=oP(),ME=oP(!0);function ei(d,h){return d&&d1(d,h,Er)}function f1(d,h){return d&&ME(d,h,Er)}function Vh(d,h){return Mo(h,function(P){return ji(d[P])})}function kc(d,h){for(var P=0,A=(h=ms(h,d)).length;d!=null&&Ph}function A8(d,h){return d!=null&&xn.call(d,h)}function N8(d,h){return d!=null&&h in Dn(d)}function h1(d,h,P){for(var A=P?wc:Oi,W=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=Tn(Ve,Io(h))),Re=jr(Ve.length,Re),ye[ce]=!P&&(h||W>=120&&Ve.length>=120)?new ml(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Je=Re[We];return Rt*(Je=="desc"?-1:1)}}return ce.index-ye.index}(W,ae,P)})}function UE(d,h,P){for(var A=-1,W=h.length,ae={};++A-1;)ye!==d&&Mh.call(ye,Re,1),Mh.call(d,Re,1);return d}function WE(d,h){for(var P=d?h.length:0,A=P-1;P--;){var W=h[P];if(P==A||W!==ae){var ae=W;Ni(W)?Mh.call(d,W,1):C1(d,W)}}return d}function b1(d,h){return d+Nh(SE()*(h-d+1))}function x1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Nh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return j1(xP(d,h,ho),d+"")}function L8(d){return PE(Ic(d))}function F8(d,h){var P=Ic(d);return Qh(P,vl(h,0,P.length))}function jd(d,h,P,A){if(!Wn(d))return d;for(var W=-1,ae=(h=ms(h,d)).length,ce=ae-1,ye=d;ye!=null&&++WW?0:W+h),(P=P>W?W:P)<0&&(P+=W),W=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(W);++A>>1,ce=d[ae];ce!==null&&!No(ce)&&(P?ce<=h:ce=200){var We=h?null:W8(d);if(We)return _h(We);ce=!1,W=Pd,Re=new ml}else Re=h?[]:ye;e:for(;++A=A?d:ia(d,h,P)}var ZE=g8||function(d){return ut.clearTimeout(d)};function XE(d,h){if(h)return d.slice();var P=d.length,A=bE?bE(P):new d.constructor(P);return d.copy(A),A}function E1(d){var h=new d.constructor(d.byteLength);return new Rh(h).set(new Rh(d)),h}function QE(d,h){var P=h?E1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function eP(d,h){if(d!==h){var P=d!==void 0,A=d===null,W=d==d,ae=No(d),ce=h!==void 0,ye=h===null,Re=h==h,We=No(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||A&&ce&&Re||!P&&Re||!W)return 1;if(!A&&!ae&&!We&&d1?P[W-1]:void 0,ce=W>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(W--,ae):void 0,ce&&Xr(P[0],P[1],ce)&&(ae=W<3?void 0:ae,W=1),h=Dn(h);++A-1?W[ae?h[ce]:ce]:void 0}}function sP(d){return Ai(function(h){var P=h.length,A=P,W=oa.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new ra(s);if(W&&!ce&&Zh(ae)=="wrapper")var ce=new oa([],!0)}for(A=ce?A:P;++A1&&wt.reverse(),Ve&&Reye))return!1;var We=ae.get(d);if(We&&ae.get(h))return We==h;var Ve=-1,ot=!0,Ct=2&P?new ml:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),W.replace(Ue,`{ -/* [wrapped with `+ae+`] */ -`)}(A,function(W,ae){return Jr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!Oi(W,ye)&&W.push(ye)}),W.sort()}(function(W){var ae=W.match(ze);return ae?ae[1].split(He):[]}(A),P)))}function SP(d){var h=0,P=0;return function(){var A=$8(),W=16-(A-P);if(P=A,W>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Qh(d,h){var P=-1,A=d.length,W=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,DP(d,P)});function MP(d){var h=ee(d);return h.__chain__=!0,h}function em(d,h){return h(d)}var fF=Ai(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,W=function(ae){return u1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Ni(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:em,args:[W],thisArg:void 0}),new oa(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(W)}),pF=Gh(function(d,h,P){xn.call(d,P)?++d[P]:Mi(d,P,1)}),hF=iP(PP),mF=iP(TP);function IP(d,h){return(Ht(d)?Jr:ps)(d,Ot(h,3))}function AP(d,h){return(Ht(d)?$h:RE)(d,Ot(h,3))}var vF=Gh(function(d,h,P){xn.call(d,P)?d[P].push(h):Mi(d,P,[h])}),gF=Zt(function(d,h,P){var A=-1,W=typeof h=="function",ae=fo(d)?ht(d.length):[];return ps(d,function(ce){ae[++A]=W?Un(h,ce,P):Ad(ce,h,P)}),ae}),yF=Gh(function(d,h,P){Mi(d,P,h)});function tm(d,h){return(Ht(d)?Tn:LE)(d,Ot(h,3))}var bF=Gh(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),xF=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Xr(d,h[0],h[1])?h=[]:P>2&&Xr(h[0],h[1],h[2])&&(h=[h[0]]),VE(d,Or(h,1),[])}),nm=y8||function(){return ut.Date.now()};function NP(d,h,P){return h=P?void 0:h,Ii(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function jP(d,h){var P;if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var z1=Zt(function(d,h,P){var A=1;if(P.length){var W=us(P,Dc(z1));A|=32}return Ii(d,A,h,P,W)}),LP=Zt(function(d,h,P){var A=3;if(P.length){var W=us(P,Dc(LP));A|=32}return Ii(h,A,d,P,W)});function FP(d,h,P){var A,W,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new ra(s);function $t(At){var jt=A,Xt=W;return A=W=void 0,We=At,ce=d.apply(Xt,jt)}function Rt(At){return We=At,ye=zd(st,h),Ve?$t(At):ce}function Je(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=nm();if(Je(At))return It(At);ye=zd(st,function(jt){var Xt=h-(jt-Re);return ot?jr(Xt,ae-(jt-We)):Xt}(At))}function It(At){return ye=void 0,Ct&&A?$t(At):(A=W=void 0,ce)}function wt(){var At=nm(),jt=Je(At);if(A=arguments,W=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return ZE(ye),ye=zd(st,h),$t(Re)}return ye===void 0&&(ye=zd(st,h)),ce}return h=la(h)||0,Wn(P)&&(Ve=!!P.leading,ae=(ot="maxWait"in P)?mr(la(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){ye!==void 0&&ZE(ye),We=0,A=Re=W=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(nm())},wt}var wF=Zt(function(d,h){return OE(d,1,h)}),CF=Zt(function(d,h,P){return OE(d,la(h)||0,P)});function rm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ra(s);var P=function A(){var W=arguments,ae=h?h.apply(this,W):W[0],ce=A.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,W);return A.cache=ce.set(ae,ye)||ce,ye};return P.cache=new(rm.Cache||Di),P}function om(d){if(typeof d!="function")throw new ra(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}rm.Cache=Di;var $F=U8(function(d,h){var P=(h=h.length==1&&Ht(h[0])?Tn(h[0],Io(Ot())):Tn(Or(h,1),Io(Ot()))).length;return Zt(function(A){for(var W=-1,ae=jr(A.length,P);++W=h}),bl=AE(function(){return arguments}())?AE:function(d){return Jn(d)&&xn.call(d,"callee")&&!wE.call(d,"callee")},Ht=ht.isArray,PF=Ro?Io(Ro):function(d){return Jn(d)&&Zr(d)==I};function fo(d){return d!=null&&am(d.length)&&!ji(d)}function or(d){return Jn(d)&&fo(d)}var gs=x8||X1,TF=ki?Io(ki):function(d){return Jn(d)&&Zr(d)==m};function V1(d){if(!Jn(d))return!1;var h=Zr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Bd(d)}function ji(d){if(!Wn(d))return!1;var h=Zr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function BP(d){return typeof d=="number"&&d==Gt(d)}function am(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Wn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var VP=Za?Io(Za):function(d){return Jn(d)&&Lr(d)==g};function UP(d){return typeof d=="number"||Jn(d)&&Zr(d)==y}function Bd(d){if(!Jn(d)||Zr(d)!=w)return!1;var h=Dh(d);if(h===null)return!0;var P=xn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Th.call(P)==h8}var U1=Kr?Io(Kr):function(d){return Jn(d)&&Zr(d)==C},WP=Do?Io(Do):function(d){return Jn(d)&&Lr(d)==_};function im(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Zr(d)==$}function No(d){return i(d)=="symbol"||Jn(d)&&Zr(d)==E}var Mc=Xa?Io(Xa):function(d){return Jn(d)&&am(d.length)&&!!me[Zr(d)]},kF=Jh(g1),OF=Jh(function(d,h){return d<=h});function HP(d){if(!d)return[];if(fo(d))return im(d)?Ea(d):uo(d);if(Td&&d[Td])return function(P){for(var A,W=[];!(A=P.next()).done;)W.push(A.value);return W}(d[Td]());var h=Lr(d);return(h==g?o1:h==_?_h:Ic)(d)}function Li(d){return d?(d=la(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Li(d),P=h%1;return h==h?P?h-P:h:0}function GP(d){return d?vl(Gt(d),0,4294967295):0}function la(d){if(typeof d=="number")return d;if(No(d))return NaN;if(Wn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Wn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var P=Ae.test(d);return P||Fe.test(d)?lt(d.slice(2),P?2:8):rt.test(d)?NaN:+d}function qP(d){return ti(d,po(d))}function vn(d){return d==null?"":Ao(d)}var RF=Oc(function(d,h){if(Fd(h)||fo(h))ti(h,Er(h),d);else for(var P in h)xn.call(h,P)&&Md(d,P,h[P])}),YP=Oc(function(d,h){ti(h,po(h),d)}),sm=Oc(function(d,h,P,A){ti(h,po(h),d,A)}),DF=Oc(function(d,h,P,A){ti(h,Er(h),d,A)}),MF=Ai(u1),IF=Zt(function(d,h){d=Dn(d);var P=-1,A=h.length,W=A>2?h[2]:void 0;for(W&&Xr(h[0],h[1],W)&&(A=1);++P1),ae}),ti(d,O1(d),P),A&&(P=aa(P,7,H8));for(var W=h.length;W--;)C1(P,h[W]);return P}),BF=Ai(function(d,h){return d==null?{}:function(P,A){return UE(P,A,function(W,ae){return H1(P,ae)})}(d,h)});function JP(d,h){if(d==null)return{};var P=Tn(O1(d),function(A){return[A]});return h=Ot(h),UE(d,P,function(A,W){return h(A,W[0])})}var ZP=dP(Er),XP=dP(po);function Ic(d){return d==null?[]:r1(d,Er(d))}var VF=Rc(function(d,h,P){return h=h.toLowerCase(),d+(P?QP(h):h)});function QP(d){return G1(vn(d).toLowerCase())}function eT(d){return(d=vn(d))&&d.replace(Te,i8).replace(Bn,"")}var UF=Rc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),WF=Rc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),HF=aP("toLowerCase"),GF=Rc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),qF=Rc(function(d,h,P){return d+(P?" ":"")+G1(h)}),YF=Rc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),G1=aP("toUpperCase");function tT(d,h,P){return d=vn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(be)||[]}(d):d.match(h)||[]}var nT=Zt(function(d,h){try{return Un(d,void 0,h)}catch(P){return V1(P)?P:new cn(P)}}),KF=Ai(function(d,h){return Jr(h,function(P){P=ni(P),Mi(d,P,z1(d[P],d))}),d});function q1(d){return function(){return d}}var JF=sP(),ZF=sP(!0);function ho(d){return d}function Y1(d){return jE(typeof d=="function"?d:aa(d,1))}var XF=Zt(function(d,h){return function(P){return Ad(P,d,h)}}),QF=Zt(function(d,h){return function(P){return Ad(d,P,h)}});function K1(d,h,P){var A=Er(h),W=Vh(h,A);P!=null||Wn(h)&&(W.length||!A.length)||(P=h,h=d,d=this,W=Vh(h,Er(h)));var ae=!(Wn(P)&&"chain"in P&&!P.chain),ce=ji(d);return Jr(W,function(ye){var Re=h[ye];d[ye]=Re,ce&&(d.prototype[ye]=function(){var We=this.__chain__;if(ae||We){var Ve=d(this.__wrapped__),ot=Ve.__actions__=uo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,co([this.value()],arguments))})}),d}function J1(){}var e7=P1(Tn),t7=P1(fl),n7=P1(X0);function rT(d){return I1(d)?Q0(ni(d)):function(h){return function(P){return kc(P,h)}}(d)}var r7=cP(),o7=cP(!0);function Z1(){return[]}function X1(){return!1}var a7=Yh(function(d,h){return d+h},0),i7=T1("ceil"),s7=Yh(function(d,h){return d/h},1),l7=T1("floor"),Q1,c7=Yh(function(d,h){return d*h},1),u7=T1("round"),d7=Yh(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=NP,ee.assign=RF,ee.assignIn=YP,ee.assignInWith=sm,ee.assignWith=DF,ee.at=MF,ee.before=jP,ee.bind=z1,ee.bindAll=KF,ee.bindKey=LP,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=MP,ee.chunk=function(d,h,P){h=(P?Xr(d,h,P):h===void 0)?1:mr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var W=0,ae=0,ce=ht(Ah(A/h));WWe?0:We+ye),(Re=Re===void 0||Re>We?We:Gt(Re))<0&&(Re+=We),Re=ye>Re?0:GP(Re);ye>>0)?(d=vn(d))&&(typeof h=="string"||h!=null&&!U1(h))&&!(h=Ao(h))&&$c(d)?vs(Ea(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new ra(s);return h=h==null?0:mr(Gt(h),0),Zt(function(P){var A=P[h],W=vs(P,0,h);return A&&co(W,A),Un(d,this,W)})},ee.tail=function(d){var h=d==null?0:d.length;return h?ia(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?ia(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?ia(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,W=!0;if(typeof d!="function")throw new ra(s);return Wn(P)&&(A="leading"in P?!!P.leading:A,W="trailing"in P?!!P.trailing:W),FP(d,h,{leading:A,maxWait:h,trailing:W})},ee.thru=em,ee.toArray=HP,ee.toPairs=ZP,ee.toPairsIn=XP,ee.toPath=function(d){return Ht(d)?Tn(d,ni):No(d)?[d]:uo(_P(vn(d)))},ee.toPlainObject=qP,ee.transform=function(d,h,P){var A=Ht(d),W=A||gs(d)||Mc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=W?A?new ae:[]:Wn(d)&&ji(ae)?Tc(Dh(d)):{}}return(W?Jr:ei)(d,function(ce,ye,Re){return h(P,ce,ye,Re)}),P},ee.unary=function(d){return NP(d,1)},ee.union=rF,ee.unionBy=oF,ee.unionWith=aF,ee.uniq=function(d){return d&&d.length?hs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?hs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?hs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||C1(d,h)},ee.unzip=F1,ee.unzipWith=DP,ee.update=function(d,h,P){return d==null?d:YE(d,h,_1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:YE(d,h,_1(P),A)},ee.values=Ic,ee.valuesIn=function(d){return d==null?[]:r1(d,po(d))},ee.without=iF,ee.words=tT,ee.wrap=function(d,h){return B1(_1(h),d)},ee.xor=sF,ee.xorBy=lF,ee.xorWith=cF,ee.zip=uF,ee.zipObject=function(d,h){return JE(d||[],h||[],Md)},ee.zipObjectDeep=function(d,h){return JE(d||[],h||[],jd)},ee.zipWith=dF,ee.entries=ZP,ee.entriesIn=XP,ee.extend=YP,ee.extendWith=sm,K1(ee,ee),ee.add=a7,ee.attempt=nT,ee.camelCase=VF,ee.capitalize=QP,ee.ceil=i7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=la(P))==P?P:0),h!==void 0&&(h=(h=la(h))==h?h:0),vl(la(d),h,P)},ee.clone=function(d){return aa(d,4)},ee.cloneDeep=function(d){return aa(d,5)},ee.cloneDeepWith=function(d,h){return aa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return aa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||kE(d,h,Er(h))},ee.deburr=eT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=s7,ee.endsWith=function(d,h,P){d=vn(d),h=Ao(h);var A=d.length,W=P=P===void 0?A:vl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,W)==h},ee.eq=Ta,ee.escape=function(d){return(d=vn(d))&&N.test(d)?d.replace(q,s8):d},ee.escapeRegExp=function(d){return(d=vn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?fl:I8;return P&&Xr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=hF,ee.findIndex=PP,ee.findKey=function(d,h){return dE(d,Ot(h,3),ei)},ee.findLast=mF,ee.findLastIndex=TP,ee.findLastKey=function(d,h){return dE(d,Ot(h,3),f1)},ee.floor=l7,ee.forEach=IP,ee.forEachRight=AP,ee.forIn=function(d,h){return d==null?d:d1(d,Ot(h,3),po)},ee.forInRight=function(d,h){return d==null?d:ME(d,Ot(h,3),po)},ee.forOwn=function(d,h){return d&&ei(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&f1(d,Ot(h,3))},ee.get=W1,ee.gt=_F,ee.gte=EF,ee.has=function(d,h){return d!=null&&vP(d,h,A8)},ee.hasIn=H1,ee.head=OP,ee.identity=ho,ee.includes=function(d,h,P,A){d=fo(d)?d:Ic(d),P=P&&!A?Gt(P):0;var W=d.length;return P<0&&(P=mr(W+P,0)),im(d)?P<=W&&d.indexOf(h,P)>-1:!!W&&Cc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=P==null?0:Gt(P);return W<0&&(W=mr(A+W,0)),Cc(d,h,W)},ee.inRange=function(d,h,P){return h=Li(h),P===void 0?(P=h,h=0):P=Li(P),function(A,W,ae){return A>=jr(W,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=WP,ee.isString=im,ee.isSymbol=No,ee.isTypedArray=Mc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&Lr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Zr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":w8.call(d,h)},ee.kebabCase=UF,ee.last=sa,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=A;return P!==void 0&&(W=(W=Gt(P))<0?mr(A+W,0):jr(W,A-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,W):Sh(d,fE,W,!0)},ee.lowerCase=WF,ee.lowerFirst=HF,ee.lt=kF,ee.lte=OF,ee.max=function(d){return d&&d.length?Bh(d,ho,p1):void 0},ee.maxBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),p1):void 0},ee.mean=function(d){return pE(d,ho)},ee.meanBy=function(d,h){return pE(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Bh(d,ho,g1):void 0},ee.minBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),g1):void 0},ee.stubArray=Z1,ee.stubFalse=X1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=c7,ee.nth=function(d,h){return d&&d.length?BE(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=m8),this},ee.noop=J1,ee.now=nm,ee.pad=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;if(!h||A>=h)return d;var W=(h-A)/2;return Kh(Nh(W),P)+d+Kh(Ah(W),P)},ee.padEnd=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var W=SE();return jr(d+W*(h-d+nt("1e-"+((W+"").length-1))),h)}return b1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?Z0:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,ps)},ee.reduceRight=function(d,h,P){var A=Ht(d)?n8:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,RE)},ee.repeat=function(d,h,P){return h=(P?Xr(d,h,P):h===void 0)?1:Gt(h),x1(vn(d),h)},ee.replace=function(){var d=arguments,h=vn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,W=(h=ms(h,d)).length;for(W||(W=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=jr(d,4294967295);d-=4294967295;for(var W=n1(A,h=Ot(h));++P=ae)return d;var ye=P-Sc(A);if(ye<1)return A;var Re=ce?vs(ce,0,ye).join(""):d.slice(0,ye);if(W===void 0)return Re+A;if(ce&&(ye+=Re.length-ye),U1(W)){if(d.slice(ye).search(W)){var We,Ve=Re;for(W.global||(W=a1(W.source,vn(qe.exec(W))+"g")),W.lastIndex=0;We=W.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(Ao(W),ye)!=ye){var Ct=Re.lastIndexOf(W);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=vn(d))&&D.test(d)?d.replace(K,u8):d},ee.uniqueId=function(d){var h=++p8;return vn(d)+h},ee.upperCase=YF,ee.upperFirst=G1,ee.each=IP,ee.eachRight=AP,ee.first=OP,K1(ee,(Q1={},ei(ee,function(d,h){xn.call(ee.prototype,h)||(Q1[h]=d)}),Q1),{chain:!1}),ee.VERSION="4.17.15",Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Jr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:mr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=jr(P,A.__takeCount__):A.__views__.push({size:jr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Jr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(W){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(W,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Jr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Jr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(ho)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Ad(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(om(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ei(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),W=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);W&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=A?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=W.apply(ee,co([It],ye));return A&&Ct?wt[0]:wt};Ve&&P&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Je=Re&&!$t;if(!ae&&Ve){ce=Je?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:em,args:[ot],thisArg:void 0}),new oa(st,Ct)}return Rt&&Je?d.apply(this,ye):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Eh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var W=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],W)}return this[P](function(ce){return h.apply(Ht(ce)?ce:[],W)})}}),ei(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";xn.call(Pc,A)||(Pc[A]=[]),Pc[A].push({name:h,func:P})}}),Pc[qh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=uo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=uo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=uo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,W=P?d.length:0,ae=function(Xt,Pt,Dt){for(var vr=-1,Qr=Dt.length;++vr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Fh;){var A=EP(P);A.__index__=0,A.__values__=void 0,h?W.__wrapped__=A:h=A;var W=A;P=P.__wrapped__}return W.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:em,args:[L1],thisArg:void 0}),new oa(h,this.__chain__)}return this.thru(L1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return KE(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Td&&(ee.prototype[Td]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=ds,(a=(function(){return ds}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=ds)._=ds,yt._=ds):ut._=ds}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),$=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,B,z){var Y,Q=1&F,H=2&F,J=4&F;if(U&&(Y=B?U(R,G,B,z):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var L=b(R),K=L=="[object Function]"||L=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(L=="[object Object]"||L=="[object Arguments]"||K&&!B){if(Y=H||K?{}:g(R),!Q)return H?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[L])return B?R:{};Y=x(R,L,Q)}}z||(z=new r);var q=z.get(R);if(q)return q;z.set(R,Y),$(R)?R.forEach(function(V){Y.add(I(V,F,U,V,R,z))}):C(R)&&R.forEach(function(V,Z){Y.set(Z,I(V,F,U,Z,R,z))});var D=J?H?m:p:H?keysIn:E,N=X?void 0:D(R);return o(N||R,function(V,Z){N&&(V=R[Z=V]),a(Y,Z,I(V,F,U,Z,R,z))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var $ in C)b(_,$,C[$]);return _.join("&")}function b(C,_,$){if($!=null)if(Array.isArray($))$.forEach(function(k){b(C,_,k)});else if(s($))for(var E in $)b(C,_+"["+E+"]",$[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof $!="string"&&!this._isHost($)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&($=I($))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send($!==void 0?$:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,$){var E=new f.Request(C,_);return this._setDefaults(E),$&&E.end($),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var E=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.head=function(C,_,$){var E=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.options=function(C,_,$){var E=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.del=w,f.delete=w,f.patch=function(C,_,$){var E=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.post=function(C,_,$){var E=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.put=function(C,_,$){var E=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var $e=te.length-1,Se=1;Se<$e;++Se)te[Se]=te[Se].slice(1,-1);return te[$e]=te[$e].slice(1),te.join("")}return te[0]}function u(ne){return"(?:"+ne+")"}function f(ne){return ne===void 0?"undefined":ne===null?"null":Object.prototype.toString.call(ne).split(" ").pop().split("]").shift().toLowerCase()}function p(ne){return ne.toUpperCase()}function m(ne){var te=c("[0-9]","[A-Fa-f]"),ie=u(u("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+u("%[89A-Fa-f]"+te+"%"+te+te)+"|"+u("%"+te+te)),$e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=c("[\\:\\/\\?\\#\\[\\]\\@]",$e),Ze=ne?"[\\uE000-\\uF8FF]":"[]",tt=c("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",ne?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");u("[A-Za-z]"+c("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),u(u(ie+"|"+c(tt,$e,"[\\:]"))+"*");var ft=u(u("25[0-5]")+"|"+u("2[0-4][0-9]")+"|"+u("1[0-9][0-9]")+"|"+u("0?[1-9][0-9]")+"|0?0?[0-9]"),_t=u(ft+"\\."+ft+"\\."+ft+"\\."+ft),vt=u(te+"{1,4}"),dt=u(u(vt+"\\:"+vt)+"|"+_t),Et=u(u(vt+"\\:")+"{6}"+dt),Yt=u("\\:\\:"+u(vt+"\\:")+"{5}"+dt),kt=u(u(vt)+"?\\:\\:"+u(vt+"\\:")+"{4}"+dt),ln=u(u(u(vt+"\\:")+"{0,1}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{3}"+dt),Vt=u(u(u(vt+"\\:")+"{0,2}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{2}"+dt),Ut=u(u(u(vt+"\\:")+"{0,3}"+vt)+"?\\:\\:"+vt+"\\:"+dt),Kt=u(u(u(vt+"\\:")+"{0,4}"+vt)+"?\\:\\:"+dt),bn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Bn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,ln,Vt,Ut,Kt,bn,Bn].join("|")),oe=u(u(tt+"|"+ie)+"+");u("[vV]"+te+"+\\."+c(tt,$e,"[\\:]")+"+"),u(u(ie+"|"+c(tt,$e))+"*");var ue=u(ie+"|"+c(tt,$e,"[\\:\\@]"));return u(u(ie+"|"+c(tt,$e,"[\\@]"))+"+"),u(u(ue+"|"+c("[\\/\\?]",Ze))+"*"),{NOT_SCHEME:new RegExp(c("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",tt,$e),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",tt,$e),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",tt,$e),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",tt,$e),"g"),NOT_QUERY:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",tt,$e),"g"),UNRESERVED:new RegExp(tt,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",tt,Se),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+_t+")$"),IPV6ADDRESS:new RegExp("^\\[?("+se+")"+u(u("\\%25|\\%(?!"+te+"{2})")+"("+oe+")")+"?\\]?$")}}var b=m(!1),v=m(!0),x=function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return function(ie,$e){var Se=[],Ze=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Ze=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Ze=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Ze&&vt.return&&vt.return()}finally{if(tt)throw ft}}return Se}(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=2147483647,y=/^xn--/,w=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Ze,tt){for(var ft=[],_t=Ze.length;_t--;)ft[_t]=tt(Ze[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function R(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Ze=ne.charCodeAt(ie++);(64512&Ze)==56320?te.push(((1023&Se)<<10)+(1023&Ze)+65536):(te.push(Se),ie--)}else te.push(Se)}return te}var F=function(ne,te){return ne+22+75*(ne<26)-((te!=0)<<5)},U=function(ne,te,ie){var $e=0;for(ne=ie?$(ne/700):ne>>1,ne+=$(ne/te);ne>455;$e+=36)ne=$(ne/35);return $($e+36*ne/(ne+38))},G=function(ne){var te,ie=[],$e=ne.length,Se=0,Ze=128,tt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt<$e;){for(var dt=Se,Et=1,Yt=36;;Yt+=36){vt>=$e&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>$((g-Se)/Et))&&k("overflow"),Se+=kt*Et;var ln=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=U(Se-dt,Ut,dt==0),$(Se/Ut)>g-Ze&&k("overflow"),Ze+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Ze)}return String.fromCodePoint.apply(String,ie)},B=function(ne){var te=[],ie=(ne=R(ne)).length,$e=128,Se=0,Ze=72,tt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(tt=(vt=dt.next()).done);tt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!tt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=$e&&se$((g-Se)/oe)&&k("overflow"),Se+=(ln-$e)*oe,$e=ln;var ue=!0,ke=!1,Ee=void 0;try{for(var pt,me=ne[Symbol.iterator]();!(ue=(pt=me.next()).done);ue=!0){var pe=pt.value;if(pe<$e&&++Se>g&&k("overflow"),pe==$e){for(var De=Se,nt=36;;nt+=36){var lt=nt<=Ze?1:nt>=Ze+26?26:nt-Ze;if(De>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,$e=ne.length;ie<$e;){var Se=parseInt(ne.substr(ie+1,2),16);if(Se<128)te+=String.fromCharCode(Se),ie+=3;else if(Se>=194&&Se<224){if($e-ie>=6){var Ze=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Ze)}else te+=ne.substr(ie,6);ie+=6}else if(Se>=224){if($e-ie>=9){var tt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&Se)<<12|(63&tt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie($e){var Se=J($e);return Se.match(te.UNRESERVED)?Se:$e}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,H).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,H).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,H).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,H).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,H).replace(te.PCT_ENCODED,p)),ne}function L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=x(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=x(ie,3),Se=$e[1],Ze=$e[2];if(Se){for(var tt=Se.toLowerCase().split("::").reverse(),ft=x(tt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(L):[],Et=_t.split(":").map(L),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Bn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);bn=Bn.join(":")+"::"+se.join(":")}else bn=Vt.join(":");return Ze&&(bn+="%"+Ze),bn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function V(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},$e=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var Se=ne.match(D);if(Se){N?(ie.scheme=Se[1],ie.userinfo=Se[3],ie.host=Se[4],ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=Se[7],ie.fragment=Se[8],isNaN(ie.port)&&(ie.port=Se[5])):(ie.scheme=Se[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?Se[3]:void 0,ie.host=ne.indexOf("//")!==-1?Se[4]:void 0,ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=ne.indexOf("?")!==-1?Se[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?Se[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Se[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,$e),$e)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Ze=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Ze&&Ze.unicodeSupport)X(ie,$e);else{if(ie.host&&(te.domainHost||Ze&&Ze.domainHost))try{ie.host=z(ie.host.replace($e.PCT_ENCODED,J).toLowerCase())}catch(tt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+tt}X(ie,b)}Ze&&Ze.parse&&Ze.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,$e=[];return ne.userinfo!==void 0&&($e.push(ne.userinfo),$e.push("@")),ne.host!==void 0&&$e.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Ze,tt){return"["+Ze+(tt?"%25"+tt:"")+"]"})),typeof ne.port=="number"&&($e.push(":"),$e.push(ne.port.toString(10))),$e.length?$e.join(""):void 0}var re=/^\.\.?\//,le=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(le))ne=ne.replace(le,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(fe);if(!ie)throw new Error("Unexpected dot segment condition");var $e=ie[0];ne=ne.slice($e.length),te.push($e)}return te.join("")}function he(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,$e=[],Se=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(Se&&Se.serialize&&Se.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||Se&&Se.domainHost)try{ne.host=te.iri?Y(ne.host):z(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Ze=Z(ne,te);if(Ze!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Ze),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Ze===void 0&&(tt=tt.replace(/^\/\//,"/%2F")),$e.push(tt)}return ne.query!==void 0&&($e.push("?"),$e.push(ne.query)),ne.fragment!==void 0&&($e.push("#"),$e.push(ne.fragment)),$e.join("")}function _e(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=arguments[3],Se={};return $e||(ne=V(he(ne,ie),ie),te=V(he(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(Se.scheme=te.scheme,Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.path?(te.path.charAt(0)==="/"?Se.path=ge(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?Se.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:Se.path=te.path:Se.path="/"+te.path,Se.path=ge(Se.path)),Se.query=te.query):(Se.path=ne.path,te.query!==void 0?Se.query=te.query:Se.query=ne.query),Se.userinfo=ne.userinfo,Se.host=ne.host,Se.port=ne.port),Se.scheme=ne.scheme),Se.fragment=te.fragment,Se}function ve(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Be={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},ze={},He="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+u("%"+be+be)),Ce=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),qe=new RegExp(He,"g"),rt=new RegExp(we,"g"),Ae=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ce),"g"),Le=new RegExp(c("[^]",He,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Fe=Le;function Pe(ne){var te=J(ne);return te.match(qe)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,$e=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var Se=!1,Ze={},tt=ie.query.split("&"),ft=0,_t=tt.length;ft<_t;++ft){var vt=tt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}function D5e(e,t,n){var r=this,o=S.useRef(null),a=S.useRef(0),i=S.useRef(null),s=S.useRef([]),l=S.useRef(),c=S.useRef(),u=S.useRef(e),f=S.useRef(!0);S.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;S.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=S.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},$=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w($,t),m?y(o.current):c.current;if(v)return w($,t),y(o.current)}return i.current||w($,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function M5e(e,t){return e===t}function wM(e){return typeof e=="function"?function(){return e}:e}function I5e(e,t,n){var r,o,a=n&&n.equalityFn||M5e,i=(r=S.useState(wM(e)),o=r[1],[r[0],S.useCallback(function(f){return o(wM(f))},[])]),s=i[0],l=i[1],c=D5e(S.useCallback(function(f){return l(f)},[l]),t,n),u=S.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function A5e(e){const[t,n]=S.useState({config:null,input:null});S.useEffect(()=>{async function o(){n({config:window.CONFIG_SCHEMA?await Rx(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await Rx(window.INPUT_SCHEMA):null})}o()},[]);const[r]=I5e(e,500);return S.useEffect(()=>{r.defaults||fetch(o9(`/c/${W0.compressToEncodedURIComponent(JSON.stringify(r.data))}/input_schema`)).then(o=>o.json()).then(Rx).then(o=>n(a=>({...a,input:o}))).catch(()=>{})},[r]),t}/*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2022 Joachim Wester - * MIT licensed - */var N5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),j5e=Object.prototype.hasOwnProperty;function xC(e,t){return j5e.call(e,t)}function wC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ol(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $C(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!CC(m))throw new Qn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);CC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=F5e[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=yu[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Qn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Qn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&$C(e.value))throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new Qn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Qn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=s9([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function s9(e,t,n){try{if(!Array.isArray(e))throw new Qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)H0(Wo(t),Wo(e),n||!0);else{n=n||Bg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function rE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=wC(t),i=wC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(xC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?rE(u,f,n,r+"/"+Ol(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"replace",path:r+"/"+Ol(c),value:Wo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"remove",path:r+"/"+Ol(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function eje(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function $M(){return{data:"",event:"",id:"",retry:void 0}}var tje=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=_C);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=nje,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??oje;async function _(){var $;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await Z5e(E.body,X5e(Q5e(k=>{k?m[SM]=k:delete m[SM]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(E))!==null&&$!==void 0?$:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function oje(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(_C)))throw new Error(`Expected content-type to be ${_C}, Actual: ${t}`)}function aje(e,t){return H0(e,t,!0,!1).newDocument}function ije(e={}){const[t,n]=S.useState(null),[r,o]=S.useState(null),a=S.useRef(e.onStart);a.current=e.onStart;const i=S.useRef(e.onSuccess);i.current=e.onSuccess;const s=S.useRef(e.onError);s.current=e.onError;const l=S.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await rje(o9("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=aje(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=S.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const l9=S.createContext(null);function c9(e,t){const n=S.useContext(l9),r=S.useRef(t);r.current=t,S.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}const oE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),sje=de($d)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Ap=({children:e,...t})=>O.jsx(sje,{...t,children:e}),aE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),lje=de(Yj)(({theme:e})=>({color:e.palette.error.main})),cje=({errorMessages:e,id:t})=>O.jsx(hc,{id:t,title:e,children:O.jsx(lje,{badgeContent:e.split(` -`).length,children:O.jsx(P2,{color:"inherit"})})}),uje={paddingLeft:0,paddingRight:0},dje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(ll,{children:[O.jsx(Ap,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(cje,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Ap,{align:"right",style:uje,children:O.jsx(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large",sx:{p:1},children:O.jsx(aE,{className:"text-ls-black"})})})}):null]})}),_M={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},u9=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return d9(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},d9=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],fje=({numColumns:e,translations:t})=>O.jsx(ll,{children:O.jsx(Ap,{colSpan:e,children:O.jsx(gn,{align:"center",children:t.noDataMessage})})}),pje=M.memo(function({title:t}){return O.jsx($d,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),hje=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},EM=e=>({type:"Control",scope:e,label:!1}),mje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Ap,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:EM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ec,{schema:r,uischema:EM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(fr,{error:!c,children:!c&&a})]})}),vje=e=>{const t=pc(),n=hje(t,e),r=Mt(n.errors);return O.jsx(mje,{...n,isValid:r})},gje=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(ll,{hover:!0,children:[u9(vje,t,e,c,u),c?O.jsx(Ap,{style:l?_M.fixedCell:_M.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs(S.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(A0,{})})}),O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(I0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(oE,{className:"text-ls-black"})})})]})}):null]},e)},yje=M.memo(gje),bje=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(fje,{numColumns:d9(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:hd(e).map(m=>{const b=ir.compose(t,`${m}`);return O.jsx(yje,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class xje extends M.Component{constructor(){super(...arguments);Ud(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?u9(pje,o,r,u,f):void 0;return O.jsx(Pn,{xsUp:!c,children:O.jsxs(C6,{children:[O.jsxs(S6,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx(dje,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(ll,{children:[v,u?O.jsx($d,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx($6,{children:O.jsx(bje,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const wje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(h2,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(T0,{children:O.jsx(p2,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(P0,{children:[O.jsx(Uo,{onClick:o,color:"primary",children:l}),O.jsx(Uo,{onClick:r,color:"primary",children:s})]})]})}),Cje=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Pn,{xsUp:!l,children:[O.jsx(xje,{...e,openDeleteDialog:c}),O.jsx(wje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},$je=mn(11,dc(n_,s5,r_)),f9=My(Cje);function Sje(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var m9="!";function Rje(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function Dje(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Mje(e){return{cache:Oje(e.cacheSize),splitModifiers:Rje(e),..._je(e)}}var Ije=/\s+/;function Aje(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Ije).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=Dje(l).join(":"),v=c?b+m9:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Nje(){for(var e=arguments.length,t=new Array(e),n=0;n{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Ys(OM,"pointer-events-none select-none"),children:[e.value," "]})]})}const Xje=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},RM=pr(Ka(Xje));function Qje(e){try{return JSON.parse(e)}catch{return e}}function e6e(e){try{return JSON.stringify(e)}catch{return e}}const t6e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:typeof t=="object"?e6e(t):t??"",onChange:u=>l(s,u===""?void 0:Qje(u)),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},n6e=pr(Ka(t6e));function oo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function r6e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function y9(...e){return t=>e.forEach(n=>r6e(n,t))}function ns(...e){return S.useCallback(y9(...e),e)}function G0(e,t=[]){let n=[];function r(a,i){const s=S.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=S.useMemo(()=>b,Object.values(b));return S.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=S.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,o6e(o,...t)]}function o6e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const TC=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},a6e=ep["useId".toString()]||(()=>{});let i6e=0;function jv(e){const[t,n]=S.useState(a6e());return TC(()=>{e||n(r=>r??String(i6e++))},[e]),e||(t?`radix-${t}`:"")}function Qs(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ch({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=s6e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Qs(n),l=S.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function s6e({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=Qs(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Np=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(c6e);if(a){const i=a.props.children,s=o.map(l=>l===a?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return S.createElement(kC,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(kC,T({},r,{ref:t}),n)});Np.displayName="Slot";const kC=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...u6e(r,n.props),ref:t?y9(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});kC.displayName="SlotClone";const l6e=({children:e})=>S.createElement(S.Fragment,null,e);function c6e(e){return S.isValidElement(e)&&e.type===l6e}function u6e(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const d6e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ko=d6e.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Np:t;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function f6e(e,t){e&&nd.flushSync(()=>e.dispatchEvent(t))}function p6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const OC="dismissableLayer.update",h6e="dismissableLayer.pointerDownOutside",m6e="dismissableLayer.focusOutside";let DM;const v6e=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g6e=S.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=S.useContext(v6e),[f,p]=S.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=S.useState({}),v=ns(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,$=y6e(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=b6e(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return p6e(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(DM=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),MM(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=DM)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),MM())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener(OC,k),()=>document.removeEventListener(OC,k)},[]),S.createElement(Ko.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:oo(e.onFocusCapture,E.onFocusCapture),onBlurCapture:oo(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:oo(e.onPointerDownCapture,$.onPointerDownCapture)}))});function y6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){b9(h6e,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&b9(m6e,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function MM(){const e=new CustomEvent(OC);document.dispatchEvent(e)}function b9(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?f6e(o,a):o.dispatchEvent(a)}const Dx="focusScope.autoFocusOnMount",Mx="focusScope.autoFocusOnUnmount",IM={bubbles:!1,cancelable:!0},x6e=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=Qs(o),u=Qs(a),f=S.useRef(null),p=ns(t,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let y=function($){if(m.paused||!s)return;const E=$.target;s.contains(E)?f.current=E:Ps(f.current,{select:!0})},w=function($){if(m.paused||!s)return;const E=$.relatedTarget;E!==null&&(s.contains(E)||Ps(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&Ps(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),S.useEffect(()=>{if(s){NM.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Dx,IM);s.addEventListener(Dx,c),s.dispatchEvent(g),g.defaultPrevented||(w6e(E6e(x9(s)),{select:!0}),document.activeElement===v&&Ps(s))}return()=>{s.removeEventListener(Dx,c),setTimeout(()=>{const g=new CustomEvent(Mx,IM);s.addEventListener(Mx,u),s.dispatchEvent(g),g.defaultPrevented||Ps(v??document.body,{select:!0}),s.removeEventListener(Mx,u),NM.remove(m)},0)}}},[s,c,u,m]);const b=S.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=C6e(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ps(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ps(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(Ko.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function w6e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ps(r,{select:t}),document.activeElement!==n)return}function C6e(e){const t=x9(e),n=AM(t,e),r=AM(t.reverse(),e);return[n,r]}function x9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function AM(e,t){for(const n of e)if(!$6e(n,{upTo:t}))return n}function $6e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S6e(e){return e instanceof HTMLInputElement&&"select"in e}function Ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S6e(e)&&t&&e.select()}}const NM=_6e();function _6e(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jM(e,t),e.unshift(t)},remove(t){var n;e=jM(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function jM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function E6e(e){return e.filter(t=>t.tagName!=="A")}const P6e=S.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Cf.createPortal(S.createElement(Ko.div,T({},o,{ref:t})),r):null});function T6e(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const q0=e=>{const{present:t,children:n}=e,r=k6e(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=ns(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};q0.displayName="Presence";function k6e(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=T6e(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=nv(r.current);a.current=s==="mounted"?c:"none"},[s]),TC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=nv(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),TC(()=>{if(t){const c=f=>{const m=nv(r.current).includes(f.animationName);f.target===t&&m&&nd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=nv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function nv(e){return(e==null?void 0:e.animationName)||"none"}let Ix=0;function O6e(){S.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:LM()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:LM()),Ix++,()=>{Ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ix--}},[])}function LM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return q6e;var t=Y6e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J6e=S9(),Z6e=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(D6e,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Lv,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Fv,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Lv," .").concat(Lv,` { - right: 0 `).concat(r,`; - } - - .`).concat(Fv," .").concat(Fv,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(M6e,": ").concat(s,`px; - } -`)},X6e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return K6e(o)},[o]);return S.createElement(J6e,{styles:Z6e(a,!t,o,n?"":"!important")})},RC=!1;if(typeof window<"u")try{var rv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",rv,rv),window.removeEventListener("test",rv,rv)}catch{RC=!1}var Yc=RC?{passive:!1}:!1,Q6e=function(e){return e.tagName==="TEXTAREA"},_9=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q6e(e)&&n[t]==="visible")},eLe=function(e){return _9(e,"overflowY")},tLe=function(e){return _9(e,"overflowX")},zM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=E9(e,n);if(r){var o=P9(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nLe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rLe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E9=function(e,t){return e==="v"?eLe(t):tLe(t)},P9=function(e,t){return e==="v"?nLe(t):rLe(t)},oLe=function(e,t){return e==="h"&&t==="rtl"?-1:1},aLe=function(e,t,n,r,o){var a=oLe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=P9(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&E9(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},ov=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},iLe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sLe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},lLe=0,Kc=[];function cLe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(lLe++)[0],a=S.useState(function(){return S9()})[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=R6e([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=ov(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,$=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&$.type==="range")return!1;var k=zM(E,$);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=zM(E,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return aLe(I,x,v,I==="h"?w:C,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!Kc.length||Kc[Kc.length-1]!==a)){var g="deltaY"in x?BM(x):ov(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&iLe(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(VM).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=S.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=S.useCallback(function(v){n.current=ov(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,BM(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,ov(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Kc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Yc),document.addEventListener("touchmove",l,Yc),document.addEventListener("touchstart",u,Yc),function(){Kc=Kc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Yc),document.removeEventListener("touchmove",l,Yc),document.removeEventListener("touchstart",u,Yc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:sLe(o)}):null,m?S.createElement(X6e,{gapMode:"margin"}):null)}const uLe=z6e($9,cLe);var T9=S.forwardRef(function(e,t){return S.createElement(Y0,pi({},e,{ref:t,sideCar:uLe}))});T9.classNames=Y0.classNames;const dLe=T9;var fLe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jc=new WeakMap,av=new WeakMap,iv={},jx=0,k9=function(e){return e&&(e.host||k9(e.parentNode))},pLe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=k9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hLe=function(e,t,n,r){var o=pLe(t,Array.isArray(e)?e:[e]);iv[n]||(iv[n]=new WeakMap);var a=iv[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Jc.get(p)||0)+1,x=(a.get(p)||0)+1;Jc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&av.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),jx++,function(){i.forEach(function(f){var p=Jc.get(f)-1,m=a.get(f)-1;Jc.set(f,p),a.set(f,m),p||(av.has(f)||f.removeAttribute(r),av.delete(f)),m||f.removeAttribute(n)}),jx--,jx||(Jc=new WeakMap,Jc=new WeakMap,av=new WeakMap,iv={})}},mLe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||fLe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),hLe(r,o,n,"aria-hidden")):function(){return null}};const O9="Dialog",[R9,r8e]=G0(O9),[vLe,Ja]=R9(O9),gLe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=S.useRef(null),l=S.useRef(null),[c=!1,u]=Ch({prop:r,defaultProp:o,onChange:a});return S.createElement(vLe,{scope:t,triggerRef:s,contentRef:l,contentId:jv(),titleId:jv(),descriptionId:jv(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},yLe="DialogTrigger",bLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(yLe,n),a=ns(t,o.triggerRef);return S.createElement(Ko.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sE(o.open)},r,{ref:a,onClick:oo(e.onClick,o.onOpenToggle)}))}),D9="DialogPortal",[xLe,M9]=R9(D9,{forceMount:void 0}),wLe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(D9,t);return S.createElement(xLe,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(q0,{present:n||a.open},S.createElement(P6e,{asChild:!0,container:o},i))))},DC="DialogOverlay",CLe=S.forwardRef((e,t)=>{const n=M9(DC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(DC,e.__scopeDialog);return a.modal?S.createElement(q0,{present:r||a.open},S.createElement($Le,T({},o,{ref:t}))):null}),$Le=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(DC,n);return S.createElement(dLe,{as:Np,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(Ko.div,T({"data-state":sE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jp="DialogContent",SLe=S.forwardRef((e,t)=>{const n=M9(jp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(jp,e.__scopeDialog);return S.createElement(q0,{present:r||a.open},a.modal?S.createElement(_Le,T({},o,{ref:t})):S.createElement(ELe,T({},o,{ref:t})))}),_Le=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(null),o=ns(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return mLe(a)},[]),S.createElement(I9,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oo(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:oo(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oo(e.onFocusOutside,a=>a.preventDefault())}))}),ELe=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(I9,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),I9=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(jp,n),l=S.useRef(null),c=ns(t,l);return O6e(),S.createElement(S.Fragment,null,S.createElement(x6e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(g6e,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),PLe="DialogTitle",TLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(PLe,n);return S.createElement(Ko.h2,T({id:o.titleId},r,{ref:t}))}),kLe="DialogDescription",OLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(kLe,n);return S.createElement(Ko.p,T({id:o.descriptionId},r,{ref:t}))}),RLe="DialogClose",DLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(RLe,n);return S.createElement(Ko.button,T({type:"button"},r,{ref:t,onClick:oo(e.onClick,()=>o.onOpenChange(!1))}))});function sE(e){return e?"open":"closed"}const MLe=gLe,ILe=bLe,ALe=wLe,NLe=CLe,jLe=SLe,LLe=TLe,FLe=OLe,zLe=DLe;var A9=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lE=()=>M.useContext(A9);function BLe(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BLe(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var VLe=typeof window<"u"?S.useLayoutEffect:S.useEffect;function MC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function ULe(){return cE(/^Mac/)}function WLe(){return cE(/^iPhone/)}function HLe(){return cE(/^iPad/)||ULe()&&navigator.maxTouchPoints>1}function N9(){return WLe()||HLe()}function cE(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Lx=typeof document<"u"&&window.visualViewport;function UM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function j9(e){for(UM(e)&&(e=e.parentElement);e&&!UM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var GLe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),sv=0,Fx;function qLe(e={}){let{isDisabled:t}=e;VLe(()=>{if(!t)return sv++,sv===1&&(N9()?Fx=KLe():Fx=YLe()),()=>{sv--,sv===0&&Fx()}},[t])}function YLe(){return MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"))}function KLe(){let e,t=0,n=f=>{e=j9(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Ug(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Ug(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Lx&&(Lx.height{WM(p)}):Lx.addEventListener("resize",()=>WM(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=MC(vf(document,"touchstart",n,{passive:!1,capture:!0}),vf(document,"touchmove",r,{passive:!1,capture:!0}),vf(document,"touchend",o,{passive:!1,capture:!0}),vf(document,"focus",a,!0),vf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Vg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function WM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=j9(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Ug(e){return e instanceof HTMLInputElement&&!GLe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function JLe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ZLe(...e){return t=>e.forEach(n=>JLe(n,t))}function L9(...e){return S.useCallback(ZLe(...e),e)}var _s=null;function XLe({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(_s===null&&e){_s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(_s!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=_s.position,document.body.style.top=_s.top,document.body.style.left=_s.left,document.body.style.height=_s.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),_s=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var F9=new WeakMap;function Hn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&F9.set(e,r)}function lv(e,t){if(!e||!(e instanceof HTMLElement))return;let n=F9.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function cv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function QLe(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},z9=.4;function B9(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function e9e({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=B9(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function t9e({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=e9e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=B9(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function n9e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=t9e({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",$=0;_&&($=parseInt(w,10));let E=_?$:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Hn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,$=f===a-1,E=f===0;if($&&Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)z9&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Hn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,$=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs($);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var r9e=.25,o9e=500,HM=8,Sl=16,GM=26;function V9({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=r9e,scrollLockTimeout:c=o9e,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[$,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),B=M.useRef(null),z=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),H=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),L=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),V=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ge.length-1&&(z.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=n9e({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:B,onSnapPointChange:Z});qLe({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Be}=XLe({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-GM)/window.innerWidth}function ze(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,N9()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),L.current=Pe.clientY)}function He(Pe,Te){var it;let ct=Pe,gt=new Date,Ne=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?cv(D.current):null;if(z.current&>.getTime()-z.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.length>0)return!1;if(H.current&>.getTime()-H.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return H.current=new Date,!1;if(ct.scrollTop!==0)return H.current=new Date,!1}ct=ct.parentNode}return!0}function be(Pe){if(R){let Te=L.current-Pe.clientY,it=Te>0;if(i&&le===0&&!u||!J.current&&!He(Pe.target,it))return;if(J.current=!0,Hn(D.current,{transition:"none"}),Hn(B.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=QLe(Te);Hn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Ne=ct/N.current,ne=ve(ct,it);ne!==null&&(Ne=ne);let te=1-Ne;if((_e||f&&le===f-1)&&(o==null||o(Pe,Ne),Hn(B.current,{opacity:`${te}`,transition:"none"},!0)),gt&&B.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Hn(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Hn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{rt(!1),Be()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Ug(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Ne)>60&&(K.current=!K.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(q.current=Ne,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-GM),b?D.current.style.height=`${ie-Math.max(Ne,0)}px`:D.current.style.height=`${Math.max($e,gt-te)}px`}else D.current.style.height=`${V.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Ne,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[le,i,ge]);function we(){D.current&&(x==null||x(),D.current&&(Hn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{lv(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function Ce(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=cv(D.current);Hn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Hn(Pe,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function qe(Pe){if(!R||!D.current)return;J.current&&Ug(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=cv(D.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>z9){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}M.useEffect(()=>{y&&(z.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Hn(document.body,{background:"black"},!0),Hn(Te,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(lv(Te,"overflow"),lv(Te,"transform"),lv(Te,"borderRadius"),Hn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-Sl)/window.innerWidth:1,it=Pe?-Sl:0;X.current&&window.clearTimeout(X.current),Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Hn(D.current,{transition:"none",transform:`translate3d(0, ${cv(D.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-Sl)/window.innerWidth,ct=it+Te*(1-it),gt=-Sl+Te*Sl;Hn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-Sl)/window.innerWidth:1,ct=Te?-Sl:0;Te&&Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(MLe,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(A9.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:B,scaleBackground:rt,onPress:ze,setVisible:E,onRelease:qe,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:K,modal:v,snapPointsOffset:ge}},n))}var U9=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lE(),c=L9(n,r),u=o&&o.length>0;return M.createElement(NLe,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});U9.displayName="Drawer.Overlay";var W9=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lE(),y=L9(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(jLe,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});W9.displayName="Drawer.Content";function a9e({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lE();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(V9,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var gf={Root:V9,NestedRoot:a9e,Content:W9,Overlay:U9,Trigger:ILe,Portal:ALe,Close:zLe,Title:LLe,Description:FLe};const H9=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),i9e=e=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),s9e=e=>S.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),l9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),zx=2e3;function IC(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(W0.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Bx(e){const[t,n]=S.useState(!1),r=S.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return S.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(l9e,{}):O.jsx(s9e,{})})}function c9e(e){const t=S.useMemo(()=>W0.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${IC(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` -from langserve import RemoteRunnable - -chain = RemoteRunnable("${r}") -chain.invoke({ ... }) -`,s=` -import { RemoteRunnable } from "langchain/runnables/remote"; - -const chain = new RemoteRunnable({ url: \`${a}\` }); -const result = await chain.invoke({ ... }); -`;return O.jsxs(gf.Root,{children:[O.jsx(gf.Trigger,{asChild:!0,children:e.children}),O.jsxs(gf.Portal,{children:[O.jsx(gf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(gf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.lengthS.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function d9e(e){return typeof e=="object"&&e!=null}function Wg(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(d9e(r))r=r[o];else return}return r}function K0(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function f9e(e){const t=e+"CollectionProvider",[n,r]=G0(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=ns(b,g.collectionRef);return M.createElement(Np,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=ns(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Np,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const p9e=S.createContext(void 0);function G9(e){const t=S.useContext(p9e);return e||t||"ltr"}const Vx="rovingFocusGroup.onEntryFocus",h9e={bubbles:!1,cancelable:!0},uE="RovingFocusGroup",[AC,q9,m9e]=f9e(uE),[v9e,Y9]=G0(uE,[m9e]),[g9e,y9e]=v9e(uE),b9e=S.forwardRef((e,t)=>S.createElement(AC.Provider,{scope:e.__scopeRovingFocusGroup},S.createElement(AC.Slot,{scope:e.__scopeRovingFocusGroup},S.createElement(x9e,T({},e,{ref:t}))))),x9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=S.useRef(null),p=ns(t,f),m=G9(a),[b=null,v]=Ch({prop:i,defaultProp:s,onChange:l}),[x,g]=S.useState(!1),y=Qs(c),w=q9(n),C=S.useRef(!1),[_,$]=S.useState(0);return S.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Vx,y),()=>E.removeEventListener(Vx,y)},[y]),S.createElement(g9e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:S.useCallback(E=>v(E),[v]),onItemShiftTab:S.useCallback(()=>g(!0),[]),onFocusableItemAdd:S.useCallback(()=>$(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>$(E=>E-1),[])},S.createElement(Ko.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:oo(e.onMouseDown,()=>{C.current=!0}),onFocus:oo(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(Vx,h9e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(z=>z.focusable),F=R.find(z=>z.active),U=R.find(z=>z.id===b),B=[F,U,...R].filter(Boolean).map(z=>z.ref.current);K9(B)}}C.current=!1}),onBlur:oo(e.onBlur,()=>g(!1))})))}),w9e="RovingFocusGroupItem",C9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=jv(),l=a||s,c=y9e(w9e,n),u=c.currentTabStopId===l,f=q9(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),S.createElement(AC.ItemSlot,{scope:n,id:l,focusable:r,active:o},S.createElement(Ko.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:oo(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:oo(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:oo(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=_9e(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?E9e(g,y+1):g.slice(y+1)}setTimeout(()=>K9(g))}})})))}),$9e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S9e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _9e(e,t,n){const r=S9e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $9e[r]}function K9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const P9e=b9e,T9e=C9e,k9e=S.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Ch({prop:n,onChange:o,defaultProp:r});return S.createElement(Ko.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:oo(e.onClick,()=>{e.disabled||s(!i)})}))}),J0="ToggleGroup",[J9,o8e]=G0(J0,[Y9]),Z9=Y9(),O9e=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(R9e,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(D9e,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${J0}\``)}),[X9,Q9]=J9(J0),R9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ch({prop:n,defaultProp:r,onChange:o});return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(e8,T({},a,{ref:t})))}),D9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Ch({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(e8,T({},a,{ref:t})))}),[M9e,I9e]=J9(J0),e8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Z9(n),u=G9(i),f={role:"group",dir:u,...l};return M.createElement(M9e,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(P9e,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Ko.div,T({},f,{ref:t}))):M.createElement(Ko.div,T({},f,{ref:t})))}),NC="ToggleGroupItem",A9e=M.forwardRef((e,t)=>{const n=Q9(NC,e.__scopeToggleGroup),r=I9e(NC,e.__scopeToggleGroup),o=Z9(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(T9e,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(qM,T({},s,{ref:t}))):M.createElement(qM,T({},s,{ref:t}))}),qM=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Q9(NC,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(k9e,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),N9e=O9e,YM=A9e,j9e=mn(12,Cn(Ga,qr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function KM(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function JM(e,t){return typeof e=="string"?[{content:e,type:t}]:KM(e)?[e]:Array.isArray(e)&&e.every(KM)?e:null}function ZM(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const L9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??""),i=JM(o,"human"),s=JM(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=ir.compose(e.path,`${r}`),a=n.type??"chat",i=ZM((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(ir.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(N9e,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(ir.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(ir.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(YM,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(u9e,{className:"w-4 h-4"})}),O.jsx(YM,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(H9,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(oE,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(ir.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(ir.compose(o,"name"),p.target.value)}}),a==="ai"&&ZM((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(ir.compose(o,"additional_kwargs.function_call.name")),e.handleChange(ir.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(Xu,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(ir.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(Xu,{value:n.content,onChange:p=>{e.handleChange(ir.compose(o,"content"),p)}})]},r)})})]})}),F9e=mn(12,Cn(Ga,qr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!K0(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),z9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=ir.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(Xu,{value:n,onChange:i=>{e.handleChange(ir.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(Xu,{value:r,onChange:i=>{e.handleChange(ir.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(oE,{className:"w-4 h-4"})})]},o)})})]})}),B9e=mn(12,Cn(Ga,qr(e=>K0(e)?e.extra.widget.type==="base64file":!1))),V9e=lo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),U9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function t8(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function W9e(e){const[t,n]=S.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(U9e,{className:Ys("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:br.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:t8(a.final_output)??"..."})]},a.id))})]})}class Hg{constructor(t){Ud(this,"content");Ud(this,"name");Ud(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Hg({content:this.content+t.content,additional_kwargs:Hg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function H9e(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function G9e(e){return e.length>0&&e.every(t=>H9e(t))}function q9e(e){var t;if(G9e(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Hg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(t8).join("")||"..."}const Y9e=z5(e=>{const t=Dy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(Po,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:jC,cells:LC})}),K9e=mn(3,JN);br.extend(L4e);br.extend(N4e);const J9e=mn(2,Cn(Sn("Control"),qa("object"),qr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),Z9e=mn(1,Cn(Sn("Control"),qa("object"))),X9e=mn(1,Cn(Sn("Control"))),jC=[...O5e,{tester:J9e,renderer:j3e},{tester:i3e,renderer:s3e},{tester:F3e,renderer:z3e},{tester:K9e,renderer:Y9e},{tester:$je,renderer:f9},{tester:Z9e,renderer:e9},{tester:j9e,renderer:L9e},{tester:F9e,renderer:z9e},{tester:B9e,renderer:V9e}],Q9e=mn(1,(e,t)=>t.type==="array"),LC=[{tester:fNe,cell:pNe},{tester:mNe,cell:vNe},{tester:yNe,cell:bNe},{tester:wNe,cell:CNe},{tester:_Ne,cell:ENe},{tester:kNe,cell:ONe},{tester:MNe,cell:INe},{tester:LNe,cell:RM},{tester:NNe,cell:RM},{tester:BNe,cell:VNe},{tester:Q9e,cell:f9},{tester:X9e,cell:n6e}];function e8e(){var v,x,g,y,w,C;const[e]=S.useState(()=>window.location.search.includes("embeded=true")),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[],defaults:!0}),[o,a]=S.useState({data:null,errors:[]}),i=A5e(n);S.useEffect(()=>{if(i.config){const _=IC(window.location.href);r({data:_.configFromUrl??t.current??Rm(i.config),errors:[],defaults:!0}),a({data:Rm(i.input),errors:[]})}},[i.config]);const s=S.useRef({onStart:[],onSuccess:[],onError:[]}),{startStream:l,stopStream:c,latest:u}=ije({onStart(..._){for(const $ of s.current.onStart)$(..._)},onSuccess(..._){for(const $ of s.current.onSuccess)$(..._)},onError(..._){for(const $ of s.current.onError)$(..._)}});S.useEffect(()=>{var _;(_=window.parent)==null||_.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function _($){if($.source===window.parent){const E=$.data;if(typeof E=="object"&&E!=null)switch(E.type){case"update":{const k=E.value;if(Object.keys(k.config).length>0){t.current=k.config,r({data:k.config,errors:[],defaults:!1});break}}}}}return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[]);const f=S.useMemo(()=>i.input?JSON.stringify(Rm(i.input))!==JSON.stringify(o.data):!1,[i.input,o.data]);function p(){var _,$;!c&&((_=o.errors)!=null&&_.length||($=n.errors)!=null&&$.length)||(c?c():l(o.data,n.data))}const m=S.useRef(null);m.current=p,S.useEffect(()=>{window.addEventListener("keydown",_=>{var $;_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),($=m.current)==null||$.call(m))})},[]);const b=!c&&(!!((v=o.errors)!=null&&v.length)||!!((x=n.errors)!=null&&x.length));return!i.config||!i.input?O.jsx(O.Fragment,{}):O.jsx(l9.Provider,{value:s,children:O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),Object.keys(i.config).length>0&&O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(wR,{schema:i.config,data:n.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>_?r({data:_,errors:$,defaults:!1}):void 0}),!!((g=n.errors)!=null&&g.length)&&n.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(y=n.errors)==null?void 0:y.map((_,$)=>O.jsx("li",{children:_.message},$))})]})})]})]}),!e&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),f&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>a({data:Rm(i.input),errors:[]}),children:"Reset"})]}),O.jsx(wR,{schema:i.input,data:o.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>a({data:_,errors:$})}),!!((w=o.errors)!=null&&w.length)&&o.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(C=o.errors)==null?void 0:C.map((_,$)=>O.jsx("li",{children:_.message},$))})]})]}),u&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(q9e,{streamed:u.streamed_output})}),O.jsx(W9e,{latest:u})]})]}),O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),e?O.jsxs(O.Fragment,{children:[O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",onClick:()=>{var _;return(_=window.parent)==null?void 0:_.postMessage({type:"close"},"*")},children:"Cancel"}),O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:opacity-50 transition-colors",onClick:()=>{var k;const _=W0.compressToEncodedURIComponent(JSON.stringify(n.data)),E=`${IC(window.location.href).basePath}/c/${_}`;(k=window.parent)==null||k.postMessage({type:"apply",value:{targetUrl:E,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(c9e,{config:n.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(z4e,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx("button",{type:"button",className:Ys("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",b?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:p,disabled:b,children:c?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(F4e,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})})})}Ux.createRoot(document.getElementById("root")).render(O.jsx(e8e,{})); diff --git a/langserve/playground/dist/assets/index-849f2582.js b/langserve/playground/dist/assets/index-849f2582.js new file mode 100644 index 00000000..9fbde321 --- /dev/null +++ b/langserve/playground/dist/assets/index-849f2582.js @@ -0,0 +1,255 @@ +var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jd=(e,t,n)=>(q7(e,typeof t!="symbol"?t+"":t,n),n);function Y7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var CI={exports:{}},ay={},$I={exports:{}},an={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yp=Symbol.for("react.element"),J7=Symbol.for("react.portal"),Z7=Symbol.for("react.fragment"),X7=Symbol.for("react.strict_mode"),Q7=Symbol.for("react.profiler"),ez=Symbol.for("react.provider"),tz=Symbol.for("react.context"),nz=Symbol.for("react.forward_ref"),rz=Symbol.for("react.suspense"),oz=Symbol.for("react.memo"),az=Symbol.for("react.lazy"),OT=Symbol.iterator;function iz(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var SI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_I=Object.assign,EI={};function id(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}id.prototype.isReactComponent={};id.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PI(){}PI.prototype=id.prototype;function n$(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}var r$=n$.prototype=new PI;r$.constructor=n$;_I(r$,id.prototype);r$.isPureReactComponent=!0;var RT=Array.isArray,TI=Object.prototype.hasOwnProperty,o$={current:null},kI={key:!0,ref:!0,__self:!0,__source:!0};function OI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)TI.call(t,r)&&!kI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=W[j];if(0>>1;jo(N,X))Bo(Z,N)?(W[j]=Z,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(Z,X))W[j]=Z,W[B]=X,j=B;else break e}}return J}function o(W,J){var X=W.sortIndex-J.sortIndex;return X!==0?X:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=W)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-W)}}function _(W,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var X=p;p=J;try{return W.apply(this,arguments)}finally{p=X}}}})(II);MI.exports=II;var gz=MI.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var AI=$,Ko=gz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aw=Object.prototype.hasOwnProperty,yz=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,MT={},IT={};function bz(e){return aw.call(IT,e)?!0:aw.call(MT,e)?!1:yz.test(e)?IT[e]=!0:(MT[e]=!0,!1)}function xz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wz(e,t,n,r){if(t===null||typeof t>"u"||xz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jr[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jr[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jr[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jr[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jr[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jr[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jr[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jr[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jr[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var i$=/[\-:]([a-z])/g;function s$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!1,!1)});jr.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!0,!0)});function l$(e,t,n,r){var o=jr.hasOwnProperty(t)?jr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{vb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Cz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=gb(e.type,!1),e;case 11:return e=gb(e.type.render,!1),e;case 1:return e=gb(e.type,!0),e;default:return""}}function cw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case iw:return"Profiler";case c$:return"StrictMode";case sw:return"Suspense";case lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case LI:return(e.displayName||"Context")+".Consumer";case jI:return(e._context.displayName||"Context")+".Provider";case u$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d$:return t=e.displayName||null,t!==null?t:cw(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return cw(e(t))}catch{}}return null}function $z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cw(t);case 8:return t===c$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function el(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sz(e){var t=zI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Em(e){e._valueTracker||(e._valueTracker=Sz(e))}function VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function NT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=el(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function BI(e,t){t=t.checked,t!=null&&l$(e,"checked",t,!1)}function dw(e,t){BI(e,t);var n=el(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fw(e,t.type,n):t.hasOwnProperty("defaultValue")&&fw(e,t.type,el(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fw(e,t,n){(t!=="number"||Zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function up(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_z=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){_z.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function GI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function qI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=GI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ez=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mw(e,t){if(t){if(Ez[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gw=null;function f$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yw=null,Eu=null,Pu=null;function zT(e){if(e=Zp(e)){if(typeof yw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=uy(t),yw(e.stateNode,e.type,t))}}function YI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function KI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,zT(e),t)for(e=0;e>>=0,e===0?32:31-(jz(e)/Lz|0)|0}var Tm=64,km=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Kp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function Bz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),KT=String.fromCharCode(32),JT=!1;function mA(e,t){switch(e){case"keyup":return vV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function yV(e,t){switch(e){case"compositionend":return vA(t);case"keypress":return t.which!==32?null:(JT=!0,KT);case"textInput":return e=t.data,e===KT&&JT?null:e;default:return null}}function bV(e,t){if(du)return e==="compositionend"||!x$&&mA(e,t)?(e=pA(),Sv=g$=Ls=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ek(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wA(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zv(e.document)}return t}function w$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TV(e){var t=wA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&w$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=tk(n,a);var i=tk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Sw=null,Vf=null,_w=!1;function nk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_w||fu==null||fu!==Zv(r)||(r=fu,"selectionStart"in r&&w$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&vp(Vf,r)||(Vf=r,r=og(Sw,"onSelect"),0mu||(e.current=Rw[mu],Rw[mu]=null,mu--)}function Dn(e,t){mu++,Rw[mu]=e.current,e.current=t}var tl={},qr=sl(tl),Co=sl(!1),Jl=tl;function zu(e,t){var n=e.type.contextTypes;if(!n)return tl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function ig(){Ln(Co),Ln(qr)}function ck(e,t,n){if(qr.current!==tl)throw Error(at(168));Dn(qr,t),Dn(Co,n)}function OA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,$z(e)||"Unknown",o));return Kn({},n,r)}function sg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tl,Jl=qr.current,Dn(qr,e),Dn(Co,Co.current),!0}function uk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=OA(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(qr),Dn(qr,e)):Ln(Co),Dn(Co,n)}var Wi=null,dy=!1,Rb=!1;function RA(e){Wi===null?Wi=[e]:Wi.push(e)}function zV(e){dy=!0,RA(e)}function ll(){if(!Rb&&Wi!==null){Rb=!0;var e=0,t=Cn;try{var n=Wi;for(Cn=1;e>=i,o-=i,qi=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R,E=I}if(k===w.length)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(R.done)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return zn&&Rl(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return e&&E.forEach(function(U){return t(g,U)}),zn&&Rl(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _m:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&gk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Dv(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Fb(w,g.mode,C),y.return=g,g=y}return i(g);case Ms:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Zd(w))return v(g,y,w,C);Nm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Lb(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=FA(!0),zA=FA(!1),Xp={},yi=sl(Xp),xp=sl(Xp),wp=sl(Xp);function Bl(e){if(e===Xp)throw Error(at(174));return e}function O$(e,t){switch(Dn(wp,t),Dn(xp,e),Dn(yi,Xp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hw(t,e)}Ln(yi),Dn(yi,t)}function Uu(){Ln(yi),Ln(xp),Ln(wp)}function VA(e){Bl(wp.current);var t=Bl(yi.current),n=hw(t,e.type);t!==n&&(Dn(xp,e),Dn(yi,n))}function R$(e){xp.current===e&&(Ln(yi),Ln(xp))}var qn=sl(0);function pg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Db=[];function D$(){for(var e=0;en?n:4,e(!0);var r=Mb.transition;Mb.transition={};try{e(!1),t()}finally{Cn=n,Mb.transition=r}}function r3(){return wa().memoizedState}function WV(e,t,n){var r=Zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o3(e))a3(t,n);else if(n=AA(e,t,n,r),n!==null){var o=oo();Ha(n,e,r,o),i3(n,t,r)}}function HV(e,t,n){var r=Zs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o3(e))a3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,qa(s,i)){var l=t.interleaved;l===null?(o.next=o,T$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=AA(e,t,o,r),n!==null&&(o=oo(),Ha(n,e,r,o),i3(n,t,r))}}function o3(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function a3(e,t){Bf=hg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h$(e,n)}}var mg={readContext:xa,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},GV={readContext:xa,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tv(4194308,4,XA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tv(4,2,e,t)},useMemo:function(e,t){var n=si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=WV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:yk,useDebugValue:j$,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=yk(!1),t=e[0];return e=UV.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=si();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),kr===null)throw Error(at(349));Xl&30||WA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,bk(GA.bind(null,r,a,e),[e]),r.flags|=2048,Sp(9,HA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=si(),t=kr.identifierPrefix;if(zn){var n=Yi,r=qi;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[di]=t,e[bp]=r,m3(e,t,!1,!1),t.stateNode=e;e:{switch(i=vw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=pg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Vr(t),null}else 2*lr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=lr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return U$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function eB(e,t){switch($$(t),t.tag){case 1:return $o(t.type)&&ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(qr),D$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return P$(t.type._context),null;case 22:case 23:return U$(),null;case 24:return null;default:return null}}var Lm=!1,Hr=!1,tB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function Uw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Tk=!1;function nB(e,t){if(Ew=ng,e=wA(),w$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pw={focusedElem:e,selectionRange:n},ng=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Tk,Tk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Uw(t,n,a)}o=o.next}while(o!==r)}}function hy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ww(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y3(e){var t=e.alternate;t!==null&&(e.alternate=null,y3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[di],delete t[bp],delete t[Ow],delete t[LV],delete t[FV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b3(e){return e.tag===5||e.tag===3||e.tag===4}function kk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ag));else if(r!==4&&(e=e.child,e!==null))for(Hw(e,t,n),e=e.sibling;e!==null;)Hw(e,t,n),e=e.sibling}function Gw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gw(e,t,n),e=e.sibling;e!==null;)Gw(e,t,n),e=e.sibling}var Mr=null,Na=!1;function _s(e,t,n){for(n=n.child;n!==null;)x3(e,t,n),n=n.sibling}function x3(e,t,n){if(gi&&typeof gi.onCommitFiberUnmount=="function")try{gi.onCommitFiberUnmount(iy,n)}catch{}switch(n.tag){case 5:Hr||bu(n,t);case 6:var r=Mr,o=Na;Mr=null,_s(e,t,n),Mr=r,Na=o,Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mr.removeChild(n.stateNode));break;case 18:Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?Ob(e.parentNode,n):e.nodeType===1&&Ob(e,n),hp(e)):Ob(Mr,n.stateNode));break;case 4:r=Mr,o=Na,Mr=n.stateNode.containerInfo,Na=!0,_s(e,t,n),Mr=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Uw(n,t,i),o=o.next}while(o!==r)}_s(e,t,n);break;case 1:if(!Hr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:n.mode&1?(Hr=(r=Hr)||n.memoizedState!==null,_s(e,t,n),Hr=r):_s(e,t,n);break;default:_s(e,t,n)}}function Ok(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tB),t.forEach(function(r){var o=dB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=lr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oB(r/1960))-r,10e?16:e,Fs===null)var r=!1;else{if(e=Fs,Fs=null,yg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;llr()-V$?Hl(e,0):z$|=n),So(e,t)}function T3(e,t){t===0&&(e.mode&1?(t=km,km<<=1,!(km&130023424)&&(km=4194304)):t=1);var n=oo();e=rs(e,t),e!==null&&(Kp(e,t,n),So(e,n))}function uB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T3(e,n)}function dB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),T3(e,n)}var k3;k3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,XV(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&DA(t,cg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kv(e,t),e=t.pendingProps;var o=zu(t,qr.current);ku(t,n),o=I$(null,t,r,e,o,n);var a=A$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,sg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,k$(t),o.updater=fy,t.stateNode=o,o._reactInternals=t,Nw(t,r,e,n),t=Fw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&C$(t),no(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pB(r),e=Aa(r,e),o){case 0:t=Lw(null,t,r,e,n);break e;case 1:t=_k(null,t,r,e,n);break e;case 11:t=$k(null,t,r,e,n);break e;case 14:t=Sk(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Lw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 3:e:{if(f3(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,NA(e,t),fg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Ek(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Ek(e,t,r,n,o);break e}else for(Wo=Ys(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=zA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=os(e,t,n);break e}no(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Mw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Tw(r,o)?i=null:a!==null&&Tw(r,a)&&(t.flags|=32),d3(e,t),no(e,t,i,n),t.child;case 6:return e===null&&Mw(t),null;case 13:return p3(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):no(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),$k(e,t,r,o,n);case 7:return no(e,t,t.pendingProps,n),t.child;case 8:return no(e,t,t.pendingProps.children,n),t.child;case 12:return no(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(ug,r._currentValue),r._currentValue=i,a!==null)if(qa(a.value,i)){if(a.children===o.children&&!Co.current){t=os(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ji(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Iw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Iw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}no(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,no(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Sk(e,t,r,o,n);case 15:return c3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),kv(e,t),t.tag=1,$o(r)?(e=!0,sg(t)):e=!1,ku(t,n),LA(t,r,o),Nw(t,r,o,n),Fw(null,t,r,!0,e,n);case 19:return h3(e,t,n);case 22:return u3(e,t,n)}throw Error(at(156,t.tag))};function O3(e,t){return nA(e,t)}function fB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new fB(e,t,n,r)}function H$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pB(e){if(typeof e=="function")return H$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===u$)return 11;if(e===d$)return 14}return 2}function Xs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")H$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case c$:i=8,o|=8;break;case iw:return e=va(12,n,t,o|2),e.elementType=iw,e.lanes=a,e;case sw:return e=va(13,n,t,o),e.elementType=sw,e.lanes=a,e;case lw:return e=va(19,n,t,o),e.elementType=lw,e.lanes=a,e;case FI:return vy(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jI:i=10;break e;case LI:i=9;break e;case u$:i=11;break e;case d$:i=14;break e;case Ms:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function vy(e,t,n,r){return e=va(22,e,r,t),e.elementType=FI,e.lanes=n,e.stateNode={isHidden:!1},e}function Lb(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Fb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bb(0),this.expirationTimes=bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G$(e,t,n,r,o,a,i,s,l){return e=new hB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},k$(a),e}function mB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I3)}catch(e){console.error(e)}}I3(),DI.exports=Xo;var cd=DI.exports;const Of=Vt(cd);var Lk=cd;ow.createRoot=Lk.createRoot,ow.hydrateRoot=Lk.hydrateRoot;const xB=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var J$={exports:{}};J$.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(J$);var Z$=J$.exports;function X$(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(Z$.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Q$(e){const{basePath:t}=X$(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const wB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:R(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,Z){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,Z){Z(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function R(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,Z,re){var ce=!0;function xe(me,ue){Z.push(ue),D(N,me,Z,re),Z.pop()}o.isFunction(re)&&(ce=re(N,B,Z)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,Z=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],Z.push(B))})),Z}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var Z,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,B)),K.filter(Z,B)&&(re=J(B),q[re]=Z),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function J(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,Z,re){var ce,xe,me=Promise.resolve(),ue=J(Z.subDocPath),se=k(Z.location),Ce=i.dirname(Z.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,Z),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(Z.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):Z.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],Z=[],re=new a.Graph,ce=k(K.location),xe=ce+J(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){Z.indexOf(se)===-1&&Z.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);Z.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+J(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return J(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[R]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[R]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Ri=Un&&Un.isDate,Qa=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ei=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function z2(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function F8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var z8=p1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),V8=p1({"&":"&","<":"<",">":">",'"':""","'":"'"});function B8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function g1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function V2(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function ms(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),vs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:vs.defaults(ut.Object(),Ke,vs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ti=Ke.Math,Mn=Ke.Object,y1=Ke.RegExp,H8=Ke.String,aa=Ke.TypeError,Nh=ht.prototype,G8=mr.prototype,Rc=Mn.prototype,jh=Ke["__core-js_shared__"],Lh=G8.toString,wn=Rc.hasOwnProperty,q8=0,B2=(qe=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Fh=Rc.toString,Y8=Lh.call(Mn),K8=ut._,J8=y1("^"+Lh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zh=Pn?Ke.Buffer:void 0,gs=Ke.Symbol,Vh=Ke.Uint8Array,U2=zh?zh.allocUnsafe:void 0,Bh=V2(Mn.getPrototypeOf,Mn),W2=Mn.create,H2=Rc.propertyIsEnumerable,Uh=Nh.splice,G2=gs?gs.isConcatSpreadable:void 0,Ad=gs?gs.iterator:void 0,bl=gs?gs.toStringTag:void 0,Wh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),Z8=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,X8=Ft&&Ft.now!==ut.Date.now&&Ft.now,Q8=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Hh=ti.ceil,Gh=ti.floor,b1=Mn.getOwnPropertySymbols,eF=zh?zh.isBuffer:void 0,q2=Ke.isFinite,tF=Nh.join,nF=V2(Mn.keys,Mn),vr=ti.max,Lr=ti.min,rF=Ft.now,oF=Ke.parseInt,Y2=ti.random,aF=Nh.reverse,x1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),w1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),qh=jd&&new jd,Mc={},iF=Sl(x1),sF=Sl(Nd),lF=Sl(w1),cF=Sl(Dc),uF=Sl(jd),Yh=gs?gs.prototype:void 0,Fd=Yh?Yh.valueOf:void 0,K2=Yh?Yh.toString:void 0;function ee(d){if(Zn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return JP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(W2)return W2(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Kh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Re=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Ze){var st=Ze.length,It=new Ze.constructor(st);return st&&typeof Ze[0]=="string"&&wn.call(Ze,"index")&&(It.index=Ze.index,It.input=Ze.input),It}(d),!be)return fo(d,de)}else{var ot=Fr(d),Ct=ot==v||ot==x;if(Cs(d))return CP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Re||Ct?{}:VP(d),!be)return Re?function(Ze,st){return ri(Ze,FP(Ze),st)}(d,function(Ze,st){return Ze&&ri(st,ho(st),Ze)}(de,d)):function(Ze,st){return ri(Ze,G1(Ze),st)}(d,X2(de,d))}else{if(!ve[ot])return H?d:{};de=function(Ze,st,It){var wt=Ze.constructor;switch(st){case I:return F1(Ze);case p:case m:return new wt(+Ze);case R:return function(jt,Xt){var Pt=Xt?F1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Ze,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return $P(Ze,It);case g:return new wt;case y:case S:return new wt(Ze);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Ze);case _:return new wt;case E:return At=Ze,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),hT(d)?d.forEach(function(Ze){de.add(sa(Ze,h,P,Ze,d,ae))}):fT(d)&&d.forEach(function(Ze,st){de.set(st,sa(Ze,h,P,st,d,ae))});var Rt=We?void 0:(Ge?Re?U1:B1:Re?ho:Pr)(d);return Zr(Rt||d,function(Ze,st){Rt&&(Ze=d[st=Ze]),zd(de,st,sa(Ze,h,P,st,d,ae))}),de}function Q2(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function eP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Di,de=!0,be=d.length,Re=[],Ge=h.length;if(!be)return Re;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Mi.prototype.set=function(d,h){var P=this.__data__,A=Jh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ii.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Mi),string:new xl}},Ii.prototype.delete=function(d){var h=lm(this,d).delete(d);return this.size-=h?1:0,h},Ii.prototype.get=function(d){return lm(this,d).get(d)},Ii.prototype.has=function(d){return lm(this,d).has(d)},Ii.prototype.set=function(d,h){var P=lm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Mi,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Mi){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ii(A)}return P.set(d,h),this.size=P.size,this};var ys=PP(ni),tP=PP(_1,!0);function hF(d,h){var P=!0;return ys(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function Zh(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Rr(be,h-1,P,A,H):uo(H,be):A||(H[H.length]=be)}return H}var S1=TP(),rP=TP(!0);function ni(d,h){return d&&S1(d,h,Pr)}function _1(d,h){return d&&rP(d,h,Pr)}function Xh(d,h){return Ao(h,function(P){return Fi(d[P])})}function Ac(d,h){for(var P=0,A=(h=xs(h,d)).length;d!=null&&Ph}function mF(d,h){return d!=null&&wn.call(d,h)}function vF(d,h){return d!=null&&h in Mn(d)}function P1(d,h,P){for(var A=P?Pc:Di,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Re=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Re=Lr(We.length,Re),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Rt;var Ze=Re[Ge];return Rt*(Ze=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function pP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Uh.call(be,Re,1),Uh.call(d,Re,1);return d}function hP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;Li(H)?Uh.call(d,H,1):A1(d,H)}}return d}function D1(d,h){return d+Gh(Y2()*(h-d+1))}function M1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Gh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return J1(WP(d,h,mo),d+"")}function yF(d){return Z2(zc(d))}function bF(d,h){var P=zc(d);return cm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=xs(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:SF(d);if(Ge)return Ah(Ge);de=!1,H=Id,Re=new wl}else Re=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var wP=Z8||function(d){return ut.clearTimeout(d)};function CP(d,h){if(h)return d.slice();var P=d.length,A=U2?U2(P):new d.constructor(P);return d.copy(A),A}function F1(d){var h=new d.constructor(d.byteLength);return new Vh(h).set(new Vh(d)),h}function $P(d,h){var P=h?F1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function SP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Re=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Re&&!be&&!Ge||A&&de&&Re||!P&&Re||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&Qr(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function RP(d){return ji(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&sm(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Rebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ +/* [wrapped with `+ae+`] */ +`)}(A,function(H,ae){return Zr(c,function(de){var be="_."+de[0];ae&de[1]&&!Di(H,be)&&H.push(be)}),H.sort()}(function(H){var ae=H.match(De);return ae?ae[1].split(Be):[]}(A),P)))}function YP(d){var h=0,P=0;return function(){var A=rF(),H=16-(A-P);if(P=A,H>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function cm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,nT(d,P)});function rT(d){var h=ee(d);return h.__chain__=!0,h}function um(d,h){return h(d)}var GF=ji(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return $1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Li(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:um,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),qF=nm(function(d,h,P){wn.call(d,P)?++d[P]:Ai(d,P,1)}),YF=OP(ZP),KF=OP(XP);function oT(d,h){return(Ht(d)?Zr:ys)(d,Ot(h,3))}function aT(d,h){return(Ht(d)?Mh:tP)(d,Ot(h,3))}var JF=nm(function(d,h,P){wn.call(d,P)?d[P].push(h):Ai(d,P,[h])}),ZF=Zt(function(d,h,P){var A=-1,H=typeof h=="function",ae=po(d)?ht(d.length):[];return ys(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),XF=nm(function(d,h,P){Ai(d,P,h)});function dm(d,h){return(Ht(d)?kn:lP)(d,Ot(h,3))}var QF=nm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),e7=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Qr(d,h[0],h[1])?h=[]:P>2&&Qr(h[0],h[1],h[2])&&(h=[h[0]]),fP(d,Rr(h,1),[])}),fm=X8||function(){return ut.Date.now()};function iT(d,h,P){return h=P?void 0:h,Ni(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function sT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var Q1=Zt(function(d,h,P){var A=1;if(P.length){var H=ms(P,Lc(Q1));A|=32}return Ni(d,A,h,P,H)}),lT=Zt(function(d,h,P){var A=3;if(P.length){var H=ms(P,Lc(lT));A|=32}return Ni(h,A,d,P,H)});function cT(d,h,P){var A,H,ae,de,be,Re,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Rt(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Ze(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=fm();if(Ze(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Re);return ot?Lr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=fm(),jt=Ze(At);if(A=arguments,H=this,Re=At,jt){if(be===void 0)return Rt(Re);if(ot)return wP(be),be=qd(st,h),$t(Re)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&wP(be),Ge=0,A=Re=H=be=void 0},wt.flush=function(){return be===void 0?de:It(fm())},wt}var t7=Zt(function(d,h){return eP(d,1,h)}),n7=Zt(function(d,h,P){return eP(d,ua(h)||0,P)});function pm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(pm.Cache||Ii),P}function hm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}pm.Cache=Ii;var r7=$F(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Ot())):kn(Rr(h,1),No(Ot()))).length;return Zt(function(A){for(var H=-1,ae=Lr(A.length,P);++H=h}),_l=aP(function(){return arguments}())?aP:function(d){return Zn(d)&&wn.call(d,"callee")&&!H2.call(d,"callee")},Ht=ht.isArray,s7=Mo?No(Mo):function(d){return Zn(d)&&Xr(d)==I};function po(d){return d!=null&&mm(d.length)&&!Fi(d)}function ar(d){return Zn(d)&&po(d)}var Cs=eF||db,l7=Ri?No(Ri):function(d){return Zn(d)&&Xr(d)==m};function tb(d){if(!Zn(d))return!1;var h=Xr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Fi(d){if(!Hn(d))return!1;var h=Xr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function dT(d){return typeof d=="number"&&d==Gt(d)}function mm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Zn(d){return d!=null&&i(d)=="object"}var fT=Qa?No(Qa):function(d){return Zn(d)&&Fr(d)==g};function pT(d){return typeof d=="number"||Zn(d)&&Xr(d)==y}function Yd(d){if(!Zn(d)||Xr(d)!=w)return!1;var h=Bh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Lh.call(P)==Y8}var nb=Jr?No(Jr):function(d){return Zn(d)&&Xr(d)==C},hT=Io?No(Io):function(d){return Zn(d)&&Fr(d)==_};function vm(d){return typeof d=="string"||!Ht(d)&&Zn(d)&&Xr(d)==S}function Lo(d){return i(d)=="symbol"||Zn(d)&&Xr(d)==E}var Fc=ei?No(ei):function(d){return Zn(d)&&mm(d.length)&&!!ye[Xr(d)]},c7=im(O1),u7=im(function(d,h){return d<=h});function mT(d){if(!d)return[];if(po(d))return vm(d)?Ta(d):fo(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=Fr(d);return(h==g?g1:h==_?Ah:zc)(d)}function zi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=zi(d),P=h%1;return h==h?P?h-P:h:0}function vT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function gT(d){return ri(d,ho(d))}function gn(d){return d==null?"":jo(d)}var d7=Nc(function(d,h){if(Gd(h)||po(h))ri(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),yT=Nc(function(d,h){ri(h,ho(h),d)}),gm=Nc(function(d,h,P,A){ri(h,ho(h),d,A)}),f7=Nc(function(d,h,P,A){ri(h,Pr(h),d,A)}),p7=ji($1),h7=Zt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&Qr(h[0],h[1],H)&&(A=1);++P1),ae}),ri(d,U1(d),P),A&&(P=sa(P,7,_F));for(var H=h.length;H--;)A1(P,h[H]);return P}),w7=ji(function(d,h){return d==null?{}:function(P,A){return pP(P,A,function(H,ae){return ob(P,ae)})}(d,h)});function xT(d,h){if(d==null)return{};var P=kn(U1(d),function(A){return[A]});return h=Ot(h),pP(d,P,function(A,H){return h(A,H[0])})}var wT=AP(Pr),CT=AP(ho);function zc(d){return d==null?[]:v1(d,Pr(d))}var C7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?$T(h):h)});function $T(d){return ab(gn(d).toLowerCase())}function ST(d){return(d=gn(d))&&d.replace(Te,z8).replace(Bn,"")}var $7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),S7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),_7=kP("toLowerCase"),E7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),P7=jc(function(d,h,P){return d+(P?" ":"")+ab(h)}),T7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ab=kP("toUpperCase");function _T(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var ET=Zt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return tb(P)?P:new cn(P)}}),k7=ji(function(d,h){return Zr(h,function(P){P=oi(P),Ai(d,P,Q1(d[P],d))}),d});function ib(d){return function(){return d}}var O7=RP(),R7=RP(!0);function mo(d){return d}function sb(d){return sP(typeof d=="function"?d:sa(d,1))}var D7=Zt(function(d,h){return function(P){return Bd(P,d,h)}}),M7=Zt(function(d,h){return function(P){return Bd(d,P,h)}});function lb(d,h,P){var A=Pr(h),H=Xh(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=Xh(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Fi(d);return Zr(H,function(be){var Re=h[be];d[be]=Re,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=fo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Re.apply(d,uo([this.value()],arguments))})}),d}function cb(){}var I7=z1(kn),A7=z1(yl),N7=z1(d1);function PT(d){return q1(d)?f1(oi(d)):function(h){return function(P){return Ac(P,h)}}(d)}var j7=MP(),L7=MP(!0);function ub(){return[]}function db(){return!1}var F7=om(function(d,h){return d+h},0),z7=V1("ceil"),V7=om(function(d,h){return d/h},1),B7=V1("floor"),fb,U7=om(function(d,h){return d*h},1),W7=V1("round"),H7=om(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=iT,ee.assign=d7,ee.assignIn=yT,ee.assignInWith=gm,ee.assignWith=f7,ee.at=p7,ee.before=sT,ee.bind=Q1,ee.bindAll=k7,ee.bindKey=lT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=rT,ee.chunk=function(d,h,P){h=(P?Qr(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Hh(A/h));HGe?0:Ge+be),(Re=Re===void 0||Re>Ge?Ge:Gt(Re))<0&&(Re+=Ge),Re=be>Re?0:vT(Re);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!nb(h))&&!(h=jo(h))&&kc(d)?ws(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Zt(function(P){var A=P[h],H=ws(P,0,h);return A&&uo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),cT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=um,ee.toArray=mT,ee.toPairs=wT,ee.toPairsIn=CT,ee.toPath=function(d){return Ht(d)?kn(d,oi):Lo(d)?[d]:fo(KP(gn(d)))},ee.toPlainObject=gT,ee.transform=function(d,h,P){var A=Ht(d),H=A||Cs(d)||Fc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Fi(ae)?Ic(Bh(d)):{}}return(H?Zr:ni)(d,function(de,be,Re){return h(P,de,be,Re)}),P},ee.unary=function(d){return iT(d,1)},ee.union=jF,ee.unionBy=LF,ee.unionWith=FF,ee.uniq=function(d){return d&&d.length?bs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?bs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?bs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||A1(d,h)},ee.unzip=X1,ee.unzipWith=nT,ee.update=function(d,h,P){return d==null?d:yP(d,h,L1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:yP(d,h,L1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:v1(d,ho(d))},ee.without=zF,ee.words=_T,ee.wrap=function(d,h){return eb(L1(h),d)},ee.xor=VF,ee.xorBy=BF,ee.xorWith=UF,ee.zip=WF,ee.zipObject=function(d,h){return xP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return xP(d||[],h||[],Wd)},ee.zipWith=HF,ee.entries=wT,ee.entriesIn=CT,ee.extend=yT,ee.extendWith=gm,lb(ee,ee),ee.add=F7,ee.attempt=ET,ee.camelCase=C7,ee.capitalize=$T,ee.ceil=z7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||Q2(d,h,Pr(h))},ee.deburr=ST,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=V7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Oa,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,V8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:hF;return P&&Qr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=YF,ee.findIndex=ZP,ee.findKey=function(d,h){return A2(d,Ot(h,3),ni)},ee.findLast=KF,ee.findLastIndex=XP,ee.findLastKey=function(d,h){return A2(d,Ot(h,3),_1)},ee.floor=B7,ee.forEach=oT,ee.forEachRight=aT,ee.forIn=function(d,h){return d==null?d:S1(d,Ot(h,3),ho)},ee.forInRight=function(d,h){return d==null?d:rP(d,Ot(h,3),ho)},ee.forOwn=function(d,h){return d&&ni(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&_1(d,Ot(h,3))},ee.get=rb,ee.gt=a7,ee.gte=i7,ee.has=function(d,h){return d!=null&&zP(d,h,mF)},ee.hasIn=ob,ee.head=eT,ee.identity=mo,ee.includes=function(d,h,P,A){d=po(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),vm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=zi(h),P===void 0?(P=h,h=0):P=zi(P),function(A,H,ae){return A>=Lr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=hT,ee.isString=vm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Zn(d)&&Fr(d)==k},ee.isWeakSet=function(d){return Zn(d)&&Xr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":tF.call(d,h)},ee.kebabCase=$7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Lr(H,A-1)),h==h?function(ae,de,be){for(var Re=be+1;Re--;)if(ae[Re]===de)return Re;return Re}(d,h,H):Ih(d,N2,H,!0)},ee.lowerCase=S7,ee.lowerFirst=_7,ee.lt=c7,ee.lte=u7,ee.max=function(d){return d&&d.length?Zh(d,mo,E1):void 0},ee.maxBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),E1):void 0},ee.mean=function(d){return j2(d,mo)},ee.meanBy=function(d,h){return j2(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Zh(d,mo,O1):void 0},ee.minBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),O1):void 0},ee.stubArray=ub,ee.stubFalse=db,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=U7,ee.nth=function(d,h){return d&&d.length?dP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=K8),this},ee.noop=cb,ee.now=fm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return am(Gh(H),P)+d+am(Hh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=Y2();return Lr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return D1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?u1:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,ys)},ee.reduceRight=function(d,h,P){var A=Ht(d)?N8:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,tP)},ee.repeat=function(d,h,P){return h=(P?Qr(d,h,P):h===void 0)?1:Gt(h),M1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=xs(h,d)).length;for(H||(H=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=Lr(d,4294967295);d-=4294967295;for(var H=m1(A,h=Ot(h));++P=ae)return d;var be=P-Oc(A);if(be<1)return A;var Re=de?ws(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Re+A;if(de&&(be+=Re.length-be),nb(H)){if(d.slice(be).search(H)){var Ge,We=Re;for(H.global||(H=y1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Re=Re.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Re.lastIndexOf(H);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,W8):d},ee.uniqueId=function(d){var h=++q8;return gn(d)+h},ee.upperCase=T7,ee.upperFirst=ab,ee.each=oT,ee.eachRight=aT,ee.first=eT,lb(ee,(fb={},ni(ee,function(d,h){wn.call(ee.prototype,h)||(fb[h]=d)}),fb),{chain:!1}),ee.VERSION="4.17.15",Zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Zr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Lr(P,A.__takeCount__):A.__views__.push({size:Lr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Zr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Zr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Zr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(mo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(hm(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ni(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Re=de instanceof rn,Ge=be[0],We=Re||Ht(de),ot=function(It){var wt=H.apply(ee,uo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Re=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Ze=Re&&!$t;if(!ae&&We){de=Ze?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:um,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Rt&&Ze?d.apply(this,be):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Zr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Nh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),ni(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[rm(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=fo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=fo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=fo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,eo=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Kh;){var A=JP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:um,args:[Z1],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(Z1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return bP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=vs,(a=(function(){return vs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=vs)._=vs,yt._=vs):ut._=vs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,z,V){var Y,Q=1&F,W=2&F,J=4&F;if(U&&(Y=z?U(R,G,z,V):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var j=b(R),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(R),!Q)return W?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[j])return z?R:{};Y=x(R,j,Q)}}V||(V=new r);var q=V.get(R);if(q)return q;V.set(R,Y),S(R)?R.forEach(function(B){Y.add(I(B,F,U,B,R,V))}):C(R)&&R.forEach(function(B,Z){Y.set(Z,I(B,F,U,Z,R,V))});var D=J?W?m:p:W?keysIn:E,N=X?void 0:D(R);return o(N||R,function(B,Z){N&&(B=R[Z=B]),a(Y,Z,I(B,F,U,Z,R,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function R(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=R(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=J(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,J).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=Z(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=J(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var A3={exports:{}},N3={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gu=$;function CB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $B=typeof Object.is=="function"?Object.is:CB,SB=Gu.useState,_B=Gu.useEffect,EB=Gu.useLayoutEffect,PB=Gu.useDebugValue;function TB(e,t){var n=t(),r=SB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return EB(function(){o.value=n,o.getSnapshot=t,zb(o)&&a({inst:o})},[e,n,t]),_B(function(){return zb(o)&&a({inst:o}),e(function(){zb(o)&&a({inst:o})})},[e]),PB(n),n}function zb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$B(e,n)}catch{return!0}}function kB(e,t){return t()}var OB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kB:TB;N3.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:OB;A3.exports=N3;var RB=A3.exports;const zs=()=>{},yo=zs(),Vb=Object,pn=e=>e===yo,Ki=e=>typeof e=="function",nl=(e,t)=>({...e,...t}),DB=e=>Ki(e.then),Vm=new WeakMap;let MB=0;const Ep=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Vb(e)===e&&!r&&n!=RegExp){if(o=Vm.get(e),o)return o;if(o=++MB+"~",Vm.set(e,o),n==Array){for(o="@",a=0;awy&&typeof window.requestAnimationFrame!=eS,j3=(e,t)=>{const n=Hi.get(e);return[()=>!pn(t)&&e.get(t)||Bb,r=>{if(!pn(t)){const o=e.get(t);t in Bm||(Bm[t]=o),n[5](t,nl(o,r),o||Bb)}},n[6],()=>!pn(t)&&t in Bm?Bm[t]:!pn(t)&&e.get(t)||Bb]};let Xw=!0;const AB=()=>Xw,[Qw,eC]=wy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zs,zs],NB=()=>{const e=Zw&&document.visibilityState;return pn(e)||e!=="hidden"},jB=e=>(Zw&&document.addEventListener("visibilitychange",e),Qw("focus",e),()=>{Zw&&document.removeEventListener("visibilitychange",e),eC("focus",e)}),LB=e=>{const t=()=>{Xw=!0,e()},n=()=>{Xw=!1};return Qw("online",t),Qw("offline",n),()=>{eC("online",t),eC("offline",n)}},FB={isOnline:AB,isVisible:NB},zB={initFocus:jB,initReconnect:LB},Fk=!M.useId,Pp=!wy||"Deno"in window,VB=e=>IB()?window.requestAnimationFrame(e):setTimeout(e,1),Ub=Pp?$.useEffect:$.useLayoutEffect,Wb=typeof navigator<"u"&&navigator.connection,zk=!Pp&&Wb&&(["slow-2g","2g"].includes(Wb.effectiveType)||Wb.saveData),tS=e=>{if(Ki(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ep(e):"",[e,t]};let BB=0;const tC=()=>++BB,L3=0,F3=1,z3=2,UB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:UB,FOCUS_EVENT:L3,MUTATE_EVENT:z3,RECONNECT_EVENT:F3};async function V3(...e){const[t,n,r,o]=e,a=nl({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ki(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=tS(m);if(!b)return;const[v,x]=j3(t,b),[g,y,w,C]=Hi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](z3).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=tC();y[b]=[k,0];const I=!pn(l),R=v(),F=R.data,U=R._c,G=pn(U)?F:U;if(I&&(l=Ki(l)?l(G,F):l,x({data:l,_c:G})),Ki(S))try{S=S(G)}catch(z){E=z}if(S&&DB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:yo}));if(i&&!E)if(Ki(i)){const z=i(S,G);x({data:z,error:yo,_c:yo})}else x({data:S,error:yo,_c:yo});if(y[b][1]=tC(),Promise.resolve(_()).then(()=>{x({_c:yo})}),E){if(f)throw E;return}return S}}const Vk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},WB=(e,t)=>{if(!Hi.has(e)){const n=nl(zB,t),r={},o=V3.bind(yo,e);let a=zs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!Hi.has(e)&&(Hi.set(e,[r,{},{},{},o,l,s]),!Pp)){const u=n.initFocus(setTimeout.bind(yo,Vk.bind(yo,r,L3))),f=n.initReconnect(setTimeout.bind(yo,Vk.bind(yo,r,F3)));a=()=>{u&&u(),f&&f(),Hi.delete(e)}}};return c(),[e,o,c,a]}return[e,Hi.get(e)[4]]},HB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},GB=(e,t)=>Ep(e)==Ep(t),[B3,qB]=WB(new Map),YB=nl({onLoadingSlow:zs,onSuccess:zs,onError:zs,onErrorRetry:HB,onDiscarded:zs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:zk?5e3:3e3,compare:GB,isPaused:()=>!1,cache:B3,mutate:qB,fallback:{}},FB),KB=(e,t)=>{const n=nl(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=nl(o,i))}return n},JB=$.createContext({}),ZB="$inf$",U3=wy&&window.__SWR_DEVTOOLS_USE__,XB=U3?window.__SWR_DEVTOOLS_USE__:[],QB=()=>{U3&&(window.__SWR_DEVTOOLS_REACT__=M)},eU=e=>Ki(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],tU=()=>nl(YB,$.useContext(JB)),nU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=tS(t),[,,,s]=Hi.get(B3);if(i.startsWith(ZB))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),rU=XB.concat(nU),oU=e=>function(...n){const r=tU(),[o,a,i]=eU(n),s=KB(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(rU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},aU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};QB();const Bk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hb={dedupe:!0},iU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=Hi.get(r),[g,y]=tS(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[R,F,U,G]=j3(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=nl(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=R(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(R());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=RB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),J=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:J&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),Z=!!(g&&t&&J&&B),re=pn(W.isValidating)?Z:W.isValidating,ce=pn(W.isLoading)?Z:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>Fk?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(R().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(R().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),tC()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=yo;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=R().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ki(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>V3(r,_.current,...ue),[]);if(Ub(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Ub(()=>{if(!g)return;const ue=xe.bind(yo,Hb);let se=0;const fe=aU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Pp?ue():VB(ue)),()=>{C.current=!0,fe()}},[g]),Ub(()=>{let ue;function se(){const fe=Ki(c)?c(R().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!R().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Hb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!Fk&&Pp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Bk(se)}if(pn(q)){const se=xe(Hb);pn(N)||(se.status="fulfilled",se.value=!0),Bk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},W3=oU(iU),Cg=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Cy=e=>JSON.parse(JSON.stringify(e)),nS=(e,t)=>{e=Cy(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];Cg(r)&&Cg(o)?e[n]=nS(o,r):e[n]=r}return e},H3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return Cg(o)?Cy(o):o},sU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=sU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=H3(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:Cg(e.definitions)&&(t=nS(t,e.definitions)),ru(Cy(e),t)}function lU(){return W3(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await wg(window.CONFIG_SCHEMA);else{const t=await fetch(Q$("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await wg(n)}return e==null?null:{schema:e,defaults:$g(e)}})}function cU(e){return W3(["/input_schema",e],async([,t])=>{const n=t?`/c/${Z$.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await wg(window.INPUT_SCHEMA);else{const o=await fetch(Q$(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await wg(a)}return r==null?null:{schema:r,defaults:$g(r)}},{keepPreviousData:!0})}/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */var uU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dU=Object.prototype.hasOwnProperty;function nC(e,t){return dU.call(e,t)}function rC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function G3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function aC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!oC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);oC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=pU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&aC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=Y3([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Y3(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)$y(Ho(t),Ho(e),n||!0);else{n=n||_g;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function oS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=rC(t),i=rC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(nC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(dW,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Iv,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Av,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Iv," .").concat(Iv,` { + right: 0 `).concat(r,`; + } + + .`).concat(Av," .").concat(Av,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(fW,": ").concat(s,`px; + } +`)},RW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return TW(o)},[o]);return $.createElement(kW,{styles:OW(a,!t,o,n?"":"!important")})},dC=!1;if(typeof window<"u")try{var Wm=Object.defineProperty({},"passive",{get:function(){return dC=!0,!0}});window.addEventListener("test",Wm,Wm),window.removeEventListener("test",Wm,Wm)}catch{dC=!1}var Uc=dC?{passive:!1}:!1,DW=function(e){return e.tagName==="TEXTAREA"},oN=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DW(e)&&n[t]==="visible")},MW=function(e){return oN(e,"overflowY")},IW=function(e){return oN(e,"overflowX")},eO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=aN(e,n);if(r){var o=iN(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},AW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aN=function(e,t){return e==="v"?MW(t):IW(t)},iN=function(e,t){return e==="v"?AW(t):NW(t)},jW=function(e,t){return e==="h"&&t==="rtl"?-1:1},LW=function(e,t,n,r,o){var a=jW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=iN(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&aN(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Hm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tO=function(e){return[e.deltaX,e.deltaY]},nO=function(e){return e&&"current"in e?e.current:e},FW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zW=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},VW=0,Wc=[];function BW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(VW++)[0],a=$.useState(function(){return rN()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=uW([e.lockRef.current],(e.shards||[]).map(nO),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Hm(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=eO(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=eO(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return LW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?tO(x):Hm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&FW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(nO).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Hm(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,tO(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Hm(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:zW(o)}):null,m?$.createElement(RW,{gapMode:"margin"}):null)}const UW=bW(nN,BW);var sN=$.forwardRef(function(e,t){return $.createElement(Ey,fi({},e,{ref:t,sideCar:UW}))});sN.classNames=Ey.classNames;const WW=sN;var HW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Gm=new WeakMap,qm={},Zb=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},GW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lN(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qW=function(e,t,n,r){var o=GW(t,Array.isArray(e)?e:[e]);qm[n]||(qm[n]=new WeakMap);var a=qm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Gm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),Zb++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Gm.has(f)||f.removeAttribute(r),Gm.delete(f)),m||f.removeAttribute(n)}),Zb--,Zb||(Hc=new WeakMap,Hc=new WeakMap,Gm=new WeakMap,qm={})}},YW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||HW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qW(r,o,n,"aria-hidden")):function(){return null}};const cN="Dialog",[uN,BFe]=Sy(cN),[KW,Ja]=uN(cN),JW=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=Qp({prop:r,defaultProp:o,onChange:a});return $.createElement(KW,{scope:t,triggerRef:s,contentRef:l,contentId:Mv(),titleId:Mv(),descriptionId:Mv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},ZW="DialogTrigger",XW=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(ZW,n),a=as(t,o.triggerRef);return $.createElement(Jo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":aS(o.open)},r,{ref:a,onClick:ao(e.onClick,o.onOpenToggle)}))}),dN="DialogPortal",[QW,fN]=uN(dN,{forceMount:void 0}),eH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(dN,t);return $.createElement(QW,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(_y,{present:n||a.open},$.createElement(iW,{asChild:!0,container:o},i))))},fC="DialogOverlay",tH=$.forwardRef((e,t)=>{const n=fN(fC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(fC,e.__scopeDialog);return a.modal?$.createElement(_y,{present:r||a.open},$.createElement(nH,T({},o,{ref:t}))):null}),nH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(fC,n);return $.createElement(WW,{as:kp,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Jo.div,T({"data-state":aS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Op="DialogContent",rH=$.forwardRef((e,t)=>{const n=fN(Op,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(Op,e.__scopeDialog);return $.createElement(_y,{present:r||a.open},a.modal?$.createElement(oH,T({},o,{ref:t})):$.createElement(aH,T({},o,{ref:t})))}),oH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(null),o=as(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return YW(a)},[]),$.createElement(pN,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ao(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:ao(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:ao(e.onFocusOutside,a=>a.preventDefault())}))}),aH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(pN,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),pN=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(Op,n),l=$.useRef(null),c=as(t,l);return cW(),$.createElement($.Fragment,null,$.createElement(QU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(JU,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),iH="DialogTitle",sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(iH,n);return $.createElement(Jo.h2,T({id:o.titleId},r,{ref:t}))}),lH="DialogDescription",cH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(lH,n);return $.createElement(Jo.p,T({id:o.descriptionId},r,{ref:t}))}),uH="DialogClose",dH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(uH,n);return $.createElement(Jo.button,T({type:"button"},r,{ref:t,onClick:ao(e.onClick,()=>o.onOpenChange(!1))}))});function aS(e){return e?"open":"closed"}const fH=JW,pH=XW,hH=eH,mH=tH,vH=rH,gH=sH,yH=cH,bH=dH;var hN=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),iS=()=>M.useContext(hN);function xH(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}xH(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var wH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function pC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function CH(){return sS(/^Mac/)}function $H(){return sS(/^iPhone/)}function SH(){return sS(/^iPad/)||CH()&&navigator.maxTouchPoints>1}function mN(){return $H()||SH()}function sS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Xb=typeof document<"u"&&window.visualViewport;function rO(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vN(e){for(rO(e)&&(e=e.parentElement);e&&!rO(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var _H=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ym=0,Qb;function EH(e={}){let{isDisabled:t}=e;wH(()=>{if(!t)return Ym++,Ym===1&&(mN()?Qb=TH():Qb=PH()),()=>{Ym--,Ym===0&&Qb()}},[t])}function PH(){return pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"))}function TH(){let e,t=0,n=f=>{e=vN(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Pg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Pg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Xb&&(Xb.height{oO(p)}):Xb.addEventListener("resize",()=>oO(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=pC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Eg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oO(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vN(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Pg(e){return e instanceof HTMLInputElement&&!_H.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function kH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OH(...e){return t=>e.forEach(n=>kH(n,t))}function gN(...e){return $.useCallback(OH(...e),e)}var Es=null;function RH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Es===null&&e){Es={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Es!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Es.position,document.body.style.top=Es.top,document.body.style.left=Es.left,document.body.style.height=Es.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Es=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var yN=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&yN.set(e,r)}function Km(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yN.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Jm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function DH(e){return 8*(Math.log(e+1)-2)}var Rn={DURATION:.5,EASE:[.32,.72,0,1]},bN=.4;function xN(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=xN(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function IH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=MH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=xN(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function AH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=IH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)bN&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var NH=.25,jH=500,aO=8,El=16,iO=26;function wN({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=NH,scrollLockTimeout:c=jH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=AH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});EH({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Ve}=RH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-iO)/window.innerWidth}function De(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,mN()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Jm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(R){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!J.current&&!Be(Pe.target,it))return;if(J.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=DH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Pg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-iO),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Km(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Jm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`},!0)}function He(Pe){if(!R||!D.current)return;J.current&&Pg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=Jm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>bN){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})):(Km(Te,"overflow"),Km(Te,"transform"),Km(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Jm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(fH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(hN.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var CN=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=iS(),c=gN(n,r),u=o&&o.length>0;return M.createElement(mH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});CN.displayName="Drawer.Overlay";var $N=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=iS(),y=gN(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(vH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});$N.displayName="Drawer.Content";function LH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=iS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(wN,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:wN,NestedRoot:LH,Content:$N,Overlay:CN,Trigger:pH,Portal:hH,Close:bH,Title:gH,Description:yH};const SN=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),FH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),zH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),VH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ex=2e3;function tx(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(VH,{}):O.jsx(zH,{})})}function BH(e){const t=$.useMemo(()=>Z$.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${X$(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +from langserve import RemoteRunnable + +chain = RemoteRunnable("${r}") +chain.invoke({ ... }) +`,s=` +import { RemoteRunnable } from "langchain/runnables/remote"; + +const chain = new RemoteRunnable({ url: \`${a}\` }); +const result = await chain.invoke({ ... }); +`;return O.jsxs(lf.Root,{children:[O.jsx(lf.Trigger,{asChild:!0,children:e.children}),O.jsxs(lf.Portal,{children:[O.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},R=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return R(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,J=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=R(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return R(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function EN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var kN="!";function XH(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function QH(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function eG(e){return{cache:ZH(e.cacheSize),splitModifiers:XH(e),...GH(e)}}var tG=/\s+/;function nG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(tG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=QH(l).join(":"),v=c?b+kN:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function rG(){for(var e=arguments.length,t=new Array(e),n=0;nn(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(WH,{className:Zi("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:DN(a.final_output)??"..."})]},a.id))})]})}class Tg{constructor(t){Jd(this,"content");Jd(this,"name");Jd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Tg({content:this.content+t.content,additional_kwargs:Tg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function xG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function wG(e){return e.length>0&&e.every(t=>xG(t))}function CG(e){var t;if(wG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Tg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(DN).join("")||"..."}var $G=typeof xo=="object"&&xo&&xo.Object===Object&&xo,MN=$G,SG=MN,_G=typeof self=="object"&&self&&self.Object===Object&&self,EG=SG||_G||Function("return this")(),lo=EG,PG=lo,TG=PG.Symbol,ud=TG,uO=ud,IN=Object.prototype,kG=IN.hasOwnProperty,OG=IN.toString,df=uO?uO.toStringTag:void 0;function RG(e){var t=kG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=OG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var DG=RG,MG=Object.prototype,IG=MG.toString;function AG(e){return IG.call(e)}var NG=AG,dO=ud,jG=DG,LG=NG,FG="[object Null]",zG="[object Undefined]",fO=dO?dO.toStringTag:void 0;function VG(e){return e==null?e===void 0?zG:FG:fO&&fO in Object(e)?jG(e):LG(e)}var cl=VG;function BG(e){return e!=null&&typeof e=="object"}var ea=BG,UG=cl,WG=ea,HG="[object Symbol]";function GG(e){return typeof e=="symbol"||WG(e)&&UG(e)==HG}var dd=GG,qG=dd;function YG(e,t,n){for(var r=-1,o=e.length;++rt}var ZG=JG;function XG(){this.__data__=[],this.size=0}var QG=XG;function eq(e,t){return e===t||e!==e&&t!==t}var eh=eq,tq=eh;function nq(e,t){for(var n=e.length;n--;)if(tq(e[n][0],t))return n;return-1}var Py=nq,rq=Py,oq=Array.prototype,aq=oq.splice;function iq(e){var t=this.__data__,n=rq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aq.call(t,n,1),--this.size,!0}var sq=iq,lq=Py;function cq(e){var t=this.__data__,n=lq(t,e);return n<0?void 0:t[n][1]}var uq=cq,dq=Py;function fq(e){return dq(this.__data__,e)>-1}var pq=fq,hq=Py;function mq(e,t){var n=this.__data__,r=hq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var vq=mq,gq=QG,yq=sq,bq=uq,xq=pq,wq=vq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&zK?new NK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=FJ}var hS=zJ,VJ=cl,BJ=hS,UJ=ea,WJ="[object Arguments]",HJ="[object Array]",GJ="[object Boolean]",qJ="[object Date]",YJ="[object Error]",KJ="[object Function]",JJ="[object Map]",ZJ="[object Number]",XJ="[object Object]",QJ="[object RegExp]",eZ="[object Set]",tZ="[object String]",nZ="[object WeakMap]",rZ="[object ArrayBuffer]",oZ="[object DataView]",aZ="[object Float32Array]",iZ="[object Float64Array]",sZ="[object Int8Array]",lZ="[object Int16Array]",cZ="[object Int32Array]",uZ="[object Uint8Array]",dZ="[object Uint8ClampedArray]",fZ="[object Uint16Array]",pZ="[object Uint32Array]",Nn={};Nn[aZ]=Nn[iZ]=Nn[sZ]=Nn[lZ]=Nn[cZ]=Nn[uZ]=Nn[dZ]=Nn[fZ]=Nn[pZ]=!0;Nn[WJ]=Nn[HJ]=Nn[rZ]=Nn[GJ]=Nn[oZ]=Nn[qJ]=Nn[YJ]=Nn[KJ]=Nn[JJ]=Nn[ZJ]=Nn[XJ]=Nn[QJ]=Nn[eZ]=Nn[tZ]=Nn[nZ]=!1;function hZ(e){return UJ(e)&&BJ(e.length)&&!!Nn[VJ(e)]}var mZ=hZ;function vZ(e){return function(t){return e(t)}}var mS=vZ,Rg={exports:{}};Rg.exports;(function(e,t){var n=MN,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Rg,Rg.exports);var vS=Rg.exports,gZ=mZ,yZ=mS,wO=vS,CO=wO&&wO.isTypedArray,bZ=CO?yZ(CO):gZ,Dy=bZ,xZ=SJ,wZ=nh,CZ=cr,$Z=rh,SZ=oh,_Z=Dy,EZ=Object.prototype,PZ=EZ.hasOwnProperty;function TZ(e,t){var n=CZ(e),r=!n&&wZ(e),o=!n&&!r&&$Z(e),a=!n&&!r&&!o&&_Z(e),i=n||r||o||a,s=i?xZ(e.length,String):[],l=s.length;for(var c in e)(t||PZ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||SZ(c,l)))&&s.push(c);return s}var GN=TZ,kZ=Object.prototype;function OZ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kZ;return e===n}var My=OZ;function RZ(e,t){return function(n){return e(t(n))}}var qN=RZ,DZ=qN,MZ=DZ(Object.keys,Object),IZ=MZ,AZ=My,NZ=IZ,jZ=Object.prototype,LZ=jZ.hasOwnProperty;function FZ(e){if(!AZ(e))return NZ(e);var t=[];for(var n in Object(e))LZ.call(e,n)&&n!="constructor"&&t.push(n);return t}var gS=FZ,zZ=th,VZ=hS;function BZ(e){return e!=null&&VZ(e.length)&&!zZ(e)}var cs=BZ,UZ=GN,WZ=gS,HZ=cs;function GZ(e){return HZ(e)?UZ(e):WZ(e)}var Pi=GZ;const qZ=Vt(Pi);var YZ=BN,KZ=pS,JZ=Pi;function ZZ(e){return YZ(e,JZ,KZ)}var YN=ZZ,$O=YN,XZ=1,QZ=Object.prototype,eX=QZ.hasOwnProperty;function tX(e,t,n,r,o,a){var i=n&XZ,s=$O(e),l=s.length,c=$O(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:eX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:Gte(e,t,n)}var Yte=qte,Kte="\\ud800-\\udfff",Jte="\\u0300-\\u036f",Zte="\\ufe20-\\ufe2f",Xte="\\u20d0-\\u20ff",Qte=Jte+Zte+Xte,ene="\\ufe0e\\ufe0f",tne="\\u200d",nne=RegExp("["+tne+Kte+Qte+ene+"]");function rne(e){return nne.test(e)}var C4=rne;function one(e){return e.split("")}var ane=one,$4="\\ud800-\\udfff",ine="\\u0300-\\u036f",sne="\\ufe20-\\ufe2f",lne="\\u20d0-\\u20ff",cne=ine+sne+lne,une="\\ufe0e\\ufe0f",dne="["+$4+"]",wC="["+cne+"]",CC="\\ud83c[\\udffb-\\udfff]",fne="(?:"+wC+"|"+CC+")",S4="[^"+$4+"]",_4="(?:\\ud83c[\\udde6-\\uddff]){2}",E4="[\\ud800-\\udbff][\\udc00-\\udfff]",pne="\\u200d",P4=fne+"?",T4="["+une+"]?",hne="(?:"+pne+"(?:"+[S4,_4,E4].join("|")+")"+T4+P4+")*",mne=T4+P4+hne,vne="(?:"+[S4+wC+"?",wC,_4,E4,dne].join("|")+")",gne=RegExp(CC+"(?="+CC+")|"+vne+mne,"g");function yne(e){return e.match(gne)||[]}var bne=yne,xne=ane,wne=C4,Cne=bne;function $ne(e){return wne(e)?Cne(e):xne(e)}var Sne=$ne,_ne=Yte,Ene=C4,Pne=Sne,Tne=yd;function kne(e){return function(t){t=Tne(t);var n=Ene(t)?Pne(t):void 0,r=n?n[0]:t.charAt(0),o=n?_ne(n,1).join(""):t.slice(1);return r[e]()+o}}var One=kne,Rne=One,Dne=Rne("toUpperCase"),Mne=Dne,Ine=Wte,Ane=Mne,Nne=Ine(function(e,t,n){return e+(n?" ":"")+Ane(t)}),k4=Nne;const Ny=Vt(k4);var jne=pc,Lne=function(){try{var e=jne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O4=Lne,UO=O4;function Fne(e,t,n){t=="__proto__"&&UO?UO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CS=Fne,zne=CS,Vne=eh;function Bne(e,t,n){(n!==void 0&&!Vne(e[t],n)||n===void 0&&!(t in e))&&zne(e,t,n)}var R4=Bne;function Une(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Wne=Une,Hne=Wne,Gne=Hne(),D4=Gne,Dg={exports:{}};Dg.exports;(function(e,t){var n=lo,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Dg,Dg.exports);var M4=Dg.exports,WO=FN;function qne(e){var t=new e.constructor(e.byteLength);return new WO(t).set(new WO(e)),t}var $S=qne,Yne=$S;function Kne(e,t){var n=t?Yne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var I4=Kne;function Jne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=boe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V4=Coe,$oe=yoe,Soe=V4,_oe=Soe($oe),TS=_oe,Eoe=Iy,Poe=z4,Toe=TS;function koe(e,t){return Toe(Poe(e,t,Eoe),e+"")}var B4=koe,Ooe=eh,Roe=cs,Doe=oh,Moe=ta;function Ioe(e,t,n){if(!Moe(n))return!1;var r=typeof t;return(r=="number"?Roe(n)&&Doe(t,n.length):r=="string"&&t in n)?Ooe(n[t],e):!1}var U4=Ioe,Aoe=B4,Noe=U4;function joe(e){return Aoe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Noe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,ce&&ce<=Z?re:ix(re,Z)):re}},mixin:function(N){return function(B){var Z=this;if(!C(Z))return N(Z,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,Z.prototype[ce]])}),N(Z,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?Z.prototype[ce[0]]=xe:delete Z.prototype[ce[0]]}),Z}},nthArg:function(N){return function(B){var Z=B<0?1:k(B)+1;return x(N(B),Z)}},rearg:function(N){return function(B,Z){var re=Z?Z.length:0;return x(N(B,Z),re)}},runInContext:function(N){return function(B){return $C(e,N(B),r)}}};function U(N,B){if(i.cap){var Z=br.iterateeRearg[N];if(Z)return X(B,Z);var re=!o&&br.iterateeAry[N];if(re)return J(B,re)}return B}function G(N,B,Z){return l||i.curry&&Z>1?x(B,Z):B}function z(N,B,Z){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,Z):bse(B,ce)}return B}function V(N,B,Z){return i.rearg&&Z>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[Z]):B}function Y(N,B){B=I(B);for(var Z=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Yse,`{ +/* [wrapped with `+t+`] */ +`)}var Jse=Kse;function Zse(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var s5=sle,lle=kS,cle=s5,ule=1,dle=2,fle=8,ple=16,hle=32,mle=64,vle=128,gle=256,yle=512,ble=[["ary",vle],["bind",ule],["bindKey",dle],["curry",fle],["curryRight",ple],["flip",yle],["partial",hle],["partialRight",mle],["rearg",gle]];function xle(e,t){return lle(ble,function(n){var r="_."+n[0];t&n[1]&&!cle(e,r)&&e.push(r)}),e.sort()}var wle=xle,Cle=qse,$le=Jse,Sle=TS,_le=wle;function Ele(e,t,n){var r=t+"";return Sle(e,$le(r,_le(Cle(r),n)))}var l5=Ele,Ple=r5(),Tle=o5,kle=l5,Ole=1,Rle=2,Dle=4,Mle=8,xR=32,wR=64;function Ile(e,t,n,r,o,a,i,s,l,c){var u=t&Mle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?xR:wR,t&=~(u?wR:xR),t&Dle||(t&=~(Ole|Rle));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Ple(e)&&Tle(x,v),x.placeholder=r,kle(x,e,t)}var c5=Ile;function Ale(e){var t=e;return t.placeholder}var u5=Ale,Nle=ih,jle=oh,Lle=Math.min;function Fle(e,t){for(var n=e.length,r=Lle(t.length,n),o=Nle(e);r--;){var a=t[r];e[r]=jle(a,n)?o[a]:void 0}return e}var zle=Fle,CR="__lodash_placeholder__";function Vle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?m5(s,t-1,n,r,o):Mue(o,s):r||(o[o.length]=s)}return o}var v5=m5,Aue=v5;function Nue(e){var t=e==null?0:e.length;return t?Aue(e,1):[]}var jue=Nue,Lue=jue,Fue=z4,zue=TS;function Vue(e){return zue(Fue(e,void 0,Lue),e+"")}var jS=Vue,Bue=AS,Uue=jS,Wue=256,Hue=Uue(function(e,t){return Bue(e,Wue,void 0,void 0,void 0,t)}),Gue=Hue,que=gd,Yue=ih,Kue=cr,Jue=dd,Zue=n4,Xue=mc,Que=yd;function ede(e){return Kue(e)?que(e,Xue):Jue(e)?[e]:Yue(Zue(Que(e)))}var tde=ede,nde={ary:oue,assign:W4,clone:lue,curry:due,forEach:kS,isArray:cr,isError:yue,isFunction:th,isWeakMap:$ue,iteratee:Tue,keys:gS,rearg:Gue,toInteger:lh,toPath:tde},rde=xse,ode=nde;function ade(e,t,n){return rde(ode,e,t,n)}var xd=ade,Cx,jR;function ide(){if(jR)return Cx;jR=1;var e=ES,t=ah,n=oh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Hde=Wde,Gde=Hde,qde=o4,Yde=lh,Kde=yd;function Jde(e,t,n){e=Kde(e),t=qde(t);var r=e.length;n=n===void 0?r:Gde(Yde(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var Zde=Jde;const Xde=Vt(Zde);function Qde(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var efe=Qde,tfe=s4,nfe=LS,rfe=vc,ofe=efe,afe=cr;function ife(e,t,n){var r=afe(e)?tfe:ofe,o=arguments.length<3;return r(e,rfe(t),n,o,nfe)}var sfe=ife;const SC=Vt(sfe);var lfe=gd;function cfe(e,t){return lfe(t,function(n){return[n,e[n]]})}var ufe=cfe;function dfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ffe=dfe,pfe=ufe,hfe=hc,mfe=zN,vfe=ffe,gfe="[object Map]",yfe="[object Set]";function bfe(e){return function(t){var n=hfe(t);return n==gfe?mfe(t):n==yfe?vfe(t):pfe(t,e(t))}}var xfe=bfe,wfe=xfe,Cfe=Pi,$fe=wfe(Cfe),Sfe=$fe;const _fe=Vt(Sfe);var Efe=cl,Pfe=cr,Tfe=ea,kfe="[object String]";function Ofe(e){return typeof e=="string"||!Pfe(e)&&Tfe(e)&&Efe(e)==kfe}var Rfe=Ofe,Dfe=gd;function Mfe(e,t){return Dfe(t,function(n){return e[n]})}var Ife=Mfe,Afe=Ife,Nfe=Pi;function jfe(e){return e==null?[]:Afe(e,Nfe(e))}var Lfe=jfe,Ffe=i5,zfe=cs,Vfe=Rfe,Bfe=lh,Ufe=Lfe,Wfe=Math.max;function Hfe(e,t,n,r){e=zfe(e)?e:Ufe(e),n=n&&!r?Bfe(n):0;var o=e.length;return n<0&&(n=Wfe(o+n,0)),Vfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ffe(e,t,n)>-1}var Gfe=Hfe;const w5=Vt(Gfe);var qfe=vc,Yfe=cs,Kfe=Pi;function Jfe(e){return function(t,n,r){var o=Object(t);if(!Yfe(t)){var a=qfe(n);t=Kfe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var Zfe=Jfe,Xfe=a5,Qfe=vc,epe=lh,tpe=Math.max;function npe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:epe(n);return o<0&&(o=tpe(r+o,0)),Xfe(e,Qfe(t),o)}var rpe=npe,ope=Zfe,ape=rpe,ipe=ope(ape),spe=ipe;const FS=Vt(spe);var lpe=Math.ceil,cpe=Math.max;function upe(e,t,n,r){for(var o=-1,a=cpe(lpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var dpe=upe,fpe=dpe,ppe=U4,Sx=h5;function hpe(e){return function(t,n,r){return r&&typeof r!="number"&&ppe(t,n,r)&&(n=r=void 0),t=Sx(t),n===void 0?(n=t,t=0):n=Sx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(EC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rp,n=EC;var r=Rp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=EC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,Z){super(D,B,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let Z=B.length;for(;Z--;){const re=B[Z];re.optimizeNames(D,N)||(V(D,re.names),B.splice(Z,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,Z){super(),this.varKind=D,this.name=N,this.from=B,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:Z,to:re}=this;return`for(${N} ${B}=${Z}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,Z){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,Z;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,Z){const re=this._scope.toName(N);return B!==void 0&&Z&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,Z]of D)N.length>1&&N.push(","),N.push(B),(B!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>Z(ce))}forOf(D,N,B,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",Z,re,N),()=>B(re))}forIn(D,N,B,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return B&&(this._currNode=Z.finally=new R,this.code(B)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,Z){return this._blockNode(new S(D,N,B)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function Z(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const J=j(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=Rp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(R,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Br=Jt,Tpe={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ti.default=Tpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ti;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(ch);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const kpe=ch,Ope=Jt,Rpe=Ti,Dpe={message:"boolean schema is false"};function Mpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?$5(e,!1):typeof n=="object"&&n.$async===!0?t.return(Rpe.default.data):(t.assign((0,Ope._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Mpe;function Ipe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),$5(e)):n.var(t,!0)}qu.boolOrEmptySchema=Ipe;function $5(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,kpe.reportError)(o,Dpe,void 0,t)}var uh={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Ape=["string","number","integer","boolean","null","object","array"],Npe=new Set(Ape);function jpe(e){return typeof e=="string"&&Npe.has(e)}tc.isJSONType=jpe;function Lpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Lpe;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.shouldUseRule=Xi.shouldUseGroup=Xi.schemaHasRulesForType=void 0;function Fpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&S5(e,r)}Xi.schemaHasRulesForType=Fpe;function S5(e,t){return t.rules.some(n=>_5(e,n))}Xi.shouldUseGroup=S5;function _5(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Xi.shouldUseRule=_5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Xi,r=ch,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,S,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),R=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(R,E))),S.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${R} !== undefined`,()=>{S.assign(E,R),m(w,R)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null + || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null + || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(R,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" + || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(uh);var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.assignDefaults=void 0;const Gc=Jt,zpe=dn;function Vpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)FR(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>FR(e,a,o.default))}zy.assignDefaults=Vpe;function FR(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,zpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var vi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Jt,zS=dn,Ts=Ti,Bpe=dn;function Upe(e,t){const{gen:n,data:r,it:o}=e;n.if(BS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Upe;function Wpe({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(BS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=Wpe;function Hpe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Hpe;function E5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=E5;function VS(e,t,n){return(0,jn._)`${E5(e)}.call(${t}, ${n})`}Qt.isOwnProperty=VS;function Gpe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${VS(e,t,n)}`:o}Qt.propertyInData=Gpe;function BS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(VS(e,t,n))):o}Qt.noPropertyInData=BS;function P5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=P5;function qpe(e,t){return P5(t).filter(n=>!(0,zS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=qpe;function Ype({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[Ts.default.instancePath,(0,jn.strConcat)(Ts.default.instancePath,a)],[Ts.default.parentData,i.parentData],[Ts.default.parentDataProperty,i.parentDataProperty],[Ts.default.rootData,Ts.default.rootData]];i.opts.dynamicRef&&f.push([Ts.default.dynamicAnchors,Ts.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=Ype;const Kpe=(0,jn._)`new RegExp`;function Jpe({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?Kpe:(0,Bpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=Jpe;function Zpe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:zS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=Zpe;function Xpe(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,zS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=Xpe;Object.defineProperty(vi,"__esModule",{value:!0});vi.validateKeywordUsage=vi.validSchemaType=vi.funcKeywordCode=vi.macroKeywordCode=void 0;const ro=Jt,jl=Ti,Qpe=Qt,ehe=ch;function the(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=T5(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:ro.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}vi.macroKeywordCode=the;function nhe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;ohe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=T5(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&zR(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&zR(e),x(()=>rhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,ro._)`await `),y=>r.assign(f,!1).if((0,ro._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,ro._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,ro._)`${u}.errors`;return r.assign(g,null),v(ro.nil),g}function v(g=t.async?(0,ro._)`await `:ro.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,ro._)`${g}${(0,Qpe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,ro.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}vi.funcKeywordCode=nhe;function zR(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,ro._)`${r.parentData}[${r.parentDataProperty}]`))}function rhe(e,t){const{gen:n}=e;n.if((0,ro._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,ro._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,ro._)`${jl.default.vErrors}.length`),(0,ehe.extendErrors)(e)},()=>e.error())}function ohe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function T5(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ro.stringify)(n)})}function ahe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}vi.validSchemaType=ahe;function ihe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}vi.validateKeywordUsage=ihe;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.extendSubschemaMode=Qs.extendSubschemaData=Qs.getSubschema=void 0;const pi=Jt,k5=dn;function she(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}${(0,pi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,k5.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Qs.getSubschema=she;function lhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,pi._)`${t.data}${(0,pi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,pi.str)`${c}${(0,k5.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,pi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof pi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Qs.extendSubschemaData=lhe;function che(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}Qs.extendSubschemaMode=che;var Ar={},O5=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},R5={exports:{}},Vs=R5.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};jv(t,r,o,e,"",e)};Vs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function jv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Vs.arrayKeywords)for(var p=0;pt+=D5(r)),t===1/0))return 1/0}return t}function M5(e,t="",n){n!==!1&&(t=Ru(t));const r=e.parse(t);return I5(e,r)}Ar.getFullPath=M5;function I5(e,t){return e.serialize(t).split("#")[0]+"#"}Ar._getFullPath=I5;const yhe=/#\/?$/;function Ru(e){return e?e.replace(yhe,""):""}Ar.normalizeId=Ru;function bhe(e,t,n){return n=Ru(n),e.resolve(t,n)}Ar.resolveUrl=bhe;const xhe=/^[a-z_][-a-z0-9._]*$/i;function whe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ru(e[n]||t),a={"":o},i=M5(r,o,!1),s={},l=new Set;return hhe(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ru(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ru(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!xhe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!phe(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ar.getSchemaRefs=whe;Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getData=Ga.KeywordCxt=Ga.validateFunctionCode=void 0;const A5=qu,VR=uh,US=Xi,Ig=uh,Che=zy,Gf=vi,_x=Qs,St=Jt,Lt=Ti,$he=Ar,Qi=dn,pf=ch;function She(e){if(L5(e)&&(F5(e),j5(e))){Phe(e);return}N5(e,()=>(0,A5.topBoolOrEmptySchema)(e))}Ga.validateFunctionCode=She;function N5({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${BR(n,o)}`),Ehe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${_he(o)}`,r.$async,()=>e.code(BR(n,o)).code(a))}function _he(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Ehe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Phe(e){const{schema:t,opts:n,gen:r}=e;N5(e,()=>{n.$comment&&t.$comment&&V5(e),Dhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&The(e),z5(e),Ahe(e)})}function The(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function BR(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function khe(e,t){if(L5(e)&&(F5(e),j5(e))){Ohe(e,t);return}(0,A5.boolOrEmptySchema)(e,t)}function j5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function L5(e){return typeof e.schema!="boolean"}function Ohe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&V5(e),Mhe(e),Ihe(e);const a=r.const("_errs",Lt.default.errors);z5(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function F5(e){(0,Qi.checkUnknownRules)(e),Rhe(e)}function z5(e,t){if(e.opts.jtd)return UR(e,[],!1,t);const n=(0,VR.getSchemaTypes)(e.schema),r=(0,VR.coerceAndCheckDataType)(e,n);UR(e,n,!r,t)}function Rhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Qi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Dhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Qi.checkStrictMode)(e,"default is ignored in the schema root")}function Mhe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,$he.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ihe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ahe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Nhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Nhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function UR(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Qi.schemaHasRulesButRef)(a,u))){o.block(()=>W5(e,"$ref",u.all.$ref.definition));return}l.jtd||jhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,US.shouldUseGroup)(a,p)&&(p.type?(o.if((0,Ig.checkDataType)(p.type,i,l.strictNumbers)),WR(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,Ig.reportTypeError)(e)),o.endIf()):WR(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function WR(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Che.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,US.shouldUseRule)(r,a)&&W5(e,a.keyword,a.definition,t.type)})}function jhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Lhe(e,t),e.opts.allowUnionTypes||Fhe(e,t),zhe(e,e.dataTypes))}function Lhe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{B5(e.dataTypes,n)||WS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Bhe(e,t)}}function Fhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&WS(e,"use allowUnionTypes to allow union type keyword")}function zhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,US.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Vhe(t,i))&&WS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Vhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function B5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Bhe(e,t){const n=[];for(const r of e.dataTypes)B5(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function WS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Qi.checkStrictMode)(e,t,e.opts.strictTypes)}class U5{constructor(t,n,r){if((0,Gf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",H5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Gf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,Ig.checkDataTypes)(l,n,a.opts.strictNumbers,Ig.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,_x.getSubschema)(this.it,t);(0,_x.extendSubschemaData)(r,this.it,t),(0,_x.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return khe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Qi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Qi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ga.KeywordCxt=U5;function W5(e,t,n,r){const o=new U5(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Gf.funcKeywordCode)(o,n):"macro"in n?(0,Gf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Gf.funcKeywordCode)(o,n)}const Uhe=/^\/(?:[^~]|~0|~1)*$/,Whe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function H5(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Uhe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Whe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Qi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ga.getData=H5;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});class Hhe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}dh.default=Hhe;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});const Ex=Ar;class Ghe extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Ex.resolveUrl)(t,n,r),this.missingSchema=(0,Ex.normalizeId)((0,Ex.getFullPath)(t,this.missingRef))}}fh.default=Ghe;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Jt,qhe=dh,Pl=Ti,Fa=Ar,HR=dn,Yhe=Ga;class Vy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Vy;function HS(e){const t=G5.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:qhe.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Yhe.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=HS;function Khe(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=Xhe.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Vy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Jhe.call(this,a)}bo.resolveRef=Khe;function Jhe(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:HS.call(this,e)}function G5(e){for(const t of this._compilations)if(Zhe(t,e))return t}bo.getCompilingSchema=G5;function Zhe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Xhe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||By.call(this,e,t)}function By(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Px.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=By.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Px.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||HS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Vy({schema:s,schemaId:l,root:e,baseId:o})}return Px.call(this,n,i)}}bo.resolveSchema=By;const Qhe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Px(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,HR.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Qhe.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,HR.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=By.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Vy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const eme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",tme="Meta-schema for $data reference (JSON AnySchema extension proposal)",nme="object",rme=["$data"],ome={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ame=!1,ime={$id:eme,description:tme,type:nme,required:rme,properties:ome,additionalProperties:ame};var GS={},TC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(R[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(uo){Ie=!0,rt=uo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&QaU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ei=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Zr;!(Io=(Zr=gl.next()).done);Io=!0){var Mh=Zr.value;if(Mhb&&z("overflow"),Mh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Di=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Ri=Wt.slice(0,Un.index),Qa=Wt.slice(Un.index+Un.length);Mo=Ri.join(":")+"::"+Qa.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,Z,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=R.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return Z.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function Z({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const Z of N)B=B[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[Z];ce&&xe&&(B[Z]=J(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:Z}=this.opts;if(typeof j=="object")B=j[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:Z,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function R(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const Z={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,Z,j.before):B.rules.push(Z),N.all[X]=Z,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=J(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,W]}}})(C5);var qS={},YS={},KS={};Object.defineProperty(KS,"__esModule",{value:!0});const lme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};KS.default=lme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const cme=fh,GR=Qt,vo=Jt,qc=Ti,qR=bo,Qm=dn,ume={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=qR.resolveRef.call(l,c,o,n);if(u===void 0)throw new cme.default(r.opts.uriResolver,o,n);if(u instanceof qR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Lv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Lv(e,(0,vo._)`${b}.validate`,c,c.$async)}function p(b){const v=Y5(e,b);Lv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,vo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:vo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function Y5(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,vo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=Y5;function Lv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:vo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,vo._)`await ${(0,GR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,vo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,GR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,vo._)`${b}.errors`;o.assign(qc.default.vErrors,(0,vo._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,vo._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Qm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,vo._)`${b}.evaluated.props`);a.props=Qm.mergeEvaluated.props(o,g,a.props,vo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Qm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,vo._)`${b}.evaluated.items`);a.items=Qm.mergeEvaluated.items(o,g,a.items,vo.Name)}}}nc.callRef=Lv;nc.default=ume;Object.defineProperty(YS,"__esModule",{value:!0});const dme=KS,fme=nc,pme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",dme.default,fme.default];YS.default=pme;var JS={},ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const Ag=Jt,ks=Ag.operators,Ng={maximum:{okStr:"<=",ok:ks.LTE,fail:ks.GT},minimum:{okStr:">=",ok:ks.GTE,fail:ks.LT},exclusiveMaximum:{okStr:"<",ok:ks.LT,fail:ks.GTE},exclusiveMinimum:{okStr:">",ok:ks.GT,fail:ks.LTE}},hme={message:({keyword:e,schemaCode:t})=>(0,Ag.str)`must be ${Ng[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ag._)`{comparison: ${Ng[e].okStr}, limit: ${t}}`},mme={keyword:Object.keys(Ng),type:"number",schemaType:"number",$data:!0,error:hme,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Ag._)`${n} ${Ng[t].fail} ${r} || isNaN(${n})`)}};ZS.default=mme;var XS={};Object.defineProperty(XS,"__esModule",{value:!0});const qf=Jt,vme={message:({schemaCode:e})=>(0,qf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qf._)`{multipleOf: ${e}}`},gme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,qf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,qf._)`${i} !== parseInt(${i})`;e.fail$data((0,qf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};XS.default=gme;var QS={},e_={};Object.defineProperty(e_,"__esModule",{value:!0});function K5(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},wme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xme,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,yme.useFunc)(e.gen,bme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};QS.default=wme;var t_={};Object.defineProperty(t_,"__esModule",{value:!0});const Cme=Qt,jg=Jt,$me={message:({schemaCode:e})=>(0,jg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,jg._)`{pattern: ${e}}`},Sme={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$me,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,jg._)`(new RegExp(${o}, ${i}))`:(0,Cme.usePattern)(e,r);e.fail$data((0,jg._)`!${s}.test(${t})`)}};t_.default=Sme;var n_={};Object.defineProperty(n_,"__esModule",{value:!0});const Yf=Jt,_me={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Yf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Yf._)`{limit: ${e}}`},Eme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Yf.operators.GT:Yf.operators.LT;e.fail$data((0,Yf._)`Object.keys(${n}).length ${o} ${r}`)}};n_.default=Eme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const hf=Qt,Kf=Jt,Pme=dn,Tme={message:({params:{missingProperty:e}})=>(0,Kf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Kf._)`{missingProperty: ${e}}`},kme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Tme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Pme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Kf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Kf.not)(b),()=>{e.error(),t.break()})},Kf.nil)}}};r_.default=kme;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Jf=Jt,Ome={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Rme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};o_.default=Rme;var a_={},ph={};Object.defineProperty(ph,"__esModule",{value:!0});const J5=O5;J5.code='require("ajv/dist/runtime/equal").default';ph.default=J5;Object.defineProperty(a_,"__esModule",{value:!0});const Tx=uh,Dr=Jt,Dme=dn,Mme=ph,Ime={message:({params:{i:e,j:t}})=>(0,Dr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Dr._)`{i: ${e}, j: ${t}}`},Ame={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ime,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Tx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Dr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Dr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Dr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Tx.checkDataTypes)(c,x,s.opts.strictNumbers,Tx.DataType.Wrong),y=t.const("indices",(0,Dr._)`{}`);t.for((0,Dr._)`;${b}--;`,()=>{t.let(x,(0,Dr._)`${n}[${b}]`),t.if(g,(0,Dr._)`continue`),c.length>1&&t.if((0,Dr._)`typeof ${x} == "string"`,(0,Dr._)`${x} += "_"`),t.if((0,Dr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Dr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Dr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Dme.useFunc)(t,Mme.default),g=t.name("outer");t.label(g).for((0,Dr._)`;${b}--;`,()=>t.for((0,Dr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Dr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};a_.default=Ame;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const kC=Jt,Nme=dn,jme=ph,Lme={message:"must be equal to constant",params:({schemaCode:e})=>(0,kC._)`{allowedValue: ${e}}`},Fme={keyword:"const",$data:!0,error:Lme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,kC._)`!${(0,Nme.useFunc)(t,jme.default)}(${n}, ${o})`):e.fail((0,kC._)`${a} !== ${n}`)}};i_.default=Fme;var s_={};Object.defineProperty(s_,"__esModule",{value:!0});const Rf=Jt,zme=dn,Vme=ph,Bme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Rf._)`{allowedValues: ${e}}`},Ume={keyword:"enum",schemaType:"array",$data:!0,error:Bme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,zme.useFunc)(t,Vme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Rf.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Rf._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Rf._)`${c()}(${n}, ${m}[${b}])`:(0,Rf._)`${n} === ${v}`}}};s_.default=Ume;Object.defineProperty(JS,"__esModule",{value:!0});const Wme=ZS,Hme=XS,Gme=QS,qme=t_,Yme=n_,Kme=r_,Jme=o_,Zme=a_,Xme=i_,Qme=s_,eve=[Wme.default,Hme.default,Gme.default,qme.default,Yme.default,Kme.default,Jme.default,Zme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xme.default,Qme.default];JS.default=eve;var l_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Jt,OC=dn,tve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},nve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,OC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Z5(e,r)}};function Z5(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,OC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:OC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=Z5;Cd.default=nve;var c_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const YR=Jt,Fv=dn,rve=Qt,ove={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return X5(e,"additionalItems",t);n.items=!0,!(0,Fv.alwaysValidSchema)(n,t)&&e.ok((0,rve.validateArray)(e))}};function X5(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Fv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,YR._)`${a}.length`);n.forEach((f,p)=>{(0,Fv.alwaysValidSchema)(s,f)||(r.if((0,YR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Fv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=X5;$d.default=ove;Object.defineProperty(c_,"__esModule",{value:!0});const ave=$d,ive={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ave.validateTuple)(e,"items")};c_.default=ive;var u_={};Object.defineProperty(u_,"__esModule",{value:!0});const KR=Jt,sve=dn,lve=Qt,cve=Cd,uve={message:({params:{len:e}})=>(0,KR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KR._)`{limit: ${e}}`},dve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:uve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,sve.alwaysValidSchema)(r,t)&&(o?(0,cve.validateAdditionalItems)(e,o):e.ok((0,lve.validateArray)(e)))}};u_.default=dve;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});const fa=Jt,ev=dn,fve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},pve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,ev.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,ev.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ev.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:ev.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};d_.default=pve;var Q5={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, + missingProperty: ${f}, + depsCount: ${c}, + deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(Q5);var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const ej=Jt,hve=dn,mve={message:"property name must be valid",params:({params:e})=>(0,ej._)`{propertyName: ${e.propertyName}}`},vve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,hve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,ej.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};f_.default=vve;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});const tv=Qt,Ia=Jt,gve=Ti,nv=dn,yve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},bve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,nv.alwaysValidSchema)(i,n))return;const c=(0,tv.allSchemaProperties)(r.properties),u=(0,tv.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${gve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,nv.schemaRefOrVal)(i,r.properties,"properties");g=(0,tv.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,tv.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,nv.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:nv.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Uy.default=bve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const xve=Ga,JR=Qt,kx=dn,ZR=Uy,wve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&ZR.default.code(new xve.KeywordCxt(a,ZR.default,"additionalProperties"));const i=(0,JR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=kx.mergeEvaluated.props(t,(0,kx.toHash)(i),a.props));const s=i.filter(f=>!(0,kx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,JR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};p_.default=wve;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const XR=Qt,rv=Jt,QR=dn,eD=dn,Cve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,XR.allSchemaProperties)(n),l=s.filter(v=>(0,QR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof rv.Name)&&(a.props=(0,eD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,QR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,rv._)`${(0,XR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:eD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,rv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,rv.not)(u),()=>t.break())})})}}};h_.default=Cve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const $ve=dn,Sve={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,$ve.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};m_.default=Sve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const _ve=Qt,Eve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_ve.validateUnion,error:{message:"must match a schema in anyOf"}};v_.default=Eve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const zv=Jt,Pve=dn,Tve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,zv._)`{passingSchemas: ${e.passing}}`},kve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Tve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Pve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,zv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,zv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,zv.Name)})})}}};g_.default=kve;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Ove=dn,Rve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ove.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};y_.default=Rve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Lg=Jt,tj=dn,Dve={message:({params:e})=>(0,Lg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lg._)`{failingKeyword: ${e.ifClause}}`},Mve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,tj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=tD(r,"then"),a=tD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Lg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Lg._)`${u}`):e.setParams({ifClause:u})}}}};function tD(e,t){const n=e.schema[t];return n!==void 0&&!(0,tj.alwaysValidSchema)(e,n)}b_.default=Mve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Ive.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};x_.default=Ave;Object.defineProperty(l_,"__esModule",{value:!0});const Nve=Cd,jve=c_,Lve=$d,Fve=u_,zve=d_,Vve=Q5,Bve=f_,Uve=Uy,Wve=p_,Hve=h_,Gve=m_,qve=v_,Yve=g_,Kve=y_,Jve=b_,Zve=x_;function Xve(e=!1){const t=[Gve.default,qve.default,Yve.default,Kve.default,Jve.default,Zve.default,Bve.default,Uve.default,Vve.default,Wve.default,Hve.default];return e?t.push(jve.default,Fve.default):t.push(Nve.default,Lve.default),t.push(zve.default),t}l_.default=Xve;var w_={},C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ir=Jt,Qve={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},ege={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Qve,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};C_.default=ege;Object.defineProperty(w_,"__esModule",{value:!0});const tge=C_,nge=[tge.default];w_.default=nge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(qS,"__esModule",{value:!0});const rge=YS,oge=JS,age=l_,ige=w_,nD=Yu,sge=[rge.default,oge.default,(0,age.default)(),ige.default,nD.metadataVocabulary,nD.contentVocabulary];qS.default=sge;var $_={},nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(nj);Object.defineProperty($_,"__esModule",{value:!0});const au=Jt,RC=nj,rD=bo,lge=dn,cge={message:({params:{discrError:e,tagName:t}})=>e===RC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},uge={keyword:"discriminator",type:"object",schemaType:"object",error:cge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:RC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:RC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ga;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=dh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=fh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(_C,_C.exports);var rj=_C.exports;const yge=Vt(rj);var DC={exports:{}},oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(oj);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rj,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(aj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=oj,r=aj,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(DC,DC.exports);var bge=DC.exports;const xge=Vt(bge),Vv="additionalProperties",Bv="required",wge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Cge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Vv)},a=this.findOption(r)(Bv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=wge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const ij=(e,t={})=>{const n=o=>a=>{switch(a){case Vv:return Object.prototype.hasOwnProperty.call(t,Vv)?t[Vv]:!0;case Bv:return Object.prototype.hasOwnProperty.call(t,Bv)?t[Bv](o):Object.keys(o);default:return}};return new Cge(n).schemaObject(e)};var $i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})($i||($i={}));const sj=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",$ge=e=>e.type==="Group",lj=e=>e.elements!==void 0,Sge=e=>!!e&&typeof e=="object",_ge=e=>Sge(e)&&typeof e.scope=="string",Ege=e=>!!e&&typeof e=="object",cj=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},uj=(e,t)=>{cj(e,t,-1)},dj=(e,t)=>{cj(e,t,1)},Pge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},oD=(e={})=>tn({},Pge,e),aD=(e=oD(),t)=>{switch(t.type){case K_:return oD(t.config);default:return e}},Bi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Tge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},MC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),iD=(e,t)=>{if(t){if(kge(t.options))return t.options.ajv;if(t.options!==void 0&&Fq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?MC(e.ajv,t.schema):e.ajv:Aye()},kge=e=>e?e.ajv!==void 0:!1,sD=(e,t)=>t&&Oge(t.options)?t.options.validationMode:e.validationMode,Oge=e=>e?e.validationMode!==void 0:!1,Rge=e=>e?e.additionalErrors!==void 0:!1,lD=(e,t)=>t&&Rge(t.options)?t.options.additionalErrors:e.additionalErrors,cD=(e=Tge,t)=>{switch(t.type){case W_:{const n=iD(e,t),r=sD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data),i=lD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case H_:{const n=iD(e,t),r=sD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data)):e.data!==t.data&&(a=Bi(o,t.data));const i=lD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:b5(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case G_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Bi(r,e.data);return{...e,validator:r,errors:o}}case J_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?MC(e.ajv,t.schema).compile(t.schema):e.validator,o=Bi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Z_:return{...e,uischema:t.uischema};case q_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(aR(e.data)),r=Bi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(aR(n)),o=ude(t.path,r,e.data===void 0?{}:e.data),a=Bi(e.validator,o);return{...e,data:o,errors:a}}}case Y_:return{...e,errors:t.errors};case X_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Bi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=MC(e.ajv,e.schema).compile(e.schema),r=Bi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Dge=e=>fr(e,"data"),Mge=e=>fr(e,"schema"),Ige=e=>fr(e,"uischema"),Age=e=>fr(e,"ajv"),Nge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Fg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Nge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Gy(t),t},S_=(e,t,n)=>r=>{const o=Mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Fg(a));return Mg(r,a=>{if(Lge.indexOf(a.keyword)!==-1&&!Bg(a.parentSchema))return!1;const i=Fg(a);let s=n(i);const l=a.parentSchema;return s&&!jge(l)&&!Bg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&b5(l,t)),s})},jge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Lge=["additionalProperties","allOf","anyOf","oneOf"],fj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return S_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Fge=(e,t)=>fj(e,t,n=>n===e),zge=(e,t)=>fj(e,t,n=>n.startsWith(e+".")),__=(e,t)=>sj(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Vge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Si=(e,t,n)=>__(e,t)??Vge(n),zg=(e,t,n,r)=>`${Si(e,t,n)}.${r}`,Bge=(e,t)=>`${e}.${t}`,E_=(e,t)=>t,P_=(e,t,n)=>{var s;const r=zg(e.parentSchema,n,Fg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},T_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=zg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return F_(e.map(i=>t(i,n,o)))},Wy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!sj(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=__(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},pj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Bge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Wr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Wr||(Wr={}));const hj=[{key:Wr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Wr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Wr.removeTooltip,default:()=>"Delete"},{key:Wr.removeAriaLabel,default:()=>"Delete button"},{key:Wr.upAriaLabel,default:()=>"Move item up"},{key:Wr.up,default:()=>"Up"},{key:Wr.down,default:()=>"Down"},{key:Wr.downAriaLabel,default:()=>"Move item down"},{key:Wr.noDataMessage,default:()=>"No data"},{key:Wr.noSelection,default:()=>"No selection"},{key:Wr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Wr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Wr.deleteDialogAccept,default:()=>"Yes"},{key:Wr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:E_,translateError:P_},uD=(e=Cu,t)=>{switch(t.type){case tE:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case eE:return{...e,translate:t.translator??E_,translateError:t.errorTranslator??P_};case Q_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Uge=e=>e===void 0?E_:e.translate,Wge=e=>e===void 0?P_:e.translateError,Ku=-1,Ya=e=>!Mt(e)&&e.scope!==void 0,Yr=e=>(t,n,r)=>{if(Mt(t)||!Ya(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},k_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ya(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ka=e=>Yr(t=>!Mt(t)&&ol(t,e)),Hy=e=>Yr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,us=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Hge=e=>t=>Mt(e)||!Ya(t)?!1:Xde(t.scope,e),Gge=e=>t=>{if(Mt(e)||!Ya(t))return!1;const n=t.scope;return!Mt(n)&&Mde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,qge=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},mj=$n(_n("Control"),Ka("boolean")),Yge=$n(_n("Control"),Ka("object")),vj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),gj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),yj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),O_=$n(_n("Control"),yc(Yr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),bj=$n(_n("Control"),Yr(e=>Bg(e))),xj=$n(_n("Control"),Ka("integer")),wj=$n(_n("Control"),Ka("number")),Cj=$n(_n("Control"),Ka("string")),$j=$n(_n("Control"),us("multi",!0)),Sj=$n(_n("Control"),yc(Hy("date"),us("format","date"))),_j=$n(_n("Control"),yc(Hy("time"),us("format","time"))),Ej=$n(_n("Control"),yc(Hy("date-time"),us("format","date-time"))),Pj=$n(Yr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),R_=$n(_n("Control"),Pj),Df=(e,t,n)=>{if(VN(e))return SC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?SC(_fe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},D_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Bg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},Kge=R_,Tj=$n(_n("Control"),Yr((e,t)=>Ju(e).length!==0&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Ju(n);return r.length===1&&w5(["integer","number","boolean","string"],r[0])})),kj=$n(_n("Control"),yc(Ka("number"),Ka("integer")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),us("slider",!0)),Jge=$n(_n("Control"),Ka("integer"),us("format",!0)),Oj=e=>e.type==="Categorization",Rj=e=>e.type==="Category",M_=e=>Mt(e.elements)?!1:e.elements.map(t=>Oj(t)?M_(t):Rj(t)).reduce((t,n)=>t&&n,!0),Zge=e=>M_(e),Xge=e=>(t,n,r)=>!e(t,n,r);var Qge=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Ya,schemaMatches:Yr,schemaSubPathMatches:k_,schemaTypeIs:Ka,formatIs:Hy,uiTypeIs:_n,optionIs:us,scopeEndsWith:Hge,scopeEndIs:Gge,and:$n,or:yc,rankWith:vn,withIncreasedRank:qge,isBooleanControl:mj,isObjectControl:Yge,isAllOfControl:vj,isAnyOfControl:gj,isOneOfControl:yj,isEnumControl:O_,isOneOfEnumControl:bj,isIntegerControl:xj,isNumberControl:wj,isStringControl:Cj,isMultiLineControl:$j,isDateControl:Sj,isTimeControl:_j,isDateTimeControl:Ej,isObjectArray:Pj,isObjectArrayControl:R_,isObjectArrayWithNesting:D_,isArrayObjectControl:Kge,isPrimitiveArrayControl:Tj,isRangeControl:kj,isNumberFormatControl:Jge,isCategorization:Oj,isCategory:Rj,hasCategory:M_,categorizationHasCategory:Zge,not:Xge});const Dj=e=>(t,n,r)=>{const o=Ay(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},hh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=Dj(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},Mj=(e,t)=>n=>Fge(e,t)(n.jsonforms.core),Ij=(e,t)=>n=>zge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>Uge(fr(e,"jsonforms.i18n")),I_=()=>e=>Wge(fr(e,"jsonforms.i18n")),mh=e=>Dge(fr(e,"jsonforms.core")),Vg=e=>Mge(fr(e,"jsonforms.core")),eye=e=>Ige(fr(e,"jsonforms.core")),Sd=e=>Age(fr(e,"jsonforms.core")),A_=e=>fr(e,"jsonforms.renderers"),N_=e=>fr(e,"jsonforms.cells"),tye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},Aj=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Gy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},Nj=(e,t)=>{if(!_ge(e))return t??"";const n=Aj(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Gy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),IC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),nye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Gy);return Uv(e,r,n)},Uv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(nye(r))return Uv(e,o,n);const a=fr(e,r),i=Uv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Uv(c,[r,...o],n),s)break;return s}},rye=e=>e.type==="OR",oye=e=>e.type==="AND",aye=e=>e.type==="LEAF",iye=e=>Ppe(e,"schema"),dD=(e,t)=>Nj(e,t),AC=(e,t,n,r)=>{if(oye(t))return t.conditions.reduce((o,a)=>o&&AC(e,a,n,r),!0);if(rye(t))return t.conditions.reduce((o,a)=>o||AC(e,a,n,r),!1);if(aye(t))return IC(e,dD(t,n))===t.expectedValue;if(iye(t)){const o=IC(e,dD(t,n));return r.validate(t.schema,o)}else return!0},jj=(e,t,n,r)=>{const o=e.rule.condition;return AC(t,o,n,r)},sye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.HIDE:return!o;case $i.SHOW:return o;default:return!0}},lye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.DISABLE:return!o;case $i.ENABLE:return o;default:return!0}},j_=e=>!!(e.rule&&(e.rule.effect===$i.SHOW||e.rule.effect===$i.HIDE)),cye=e=>!!(e.rule&&(e.rule.effect===$i.ENABLE||e.rule.effect===$i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?sye(e,t,n,r):!0,uye=(e,t,n=void 0,r)=>e.rule?lye(e,t,n,r):!0,L_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&cye(n)?uye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},Lj=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),F_=e=>e==null?"":e.join(` +`),ol=(e,t)=>w5(Ju(e),t),Ju=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(VN(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=FS(e.allOf,n=>Ju(n).length!==0);if(t)return Ju(t)}return[]},Po={schema:$a,data:IC},dye=e=>Aj(e.scope).join("."),sr={compose:bc,fromScoped:dye},Ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Gy(n.substr(n.lastIndexOf("/")+1));return Ny(r)}return""},Fj=(e,t)=>{const n=e.label;if(typeof n=="boolean")return ov(Ox(e,t),n);if(typeof n=="string")return ov(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return ov(r,o)}return ov(Ox(e,t),!0)},ov=(e,t)=>({text:e,show:t}),fye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},qy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Yy=(e,t)=>e&&!t,is=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Dp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},z_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=mh(e),o=Nj(n,t.path),a=t.visible===void 0||j_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Vg(e),c=i.scope!==void 0&&fye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=Mj(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=Fj(n,u),v=b.show?b.text:"",x=rc(e),g=L_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=I_()(e),_=Si(y,n,o),S=w(zg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(zg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=T_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},pye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),hye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},mye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},vye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return z_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Dp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))}));return{...n,options:o}},gye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?FS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(mh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},V_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},yye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=V_(e,t),l=Po.schema(r,"items",s.rootSchema),c=Ij(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||A_(e),cells:t.cells||N_(e),translations:pj(u,hj,a,i)}},bye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(uj(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(dj(r,n),r)))}}),xye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),zj={visible:!0,enabled:!0,path:"",direction:"column"},wye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":zj.direction,Cye=(e,t)=>{const n=mh(e),{uischema:r}=t,o=t.visible===void 0||j_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=L_(e,t,r,void 0,n,i),l=Ca()(e),c=Ege(r)?Wy(r,l):void 0;return{...zj,renderers:t.renderers||A_(e),cells:t.cells||N_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??wye(r),config:i,label:c}},$ye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Vg(e),rootSchema:Vg(e),uischema:t.uischema||eye(e),path:t.path,enabled:t.enabled,config:rc(e)}),B_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:tye(e)}},Sye=(e,t)=>B_(e,t,"allOf"),_ye=(e,t)=>B_(e,t,"anyOf"),Eye=(e,t)=>B_(e,t,"oneOf"),Pye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=V_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=T_(Ij(n,c)(e),I_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:pj(u,hj,i,s)}},Tye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||j_(n)?_d(t.uischema,mh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=__(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||A_(e),cells:t.cells||N_(e)}},Ky=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=mh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Vg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=L_(e,t,a,r||u,l,f);const m=Ca()(e),b=I_()(e),v=T_(Mj(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},kye=(e,t)=>{const n=Ky(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Oye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},Rye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},Dye=(e,t,n)=>e.title?e.title:n+"-"+t,Jy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:hh(a,l,r.scope,o,void 0,r,t),label:Dye(i,s,n)}}),U_=new Set,Vj=(e,t)=>t<=1?e:e+t.toString(),Mye=(e,t)=>{const n=Vj(e,t);return!U_.has(n)},Bj=e=>{e===void 0&&(e="undefined");let t=0;for(;!Mye(e,t);)t++;const n=Vj(e,t);return U_.add(n),n},Uj=e=>U_.delete(e),Iye=e=>{if(e.properties)return FS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Bg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Aye=e=>{const t=new yge({allErrors:!0,verbose:!0,strict:!1,...e});return xge(t),t},Wj=e=>({type:e,elements:[]}),Wv=e=>({type:"Control",scope:e}),Nye=(e,t)=>{if(!Mt(e)&&!lj(e)){const n=Wj(t);return n.elements.push(e),n}return e},jye=(e,t)=>{if(!Mt(t)){const n=Ny(t);if($ge(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Lye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),NC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return NC($a(a,e.$ref,a),t,n,r,o,a);if(Lye(e)){const s=Wv(n);return t.push(s),s}const i=Ju(e);if(i.length===0)return null;if(i.length>1){const s=Wv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=Wj(o);if(t.push(s),e.properties&&qZ(e.properties).length>1&&jye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),NC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Wv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Hj=(e,t="VerticalLayout",n="#",r=e)=>Nye(NC(e,[],n,"",t,r),t),ac={jsonSchema:ij,uiSchema:Hj,controlElement:Wv},W_="jsonforms/INIT",H_="jsonforms/UPDATE_CORE",G_="jsonforms/SET_AJV",q_="jsonforms/UPDATE",Y_="jsonforms/UPDATE_ERRORS",Fye="jsonforms/VALIDATE",Gj="jsonforms/ADD_RENDERER",qj="jsonforms/REMOVE_RENDERER",Yj="jsonforms/ADD_CELL",Kj="jsonforms/REMOVE_CELL",K_="jsonforms/SET_CONFIG",Jj="jsonforms/ADD_UI_SCHEMA",Zj="jsonforms/REMOVE_UI_SCHEMA",J_="jsonforms/SET_SCHEMA",Z_="jsonforms/SET_UISCHEMA",X_="jsonforms/SET_VALIDATION_MODE",Q_="jsonforms/SET_LOCALE",eE="jsonforms/SET_TRANSLATOR",tE="jsonforms/UPDATE_I18N",Xj="jsonforms/ADD_DEFAULT_DATA",Qj="jsonforms/REMOVE_DEFAULT_DATA",zye=(e,t=ij(e),n,r)=>({type:W_,data:e,schema:t,uischema:typeof n=="object"?n:Hj(t),options:r}),Vye=(e,t,n,r)=>({type:H_,data:e,schema:t,uischema:n,options:r}),Bye=(e,t)=>({type:Xj,schemaPath:e,data:t}),Uye=e=>({type:Qj,schemaPath:e}),Wye=e=>({type:G_,ajv:e}),Va=(e,t)=>({type:q_,path:e,updater:t}),Hye=e=>({type:Y_,errors:e}),Gye=(e,t)=>({type:Gj,tester:e,renderer:t}),qye=(e,t)=>({type:Yj,tester:e,cell:t}),Yye=(e,t)=>({type:Kj,tester:e,cell:t}),Kye=(e,t)=>({type:qj,tester:e,renderer:t}),Jye=e=>({type:K_,config:e}),Zye=e=>({type:X_,validationMode:e}),Xye=(e,t)=>({type:Jj,tester:e,uischema:t}),Qye=e=>({type:Zj,tester:e}),e0e=e=>({type:Q_,locale:e}),t0e=e=>({type:J_,schema:e}),n0e=(e,t)=>({type:eE,translator:e,errorTranslator:t}),r0e=(e,t,n)=>({type:tE,locale:e,translator:t,errorTranslator:n}),o0e=e=>({type:Z_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:W_,UPDATE_CORE:H_,SET_AJV:G_,UPDATE_DATA:q_,UPDATE_ERRORS:Y_,VALIDATE:Fye,ADD_RENDERER:Gj,REMOVE_RENDERER:qj,ADD_CELL:Yj,REMOVE_CELL:Kj,SET_CONFIG:K_,ADD_UI_SCHEMA:Jj,REMOVE_UI_SCHEMA:Zj,SET_SCHEMA:J_,SET_UISCHEMA:Z_,SET_VALIDATION_MODE:X_,SET_LOCALE:Q_,SET_TRANSLATOR:eE,UPDATE_I18N:tE,ADD_DEFAULT_DATA:Xj,REMOVE_DEFAULT_DATA:Qj,init:zye,updateCore:Vye,registerDefaultData:Bye,unregisterDefaultData:Uye,setAjv:Wye,update:Va,updateErrors:Hye,registerRenderer:Gye,registerCell:qye,unregisterCell:Yye,unregisterRenderer:Kye,setConfig:Jye,setValidationMode:Zye,registerUISchema:Xye,unregisterUISchema:Qye,setLocale:e0e,setSchema:t0e,setTranslator:n0e,updateI18n:r0e,setUISchema:o0e});const Ug={createLabelDescriptionFrom:Fj,convertToValidClassName:Lj};var a0e=lo,i0e=function(){return a0e.Date.now()},s0e=i0e,l0e=ta,Rx=s0e,fD=p5,c0e="Expected a function",u0e=Math.max,d0e=Math.min;function f0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(c0e);t=fD(t)||0,l0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?u0e(fD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?d0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Rx();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Rx())}function _(){var S=Rx(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var p0e=f0e;const e6=Vt(p0e);class t6 extends M.Component{constructor(t){super(t)}}class n6 extends t6{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class r6 extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const h0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},o6=M.createContext({core:h0e,renderers:[]}),m0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},v0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(cD,void 0,()=>cD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(aD,void 0,()=>aD(void 0,Yc.setConfig(t.config)));m0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(uD,void 0,()=>{var _,S,E;return uD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(e6((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(o6.Provider,{value:v},e)},xc=()=>$.useContext(o6),g0e=(e,t)=>Pye({jsonforms:{...e}},t),y0e=(e,t)=>yye({jsonforms:{...e}},t),b0e=(e,t)=>Cye({jsonforms:{...e}},t),x0e=(e,t)=>Ed({jsonforms:{...e}},t),w0e=(e,t)=>{var o;const n=hye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},C0e=(e,t)=>{var o;const n=mye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},$0e=(e,t)=>{var o;const n=vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},S0e=(e,t)=>V_({jsonforms:{...e}},t),_0e=(e,t)=>({...Sye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>pye(e),[e]),E0e=(e,t)=>{const n=_ye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},P0e=(e,t)=>{const n=Eye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},T0e=(e,t)=>$ye({jsonforms:{...e}},t),a6=e=>({...Do(e),...$.useMemo(()=>bye(e),[e])}),k0e=(e,t)=>gye({jsonforms:{...e}},t),O0e=(e,t)=>Ky({jsonforms:{...e}},t),R0e=(e,t)=>{var o;const n=Oye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},D0e=(e,t)=>{var o;const n=Rye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>kye({jsonforms:{...e}},t),I0e=e=>({...Do(e),...$.useMemo(()=>xye(e),[e])}),A0e=(e,t)=>Tye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},N0e=e=>function({ctx:n,props:r}){const o=T0e(n,r);return M.createElement(e,Object.assign({},r,o))},j0e=e=>function({ctx:n,props:r}){const o=x0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},L0e=e=>function({ctx:n,props:r}){const o=b0e(n,r);return M.createElement(e,Object.assign({},r,o))},F0e=e=>function({ctx:n,props:r}){const o=P0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},z0e=e=>function({ctx:n,props:r}){const o=E0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},V0e=e=>function({ctx:n,props:r}){const o=_0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},B0e=e=>function({ctx:n,props:r}){const o=S0e(n,r);return M.createElement(e,Object.assign({},r,o))},U0e=e=>function({ctx:n,props:r}){const o=g0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},W0e=e=>function({ctx:n,props:r}){const o=y0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},H0e=e=>function({ctx:n,props:r}){const o=k0e(n,r);return M.createElement(e,Object.assign({},r,o))},G0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},q0e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Y0e=e=>function({ctx:n,props:r}){const o=R0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},K0e=e=>function({ctx:n,props:r}){const o=w0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},J0e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Z0e=e=>function({ctx:n,props:r}){const o=C0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},X0e=e=>function({ctx:n,props:r}){const o=$0e(n,r),a=I0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},i6=(e,t=!0)=>_r(N0e(t?M.memo(e):e)),co=(e,t=!0)=>_r(j0e(t?M.memo(e):e)),ds=(e,t=!0)=>_r(L0e(t?M.memo(e):e)),e1e=(e,t=!0)=>_r(F0e(t?M.memo(e):e)),s6=(e,t=!0)=>_r(z0e(t?M.memo(e):e)),t1e=(e,t=!0)=>_r(V0e(t?M.memo(e):e)),n1e=(e,t=!0)=>_r(B0e(t?M.memo(e):e)),Zy=(e,t=!0)=>_r(U0e(t?M.memo(e):e)),l6=(e,t=!0)=>_r(W0e(t?M.memo(e):e)),r1e=(e,t=!0)=>_r(H0e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(G0e(t?M.memo(e):e)),o1e=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),c6=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),nE=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),a1e=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),rE=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),i1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),u6=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class d6 extends M.Component{constructor(t){super(t),this.state={id:Ya(t.uischema)?Bj(t.uischema.scope):void 0}}componentWillUnmount(){Ya(this.props.uischema)&&Uj(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(s1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const s1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>Ay(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(r6,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class l1e extends d6{constructor(t){super(t)}}const ko=i6(d6);i6(l1e);const f6=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(v0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},c1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>Ay(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(r6,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=o1e(c1e),u1e={black:"#000",white:"#fff"},Mp=u1e,d1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=d1e,f1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jc=f1e,p1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zc=p1e,h1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=h1e,m1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=m1e,v1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=v1e,g1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y1e=g1e;function Gi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function p6(e){if(!Gi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=p6(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Gi(e)&&Gi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gi(t[o])&&o in e&&Gi(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Gi(t[o])?p6(t[o]):t[o]:r[o]=t[o])}),r}var h6={exports:{}},b1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x1e=b1e,w1e=x1e;function m6(){}function v6(){}v6.resetWarningCache=m6;var C1e=function(){function e(r,o,a,i,s,l){if(l!==w1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v6,resetWarningCache:m6};return n.PropTypes=n,n};h6.exports=C1e();var $1e=h6.exports;const L=Vt($1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function vh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function _1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function _i(e){return Vn(e).defaultView||window}function E1e(e,t){return()=>null}function Ip(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const P1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Jn=P1e;let pD=0;function T1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(pD+=1,n(`mui-${pD}`))},[t]),r}const hD=lp["useId".toString()];function Za(e){if(hD!==void 0){const t=hD();return e??t}return T1e(e)}function k1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Jn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ip(n,t)})},e)}let Xy=!0,jC=!1,mD;const O1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function R1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function D1e(e){e.metaKey||e.altKey||e.ctrlKey||(Xy=!0)}function Dx(){Xy=!1}function M1e(){this.visibilityState==="hidden"&&jC&&(Xy=!0)}function I1e(e){e.addEventListener("keydown",D1e,!0),e.addEventListener("mousedown",Dx,!0),e.addEventListener("pointerdown",Dx,!0),e.addEventListener("touchstart",Dx,!0),e.addEventListener("visibilitychange",M1e,!0)}function A1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xy||R1e(t)}function Qy(){const e=$.useCallback(o=>{o!=null&&I1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(jC=!0,window.clearTimeout(mD),mD=window.setTimeout(()=>{jC=!1},100),t.current=!1,!0):!1}function r(o){return A1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function g6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function y6(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function N1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(y6()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const j1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},oE=j1e,L1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},F1e=L1e;function aE(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=aE(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const vD=e=>e,z1e=()=>{let e=vD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vD}}},V1e=z1e(),b6=V1e,B1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=B1e[t];return r?`${n}-${r}`:`${b6.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const e0="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function x6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var U1e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W1e=x6(function(e){return U1e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function H1e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ir(Td,--Oo):0,Zu--,ur===10&&(Zu=1,n0--),ur}function Yo(){return ur=Oo2||Np(ur)>3?"":" "}function obe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gh(e,Hv()+(t<6&&bi()==32&&Yo()==32))}function FC(e){for(;Yo();)switch(ur){case e:return Oo;case 34:case 39:e!==34&&e!==39&&FC(ur);break;case 40:e===41&&FC(e);break;case 92:Yo();break}return Oo}function abe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&bi()===47)break;return"/*"+gh(t,Oo-1)+"*"+t0(e===47?e:Yo())}function ibe(e){for(;!Np(bi());)Yo();return gh(e,Oo)}function sbe(e){return E6(qv("",null,null,null,[""],e=_6(e),0,[0],e))}function qv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ir(E,f-1)==58){LC(E+=mn(Gv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Gv(y);break;case 9:case 10:case 13:case 32:E+=rbe(b);break;case 92:E+=obe(Hv()-1,7);continue;case 47:switch(bi()){case 42:case 47:av(lbe(abe(Yo(),Hv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=ci(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&ci(E)-f&&av(m>32?yD(E+";",r,n,f-1):yD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(av(S=gD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)qv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ir(E,3)===110?100:p){case 100:case 108:case 109:case 115:qv(e,S,S,r&&av(gD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:qv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+ci(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&nbe()==125)continue}switch(E+=t0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ci(E)-1)*g,g=1;break;case 64:bi()===45&&(E+=Gv(Yo())),p=bi(),u=f=ci(w=E+=ibe(Hv())),y++;break;case 45:b===45&&ci(E)==2&&(v=0)}}return a}function gD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=lE(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return r0(e,t,n,o===0?iE:s,l,c,u)}function lbe(e,t,n){return r0(e,t,n,w6,t0(tbe()),Ap(e,2,-2),0)}function yD(e,t,n,r){return r0(e,t,n,sE,Ap(e,0,r),Ap(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=lE(e),o=0;o6)switch(Ir(e,t+1)){case 109:if(Ir(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Hg+(Ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LC(e,"stretch")?P6(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ir(e,t+1)!==115)break;case 6444:switch(Ir(e,ci(e)-3-(~LC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ir(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(Ir(e,t+11)){case 114:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Ur+e+e}return e}var gbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sE:t.return=P6(t.value,t.length);break;case C6:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case iE:if(t.length)return ebe(t.props,function(a){switch(Q1e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Hg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Hg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Ur+"input-$1")]})],o)}return""})}},ybe=[gbe],bbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||ybe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dbe=/[A-Z]|^ms/g,Mbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I6=function(t){return t.charCodeAt(1)===45},xD=function(t){return t!=null&&typeof t!="boolean"},Mx=x6(function(e){return I6(e)?e:e.replace(Dbe,"-$&").toLowerCase()}),wD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mbe,function(r,o,a){return ui={name:o,styles:a,next:ui},o})}return Rbe[t]!==1&&!I6(t)&&typeof n=="number"&&n!==0?n+"px":n};function jp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ui={name:n.name,styles:n.styles,next:ui},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ui={name:r.name,styles:r.styles,next:ui},r=r.next;var o=n.styles+";";return o}return Ibe(e,t,n)}case"function":{if(e!==void 0){var a=ui,i=n(e);return ui=a,jp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Ibe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Fbe:zbe},_D=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Vbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return D6(n,r,o),Nbe(function(){return M6(n,r,o)}),null},Bbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=_D(t,n,r),l=s||SD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Wbe(o)?n:o):t;return O.jsx(jbe,{styles:r})}/** + * @mui/styled-engine v5.14.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Gbe(e,t){return zC(e,t)}const qbe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ybe=["values","unit","step"],Kbe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function Jbe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Ybe),a=Kbe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${mE[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ED;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ED;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mE).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function L6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function F6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Qbe(e,...t){const n=L6(e),r=[n,...t].reduce((o,a)=>Gr(o,a),{});return F6(Object.keys(n),r)}function exe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||exe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function h0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=h0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=h0(l,r)||{};return Ro(i,s,f=>{let p=Gg(c,o,f);return f===p&&typeof f=="string"&&(p=Gg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function txe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nxe={m:"margin",p:"padding"},rxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oxe=txe(e=>{if(e.length>2)if(PD[e])e=PD[e];else return[e];const[t,n]=e.split(""),r=nxe[t],o=rxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...gE];function yh(e,t,n,r){var o;const a=(o=h0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function yE(e){return yh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function axe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function ixe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=oxe(n),a=axe(o,r),i=e[n];return Ro(e,i,a)}function z6(e,t){const n=yE(e.theme);return Object.keys(e).map(r=>ixe(e,t,r,n)).reduce(Zf,{})}function Xn(e){return z6(e,vE)}Xn.propTypes={};Xn.filterProps=vE;function Qn(e){return z6(e,gE)}Qn.propTypes={};Qn.filterProps=gE;function sxe(e=8){if(e.mui)return e;const t=yE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function m0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Zf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function hi(e){return typeof e!="number"?e:`${e}px solid`}const lxe=bn({prop:"border",themeKey:"borders",transform:hi}),cxe=bn({prop:"borderTop",themeKey:"borders",transform:hi}),uxe=bn({prop:"borderRight",themeKey:"borders",transform:hi}),dxe=bn({prop:"borderBottom",themeKey:"borders",transform:hi}),fxe=bn({prop:"borderLeft",themeKey:"borders",transform:hi}),pxe=bn({prop:"borderColor",themeKey:"palette"}),hxe=bn({prop:"borderTopColor",themeKey:"palette"}),mxe=bn({prop:"borderRightColor",themeKey:"palette"}),vxe=bn({prop:"borderBottomColor",themeKey:"palette"}),gxe=bn({prop:"borderLeftColor",themeKey:"palette"}),v0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Ro(e,e.borderRadius,n)}return null};v0.propTypes={};v0.filterProps=["borderRadius"];m0(lxe,cxe,uxe,dxe,fxe,pxe,hxe,mxe,vxe,gxe,v0);const g0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Ro(e,e.gap,n)}return null};g0.propTypes={};g0.filterProps=["gap"];const y0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Ro(e,e.columnGap,n)}return null};y0.propTypes={};y0.filterProps=["columnGap"];const b0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Ro(e,e.rowGap,n)}return null};b0.propTypes={};b0.filterProps=["rowGap"];const yxe=bn({prop:"gridColumn"}),bxe=bn({prop:"gridRow"}),xxe=bn({prop:"gridAutoFlow"}),wxe=bn({prop:"gridAutoColumns"}),Cxe=bn({prop:"gridAutoRows"}),$xe=bn({prop:"gridTemplateColumns"}),Sxe=bn({prop:"gridTemplateRows"}),_xe=bn({prop:"gridTemplateAreas"}),Exe=bn({prop:"gridArea"});m0(g0,y0,b0,yxe,bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe);function Iu(e,t){return t==="grey"?t:e}const Pxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Txe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),kxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});m0(Pxe,Txe,kxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Oxe=bn({prop:"width",transform:Uo}),bE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||mE[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Ro(e,e.maxWidth,t)}return null};bE.filterProps=["maxWidth"];const Rxe=bn({prop:"minWidth",transform:Uo}),Dxe=bn({prop:"height",transform:Uo}),Mxe=bn({prop:"maxHeight",transform:Uo}),Ixe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Axe=bn({prop:"boxSizing"});m0(Oxe,bE,Rxe,Dxe,Mxe,Ixe,Axe);const Nxe={border:{themeKey:"borders",transform:hi},borderTop:{themeKey:"borders",transform:hi},borderRight:{themeKey:"borders",transform:hi},borderBottom:{themeKey:"borders",transform:hi},borderLeft:{themeKey:"borders",transform:hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:g0},rowGap:{style:b0},columnGap:{style:y0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:bE},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},x0=Nxe;function jxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Lxe(e,t){return typeof e=="function"?e(t):e}function Fxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=h0(o,c)||{};return f?f(i):Ro(i,r,b=>{let v=Gg(p,u,b);return b===v&&typeof b=="string"&&(v=Gg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:x0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=L6(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Lxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Zf(p,e(m,b,a,i));else{const v=Ro({theme:a},b,x=>({[m]:x}));jxe(v,b)?p[m]=t({sx:b,theme:a}):p=Zf(p,v)}else p=Zf(p,e(m,b,a,i))}),F6(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const V6=Fxe();V6.filterProps=["sx"];const xE=V6,zxe=["breakpoints","palette","spacing","shape"];function w0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,zxe),s=Jbe(n),l=sxe(o);let c=Gr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},Xbe,a)},i);return c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}function Vxe(e){return Object.keys(e).length===0}function wE(e=null){const t=$.useContext(pE);return!t||Vxe(t)?e:t}const Bxe=w0();function bh(e=Bxe){return wE(e)}function Uxe({styles:e,themeId:t,defaultTheme:n={}}){const r=bh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Hbe,{styles:o})}const Wxe=["sx"],Hxe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:x0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function CE(e){const{sx:t}=e,n=Oe(e,Wxe),{systemProps:r,otherProps:o}=Hxe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Gi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const Gxe=["variant"];function TD(e){return e.length===0}function B6(e){const{variant:t}=e,n=Oe(e,Gxe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=TD(r)?e[o]:Fe(e[o]):r+=`${TD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const qxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yxe(e){return Object.keys(e).length===0}function Kxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Jxe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qg=e=>{const t={};return e&&e.forEach(n=>{const r=B6(n.props);t[r]=n.style}),t},Zxe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),qg(n)},Yg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[B6(a.props)])}),o},Xxe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Yg(e,t,a)};function Xf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qxe=w0(),ewe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yv({defaultTheme:e,theme:t,themeId:n}){return Yxe(t)?e:t[n]||t}function twe(e){return e?(t,n)=>n[e]:null}const kD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Yv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Yg(t,qg(a),a);return[o,...i]}return o};function U6(e={}){const{themeId:t,defaultTheme:n=Qxe,rootShouldForwardProp:r=Xf,slotShouldForwardProp:o=Xf}=e,a=i=>xE(T({},i,{theme:Yv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{qbe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=twe(ewe(c))}=s,m=Oe(s,qxe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Xf;c==="Root"||c==="root"?g=r:c?g=o:Kxe(i)&&(g=void 0);const y=Gbe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>kD({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Gi(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let z=R;return Yg(G,qg(U),U).forEach(Y=>{z=Gr(z,Y)}),z}),F}return R}):[];let E=C;if(Gi(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Yg(F,qg(R),R).forEach(z=>{U=Gr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>kD({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t})),U=Jxe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},R,{theme:F})):V}),p(R,G)}return null}),l&&!b&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t}));return Xxe(R,Zxe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const nwe=U6(),rwe=nwe;function $E(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:aE(t.components[n].defaultProps,r)}function W6({props:e,name:t,defaultTheme:n,themeId:r}){let o=bh(n);return r&&(o=o[r]||o),$E({theme:o,name:t,props:e})}function SE(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function owe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(owe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function C0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function awe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),C0({type:s,values:l})}function OD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(awe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iwe(e,t){const n=OD(e),r=OD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=SE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,C0(e)}function $0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return C0(e)}function S0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return C0(e)}const swe=["component","direction","spacing","divider","children","className","useFlexGap"],lwe=w0(),cwe=rwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function uwe(e){return W6({props:e,name:"MuiStack",defaultTheme:lwe})}function dwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pwe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Ro({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=yE(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Gr(n,Ro({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fwe(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=Qbe(t.breakpoints,n),n};function hwe(e={}){const{createStyledComponent:t=cwe,useThemeProps:n=uwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(pwe);return $.forwardRef(function(l,c){const u=n(l),f=CE(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,swe),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?dwe(x,v):x}))})}function mwe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vwe=["mode","contrastThreshold","tonalOffset"],RD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mp.white,default:Mp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ix={text:{primary:Mp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S0(e.main,o):t==="dark"&&(e.dark=$0(e.main,a)))}function gwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function ywe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[500],light:Jc[300],dark:Jc[700]}}function bwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function xwe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function wwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Cwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function $we(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,vwe),a=e.primary||gwe(t),i=e.secondary||ywe(t),s=e.error||bwe(t),l=e.info||xwe(t),c=e.success||wwe(t),u=e.warning||Cwe(t);function f(v){return iwe(v,Ix.text.primary)>=n?Ix.text.primary:RD.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return DD(v,"light",y,r),DD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Ix,light:RD};return Gr(T({common:T({},Mp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:y1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Swe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _we(e){return Math.round(e*1e5)/1e5}const MD={textTransform:"uppercase"},ID='"Roboto", "Helvetica", "Arial", sans-serif';function Ewe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ID,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,Swe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===ID?{letterSpacing:`${_we(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,MD),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,MD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Pwe=.2,Twe=.14,kwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Pwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Twe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kwe})`].join(",")}const Owe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Rwe=Owe,Dwe=["duration","easing","delay"],Mwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AD(e){return`${Math.round(e)}ms`}function Iwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Awe(e){const t=T({},Mwe,e.easing),n=T({},H6,e.duration);return T({getAutoHeightDuration:Iwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,Dwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:AD(i)} ${s} ${typeof l=="string"?l:AD(l)}`).join(",")}},e,{easing:t,duration:n})}const Nwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jwe=Nwe,Lwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Lwe);if(e.vars)throw new Error(al(18));const s=$we(r),l=w0(e);let c=Gr(l,{mixins:mwe(l.breakpoints,n),palette:s,shadows:Rwe.slice(),typography:Ewe(s,a),transitions:Awe(o),zIndex:T({},jwe)});return c=Gr(c,i),c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}const zwe=Fwe(),_0=zwe;function rr(){const e=bh(_0);return e[e0]||e}function Je({props:e,name:t}){return W6({props:e,name:t,defaultTheme:_0,themeId:e0})}const ra=e=>Xf(e)&&e!=="classes",_E=Xf,Vwe=U6({themeId:e0,defaultTheme:_0,rootShouldForwardProp:ra}),he=Vwe,Bwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ND=Bwe;function Uwe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wwe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hwe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,Uwe,r)},Gwe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),G6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Wwe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Hwe(v);return O.jsxs(Gwe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});G6.muiName="SvgIcon";const VC=G6;function or(e,t){function n(r,o){return O.jsx(VC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=VC.muiName,$.memo($.forwardRef(n))}const qwe={configure:e=>{b6.configure(e)}},Ywe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:Wg,createSvgIcon:or,debounce:vh,deprecatedPropType:_1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:_i,requirePropFactory:E1e,setRef:Ip,unstable_ClassNameGenerator:qwe,unstable_useEnhancedEffect:Jn,unstable_useId:Za,unsupportedProp:k1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Qy},Symbol.toStringTag,{value:"Module"}));var En={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var EE=Symbol.for("react.element"),PE=Symbol.for("react.portal"),E0=Symbol.for("react.fragment"),P0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),O0=Symbol.for("react.context"),Kwe=Symbol.for("react.server_context"),R0=Symbol.for("react.forward_ref"),D0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),I0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Jwe=Symbol.for("react.offscreen"),q6;q6=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EE:switch(e=e.type,e){case E0:case T0:case P0:case D0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case Kwe:case O0:case R0:case A0:case I0:case k0:return e;default:return t}}case PE:return t}}}En.ContextConsumer=O0;En.ContextProvider=k0;En.Element=EE;En.ForwardRef=R0;En.Fragment=E0;En.Lazy=A0;En.Memo=I0;En.Portal=PE;En.Profiler=T0;En.StrictMode=P0;En.Suspense=D0;En.SuspenseList=M0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===O0};En.isContextProvider=function(e){return Pa(e)===k0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EE};En.isForwardRef=function(e){return Pa(e)===R0};En.isFragment=function(e){return Pa(e)===E0};En.isLazy=function(e){return Pa(e)===A0};En.isMemo=function(e){return Pa(e)===I0};En.isPortal=function(e){return Pa(e)===PE};En.isProfiler=function(e){return Pa(e)===T0};En.isStrictMode=function(e){return Pa(e)===P0};En.isSuspense=function(e){return Pa(e)===D0};En.isSuspenseList=function(e){return Pa(e)===M0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===E0||e===T0||e===P0||e===D0||e===M0||e===Jwe||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===I0||e.$$typeof===k0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===q6||e.getModuleId!==void 0)};En.typeOf=Pa;function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BC(e,t)}function TE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BC(e,t)}function Zwe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Xwe(e,t){e.classList?e.classList.add(t):Zwe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Qwe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jD(e.className,t):e.setAttribute("class",jD(e.className&&e.className.baseVal||"",t))}const LD={disabled:!1},Kg=M.createContext(null);var Y6=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",UC="exiting",fs=function(e){TE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=UC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this);i&&Y6(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Of.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||LD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Of.findDOMNode(this);if(!a||LD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:UC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Kg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);fs.contextType=Kg;fs.propTypes={};function tu(){}fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};fs.UNMOUNTED=Mf;fs.EXITED=Al;fs.ENTERING=Nl;fs.ENTERED=iu;fs.EXITING=UC;const N0=fs;var eCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xwe(t,r)})},Ax=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Qwe(t,r)})},kE=function(e){TE(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function lCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const cCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],uCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,lCe,n)},dCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),fCe=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),J6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=H6.standard,TransitionComponent:C=N0}=r,_=Oe(r,cCe),S=T({},r,{orientation:g,collapsedSize:s}),E=uCe(S),k=rr(),I=$.useRef(),R=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>Z=>{if(B){const re=V.current;Z===void 0?B(re):B(re,Z)}},W=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((B,Z)=>{R.current&&G&&(R.current.style.position="absolute"),B.style[z]=U,f&&f(B,Z)}),X=Q((B,Z)=>{const re=W();R.current&&G&&(R.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,Z)}),j=Q((B,Z)=>{B.style[z]="auto",p&&p(B,Z)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const Z=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return O.jsx(C,T({in:u,onEnter:J,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,Z)=>O.jsx(dCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},Z,{children:O.jsx(fCe,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:R,children:O.jsx(pCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});J6.muiSupportAuto=!0;const hCe=J6;function mCe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const vCe=["className","component","elevation","square","variant"],gCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,mCe,o)},yCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",ND(t.elevation))}, ${Tt("#fff",ND(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),bCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,vCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=gCe(u);return O.jsx(yCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),ps=bCe,xCe=$.createContext({}),Z6=xCe;function wCe(e){return tt("MuiAccordion",e)}const CCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),iv=CCe,$Ce=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],SCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},wCe,t)},_Ce=he(ps,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${iv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${iv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${iv.expanded}`]:{margin:"16px 0"}})),ECe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=hCe,TransitionProps:m}=r,b=Oe(r,$Ce),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=SCe(_);return O.jsxs(_Ce,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Z6.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),PCe=ECe;function TCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const kCe=["className"],OCe=e=>{const{classes:t}=e;return Qe({root:["root"]},TCe,t)},RCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),DCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,kCe),i=r,s=OCe(i);return O.jsx(RCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),MCe=DCe;function ICe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const ACe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=ACe,NCe=["center","classes","className"];let j0=e=>e,FD,zD,VD,BD;const WC=550,jCe=80,LCe=hE(FD||(FD=j0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FCe=hE(zD||(zD=j0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),zCe=hE(VD||(VD=j0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),VCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BCe=he(ICe,{name:"MuiTouchRipple",slot:"Ripple"})(BD||(BD=j0` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),pa.rippleVisible,LCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,FCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,zCe,({theme:e})=>e.transitions.easing.easeInOut),UCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,NCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(BCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:WC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},jCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(VCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:O.jsx(DE,{component:null,exit:!0,children:l})}))}),WCe=UCe;function HCe(e){return tt("MuiButtonBase",e)}const GCe=et("MuiButtonBase",["root","disabled","focusVisible"]),qCe=GCe,YCe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KCe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},HCe,o);return n&&r&&(i.root+=` ${r}`),i},JCe=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qCe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Oe(r,YCe),Q=$.useRef(null),W=$.useRef(null),J=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=Qy(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,Z]=$.useState(!1);$.useEffect(()=>{Z(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",R),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=KCe(ze);return O.jsxs(JCe,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?O.jsx(WCe,T({ref:J,center:a},G)):null]}))}),Sa=ZCe;function XCe(e){return tt("MuiAccordionSummary",e)}const QCe=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=QCe,e$e=["children","className","expandIcon","focusVisibleClassName","onClick"],t$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},XCe,t)},n$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),r$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),o$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),a$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,e$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(Z6),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=t$e(v);return O.jsxs(n$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(r$e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(o$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),i$e=a$e;function s$e(e){return tt("MuiIconButton",e)}const l$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c$e=l$e,u$e=["edge","children","className","color","disabled","disableFocusRipple","size"],d$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,s$e,t)},f$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),p$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,u$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=d$e(p);return O.jsx(f$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=p$e,h$e=or(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function m$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const v$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,m$e,i)},y$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x$e=e=>b$e[e]||e,w$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=x$e(r.color),a=CE(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=UD}=a,b=Oe(a,v$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||UD[p])||"span",g=g$e(v);return O.jsx(y$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=w$e;function C$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const $$e=["className","color","enableColorOnDark","position"],S$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,C$e,r)},sv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_$e=he(ps,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:sv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),E$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,$$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=S$e(c);return O.jsx(_$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),P$e=E$e;function xi(e){return typeof e=="string"}function If(e,t,n){return e===void 0||xi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function T$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const k$e={disableDefaultClasses:!1},O$e=$.createContext(k$e);function R$e(e){const{disableDefaultClasses:t}=$.useContext(O$e);return n=>t?"":e(n)}function Qf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function WD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Qf(T({},o,r)),s=WD(r),l=WD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const M$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,M$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=D$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function I$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=oE({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const A$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function N$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function L$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j$e(e))}function F$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(A$e)).forEach((r,o)=>{const a=N$e(r);a===-1||!L$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function z$e(){return!0}function X6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=F$e,isEnabled:i=z$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs($.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",ME="auto",xh=[_o,_a,Ea,Eo],Qu="start",Lp="end",V$e="clippingParents",Q6="viewport",gf="popper",B$e="reference",HD=xh.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+Lp])},[]),eL=[].concat(xh,[ME]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+Lp])},[]),U$e="beforeRead",W$e="read",H$e="afterRead",G$e="beforeMain",q$e="main",Y$e="afterMain",K$e="beforeWrite",J$e="write",Z$e="afterWrite",X$e=[U$e,W$e,H$e,G$e,q$e,Y$e,K$e,J$e,Z$e];function Ei(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IE(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ei(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function eSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ei(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const tSe={name:"applyStyles",enabled:!0,phase:"write",fn:Q$e,effect:eSe,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Kl=Math.max,Jg=Math.min,ed=Math.round;function HC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tL(){return!/^((?!chrome|android).)*safari/i.test(HC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Zo(e):window,s=i.visualViewport,l=!tL()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function AE(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ss(e){return Zo(e).getComputedStyle(e)}function nSe(e){return["table","td","th"].indexOf(Ei(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return Ei(e)==="html"?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||fl(e)}function GD(e){return!ya(e)||ss(e).position==="fixed"?null:e.offsetParent}function rSe(e){var t=/firefox/i.test(HC()),n=/Trident/i.test(HC());if(n&&ya(e)){var r=ss(e);if(r.position==="fixed")return null}var o=L0(e);for(IE(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ei(o))<0;){var a=ss(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function wh(e){for(var t=Zo(e),n=GD(e);n&&nSe(n)&&ss(n).position==="static";)n=GD(n);return n&&(Ei(n)==="html"||Ei(n)==="body"&&ss(n).position==="static")?t:n||rSe(e)||t}function NE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ep(e,t,n){return Kl(e,Jg(t,n))}function oSe(e,t,n){var r=ep(e,t,n);return r>n?n:r}function rL(){return{top:0,right:0,bottom:0,left:0}}function oL(e){return Object.assign({},rL(),e)}function aL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oL(typeof t!="number"?t:aL(t,xh))};function iSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=wi(n.placement),l=NE(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=aSe(o.padding,n),p=AE(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=wh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=ep(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function sSe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nL(t.elements.popper,o)&&(t.elements.arrow=o))}const lSe={name:"arrow",enabled:!0,phase:"main",fn:iSe,effect:sSe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var cSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function qD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=wh(n),E="clientHeight",k="clientWidth";if(S===Zo(n)&&(S=fl(n),ss(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===Lp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===Lp){w=Ea;var R=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&cSe),U=u===!0?uSe({x:m,y:v},Zo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function dSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:wi(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fSe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dSe,data:{}};var lv={passive:!0};function pSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lv)}),s&&l.addEventListener("resize",n.update,lv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lv)}),s&&l.removeEventListener("resize",n.update,lv)}}const hSe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pSe,data:{}};var mSe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(e){return e.replace(/left|right|bottom|top/g,function(t){return mSe[t]})}var vSe={start:"end",end:"start"};function YD(e){return e.replace(/start|end/g,function(t){return vSe[t]})}function jE(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LE(e){return td(fl(e)).left+jE(e).scrollLeft}function gSe(e,t){var n=Zo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=tL();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+LE(e),y:l}}function ySe(e){var t,n=fl(e),r=jE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+LE(e),l=-r.scrollTop;return ss(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function FE(e){var t=ss(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iL(e){return["html","body","#document"].indexOf(Ei(e))>=0?e.ownerDocument.body:ya(e)&&FE(e)?e:iL(L0(e))}function tp(e,t){var n;t===void 0&&(t=[]);var r=iL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Zo(r),i=o?[a].concat(a.visualViewport||[],FE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(tp(L0(i)))}function GC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KD(e,t,n){return t===Q6?GC(gSe(e,n)):cc(t)?bSe(t,n):GC(ySe(fl(e)))}function xSe(e){var t=tp(L0(e)),n=["absolute","fixed"].indexOf(ss(e).position)>=0,r=n&&ya(e)?wh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&nL(o,r)&&Ei(o)!=="body"}):[]}function wSe(e,t,n,r){var o=t==="clippingParents"?xSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=KD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Jg(u.right,l.right),l.bottom=Jg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},KD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sL(e){var t=e.reference,n=e.element,r=e.placement,o=r?wi(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?NE(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Lp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Fp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?V$e:s,c=n.rootBoundary,u=c===void 0?Q6:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=oL(typeof x!="number"?x:aL(x,xh)),y=p===gf?B$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=wSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=sL({reference:S,element:w,strategy:"absolute",placement:o}),k=GC(Object.assign({},w,E)),I=p===gf?k:S,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(R).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";R[G]+=U[V]*z})}return R}function CSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?eL:l,u=nd(r),f=u?s?HD:HD.filter(function(b){return nd(b)===u}):xh,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Fp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function $Se(e){if(wi(e)===ME)return[];var t=Kv(e);return[YD(e),t,YD(t)]}function SSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=wi(x),y=g===x,w=l||(y||!b?[Kv(x)]:$Se(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(wi(N)===ME?CSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,V=z?"width":"height",Y=Fp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Kv(Q));var W=Kv(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[W]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const _Se={name:"flip",enabled:!0,phase:"main",fn:SSe,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZD(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function ESe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Fp(t,{elementContext:"reference"}),s=Fp(t,{altBoundary:!0}),l=JD(i,r),c=JD(s,o,a),u=ZD(l),f=ZD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const PSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ESe};function TSe(e,t,n){var r=wi(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function kSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=eL.reduce(function(u,f){return u[f]=TSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const OSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kSe};function RSe(e){var t=e.state,n=e.name;t.modifiersData[n]=sL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DSe={name:"popperOffsets",enabled:!0,phase:"read",fn:RSe,data:{}};function MSe(e){return e==="x"?"y":"x"}function ISe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Fp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=wi(t.placement),y=nd(t.placement),w=!y,C=NE(g),_=MSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],J=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?AE(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rL(),B=N[z],Z=N[V],re=ep(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-R.mainAxis:j-re-B-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,me=t.elements.arrow&&wh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=ep(m?Jg(W,Ce):W,Q,m?Kl(J,fe):J);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+R.altAxis,ze=Ye?ge+E[we]+k[we]-Me-R.altAxis:He,Pe=m&&Ye?oSe(je,ge,ze):ep(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const ASe={name:"preventOverflow",enabled:!0,phase:"main",fn:ISe,requiresIfExists:["offset"]};function NSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jSe(e){return e===Zo(e)||!ya(e)?jE(e):NSe(e)}function LSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&LSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ei(t)!=="body"||FE(a))&&(s=jSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=LE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function zSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function VSe(e){var t=zSe(e);return X$e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function USe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XD={placement:"bottom",modifiers:[],strategy:"absolute"};function QD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(qSe(o)||document.body)},[o,a]),Jn(()=>{if(i&&!a)return Ip(n,i),()=>{Ip(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return O.jsx($.Fragment,{children:r})}return O.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function YSe(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const KSe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JSe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZSe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function qC(e){return typeof e=="function"?e():e}function XSe(e){return e.nodeType!==void 0}const QSe=()=>Qe({root:["root"]},R$e(YSe)),e_e={},t_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,KSe),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Jn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=ZSe(u,i),[E,k]=$.useState(S),[I,R]=$.useState(qC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&R(qC(o))},[o]),Jn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=GSe(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=QSe(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),n_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=e_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,JSe),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=qC(r);E=R&&XSe(R)?Vn(R).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return O.jsx(lL,{disablePortal:s,container:E,children:O.jsx(t_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function r_e(e){const t=Vn(e);return t.body===e?_i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eM(e){return parseInt(_i(e).getComputedStyle(e).paddingRight,10)||0}function o_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!o_e(i);s&&l&&np(i,o)})}function Nx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r_e(r)){const i=g6(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${eM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=_i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function i_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&np(t.modalRef,!1);const o=i_e(n);tM(n,t.mount,t.modalRef,o,!0);const a=Nx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Nx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=a_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,n),tM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l_e(e){return typeof e=="function"?e():e}function c_e(e){return e?e.props.hasOwnProperty("in"):!1}const u_e=new s_e;function d_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=u_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=c_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=l_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&np(b.current,w))}),R=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{R()},[R]),$.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Qf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Wg(Y,l==null?void 0:l.props.onEnter),onExited:Wg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const f_e=2;function cL(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function nM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},g_e=e=>e;let fv;function jx(){return fv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fv=CSS.supports("touch-action","none"):fv=!0),fv}function y_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=g_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[R,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(R);let z=G?R.slice().sort(cL):[R];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:X}=Qy(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));J(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},Z=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Jn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=p_e(gt,l,s),v)Le=m_e(Le,v,l);else{const te=nM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=nM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=rM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=cv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});uv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>f_e&&k(!0),U&&!dv(ze,R)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=cv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;jx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=cv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});uv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!dv(Te,R)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:jx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:jx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=cv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});uv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!dv(it,R)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=Zg(G?z[0]:l,l,s),De=Zg(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=Qf(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:v_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=Qf(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:Z(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},F1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=Qf(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const b_e=["onChange","maxRows","minRows","style","value"];function pv(e){return parseInt(e,10)||0}const x_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const w_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,b_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=_i(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=S.boxSizing,I=pv(S.paddingBottom)+pv(S.paddingTop),R=pv(S.borderBottomWidth)+pv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+R:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();oM(C)||v(_=>g(_,C))},[x]);Jn(()=>{const C=()=>{const F=x();oM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=vh(_),k=u.current,I=_i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Jn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs($.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},x_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function aM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function C_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=aM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=aM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Lx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function __e(e){const{unstable_isActiveElementInListbox:t=S_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=$_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:J,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Za(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),Z=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&R(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=oE({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?Z.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Lx(fe,rt=>R(ve,rt))!==-1)return;const Ie=Lx(Pe,rt=>R(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Ip(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Lx(xt,ut=>R(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-iM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:iM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){Z.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(Z.current.focus(),j&&B.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&R(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const E_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],P_e=he(n_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T_e=$.forwardRef(function(t,n){var r;const o=wE(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,E_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(P_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),Ch=T_e;function k_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const O_e=["className","color","component","disableGutters","disableSticky","inset"],R_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,k_e,t)},D_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),uL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,O_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=R_e(f);return O.jsx(D_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});uL.muiSkipListHighlight=!0;const M_e=uL,I_e=or(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function A_e(e){return tt("MuiChip",e)}const N_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=N_e,j_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,A_e,t)},F_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),z_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sM(e){return e.key==="Backspace"||e.key==="Delete"}const V_e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,j_e),S=$.useRef(null),E=sn(S,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&sM(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&sM(J)?b(J):J.key==="Escape"&&S.current&&S.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=L_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):O.jsx(I_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),O.jsxs(F_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,O.jsx(z_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),dL=V_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const B_e=$.createContext(void 0),F0=B_e;function ki(){return $.useContext(F0)}function U_e(e){return O.jsx(Uxe,T({},e,{defaultTheme:_0,themeId:e0}))}function lM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(lM(e.value)&&e.value!==""||t&&lM(e.defaultValue)&&e.defaultValue!=="")}function W_e(e){return e.startAdornment}function H_e(e){return tt("MuiInputBase",e)}const G_e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=G_e,q_e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],z0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},V0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Y_e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,H_e,t)},B0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),U0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_e=O.jsx(U_e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),J_e=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:J={},startAdornment:X,type:j="text",value:K}=o,q=Oe(o,q_e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),Z=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,Z),[ce,xe]=$.useState(!1),me=ki(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{Xg(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Jn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),R&&R(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=w_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=Y_e(He),Me=J.root||c.Root||B0,je=W.root||u.root||{},ze=J.input||c.Input||U0;return we=T({},we,(r=W.input)!=null?r:u.input),O.jsxs($.Fragment,{children:[!m&&K_e,O.jsxs(Me,T({},je,!xi(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,O.jsx(F0.Provider,{value:null,children:O.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!xi(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),zE=J_e;function Z_e(e){return tt("MuiInput",e)}const X_e=T({},Vo,et("MuiInput",["root","underline","input"])),js=X_e;function Q_e(e){return tt("MuiOutlinedInput",e)}const eEe=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),li=eEe;function tEe(e){return tt("MuiFilledInput",e)}const nEe=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=nEe,fL=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rEe(e){return tt("MuiAutocomplete",e)}const oEe=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=oEe;var cM,uM;const aEe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iEe=["ref"],sEe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,rEe,t)},lEe=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${js.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${js.root}.${Vo.sizeSmall}`]:{[`& .${js.input}`]:{padding:"2px 4px 3px 0"}},[`& .${li.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${li.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),cEe=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uEe=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dEe=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),fEe=he(Ch,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),pEe=he(ps,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),hEe=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mEe=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vEe=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gEe=he(M_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yEe=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),bEe=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=cM||(cM=O.jsx(h$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:ce=ps,PopperComponent:xe=Ch,popupIcon:me=uM||(uM=O.jsx(fL,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Oe(s,aEe),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=__e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Oe(dt,iEe),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=sEe(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>O.jsx(dL,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(O.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>O.jsxs("li",{children:[O.jsx(gEe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),O.jsx(yEe,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>O.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs($.Fragment,{children:[O.jsx(lEe,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:O.jsxs(cEe,{className:Kt.endAdornment,ownerState:Ut,children:[nt?O.jsx(uEe,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(dEe,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?O.jsx(fEe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:O.jsxs(pEe,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?O.jsx(hEe,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?O.jsx(mEe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?O.jsx(vEe,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),xEe=bEe,wEe=or(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CEe(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $Ee=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],SEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CEe,t)},_Ee=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),EEe=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),PEe=he(wEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TEe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const kEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,$Ee);let b=null;const v=TEe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=SEe(y);return g?b=O.jsx(EEe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(PEe,{ownerState:y,className:w.fallback}),O.jsx(_Ee,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),pL=kEe,OEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],REe={entering:{opacity:1},entered:{opacity:1}},DEe=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=N0}=t,w=Oe(t,OEe),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{K6(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),R=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},REe[z],x,s.props.style),ref:_},V))}))}),kd=DEe;function MEe(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const IEe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AEe=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},MEe,t)},NEe=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),jEe=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Oe(i,IEe),w=T({},i,{component:c,invisible:p}),C=AEe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(NEe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),hL=jEe;function LEe(e){return tt("MuiBadge",e)}const FEe=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=FEe,zEe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fx=10,zx=4,VEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,LEe,i)},BEe=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),UEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fx*2,lineHeight:1,padding:"0 6px",height:Fx*2,borderRadius:Fx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:zx,height:zx*2,minWidth:zx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),WEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,zEe),{badgeContent:R,invisible:F,max:U,displayValue:G}=I$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=oE({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=V?z:c,X=J!=="dot"?G:void 0,j=T({},c,{badgeContent:R,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:J}),K=VEe(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:BEe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:UEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),mL=WEe;function HEe(e){return tt("MuiButton",e)}const GEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hv=GEe,qEe=$.createContext({}),YEe=qEe,KEe=$.createContext(void 0),JEe=KEe,ZEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],XEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,HEe,i);return T({},i,l)},vL=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),QEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hv.disabled}`]:{boxShadow:"none"}}),e2e=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},vL(e))),t2e=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},vL(e))),n2e=$.forwardRef(function(t,n){const r=$.useContext(YEe),o=$.useContext(JEe),a=aE(r,t),i=Je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,ZEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=XEe(S),k=y&&O.jsx(e2e,{className:E.startIcon,ownerState:S,children:y}),I=b&&O.jsx(t2e,{className:E.endIcon,ownerState:S,children:b}),R=o||"";return O.jsxs(QEe,T({ownerState:S,className:Ne(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=n2e;function r2e(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const o2e=["className","raised"],a2e=e=>{const{classes:t}=e;return Qe({root:["root"]},r2e,t)},i2e=he(ps,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),s2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,o2e),s=T({},r,{raised:a}),l=a2e(s);return O.jsx(i2e,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),l2e=s2e;function c2e(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const u2e=["className","component"],d2e=e=>{const{classes:t}=e;return Qe({root:["root"]},c2e,t)},f2e=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),p2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,u2e),s=T({},r,{component:a}),l=d2e(s);return O.jsx(f2e,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),h2e=p2e;function m2e(e){return tt("MuiCardHeader",e)}const v2e=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dM=v2e,g2e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],y2e=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m2e,t)},b2e=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${dM.title}`]:t.title,[`& .${dM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),x2e=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),w2e=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),C2e=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),$2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,g2e),b=T({},r,{component:s,disableTypography:l}),v=y2e(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=O.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=O.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(b2e,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(x2e,{className:v.avatar,ownerState:b,children:a}),O.jsxs(C2e,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(w2e,{className:v.action,ownerState:b,children:o})]}))}),S2e=$2e;function _2e(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E2e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],P2e=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,_2e,t)},T2e=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),k2e=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O2e=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Oe(t,E2e),[I,R]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=ki(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=P2e(Q);return O.jsxs(T2e,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(k2e,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),VE=O2e,R2e=or(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),D2e=or(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M2e=or(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I2e(e){return tt("MuiCheckbox",e)}const A2e=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vx=A2e,N2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],j2e=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,I2e,t);return T({},t,i)},L2e=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vx.checked}, &.${Vx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),F2e=O.jsx(D2e,{}),z2e=O.jsx(R2e,{}),V2e=O.jsx(M2e,{}),B2e=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=F2e,color:s="primary",icon:l=z2e,indeterminate:c=!1,indeterminateIcon:u=V2e,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,N2e),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=j2e(g);return O.jsx(L2e,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),U2e=B2e;function W2e(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const H2e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],G2e=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W2e,r)},q2e=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Y2e=he(hL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),K2e=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({name:"MuiModal",props:t}),{BackdropComponent:u=Y2e,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Oe(c,H2e),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=d_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=G2e(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=J();B.onEnter=se,B.onExited=Ce}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:q2e,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:Z,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(lL,{ref:X,container:v,disablePortal:S,children:O.jsxs(Z,T({},me,{children:[!I&&u?O.jsx(re,T({},ue)):null,O.jsx(X6,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),gL=K2e;function J2e(e){return tt("MuiDialog",e)}const Z2e=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rp=Z2e,X2e=$.createContext({}),yL=X2e,Q2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ePe=he(hL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,J2e,t)},nPe=he(gL,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),rPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),oPe=he(ps,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),aPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ps,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,Q2e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=tPe(R),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Za(s),Y=$.useMemo(()=>({titleId:V}),[V]);return O.jsx(nPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:ePe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:R},I,{children:O.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(rPe,{className:Ne(F.container),onMouseDown:G,ownerState:R,children:O.jsx(oPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:R,children:O.jsx(yL.Provider,{value:Y,children:u})}))})}))}))}),W0=aPe;function iPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const sPe=["className","disableSpacing"],lPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},iPe,t)},cPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),uPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,sPe),s=T({},r,{disableSpacing:a}),l=lPe(s);return O.jsx(cPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),H0=uPe;function dPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function fPe(e){return tt("MuiDialogTitle",e)}const pPe=et("MuiDialogTitle",["root"]),hPe=pPe,mPe=["className","dividers"],vPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},dPe,t)},gPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${hPe.root} + &`]:{paddingTop:0}})),yPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,mPe),s=T({},r,{dividers:a}),l=vPe(s);return O.jsx(gPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),G0=yPe;function bPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const xPe=["children","className"],wPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},bPe,t);return T({},t,r)},CPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Pe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,xPe),i=wPe(a);return O.jsx(CPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),BE=$Pe,SPe=["className","id"],_Pe=e=>{const{classes:t}=e;return Qe({root:["root"]},fPe,t)},EPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,SPe),s=r,l=_Pe(s),{titleId:c=a}=$.useContext(yL);return O.jsx(EPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),UE=PPe;function TPe(e){return tt("MuiDivider",e)}const kPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fM=kPe,OPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},TPe,r)},DPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,OPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=RPe(v);return O.jsx(DPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(MPe,{className:x.wrapper,ownerState:v,children:a}):null}))});bL.muiSkipListHighlight=!0;const pM=bL,IPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],APe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},tEe,t);return T({},t,o)},NPe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),jPe=he(U0,{name:"MuiFilledInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,IPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=APe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Gr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:NPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:jPe;return O.jsx(zE,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});xL.muiName="Input";const wL=xL;function LPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,LPe,t)},VPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),BPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,FPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=zPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&W_e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(Xg(z.props,!0)||Xg(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,R,f,p,F,b,v,x]);return O.jsx(F0.Provider,{value:U,children:O.jsx(VPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),$h=BPe,UPe=hwe({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Je({props:e,name:"MuiStack"})}),WPe=UPe;function HPe(e){return tt("MuiFormControlLabel",e)}const GPe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=GPe,qPe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YPe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,HPe,t)},KPe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JPe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),ZPe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,qPe),x=ki(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=YPe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=O.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),O.jsxs(KPe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?O.jsxs(WPe,{direction:"row",alignItems:"center",children:[k,O.jsxs(JPe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),q0=ZPe;function XPe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const QPe=["className","row"],eTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},XPe,t)},tTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,QPe),s=ki(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=eTe(c);return O.jsx(tTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),CL=nTe;function rTe(e){return tt("MuiFormHelperText",e)}const oTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hM=oTe;var mM;const aTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,rTe,t)},sTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,aTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iTe(u);return O.jsx(sTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?mM||(mM=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=lTe;function cTe(e){return tt("MuiFormLabel",e)}const uTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),op=uTe,dTe=["children","className","color","component","disabled","error","filled","focused","required"],fTe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,cTe,t)},pTe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${op.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),hTe=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),mTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,dTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fTe(u);return O.jsxs(pTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(hTe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),WE=mTe,vTe=$.createContext(),vM=vTe;function gTe(e){return tt("MuiGrid",e)}const yTe=[0,1,2,3,4,5,6,7,8,9,10],bTe=["column-reverse","column","row-reverse","row"],xTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zp=et("MuiGrid",["root","container","item","zeroMinWidth",...yTe.map(e=>`spacing-xs-${e}`),...bTe.map(e=>`direction-xs-${e}`),...xTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),wTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function CTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function $Te({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${zp.item}`]={maxWidth:"none"}),o})}function $L({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function STe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${zp.item}`]:{paddingTop:0}}})}return o}function _Te({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zp.item}`]:{paddingLeft:0}}})}return o}function ETe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const PTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=ETe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),$Te,STe,_Te,CTe);function TTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const kTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,gTe,t)},OTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=CE(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,wTe),y=m||b,w=l||b,C=$.useContext(vM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&(S[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=kTe(k);return O.jsx(vM.Provider,{value:_,children:O.jsx(PTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=OTe,RTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function YC(e){return`scale(${e}, ${e**2})`}const DTe={entering:{opacity:1,transform:YC(1)},entered:{opacity:1,transform:"none"}},Bx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SL=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=N0}=t,g=Oe(t,RTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{K6(V);const{duration:Q,delay:W,easing:J}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Bx?X:X*.666,delay:W,easing:J})].join(","),l&&l(V,Y)}),R=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=J):J=Y,V.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:Bx?J:J*.666,delay:Bx?Q:Q||J*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=YC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:YC(.75),visibility:V==="exited"&&!s?"hidden":void 0},DTe[V],b,a.props.style),ref:S},Y))}))});SL.muiSupportAuto=!0;const Qg=SL;function MTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Jn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const _L=lp["useSyncExternalStore"];function ITe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return _L(l,s,i)}function Sh(e,t={}){const n=wE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=$E({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(_L!==void 0?ITe:MTe)(l,o,a,i,s)}const ATe=["initialWidth","width"],Bs=["xs","sm","md","lg","xl"],NTe=(e,t,n=!0)=>n?Bs.indexOf(e)<=Bs.indexOf(t):Bs.indexOf(e)n?Bs.indexOf(t)<=Bs.indexOf(e):Bs.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=$E({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,ATe),[m,b]=$.useState(!1);Jn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Sh(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},FTe=LTe;function zTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,BTe,t)},HTe=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function GTe(e){const{children:t,className:n,only:r}=e,o=Oe(e,UTe),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=WTe(s);return O.jsx(HTe,{className:Ne(l.root,n),ownerState:s,children:t})}const qTe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,qTe);return t==="js"?O.jsx(VTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(GTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const YTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KTe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},Z_e,t);return T({},t,o)},JTe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${js.disabled}, .${js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${js.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZTe=he(U0,{name:"MuiInput",slot:"Input",overridesResolver:V0})({}),EL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,YTe),y=KTe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Gr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:JTe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:ZTe;return O.jsx(zE,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});EL.muiName="Input";const hs=EL;function XTe(e){return tt("MuiInputAdornment",e)}const QTe=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gM=QTe;var yM;const eke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,XTe,t)},rke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gM.positionStart}&:not(.${gM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,eke),p=ki()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=nke(b);return O.jsx(F0.Provider,{value:null,children:O.jsx(rke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(yn,{color:"text.secondary",children:o}):O.jsxs($.Fragment,{children:[c==="start"?yM||(yM=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),HE=oke;function ake(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ike=["disableAnimation","margin","shrink","variant","className"],ske=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,ake,t);return T({},t,c)},lke=he(WE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cke=$.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,ike),l=ki();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=ske(f);return O.jsx(lke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),PL=cke,uke=$.createContext({}),es=uke;function dke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const fke=["children","className","component","dense","disablePadding","subheader"],pke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dke,t)},hke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),mke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,fke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=pke(p);return O.jsx(es.Provider,{value:f,children:O.jsxs(hke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),GE=mke;function vke(e){return tt("MuiListItem",e)}const gke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=gke,yke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bke=yke;function xke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const wke=["className"],Cke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},xke,n)},$ke=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,wke),i=$.useContext(es),s=T({},r,{disableGutters:i.disableGutters}),l=Cke(s);return O.jsx($ke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});TL.muiName="ListItemSecondaryAction";const kL=TL,Ske=["className"],_ke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Eke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Pke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},vke,r)},Tke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:Eke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),kke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Oe(r.ContainerProps,Ske),I=Oe(r,_ke),R=$.useContext(es),F=$.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=$.useRef(null);Jn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Pke(V),Q=sn(U,n),W=E.root||u.Root||Tke,J=S.root||f.root||{},X=T({className:Ne(Y.root,J.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),O.jsx(es.Provider,{value:F,children:O.jsxs(kke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[O.jsx(W,T({},J,!xi(W)&&{as:j,ownerState:T({},V,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(es.Provider,{value:F,children:O.jsxs(W,T({},J,{as:j,ref:Q},!xi(W)&&{ownerState:T({},V,J.ownerState)},X,{children:[G,C&&O.jsx(kL,{children:C})]}))})}),OL=Oke;function Rke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Dke=["className"],Mke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rke,n)},Ike=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ake=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,Dke),i=$.useContext(es),s=T({},r,{alignItems:i.alignItems}),l=Mke(s);return O.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),Nke=Ake,jke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),bM=jke;function Lke(e){return tt("MuiListItemText",e)}const Fke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ey=Fke,zke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Lke,t)},Bke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.primary}`]:t.primary},{[`& .${ey.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Uke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,zke),{dense:m}=$.useContext(es);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Vke(x);return b!=null&&b.type!==yn&&!i&&(b=O.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=O.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(Bke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),Wke=Uke,Hke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ux(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RL(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Gke=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,Hke),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,Ux);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,xM);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,Ux);else if(_==="End")w.preventDefault(),xf(C,null,c,l,xM);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=S&&!E.repeating&&RL(S,E);E.previousKeyMatched&&(R||xf(C,S,!1,l,Ux,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return O.jsx(GE,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),qE=Gke;function qke(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const Yke=["onEntering"],Kke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jke=["slotProps"];function wM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $M(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Wx(e){return typeof e=="function"?e():e}const Zke=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},qke,t)},Xke=he(gL,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=he(ps,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qke=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=Qg,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Yke),F=Oe(i,Kke),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),Y=Zke(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Wx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+wM(fe,c.vertical),left:fe.left+CM(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:wM(se,_.vertical),horizontal:CM(se,_.horizontal)}),[_.horizontal,_.vertical]),J=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:$M(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=_i(Wx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:$M(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=J(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[J]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=vh(()=>{K()}),Ce=_i(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Wx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:Xke,re=(a=w==null?void 0:w.paper)!=null?a:DL,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Oe(xe,Jke);return O.jsx(Z,T({},ue,!xi(Z)&&{slotProps:me,disableScrollLock:I},{children:O.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},ce,{children:p}))}))}))}),eOe=Qke;function tOe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const nOe=["onEntering"],rOe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],oOe={vertical:"top",horizontal:"right"},aOe={vertical:"top",horizontal:"left"},iOe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},tOe,t)},sOe=he(eOe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lOe=he(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cOe=he(qE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),uOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,nOe),_=Oe(a,rOe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=iOe(k),R=i&&!c&&p,F=$.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,S),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;$.Children.map(s,(J,X)=>{$.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:lOe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(sOe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?oOe:aOe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(cOe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:R,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),dOe=uOe;function fOe(e){return tt("MuiMenuItem",e)}const pOe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=pOe,hOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},fOe,i);return T({},i,l)},gOe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mOe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fM.inset}`]:{marginLeft:52},[`& .${ey.root}`]:{marginTop:0,marginBottom:0},[`& .${ey.inset}`]:{paddingLeft:36},[`& .${bM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bM.root} svg`]:{fontSize:"1.25rem"}}))),yOe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,hOe),b=$.useContext(es),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Jn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=vOe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(es.Provider,{value:v,children:O.jsx(gOe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),ty=yOe;function bOe(e){return tt("MuiNativeSelect",e)}const xOe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=xOe,wOe=["className","disabled","error","IconComponent","inputRef","variant"],COe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,bOe,t)},ML=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${YE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$Oe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${YE.multiple}`]:t.multiple}]}})(ML),IL=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${YE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),SOe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),_Oe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,wOe),u=T({},t,{disabled:o,variant:l,error:a}),f=COe(u);return O.jsxs($.Fragment,{children:[O.jsx($Oe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(SOe,{as:i,ownerState:u,className:f.icon})]})}),EOe=_Oe;var SM;const POe=["children","classes","className","label","notched"],TOe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kOe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function OOe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,POe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(TOe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(kOe,{ownerState:i,children:a?O.jsx("span",{children:n}):SM||(SM=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const ROe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],DOe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Q_e,t);return T({},t,r)},MOe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${li.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${li.focused} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${li.error} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${li.disabled} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),IOe=he(OOe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),AOe=he(U0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,ROe),y=DOe(l),w=ki(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:MOe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:AOe;return O.jsx(zE,T({slots:{root:S,input:E},renderSuffix:k=>O.jsx(IOe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});AL.muiName="Input";const NL=AL,NOe=or(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jOe=or(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),LOe=he("span")({position:"relative",display:"flex"}),FOe=he(NOe)({transform:"scale(1)"}),zOe=he(jOe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function jL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(LOe,{className:n.root,ownerState:o,children:[O.jsx(FOe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(zOe,{fontSize:r,className:n.dot,ownerState:o})]})}const VOe=$.createContext(void 0),LL=VOe;function BOe(){return $.useContext(LL)}function UOe(e){return tt("MuiRadio",e)}const WOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_M=WOe,HOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],GOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,UOe,t))},qOe=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_M.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_M.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function YOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const EM=O.jsx(jL,{checked:!0}),PM=O.jsx(jL,{}),KOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=EM,color:l="primary",icon:c=PM,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,HOe),v=T({},a,{color:l,size:p}),x=GOe(v),g=BOe();let y=i;const w=Wg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=YOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(qOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=PM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=EM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),JOe=KOe,ZOe=["actions","children","defaultValue","name","onChange","value"],XOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,ZOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Za(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(LL.Provider,{value:v,children:O.jsx(CL,T({role:"radiogroup",ref:m},c,{children:o}))})}),QOe=XOe;function eRe(e){return tt("MuiSelect",e)}const tRe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=tRe;var TM;const nRe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rRe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(ML,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oRe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),aRe=he("input",{shouldForwardProp:e=>_E(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iRe(e){return e==null||typeof e=="string"&&!e.trim()}const sRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,eRe,t)},lRe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Oe(t,nRe),[W,J]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:R,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(R!=null),[Z,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(J(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(J(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(Xg({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>kM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=kM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},KE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},pRe=he(hs,KE)(""),hRe=he(NL,KE)(""),mRe=he(wL,KE)(""),FL=$.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fL,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,uRe),R=y?EOe:cRe,F=ki(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=fRe(z),Y=Oe(V,dRe),Q=p||{standard:O.jsx(pRe,{ownerState:z}),outlined:O.jsx(hRe,{label:b,ownerState:z}),filled:O.jsx(mRe,{ownerState:z})}[G],W=sn(n,Q.ref);return O.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?Gr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});FL.muiName="Select";const zL=FL,vRe=e=>!e||!xi(e),gRe=vRe;function yRe(e){return tt("MuiSlider",e)}const bRe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=bRe,xRe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function wRe(e){const{children:t,className:n,value:r}=e,o=xRe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},O.jsxs($.Fragment,{children:[t.props.children,O.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const CRe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function OM(e){return e}const $Re=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),SRe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),_Re=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),ERe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),PRe=he(wRe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),TRe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_E(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),kRe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_E(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ORe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,yRe,i)},RRe=({children:e})=>e,DRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,R;const F=Je({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:J={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:Z=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=OM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=OM}=F,Be=Oe(F,CRe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=y_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=ORe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:$Re,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:SRe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:_Re,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:ERe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:PRe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:TRe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:kRe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:J.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:J.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:J.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:J.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:J.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:J.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:J.markLabel,xn=(R=Ce==null?void 0:Ce.input)!=null?R:J.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},gRe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return O.jsxs(Se,T({},Bn,{children:[O.jsx(_e,T({},le)),O.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=Zg(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),O.jsxs($.Fragment,{children:[O.jsx(_t,T({"data-index":Ie},Ee,!xi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!xi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=Zg(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?RRe:ft;return O.jsx(xt,T({},!xi(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:O.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:O.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),MRe=DRe;function IRe(e){return tt("MuiTooltip",e)}const ARe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Us=ARe,NRe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function jRe(e){return Math.round(e*1e5)/1e5}const LRe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,IRe,t)},FRe=he(Ch,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Us.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Us.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Us.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Us.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),zRe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jRe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Us.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Us.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Us.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Us.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),VRe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mv=!1,Hx=null,$f={x:0,y:0};function vv(e,t){return n=>{t&&t(n),e(n)}}const BRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:Z,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=Qg,TransitionProps:se}=S,Ce=Oe(S,NRe),fe=$.isValidElement(k)?k:O.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||J,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Za(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Hx),mv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Hx),Hx=setTimeout(()=>{mv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||mv&&Q?Me.current=setTimeout(()=>{ne(yt)},mv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=Qy(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=vv(Yt,oe.onMouseOver),oe.onMouseLeave=vv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=vv(dt,oe.onFocus),oe.onBlur=vv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:Z,touch:$e.current}),pt=LRe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:FRe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:Qg,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:zRe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:VRe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:R.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:R.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:R.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:R.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),O.jsx(ye,T({as:Z??Ch,placement:B,anchorEl:J?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:O.jsxs(Ie,T({},Nt,{children:[me,E?O.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=BRe,URe=$.createContext({}),_h=URe,WRe=$.createContext({}),Y0=WRe;function HRe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const GRe=["active","children","className","component","completed","disabled","expanded","index","last"],qRe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},HRe,t)},YRe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),KRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,GRe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(_h);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=qRe(E),I=O.jsxs(YRe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(Y0.Provider,{value:S,children:v&&!x&&f!==0?O.jsxs($.Fragment,{children:[v,I]}):I})}),JRe=KRe,ZRe=or(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),XRe=or(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function QRe(e){return tt("MuiStepIcon",e)}const eDe=et("MuiStepIcon",["root","active","completed","error","text"]),Gx=eDe;var RM;const tDe=["active","className","completed","error","icon"],nDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},QRe,t)},qx=he(VC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Gx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.error}`]:{color:(e.vars||e).palette.error.main}})),rDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),oDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,tDe),u=T({},r,{active:o,completed:i,error:s}),f=nDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?O.jsx(qx,T({as:XRe,className:p,ref:n,ownerState:u},c)):i?O.jsx(qx,T({as:ZRe,className:p,ref:n,ownerState:u},c)):O.jsxs(qx,T({className:p,ref:n,ownerState:u},c,{children:[RM||(RM=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(rDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),aDe=oDe;function iDe(e){return tt("MuiStepLabel",e)}const sDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ws=sDe,lDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],cDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},iDe,t)},uDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ws.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ws.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),dDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ws.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.alternativeLabel}`]:{marginTop:16},[`&.${Ws.error}`]:{color:(e.vars||e).palette.error.main}})),fDe=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ws.alternativeLabel}`]:{paddingRight:0}})),pDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ws.alternativeLabel}`]:{textAlign:"center"}})),VL=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,lDe),{alternativeLabel:v,orientation:x}=$.useContext(_h),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Y0),_=c||C;let S=p;_&&!S&&(S=aDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=cDe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(uDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?O.jsx(fDe,{className:k.iconContainer,ownerState:E,children:O.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(pDe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(dDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});VL.muiName="StepLabel";const hDe=VL;function mDe(e){return tt("MuiStepButton",e)}const vDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),DM=vDe,gDe=["children","className","icon","optional"],yDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},mDe,t)},bDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${DM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),xDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,gDe),{disabled:c,active:u}=$.useContext(Y0),{orientation:f}=$.useContext(_h),p=T({},r,{orientation:f}),m=yDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):O.jsx(hDe,T({},b,{children:o}));return O.jsx(bDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),wDe=xDe;function CDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const $De=["className"],SDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,CDe,t)},_De=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),EDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),PDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,$De),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(_h),{active:l,disabled:c,completed:u}=$.useContext(Y0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=SDe(f);return O.jsx(_De,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(EDe,{className:p.line,ownerState:f})}))}),TDe=PDe;function kDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const ODe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],RDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},kDe,r)},DDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),MDe=O.jsx(TDe,{}),IDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=MDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,ODe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=RDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(_h.Provider,{value:g,children:O.jsx(DDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),ADe=IDe;function NDe(e){return tt("MuiSwitch",e)}const jDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),to=jDe,LDe=["className","color","edge","size","sx"],FDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,NDe,t);return T({},t,l)},zDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${to.thumb}`]:{width:16,height:16},[`& .${to.switchBase}`]:{padding:4,[`&.${to.checked}`]:{transform:"translateX(16px)"}}})),VDe=he(VE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${to.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${to.checked}`]:{transform:"translateX(20px)"},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${to.checked} + .${to.track}`]:{opacity:.5},[`&.${to.disabled} + .${to.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${to.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${to.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.55)}`}},[`&.${to.checked} + .${to.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),BDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),UDe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),WDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,LDe),u=T({},r,{color:a,edge:i,size:s}),f=FDe(u),p=O.jsx(UDe,{className:f.thumb,ownerState:u});return O.jsxs(zDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[O.jsx(VDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(BDe,{className:f.track,ownerState:u})]})}),HDe=WDe;function GDe(e){return tt("MuiTab",e)}const qDe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=qDe,YDe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],KDe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,GDe,t)},JDe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ZDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,YDe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=KDe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(JDe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs($.Fragment,{children:[E,f]}):O.jsxs($.Fragment,{children:[f,E]}),u]}))}),Vp=ZDe,XDe=$.createContext(),BL=XDe;function QDe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const eMe=["className","component","padding","size","stickyHeader"],tMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},QDe,t)},nMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),MM="table",rMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTable"}),{className:o,component:a=MM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,eMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=tMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(BL.Provider,{value:p,children:O.jsx(nMe,T({as:a,role:a===MM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),UL=rMe,oMe=$.createContext(),K0=oMe;function aMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const iMe=["className","component"],sMe=e=>{const{classes:t}=e;return Qe({root:["root"]},aMe,t)},lMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),cMe={variant:"body"},IM="tbody",uMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableBody"}),{className:o,component:a=IM}=r,i=Oe(r,iMe),s=T({},r,{component:a}),l=sMe(s);return O.jsx(K0.Provider,{value:cMe,children:O.jsx(lMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===IM?null:"rowgroup",ownerState:s},i))})}),WL=uMe;function dMe(e){return tt("MuiTableCell",e)}const fMe=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pMe=fMe,hMe=["align","className","component","padding","scope","size","sortDirection","variant"],mMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,dMe,t)},vMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?S0(Tt(e.palette.divider,1),.88):$0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),gMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,hMe),m=$.useContext(BL),b=$.useContext(K0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=mMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(vMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Od=gMe;function yMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const bMe=["className","component"],xMe=e=>{const{classes:t}=e;return Qe({root:["root"]},yMe,t)},wMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CMe={variant:"head"},AM="thead",$Me=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableHead"}),{className:o,component:a=AM}=r,i=Oe(r,bMe),s=T({},r,{component:a}),l=xMe(s);return O.jsx(K0.Provider,{value:CMe,children:O.jsx(wMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===AM?null:"rowgroup",ownerState:s},i))})}),HL=$Me;function SMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const _Me=["className","component","disableGutters","variant"],EMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},SMe,t)},PMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),TMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,_Me),c=T({},r,{component:a,disableGutters:i,variant:s}),u=EMe(c);return O.jsx(PMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),kMe=TMe,OMe=or(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),RMe=or(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function DMe(e){return tt("MuiTableRow",e)}const MMe=et("MuiTableRow",["root","selected","hover","head","footer"]),NM=MMe,IMe=["className","component","hover","selected"],AMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},DMe,t)},NMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jM="tr",jMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableRow"}),{className:o,component:a=jM,hover:i=!1,selected:s=!1}=r,l=Oe(r,IMe),c=$.useContext(K0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=AMe(u);return O.jsx(NMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===jM?null:"row",ownerState:u},l))}),hl=jMe;function LMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function FMe(e,t,n,r={},o=()=>{}){const{ease:a=LMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const zMe=["onChange"],VMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BMe(e){const{onChange:t}=e,n=Oe(e,zMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Jn(()=>{const i=vh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=_i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:VMe,ref:o},n))}function UMe(e){return tt("MuiTabScrollButton",e)}const WMe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),HMe=WMe,GMe=["className","slots","slotProps","direction","orientation","disabled"],qMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},UMe,t)},YMe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${HMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),KMe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,GMe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=qMe(m),v=(r=s.StartScrollButtonIcon)!=null?r:OMe,x=(o=s.EndScrollButtonIcon)!=null?o:RMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(YMe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),JMe=KMe;function ZMe(e){return tt("MuiTabs",e)}const XMe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Jv=XMe,QMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],LM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,FM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},eIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},ZMe,l)},tIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jv.scrollButtons}`]:t.scrollButtons},{[`& .${Jv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Jv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),nIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),rIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),oIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),aIe=he(BMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zM={},iIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=JMe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,QMe),G=R==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=eIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,Z]=$.useState(zM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:N1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[J]:ie?ie[J]:0};if(isNaN(B[_e])||isNaN(B[J]))Z(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[J]-Xe[J]);(nt>=1||ft>=1)&&Z(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?FMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&y6()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(aIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=vh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=_i(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(zM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=O.jsx(oIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),gv(ie,Se,FM);break;case nt:te.preventDefault(),gv(ie,Se,LM);break;case"Home":te.preventDefault(),gv(ie,null,LM);break;case"End":te.preventDefault(),gv(ie,null,FM);break}},ne=ze();return O.jsxs(tIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(nIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[O.jsx(rIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),J0=iIe;function sIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const lIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cIe={standard:hs,filled:wL,outlined:NL},uIe=e=>{const{classes:t}=e;return Qe({root:["root"]},sIe,t)},dIe=he($h,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:J="outlined"}=r,X=Oe(r,lIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:J}),K=uIe(j),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Za(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,Z=cIe[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(dIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:j},X,{children:[C!=null&&C!==""&&O.jsx(PL,T({htmlFor:D,id:B},x,{children:C})),V?O.jsx(zL,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&O.jsx(pr,T({id:N},p,{children:b}))]}))}),Eh=fIe;var pIe=_S;function hIe(e){return pIe(e)?void 0:e}var mIe=hIe,vIe=gd,gIe=Ly,yIe=Ude,bIe=ah,xIe=bd,wIe=mIe,CIe=jS,$Ie=G4,SIe=1,_Ie=2,EIe=4,PIe=CIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=vIe(t,function(a){return a=bIe(a,e),r||(r=a.length>1),a}),xIe(e,$Ie(e),n),r&&(n=gIe(n,SIe|_Ie|EIe,wIe));for(var o=t.length;o--;)yIe(n,t[o]);return n}),TIe=PIe;const kIe=Vt(TIe);function OIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=UIe){var c=t?null:VIe(e);if(c)return BIe(c);i=!1,o=zIe,l=new jIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(KL);var xAe=KL.exports;const wAe=Vt(xAe);var o2={},CAe=Cc;Object.defineProperty(o2,"__esModule",{value:!0});var JL=o2.default=void 0,$Ae=CAe($c()),SAe=O,_Ae=(0,$Ae.default)((0,SAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");JL=o2.default=_Ae;var EAe=LS,PAe=cs;function TAe(e,t){var n=-1,r=PAe(e)?Array(e.length):[];return EAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var kAe=TAe,OAe=gd,RAe=vc,DAe=kAe,MAe=cr;function IAe(e,t){var n=MAe(e)?OAe:DAe;return n(e,RAe(t))}var ZL=IAe;const XL=Vt(ZL),AAe=["localeText"],KC=$.createContext(null),Ph=function(t){var n;const{localeText:r}=t,o=Oe(t,AAe),{utils:a,localeText:i}=(n=$.useContext(KC))!=null?n:{utils:void 0,localeText:void 0},s=Je({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(KC.Provider,{value:g,children:l})},NAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),QL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},jAe=QL;NAe(QL);const Sc=()=>{const e=$.useContext(KC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=$.useMemo(()=>T({},jAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},LAe=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FAe=or(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),zAe=or(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),e9=or(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),VAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),BAe=or(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),UAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),WAe=or(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function HAe(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const GAe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],qAe=["ownerState"],YAe=["ownerState"],KAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),BM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),ZAe=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},HAe,t)},t9=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Je({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Oe(c,GAe),E=c,k=ZAe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:BM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:BM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:FAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,qAe),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:zAe,J=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,YAe);return O.jsxs(KAe,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[O.jsx(F,T({},U,{children:l?O.jsx(W,T({},X)):O.jsx(V,T({},Q))})),u?O.jsx(yn,{variant:"subtitle1",component:"span",children:u}):O.jsx(JAe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},z,{children:l?O.jsx(V,T({},Q)):O.jsx(W,T({},X))}))]}))}),mi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),a2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},n9=["hours","minutes","seconds"],rd=e=>n9.includes(e),Ds=e=>n9.includes(e)||e==="meridiem",XAe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Bp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,QAe=(e,t,n,r)=>{const o=Bp(r.getHours(e),t,n);return r.setHours(e,o)},UM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Th=(e,t)=>(n,r)=>e?t.isAfter(n,r):UM(n,t)>UM(r,t),ny=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return mi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:mi(n,["minutes"])?o.minutes:mi(n,["seconds"])?o.seconds:mi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:mi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function kh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),S=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function e3e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function t3e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function e1(e,t,n,r){const o=qt(),a=XAe(e,o),i=$.useCallback(s=>{const l=e==null?null:QAe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Up=36,t1=2,n1=320,n3e=280,r1=334,r9=232,Nf=48,o1=he("div")({overflow:"hidden",width:n1,maxHeight:r1,display:"flex",flexDirection:"column",margin:"0 auto"});function r3e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Ci=36,Wp={x:od/2,y:od/2},o9={x:Wp.x,y:0},o3e=o9.x-Wp.x,a3e=o9.y-Wp.y,i3e=e=>e*(180/Math.PI),a9=(e,t,n)=>{const r=t-Wp.x,o=n-Wp.y,a=Math.atan2(o3e,a3e)-Math.atan2(r,o);let i=i3e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},s3e=(e,t,n=1)=>{const r=n*6;let{value:o}=a9(r,e,t);return o=o*n%60,o},l3e=(e,t,n)=>{const{value:r,distance:o}=a9(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},c3e,t)},f3e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),p3e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ci/2}px)`,border:`${(Ci-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function h3e(e){const t=Je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,u3e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=d3e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return O.jsx(f3e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:O.jsx(p3e,{ownerState:l,className:c.thumb})}))}function m3e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ap=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},v3e=(e,t)=>t==null||!e.isValid(t)?null:t,Kr=(e,t,n)=>t==null||!e.isValid(t)?n:t,g3e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),i2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},JC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},s2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},y3e=["year","month","day"],Nu=e=>y3e.includes(e),Hp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return mi(n,["year"])?o.year:mi(n,["month"])?o.month:mi(n,["day"])?o.dayOfMonth:mi(n,["month","year"])?`${o.month} ${o.year}`:mi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},b3e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},x3e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},m3e,t)},w3e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),C3e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$3e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S3e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),_3e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),E3e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),P3e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),WM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function T3e(e){const t=Je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=x3e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:j,offsetY:K}=J;if(j===void 0){const D=J.target.getBoundingClientRect();j=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?s3e(j,K,u):l3e(j,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Jn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(w3e,{className:Ne(g,S.root),children:[O.jsxs(C3e,{className:S.clock,children:[O.jsx(S3e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&O.jsxs($.Fragment,{children:[O.jsx(_3e,{className:S.pin}),i!=null&&O.jsx(h3e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),O.jsx($3e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&O.jsxs($.Fragment,{children:[O.jsx(E3e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),O.jsx(P3e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function k3e(e){return tt("MuiClockNumber",e)}const yv=et("MuiClockNumber",["root","selected","disabled"]),O3e=["className","disabled","index","inner","label","selected"],R3e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},k3e,t)},D3e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yv.disabled}`]:t.disabled},{[`&.${yv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Ci,width:Ci,position:"absolute",left:`calc((100% - ${Ci}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${yv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${yv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function i9(e){const t=Je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,O3e),c=t,u=R3e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Ci-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(D3e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Ci)/2}px`},ownerState:c},l,{children:i}))}const M3e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(i9,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(i9,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},l2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Rd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return l2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},I3e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,s2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Th((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:JC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:JC(t,i,e.maxTime))),i},s9=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},N3e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},a1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},l9=(e,t,n,r)=>{switch(n){case"month":return i2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return a1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},c9=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?c9(e,a,o.maxLength):a},j3e=(e,t,n,r,o,a,i)=>{const s=N3e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>u9(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=l9(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},c2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),d9=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},GM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),f9=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,p9=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return f9(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},F3e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},qM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=s9(e,w),_=p9(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=c9(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:L3e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=F3e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},z3e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=c2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},B3e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=i2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:f9(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=a1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},U3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=a1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},YM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>YM[i.type]-YM[s.type]).reduce((i,s)=>!a||s.modified?U3e(e,t,s,n,i):i,o),W3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,H3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},G3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:s2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,G3e);return t!=null&&r.utils.isValid(t)?t:n??A3e(r)},cleanValue:v3e,areValuesEqual:g3e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},u2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:d9(o(t),r),getValueStrFromSections:V3e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Oh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},d2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>s2(n,o,"date")}),[]);return e??a},q3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Y3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},r3e,t)},K3e=he(o1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),J3e=he(t9,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Z3e=["hours","minutes"],X3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:R=Z3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,J=Oe(o,q3e),X=u??Oh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Rd({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=d2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),Z=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=kh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Th(v,r),He=we==="hours"||we==="minutes"&&R.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,Z)||w&&$e(Z,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Bp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,Z,R]),Ve=Za(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Bp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:M3e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=Y3e(De);return O.jsxs(K3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},J,{children:[O.jsx(T3e,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(J3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function Q3e(e){return tt("MuiDigitalClock",e)}const eNe=et("MuiDigitalClock",["root","list","item"]),tNe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],nNe=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},Q3e,t)},rNe=he(o1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:r9})),oNe=he(qE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),aNe=he(ty,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),iNe=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Je({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:J,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,tNe),{value:N,handleValueChange:B,timezone:Z}=Rd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(Z),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=nNe(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:aNe,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=d2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=kh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Th(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||R!=null&&R(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,R,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return O.jsx(rNe,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:O.jsx(oNe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return O.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:J||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function sNe(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function lNe(e){return tt("MuiMultiSectionDigitalClock",e)}const cNe=et("MuiMultiSectionDigitalClock",["root","item"]),uNe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],dNe=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},lNe,t)},fNe=he(qE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:r9,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),pNe=he(ty,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),hNe=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,uNe),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=dNe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:pNe;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),O.jsx(fNe,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return O.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),mNe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},JM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},vNe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],gNe=e=>{const{classes:t}=e;return Qe({root:["root"]},sNe,t)},yNe=he(o1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),bNe=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,J=Oe(o,vNe),{value:X,handleValueChange:j,timezone:K}=Rd({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=d2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=kh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Th(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Bp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Bp($e,se,a);Ve("hours",r.setHours(B,He))},items:mNe({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:JM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:JM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=gNe(Be);return O.jsx(yNe,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},J,{children:Object.entries(De).map(([we,$e])=>O.jsx(hNe,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function xNe(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wNe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],CNe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xNe,l)},h9=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Up,height:Up,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${t1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),m9=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},$Ne=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(h9),SNe=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(({theme:e,ownerState:t})=>T({},h9({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},_Ne=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Oe(r,wNe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=CNe(k),R=qt(),F=$.useRef(null),U=sn(F,n);Jn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?O.jsx(SNe,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx($Ne,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),ENe=$.memo(_Ne);function v9(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const PNe=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=l2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>B3e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>qM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),R=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=I3e(D),Z=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),d9(B,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=qM(t,_,n,v,xe,x,w,a);return KM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:Z,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},TNe=5e3,nu=e=>e.saveQuery!=null,kNe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),TNe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>l9(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&s9(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>GM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:u9(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=p9(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=GM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=a1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ONe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ry=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ry(t.shadowRoot):t:null},f2="@media (pointer: fine)",RNe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],p2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=PNe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Oe(e.forwardedProps,RNe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=kNe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),J=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>H3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),Z=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(W3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=j3e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Jn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===ry(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=v9(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===ry(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),R==null||R(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},Rh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Kr(n.utils,e.minDate,n.defaultDates.minDate),f=Kr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},ZC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],g9=["minDateTime","maxDateTime"],DNe=[...ZC,...XC,...g9],Dd=e=>DNe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),MNe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],h2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return MNe.forEach(o),t==="date"?ZC.forEach(o):t==="time"?XC.forEach(o):t==="date-time"&&(ZC.forEach(o),XC.forEach(o),g9.forEach(o)),{forwardedProps:n,internalProps:r}},INe=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Kr(o,e.minDate,a.minDate),maxDate:Kr(o,e.maxDate,a.maxDate)})},ANe=({props:e,inputRef:t})=>{const n=INe(e),{forwardedProps:r,internalProps:o}=h2(n,"date");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:Rh,valueType:"date"})},NNe=he(W0)({[`& .${rp.container}`]:{outline:0},[`& .${rp.paper}`]:{outline:0,minWidth:n1}}),jNe=he(G0)({"&:first-of-type":{padding:0}});function LNe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:NNe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(jNe,{children:r})}))}function FNe(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const zNe="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ZM=ju&&ju[1]?parseInt(ju[1],10):null,XM=ju&&ju[2]?parseInt(ju[2],10):null,VNe=ZM&&ZM<10||XM&&XM<13||!1,y9=()=>Sh(zNe,{defaultMatches:!1})||VNe,BNe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],UNe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},FNe,t)},WNe=he(Ch,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HNe=he(ps,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function GNe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&GNe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const YNe=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,BNe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function KNe(e){var t,n,r,o;const a=Je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=ry(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=qNe(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,R=UNe(I),F=y9(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:Qg,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:X6,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:HNe,Q=(o=v==null?void 0:v.popper)!=null?o:WNe,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},W,{children:({TransitionProps:J,placement:X})=>O.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(z,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(YNe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function b9(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const JNe=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},b9,t)},ZNe=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),XNe=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),m2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=JNe(c);return s?null:O.jsxs(ZNe,{ref:n,className:Ne(u.root,a),ownerState:c,children:[O.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(XNe,{className:u.content,ownerState:c,children:o})]})});function QNe(e){return tt("MuiPickersToolbarText",e)}const QM=et("MuiPickersToolbarText",["root","selected"]),e4e=["className","selected","value"],t4e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},QNe,t)},n4e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${QM.selected}`]:{color:(e.vars||e).palette.text.primary}})),v2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,e4e),s=t4e(r);return O.jsx(n4e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),r4e=["align","className","selected","typographyClassName","value","variant","width"],o4e=e=>{const{classes:t}=e;return Qe({root:["root"]},b9,t)},a4e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,r4e),p=o4e(r);return O.jsx(a4e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(v2,{align:o,className:s,variant:c,value:l,selected:i})}))}),i4e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},s4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},l4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},c4e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},u4e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=i4e(e),[_,S]=$.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=l2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});v9(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,Z.value,ue),isControlled:b,closeOnSelect:c},ce=s4e(re),xe=l4e(re),me=c4e(re);if(S(ue=>T({},ue,{draft:Z.value,lastPublishedValue:ce?Z.value:ue.lastPublishedValue,lastCommittedValue:xe?Z.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(se.shortcut=Z.shortcut),k(Z.value,se)}xe&&a&&a(Z.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),W=mt((Z,re,ce)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:ce})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),j={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},d4e=["className","sx"],f4e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,d4e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=kh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Jn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Jn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function eI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const p4e=(e,t)=>{const[n,r]=$.useState(eI);return Jn(()=>{const a=()=>{r(eI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},h4e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=p4e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},x9=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};x9(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const w9=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=u4e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=f4e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=h4e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function C9(e){return tt("MuiPickersLayout",e)}const Jx=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),m4e=["onAccept","onClear","onCancel","onSetToday","actions"];function v4e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,m4e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(H0,T({},i,{children:l}))}const g4e=["items","changeImportance","isLandscape","onChange","isValid"],y4e=["getValue"];function b4e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,g4e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,y4e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(GE,T({dense:!0,sx:[{maxHeight:r1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(OL,{children:O.jsx(dL,T({},s))},s.label))}))}function x4e(e){return e.view!==null}const w4e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},C9,t)},C4e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Oh(w),k=S??C,I=w4e(e),R=(t=E==null?void 0:E.actionBar)!=null?t:v4e,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=x4e(z)&&G?O.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:b4e,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&J?O.jsx(J,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},$4e=C4e,S4e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},C9,n)},$9=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Jx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Jx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Jx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));$9.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const _4e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),S9=function(t){const n=Je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=$4e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=S4e(m);return O.jsxs($9,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(_4e,{className:b.contentWrapper,children:p==="desktop"?O.jsxs($.Fragment,{children:[o,a]}):O.jsxs($.Fragment,{children:[a,o]})}),i]})},i1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Th(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},g2=({props:e,value:t,adapter:n})=>{const r=Rh({adapter:n,value:t,props:e});return r!==null?r:i1({adapter:n,value:t,props:e})},E4e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P4e=["children","className","reduceAnimations","slideDirection","transKey","classes"],T4e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,E4e,t)},k4e=he(DE,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function O4e(e){const t=Je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,P4e),s=T4e(t),l=rr();if(o)return O.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(k4e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(tCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const _9=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Rh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},R4e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D4e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M4e=["ownerState"],I4e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},R4e,t)},E9=(Up+t1*2)*6,A4e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),j4e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),L4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),F4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Up,height:Up,padding:0,margin:`0 ${t1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),z4e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:E9}),V4e=he(O4e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:E9}),B4e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),U4e=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${t1}px 0`,display:"flex",justifyContent:"center"});function W4e(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,D4e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:ENe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,M4e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function H4e(e){const t=Je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=I4e(t),W=rr().direction==="rtl",J=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=_9({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),Z=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":Z(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":Z(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ap({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ap({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"Home":Z(V.startOfWeek(Be)),De.preventDefault();break;case"End":Z(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":Z(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":Z(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>Z(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ap({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return O.jsx(j4e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=J==null?void 0:J(we,De))!=null?ge:we},we+Be.toString())})]}),s?O.jsx(z4e,{className:Y.loadingContainer,children:p()}):O.jsx(V4e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:O.jsx(B4e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>O.jsxs(U4e,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[R&&O.jsx(F4e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>O.jsx(W4e,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const G4e=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},q4e=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(G4e(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=_9({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},Y4e=["ownerState"],y2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,Y4e),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:WAe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs($.Fragment,{children:[O.jsx(HE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},K4e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],J4e=["inputRef"],Z4e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,K4e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,J4e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=ANe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,Z4e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),X4e=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},Q4e=({props:e,inputRef:t})=>{const n=X4e(e),{forwardedProps:r,internalProps:o}=h2(n,"time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:i1,valueType:"time"})},e5e=["slots","slotProps","components","componentsProps","InputProps","inputProps"],t5e=["inputRef"],n5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],T9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,e5e),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,t5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=Q4e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,n5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),r5e=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Kr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Kr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},o5e=({props:e,inputRef:t})=>{const n=r5e(e),{forwardedProps:r,internalProps:o}=h2(n,"date-time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:g2,valueType:"date-time"})},a5e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],i5e=["inputRef"],s5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],k9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,a5e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,i5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=o5e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,s5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),l5e=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const c5e=e=>{const{classes:t}=e;return Qe({root:["root"]},l5e,t)},u5e=he(DE,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function O9(e){const t=Je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=c5e(t),s=rr();return o?n:O.jsx(u5e,{className:Ne(i.root,r),children:O.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function d5e(e){return tt("MuiPickersMonth",e)}const bv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),f5e=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],p5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},d5e,r)},h5e=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),m5e=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${bv.disabled}`]:t.disabled},{[`&.${bv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),v5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,f5e),x=$.useRef(null),g=p5e(n);return Jn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(h5e,T({className:g.root,ownerState:n},v,{children:O.jsx(m5e,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function g5e(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const y5e=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],b5e=e=>{const{classes:t}=e;return Qe({root:["root"]},g5e,t)};function x5e(e,t){const n=qt(),r=_c(),o=Je({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Kr(n,o.minDate,r.minDate),maxDate:Kr(n,o.maxDate,r.maxDate)})}const w5e=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:n1,boxSizing:"border-box"}),C5e=$.forwardRef(function(t,n){const r=x5e(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Oe(r,y5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=b5e(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),J=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);R(se)}),Z=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>J!==null&&me!==J?J:me)},[J]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":Z((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":Z((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":Z((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":Z((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{Z(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return O.jsx(w5e,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:i2(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===J,Ve=l||N(me);return O.jsx(v5e,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function $5e(e){return tt("MuiPickersYear",e)}const xv=et("MuiPickersYear",["root","yearButton","selected","disabled"]),S5e=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],_5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},$5e,r)},E5e=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),P5e=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xv.disabled}`]:t.disabled},{[`&.${xv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),T5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,S5e),x=$.useRef(null),g=_5e(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(E5e,T({className:Ne(g.root,o),ownerState:n},v,{children:O.jsx(P5e,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function k5e(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const O5e=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],R5e=e=>{const{classes:t}=e;return Qe({root:["root"]},k5e,t)};function D5e(e,t){var n;const r=qt(),o=_c(),a=Je({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Kr(r,a.minDate,o.minDate),maxDate:Kr(r,a.maxDate,o.maxDate)})}const M5e=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:n1,maxHeight:n3e,boxSizing:"border-box",position:"relative"}),I5e=$.forwardRef(function(t,n){const r=D5e(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Oe(r,O5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=R5e(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),J=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);R(fe)}),Z=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>J!==null&&se!==J?J:se)},[J]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":Z(Ce-_),se.preventDefault();break;case"ArrowDown":Z(Ce+_),se.preventDefault();break;case"ArrowLeft":Z(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":Z(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{Z(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===J,Ve=c||N(se);return O.jsx(T5e,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),A5e=e=>tt("MuiPickersCalendarHeader",e),N5e=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),j5e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],L5e=["ownerState"],F5e=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},A5e,t)},z5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),V5e=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),B5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),U5e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${N5e.switchViewIcon}`]:{transform:"rotate(180deg)"}})),W5e=he(LAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),H5e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Je({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Oe(s,j5e),I=s,R=F5e(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:U5e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:W5e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),V=Oe(z,L5e),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=e3e(u,{disableFuture:p,maxDate:b,timezone:E}),J=t3e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:O.jsxs(z5e,T({},k,{ownerState:I,className:Ne(S,R.root),ref:n,children:[O.jsxs(V5e,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(O9,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(B5e,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},V))}))]}),O.jsx(kd,{in:y==="day",children:O.jsx(t9,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),G5e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const q5e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Y5e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},G5e,t)};function K5e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=y9(),p=Je({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Kr(c,p.minDate,u.minDate),maxDate:Kr(c,p.maxDate,u.maxDate)})}const J5e=he(o1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:r1}),Z5e=he(O9,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),R9=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Za(),l=K5e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Oe(l,q5e),{value:se,handleValueChange:Ce,timezone:fe}=Rd({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=kh({view:k,views:I,openTo:R,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=q4e({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:H5e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&JC(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=Y5e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return O.jsxs(J5e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[O.jsx(Le,T({},ne)),O.jsx(Z5e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:O.jsxs("div",{children:[Ve==="year"&&O.jsx(I5e,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&O.jsx(C5e,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&O.jsx(H4e,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z}))]})})]}))});function X5e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const Q5e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],eje=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},X5e,t)},tje=he(m2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nje=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),rje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,Q5e),u=qt(),f=Er(),p=eje(r),m=$.useMemo(()=>{if(!o)return s;const v=Hp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(tje,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(nje,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function D9(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Je({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Oh(l.components);return T({},l,{localeText:c},a2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Kr(i,l.minDate,s.minDate),maxDate:Kr(i,l.maxDate,s.maxDate),slots:T({toolbar:rje},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const oje=["props","getOpenDialogAriaText"],aje=["ownerState"],ije=["ownerState"],b2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,oje);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),R=Za(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=w9(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:HE,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Oe(X,aje),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Oe(q,ije),N=c.openPickerIcon,B=c.field,Z=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${j.position}Adornment`]:O.jsx(J,T({},j,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ce=(a=c.layout)!=null?a:S9,xe=sn(k,Z.inputRef,g);let me=R;F&&(x?me=`${R}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:_,children:[O.jsx(B,T({},Z,{slots:re,slotProps:ue,inputRef:xe})),O.jsx(KNe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:O.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>O.jsx(R9,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),M9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=D9(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Hp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:e9,field:P9},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=b2({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Rh});return p()});M9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const sje=["props","getOpenDialogAriaText"],x2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,sje);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Za(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=w9(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ONe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:S9,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:y,children:[O.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),O.jsx(LNe,T({},k,{open:E,slots:s,slotProps:W,children:O.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:R()}))}))]})}},I9=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=D9(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Hp(s,l,!1),slots:T({field:P9},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=x2({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Rh});return f()});I9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const lje=["desktopModeMediaQuery"],cje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,lje);return Sh(o,{defaultMatches:!0})?O.jsx(M9,T({ref:n},a)):O.jsx(I9,T({ref:n},a))});function uje(e){return tt("MuiTimePickerToolbar",e)}const ip=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),dje=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fje=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,uje,r)},pje=he(m2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hje=he(v2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),A9=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ip.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ip.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));A9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N9=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ip.ampmLabel}`]:t.ampmLabel},{[`&.${ip.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ip.ampmLabel}`]:{fontSize:17}}));N9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function mje(e){const t=Je({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,dje),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=e1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=fje(T({},C,{theme:v})),S=O.jsx(hje,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(pje,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(A9,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&O.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(N9,{className:_.ampmSelection,ownerState:C,children:[O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function j9(e,t){var n,r,o,a,i;const s=qt(),l=Je({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Oh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},a2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:mje},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>O.jsx(X3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),L9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(iNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),QC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(bNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),vje=["views","format"],F9=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,vje);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return Hp(e,T({views:a},o),!1);if(a.length===0)return ny(e,T({views:i},o));const s=ny(e,T({views:i},o));return`${Hp(e,T({views:a},o),!1)} ${s}`},gje=(e,t,n)=>n?t.filter(r=>!Ds(r)||r==="hours"):e?[...t,"meridiem"]:t,yje=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function z9({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=yje(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:gje(t,r,i)}}const V9=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=j9(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=z9(f),v=p?L9:QC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===QC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ny(u,f),views:p?["hours"]:C,slots:T({field:T9,openPickerIcon:VAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:i1});return S()});V9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const B9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=j9(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ny(l,c),slots:T({field:T9},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=x2({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:i1});return m()});B9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const bje=["desktopModeMediaQuery"],xje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,bje);return Sh(o,{defaultMatches:!0})?O.jsx(V9,T({ref:n},a)):O.jsx(B9,T({ref:n},a))});function wje(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const Cje=e=>Nu(e)?"date":"time",$je=e=>e==="date"?"day":"hours",Sje=e=>{const{classes:t}=e;return Qe({root:["root"]},wje,t)},_je=he(J0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Jv.indicator}`]:{bottom:"auto",top:0}}})),Eje=function(t){const n=Je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(BAe,{}),onViewChange:o,timeIcon:a=O.jsx(UAe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=Sje(n),u=(f,p)=>{o($je(p))};return s?null:O.jsxs(_je,{ownerState:n,variant:"fullWidth",value:Cje(i),onChange:u,className:c.root,children:[O.jsx(Vp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx($.Fragment,{children:r})}),O.jsx(Vp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx($.Fragment,{children:a})})]})};function Pje(e){return tt("MuiDateTimePickerToolbar",e)}const Zx=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Tje=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],kje=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,Pje,t)},U9=he(m2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));U9.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const Oje=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),W9=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Rje=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));W9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const tI=he(v2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Dje=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zx.ampmLabel}`]:t.ampmLabel},{[`&.${Zx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Zx.ampmLabel}`]:{fontSize:17}}));function Mje(e){const t=Je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,Tje),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=e1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=kje(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(U9,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(Oje,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs(W9,{className:k.timeContainer,ownerState:x,children:[O.jsxs(Rje,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(Dje,{className:k.ampmSelection,ownerState:x,children:[O.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function H9(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Je({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Oh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,a2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Kr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Kr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:Mje,tabs:Eje},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const Ije=he("div")({display:"flex",margin:"0 auto"}),Ol=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ds(e)?e:"hours",onViewChange:t,focusedView:r&&Ds(r)?r:null,onFocusedViewChange:o,views:n.filter(Ds),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return O.jsxs($.Fragment,{children:[O.jsxs(Ije,{children:[O.jsx(R9,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce}),se>0&&O.jsxs($.Fragment,{children:[O.jsx(pM,{orientation:"vertical"}),Ce?L9(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ds(r)?"hours":null,sx:T({width:"auto",[`&.${eNe.root}`]:{maxHeight:r1}},Array.isArray(N)?N:[N])})):QC(T({},De,{view:Ds(e)?e:"hours",views:n.filter(Ds),focusedView:r&&Ds(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${cNe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(pM,{})]})},G9=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=H9(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=z9(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Ol,month:Ol,year:Ol,hours:Ol,minutes:Ol,seconds:Ol,meridiem:Ol}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:F9(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:k9,openPickerIcon:e9},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:g2});return S()});G9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const q9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=H9(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:F9(c,u),ampmInClock:p,slots:T({field:k9},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=x2({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:g2});return b()});q9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const Aje=["desktopModeMediaQuery"],Nje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,Aje);return Sh(o,{defaultMatches:!0})?O.jsx(G9,T({ref:n},a)):O.jsx(q9,T({ref:n},a))});var Y9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Y9);var jje=Y9.exports;const Lje=Vt(jje);var K9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(K9);var Fje=K9.exports;const zje=Vt(Fje);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(J9);var Vje=J9.exports;const Bje=Vt(Vje);var Z9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Z9);var Uje=Z9.exports;const Wje=Vt(Uje);xr.extend(zje);xr.extend(Bje);xr.extend(Wje);const Hje=x9(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),Gje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},qje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Xx=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),nI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),Yje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class w2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Gje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Xx);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Xx);if(!this.hasTimezonePlugin())throw new Error(nI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(Hje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Xx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(nI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=Yje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},qje,n),xr.extend(Lje)}}var C2={},Kje=Cc;Object.defineProperty(C2,"__esModule",{value:!0});var X9=C2.default=void 0,Jje=Kje($c()),Zje=O,Xje=(0,Jje.default)((0,Zje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");X9=C2.default=Xje;const Qje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Dj(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Jy(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},e6e=vn(3,vj);var t6e=t1e(Qje);class Q9 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=kIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&lj(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const n6e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Jy(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(Q9,{schema:e,combinatorKeyword:p,path:o}),M.createElement(J0,{value:c,onChange:f},m.map(b=>M.createElement(Vp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};s6(n6e);const r6e=he(Od)({borderBottom:"none"}),Gp=({children:e,...t})=>M.createElement(r6e,Object.assign({},t),e),o6e=he(mL)(({theme:e})=>({color:e.palette.error.main})),e8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(o6e,{badgeContent:e.split(` +`).length},M.createElement(n2,{color:"inherit"}))),a6e={paddingLeft:0,paddingRight:0},i6e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Gp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Gp,{align:"right",style:a6e},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large"},M.createElement(e2,null)))):null)}),rI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},t8=(e,t,n,r,o)=>{if(t.type==="object")return n8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},n8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],s6e=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Gp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),l6e=M.memo(function({title:t}){return M.createElement(Od,null,t)}),c6e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},oI=e=>({type:"Control",scope:e,label:!1}),u6e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Gp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:oI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:oI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),d6e=e=>{const t=xc(),n=c6e(t,e),r=Mt(n.errors);return M.createElement(u6e,Object.assign({},n,{isValid:r}))},f6e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},t8(d6e,t,e,c,u),c?M.createElement(Gp,{style:l?rI.fixedCell:rI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(X0,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(Z0,null))))):null)},p6e=M.memo(f6e),h6e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(s6e,{numColumns:n8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=sr.compose(t,`${m}`);return M.createElement(p6e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let m6e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?t8(l6e,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(UL,null,M.createElement(HL,null,M.createElement(i6e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Od,null):null)),M.createElement(WL,null,M.createElement(h6e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const v6e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(UE,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(H0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),g6e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(m6e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(v6e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};Zy(g6e);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},r8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,R=!To(r,t,S,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(xEe,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(Eh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!R},F),M.createElement(pr,{error:!y},U))},$2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(U2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});r2.extend(wAe);const S2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=r2(r).format(n);t(e,o)},_2=(e,t)=>{if(!e)return null;const n=r2(e,t);return n.toString()==="Invalid Date"?null:n},y6e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),b6e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},y6e(t,n,r,o,i,s))),Dh=M.memo(b6e),o8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},x6e=e=>e.target.value,Ec=(e,t,n,r,o=x6e,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(e6(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},w6e={"enum.none":"None"},C6e=e=>e===""?void 0:parseInt(e,10),$6e=e=>C6e(e.target.value),a8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,$6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),S6e=e=>e===""?void 0:parseFloat(e),_6e=e=>S6e(e.target.value),i8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,_6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),E6e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(hs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),P6e=e=>e.target.value===""?void 0:e.target.value,s8=M.memo(function(t){var R,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,P6e),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(hs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(HE,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(JL,{style:I}))),inputComponent:v})}),T6e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(hs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),s1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",w6e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(zL,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(ty,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(ty,{value:v.value,key:v.value},v.label))))}),l8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(HDe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),k6e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement($h,{component:"fieldset"},M.createElement(CL,{row:!0},o.map((u,f)=>{const p=sr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(q0,{id:u.value,key:u.value,control:M.createElement($2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));i1e(k6e);const O6e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>hh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var R6e=n1e(O6e);const D6e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=Jy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,is(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,is,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(Q9,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(J0,{value:b,onChange:E},C.map(k=>M.createElement(Vp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(W0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(UE,{id:"alert-dialog-title"},"Clear form?"),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(H0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},M6e=vn(3,yj);var I6e=e1e(D6e);const A6e=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));u6(A6e);const c8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(kMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(e2,null))))))))}),N6e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(OL,{button:!0,selected:n,onClick:o(e)},M.createElement(Nke,null,M.createElement(pL,{"aria-label":"Index"},e+1)),M.createElement(Wke,{primary:t}),r&&M.createElement(kL,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(Z0,null))));var j6e=r1e(N6e);const L6e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>is(t),[is]),S=$.useMemo(()=>hh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(c8,{translations:x,label:qy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(GE,null,f>0?XL(wd(f),k=>M.createElement(j6e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};Zy(L6e);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement($h,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(PL,{htmlFor:o+"-input",error:!m,required:Yy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},F6e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),z6e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),V6e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=F6e(u.anyOf),m=z6e(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(hs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class B6e extends n6{render(){return M.createElement(Md,Object.assign({},this.props,{input:V6e}))}}co(B6e);const U6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement($2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(U6e);const W6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement(l8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(W6e);const H6e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(cje,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};co(H6e);const G6e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(Nje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(G6e);const q6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};nE(ul(M.memo(q6e)),!1);const Y6e=e=>M.createElement(Md,Object.assign({},e,{input:a8}));co(Y6e);const K6e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(Eh,{required:Yy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};co(K6e);const J6e=e=>M.createElement(Md,Object.assign({},e,{input:i8}));co(J6e);const Z6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};rE(ul(M.memo(Z6e)),!1);const u8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement($h,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(WE,{htmlFor:a,error:!x,component:"legend",required:Yy(s,g.hideRequiredAsterisk)},i),M.createElement(QOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(q0,{value:C.value,key:C.label,control:M.createElement(JOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},X6e=e=>M.createElement(u8,Object.assign({},e));rE(X6e);const Q6e=e=>M.createElement(u8,Object.assign({},e));nE(Q6e);const eLe=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement($h,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(WE,{htmlFor:o,error:!x,component:"legend",required:Yy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(MRe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};co(eLe);const tLe=e=>M.createElement(Md,Object.assign({},e,{input:s8}));co(tLe);const nLe=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(xje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(nLe);const Qx={float:"right"},rLe=e=>{const[t]=$.useState(Bj("expand-panel"));$.useEffect(()=>()=>{Uj(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>hh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(PCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(i$e,{expandIcon:M.createElement(X9,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(pL,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:Qx,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:Qx,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(X0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:Qx,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(Z0,null))))))))),M.createElement(MCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},oLe=M.memo(rLe),aLe=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(uj(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(dj(o,n),o)))},[e])}),iLe=e=>function({ctx:n,props:r}){const o=aLe(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Iye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},sLe=e=>_r(iLe(e));var lLe=sLe(oLe);const cLe={marginBottom:"10px"},uLe=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(l2e,{style:cLe},!Mt(o)&&M.createElement(S2e,{title:o}),M.createElement(h2e,null,M.createElement(Dh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),dLe=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(uLe,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};ds(dLe);const fLe=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Dh,Object.assign({},l,{renderers:t,cells:n}))};ds(fLe);const pLe=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Dh,Object.assign({},l,{renderers:a,cells:i}))};ds(pLe);const hLe=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Wy(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(P$e,{position:"static"},M.createElement(J0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Vp,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Dh,Object.assign({},C,{key:w}))))};o8(ul(ds(hLe)));const mLe=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>is(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(c8,{translations:C,label:qy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?XL(wd(s),S=>M.createElement(lLe,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(vLe,Object.assign({visible:e,addItem:r},n)))};Zy(gLe);const yLe=e=>M.createElement($2,Object.assign({},e));hr(yLe);const bLe=e=>M.createElement(l8,Object.assign({},e));hr(bLe);const xLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(hs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(xLe);const wLe=e=>M.createElement(s1,Object.assign({},e));c6(ul(M.memo(wLe)),!1);const CLe=e=>M.createElement(a8,Object.assign({},e));hr(CLe);const $Le=e=>M.createElement(i8,Object.assign({},e));hr($Le);const SLe=e=>M.createElement(E6e,Object.assign({},e));hr(SLe);const _Le=e=>M.createElement(s1,Object.assign({},e));a1e(ul(M.memo(_Le)),!1);const ELe=e=>M.createElement(s8,Object.assign({},e));hr(ELe);const PLe=e=>M.createElement(T6e,Object.assign({},e));hr(PLe);const TLe=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Wy(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(ADe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(JRe,{key:_[E]},M.createElement(wDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Dh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};o8(ul(ds(TLe)));var kLe=Array.prototype,OLe=kLe.join;function RLe(e,t){return e==null?"":OLe.call(e,t)}var DLe=RLe;const d8=Vt(DLe);var MLe=xd,f8=MLe("filter",y5);f8.placeholder=gc();var ILe=f8;const aI=Vt(ILe);var ALe=xd,p8=ALe("map",ZL);p8.placeholder=gc();var NLe=p8;const iI=Vt(NLe);var ew,sI;function jLe(){if(sI)return ew;sI=1;var e=MS(),t=jS,n=DS(),r=n5(),o=cr,a=r5(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Mg(e,o=>o.name===t);return SC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>d8(sp(e)(t,n)," "),qLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],YLe={styles:qLe},KLe=M.createContext(YLe),JLe=()=>$.useContext(KLe),E2=()=>{const{styles:e}=JLe();return e},Oi=e=>function(n){const r=xc(),o=E2(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>sp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${Lj(a.scope)}`]);s&&(c=c.concat(sp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>sp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},P2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=E2(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:sp(a),className:o.join(" ")}))},Xa=P2("control.input"),ZLe=P2("control.select"),XLe=P2("control.checkbox"),QLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},e9e=vn(2,mj);var t9e=hr(XLe(QLe));const n9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},r9e=vn(2,Sj);var o9e=hr(Xa(n9e));const a9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},i9e=vn(2,Ej);var s9e=hr(Xa(a9e));const l9e=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",GLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},c9e=vn(2,O_);var u9e=c6(ul(ZLe(l9e)));const d9e=e=>e===""?void 0:parseInt(e,10),f9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,d9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},p9e=vn(2,xj);var h9e=hr(Xa(f9e));const m9e=e=>e===""?void 0:Number(e),v9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,m9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},g9e=vn(2,wj);var y9e=hr(Xa(v9e));const b9e=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(Xa(b9e));const x9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},w9e=vn(4,kj);var C9e=hr(Xa(x9e));const $9e=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},S9e=vn(1,Cj);hr(Xa($9e));const _9e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},E9e=vn(2,$j);hr(Xa(_9e));const P9e=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},T9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,P9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},k9e=vn(2,_j);var O9e=hr(Xa(T9e));class R9e extends n6{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Ay(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},qy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const D9e=vn(1,Ya);var y8=Oi(co(R9e));const b8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=E2(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},qy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},M9e=e=>M.createElement(b8,Object.assign({},e)),I9e=vn(3,$n(O_,us("format","radio")));var A9e=Oi(nE(M9e));const N9e=e=>M.createElement(b8,Object.assign({},e)),j9e=vn(3,$n(bj,us("format","radio")));var L9e=Oi(rE(N9e));const{convertToValidClassName:F9e}=Ug,z9e=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>hh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),F9e(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,is(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},V9e=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Ug.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Ug.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(z9e,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var B9e=Oi(l6(V9e));const U9e=vn(4,D_),T2=e=>e.type==="Categorization",W9e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>T2(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),H9e=(e,t)=>t===e?"selected":"",x8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Wy(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>T2(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(x8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:H9e(l,t)},M.createElement("span",null,s[c]))))},G9e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class q9e extends t6{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(x8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(G9e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:T2(n)?this.findCategory(n):n}}var Y9e=Oi(ul(ds(q9e)));const K9e=vn(1,_n("Label")),J9e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var Z9e=Oi(u6(J9e));const{convertToValidClassName:X9e}=Ug,{or:Q9e,isObjectArrayControl:e8e,isPrimitiveArrayControl:t8e,rankWith:n8e}=Qge,r8e=n8e(3,Q9e(e8e,t8e));class o8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),X9e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,is(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?cI(dI,aI(S=>r.properties[S].type!=="array"),iI(S=>M.createElement("th",{key:S},r.properties[S].title??HLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=sr.compose(a,`${E}`),I=Mg(f,G=>Fg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?cI(dI,aI(G=>r.properties[G].type!=="array"),iI(G=>{const z=sr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:sr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},d8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var a8e=Oi(l6(o8e));const k2=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},i8e=vn(1,_n("Group")),s8e=e=>{const{data:t,...n}=e;return M.createElement(l8e,Object.assign({},n))},l8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),k2(c,t,p,r,o))});var c8e=Oi(ds(s8e));const w8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),u8e=vn(1,_n("HorizontalLayout")),d8e=e=>{const{data:t,...n}=e;return M.createElement(f8e,Object.assign({},n))},f8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(w8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},k2(l,t,f,s,a))});var p8e=Oi(ds(d8e,!1));const h8e=vn(1,_n("VerticalLayout")),m8e=e=>{const{data:t,...n}=e;return M.createElement(v8e,Object.assign({},n))},v8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(w8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},k2(l,t,f,r,a))});var g8e=Oi(ds(m8e,!1));const y8e=[{tester:D9e,renderer:y8},{tester:I9e,renderer:A9e},{tester:j9e,renderer:L9e},{tester:U9e,renderer:B9e},{tester:K9e,renderer:Z9e},{tester:W9e,renderer:Y9e},{tester:r8e,renderer:a8e},{tester:i8e,renderer:c8e},{tester:h8e,renderer:g8e},{tester:u8e,renderer:p8e}],O2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),b8e=he(Od)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),qp=({children:e,...t})=>O.jsx(b8e,{...t,children:e}),R2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),x8e=he(mL)(({theme:e})=>({color:e.palette.error.main})),w8e=({errorMessages:e,id:t})=>O.jsx(wc,{id:t,title:e,children:O.jsx(x8e,{badgeContent:e.split(` +`).length,children:O.jsx(n2,{color:"inherit"})})}),C8e={paddingLeft:0,paddingRight:0},$8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(hl,{children:[O.jsx(qp,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(w8e,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(qp,{align:"right",style:C8e,children:O.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large",sx:{p:1},children:O.jsx(R2,{className:"text-ls-black"})})})}):null]})}),fI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},C8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return $8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},$8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],S8e=({numColumns:e,translations:t})=>O.jsx(hl,{children:O.jsx(qp,{colSpan:e,children:O.jsx(yn,{align:"center",children:t.noDataMessage})})}),_8e=M.memo(function({title:t}){return O.jsx(Od,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),E8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pI=e=>({type:"Control",scope:e,label:!1}),P8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(qp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:pI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ic,{schema:r,uischema:pI("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(pr,{error:!c,children:!c&&a})]})}),T8e=e=>{const t=xc(),n=E8e(t,e),r=Mt(n.errors);return O.jsx(P8e,{...n,isValid:r})},k8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(hl,{hover:!0,children:[C8(T8e,t,e,c,u),c?O.jsx(qp,{style:l?fI.fixedCell:fI.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs($.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(Q0,{})})}),O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(X0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(O2,{className:"text-ls-black"})})})]})}):null]},e)},O8e=M.memo(k8e),R8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(S8e,{numColumns:$8(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:wd(e).map(m=>{const b=sr.compose(t,`${m}`);return O.jsx(O8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class D8e extends M.Component{constructor(){super(...arguments);Jd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?C8(_8e,o,r,u,f):void 0;return O.jsx(Tn,{xsUp:!c,children:O.jsxs(UL,{children:[O.jsxs(HL,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx($8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(hl,{children:[v,u?O.jsx(Od,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx(WL,{children:O.jsx(R8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const M8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(UE,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(G0,{children:O.jsx(BE,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(H0,{children:[O.jsx(Go,{onClick:o,color:"primary",children:l}),O.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),I8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Tn,{xsUp:!l,children:[O.jsx(D8e,{...e,openDeleteDialog:c}),O.jsx(M8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},A8e=vn(11,yc(R_,Tj,D_)),S8=Zy(I8e),hI=Zi("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return O.jsxs("div",{className:Zi("grid w-full",e.className),children:[O.jsx("textarea",{id:e.id,className:Zi(hI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Zi(hI,"pointer-events-none select-none"),children:[e.value," "]})]})}const N8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},mI=hr(Xa(N8e));function j8e(e){try{return JSON.parse(e)}catch{return e}}function L8e(e){try{return JSON.stringify(e)}catch{return e}}const F8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:typeof t=="object"?L8e(t):t??"",onChange:u=>l(s,u===""?void 0:j8e(u)),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},z8e=hr(Xa(F8e)),V8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function B8e(e){return typeof e=="object"&&e!=null}function oy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(B8e(r))r=r[o];else return}return r}function l1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function U8e(e){const t=e+"CollectionProvider",[n,r]=Sy(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=as(b,g.collectionRef);return M.createElement(kp,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=as(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(kp,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const W8e=$.createContext(void 0);function _8(e){const t=$.useContext(W8e);return e||t||"ltr"}const rw="rovingFocusGroup.onEntryFocus",H8e={bubbles:!1,cancelable:!0},D2="RovingFocusGroup",[e$,E8,G8e]=U8e(D2),[q8e,P8]=Sy(D2,[G8e]),[Y8e,K8e]=q8e(D2),J8e=$.forwardRef((e,t)=>$.createElement(e$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(e$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(Z8e,T({},e,{ref:t}))))),Z8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=as(t,f),m=_8(a),[b=null,v]=Qp({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=E8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(rw,y),()=>E.removeEventListener(rw,y)},[y]),$.createElement(Y8e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Jo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:ao(e.onMouseDown,()=>{C.current=!0}),onFocus:ao(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(rw,H8e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(V=>V.focusable),F=R.find(V=>V.active),U=R.find(V=>V.id===b),z=[F,U,...R].filter(Boolean).map(V=>V.ref.current);T8(z)}}C.current=!1}),onBlur:ao(e.onBlur,()=>g(!1))})))}),X8e="RovingFocusGroupItem",Q8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Mv(),l=a||s,c=K8e(X8e,n),u=c.currentTabStopId===l,f=E8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(e$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Jo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:ao(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:ao(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ao(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=nFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?rFe(g,y+1):g.slice(y+1)}setTimeout(()=>T8(g))}})})))}),eFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nFe(e,t,n){const r=tFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return eFe[r]}function T8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const oFe=J8e,aFe=Q8e,iFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Qp({prop:n,onChange:o,defaultProp:r});return $.createElement(Jo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:ao(e.onClick,()=>{e.disabled||s(!i)})}))}),c1="ToggleGroup",[k8,WFe]=Sy(c1,[P8]),O8=P8(),sFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(lFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(cFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${c1}\``)}),[R8,D8]=k8(c1),lFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Qp({prop:n,defaultProp:r,onChange:o});return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(M8,T({},a,{ref:t})))}),cFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qp({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(M8,T({},a,{ref:t})))}),[uFe,dFe]=k8(c1),M8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=O8(n),u=_8(i),f={role:"group",dir:u,...l};return M.createElement(uFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(oFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Jo.div,T({},f,{ref:t}))):M.createElement(Jo.div,T({},f,{ref:t})))}),t$="ToggleGroupItem",fFe=M.forwardRef((e,t)=>{const n=D8(t$,e.__scopeToggleGroup),r=dFe(t$,e.__scopeToggleGroup),o=O8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(aFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(vI,T({},s,{ref:t}))):M.createElement(vI,T({},s,{ref:t}))}),vI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=D8(t$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(iFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),pFe=sFe,gI=fFe,hFe=vn(12,$n(Ya,Yr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function yI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function bI(e,t){return typeof e=="string"?[{content:e,type:t}]:yI(e)?[e]:Array.isArray(e)&&e.every(yI)?e:null}function xI(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const mFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??""),i=bI(o,"human"),s=bI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=sr.compose(e.path,`${r}`),a=n.type??"chat",i=xI((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(sr.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(pFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(sr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(sr.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(gI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(V8e,{className:"w-4 h-4"})}),O.jsx(gI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(SN,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(O2,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(sr.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(sr.compose(o,"name"),p.target.value)}}),a==="ai"&&xI((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(sr.compose(o,"additional_kwargs.function_call.name")),e.handleChange(sr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(sr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(sr.compose(o,"content"),p)}})]},r)})})]})}),vFe=vn(12,$n(Ya,Yr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!l1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),gFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=sr.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(ad,{value:n,onChange:i=>{e.handleChange(sr.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(ad,{value:r,onChange:i=>{e.handleChange(sr.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(O2,{className:"w-4 h-4"})})]},o)})})]})}),yFe=vn(12,$n(Ya,Yr(e=>l1(e)?e.extra.widget.type==="base64file":!1))),bFe=co(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),xFe=s6(e=>{const t=Jy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:M2,cells:I2})}),wFe=vn(3,gj),CFe=vn(2,$n(_n("Control"),Ka("object"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),$Fe=vn(1,$n(_n("Control"),Ka("object"))),SFe=vn(1,$n(_n("Control"))),M2=[...y8e,{tester:CFe,renderer:R6e},{tester:e6e,renderer:t6e},{tester:M6e,renderer:I6e},{tester:wFe,renderer:xFe},{tester:A8e,renderer:S8},{tester:$Fe,renderer:y8},{tester:hFe,renderer:mFe},{tester:vFe,renderer:gFe},{tester:yFe,renderer:bFe}],_Fe=vn(1,(e,t)=>t.type==="array"),I2=[{tester:e9e,cell:t9e},{tester:r9e,cell:o9e},{tester:i9e,cell:s9e},{tester:c9e,cell:u9e},{tester:p9e,cell:h9e},{tester:g9e,cell:y9e},{tester:w9e,cell:C9e},{tester:E9e,cell:mI},{tester:S9e,cell:mI},{tester:k9e,cell:O9e},{tester:_Fe,cell:S8},{tester:SFe,cell:z8e}];function EFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(f6,{schema:e.config,data:e.value.data,renderers:M2,cells:I2,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>O.jsx("li",{children:r.message},o))})]})})]})]})}function PFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify($g(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:$g(e.input),errors:[]}),children:"Reset"})]}),O.jsx(f6,{schema:e.input,data:e.value.data,renderers:M2,cells:I2,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>O.jsx("li",{children:o.message},a))})]})]})]})}const TFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function kFe(e){return O.jsx("button",{type:"button",className:Zi("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(TFe,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})}function OFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function RFe(e,t){return e===t}function wI(e){return typeof e=="function"?function(){return e}:e}function DFe(e,t,n){var r,o,a=n&&n.equalityFn||RFe,i=(r=$.useState(wI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(wI(f))},[])]),s=i[0],l=i[1],c=OFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function MFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return O.jsxs(O.Fragment,{children:[O.jsx(PFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),O.jsx(BH,{config:e.configData.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(xB,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx(kFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function IFe(e){const t=X$(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),[o,a]=DFe(n.data,500),i=cU(o!==e.configSchema.defaults?o:void 0),{context:s,callbacks:l}=AU(),{startStream:c,stopStream:u,latest:f}=IU(l);return O.jsxs(K3.Provider,{value:s,children:[O.jsx(EFe,{config:e.configSchema.schema,value:n,onChange:r}),O.jsx("div",{className:Zi("flex flex-col flex-grow gap-4 w-full transition-opacity",(i.isLoading||a.isPending())&&"opacity-50 pointer-events-none"),children:i.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:i.error.toString()})}):O.jsx(O.Fragment,{children:i.data!=null?O.jsx(MFe,{configSchema:e.configSchema,inputSchema:i.data,configData:n,startStream:c,stopStream:u,children:f&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(CG,{streamed:f.streamed_output})}),O.jsx(bG,{latest:f})]})}):null})})]})}function AFe(){const e=lU();return e.isLoading?null:e.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":O.jsx(IFe,{configSchema:e.data})}function NFe(){return O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),O.jsx(AFe,{})]})})}var I8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(I8);var jFe=I8.exports;const LFe=Vt(jFe);var A8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(A8);var FFe=A8.exports;const zFe=Vt(FFe);xr.extend(zFe);xr.extend(LFe);ow.createRoot(document.getElementById("root")).render(O.jsx(NFe,{})); diff --git a/langserve/playground/dist/assets/index-c6cde0dd.css b/langserve/playground/dist/assets/index-8968db79.css similarity index 76% rename from langserve/playground/dist/assets/index-c6cde0dd.css rename to langserve/playground/dist/assets/index-8968db79.css index b9bff76e..2c7ecf92 100644 --- a/langserve/playground/dist/assets/index-c6cde0dd.css +++ b/langserve/playground/dist/assets/index-8968db79.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index ed88a6ec..96a696b1 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,8 +5,8 @@ Playground - - + +
From 16dfd306ddd0215a14b5ac9a7a2bf60a4f95c745 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 21 Nov 2023 01:51:15 +0100 Subject: [PATCH 07/23] Revert "New JS build" This reverts commit 786165936826db2fe5bd6015bdc7c04f3688909f. --- .../playground/dist/assets/index-32c8d712.js | 247 +++++++++++++++++ .../playground/dist/assets/index-849f2582.js | 255 ------------------ ...{index-8968db79.css => index-c6cde0dd.css} | 2 +- langserve/playground/dist/index.html | 4 +- 4 files changed, 250 insertions(+), 258 deletions(-) create mode 100644 langserve/playground/dist/assets/index-32c8d712.js delete mode 100644 langserve/playground/dist/assets/index-849f2582.js rename langserve/playground/dist/assets/{index-8968db79.css => index-c6cde0dd.css} (76%) diff --git a/langserve/playground/dist/assets/index-32c8d712.js b/langserve/playground/dist/assets/index-32c8d712.js new file mode 100644 index 00000000..523262b2 --- /dev/null +++ b/langserve/playground/dist/assets/index-32c8d712.js @@ -0,0 +1,247 @@ +var f7=Object.defineProperty;var p7=(e,t,n)=>t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ud=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n);function h7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XM={exports:{}},Gg={},QM={exports:{}},an={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lp=Symbol.for("react.element"),v7=Symbol.for("react.portal"),g7=Symbol.for("react.fragment"),y7=Symbol.for("react.strict_mode"),b7=Symbol.for("react.profiler"),x7=Symbol.for("react.provider"),w7=Symbol.for("react.context"),C7=Symbol.for("react.forward_ref"),$7=Symbol.for("react.suspense"),S7=Symbol.for("react.memo"),_7=Symbol.for("react.lazy"),iT=Symbol.iterator;function E7(e){return e===null||typeof e!="object"?null:(e=iT&&e[iT]||e["@@iterator"],typeof e=="function"?e:null)}var eI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tI=Object.assign,nI={};function Qu(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}Qu.prototype.isReactComponent={};Qu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rI(){}rI.prototype=Qu.prototype;function FC(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}var zC=FC.prototype=new rI;zC.constructor=FC;tI(zC,Qu.prototype);zC.isPureReactComponent=!0;var sT=Array.isArray,oI=Object.prototype.hasOwnProperty,BC={current:null},aI={key:!0,ref:!0,__self:!0,__source:!0};function iI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)oI.call(t,r)&&!aI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=H[L];if(0>>1;Lo(N,X))Vo(Z,N)?(H[L]=Z,H[V]=X,L=V):(H[L]=N,H[D]=X,L=D);else if(Vo(Z,X))H[L]=Z,H[V]=X,L=V;else break e}}return J}function o(H,J){var X=H.sortIndex-J.sortIndex;return X!==0?X:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=H)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(H){if(v=!1,w(H),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-H)}}function _(H,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||H&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var K=L(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var $=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RH||125L?(H.sortIndex=X,t(c,H),n(l)===null&&H===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-L))):(H.sortIndex=K,t(l,H),b||m||(b=!0,Y(_))),H},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(H){var J=p;return function(){var X=p;p=J;try{return H.apply(this,arguments)}finally{p=X}}}})(uI);cI.exports=uI;var j7=cI.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dI=S,qo=j7;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wx=Object.prototype.hasOwnProperty,L7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cT={},uT={};function F7(e){return Wx.call(uT,e)?!0:Wx.call(cT,e)?!1:L7.test(e)?uT[e]=!0:(cT[e]=!0,!1)}function z7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B7(e,t,n,r){if(t===null||typeof t>"u"||z7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function io(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var UC=/[\-:]([a-z])/g;function WC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!0,!0)});function HC(e,t,n,r){var o=Nr.hasOwnProperty(t)?Nr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yf(e):""}function V7(e){switch(e.tag){case 5:return yf(e.type);case 16:return yf("Lazy");case 13:return yf("Suspense");case 19:return yf("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function Yx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ou:return"Fragment";case ru:return"Portal";case Hx:return"Profiler";case GC:return"StrictMode";case Gx:return"Suspense";case qx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hI:return(e.displayName||"Context")+".Consumer";case pI:return(e._context.displayName||"Context")+".Provider";case qC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YC:return t=e.displayName||null,t!==null?t:Yx(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return Yx(e(t))}catch{}}return null}function U7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yx(t);case 8:return t===GC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W7(e){var t=vI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){e._valueTracker||(e._valueTracker=W7(e))}function gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kx(e,t){var n=t.checked;return Yn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yI(e,t){t=t.checked,t!=null&&HC(e,"checked",t,!1)}function Jx(e,t){yI(e,t);var n=Ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zx(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zx(e,t,n){(t!=="number"||zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bf=Array.isArray;function bu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},H7=["Webkit","ms","Moz","O"];Object.keys(kf).forEach(function(e){H7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kf[t]=kf[e]})});function CI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kf.hasOwnProperty(e)&&kf[e]?(""+t).trim():t+"px"}function $I(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=CI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G7=Yn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,t){if(t){if(G7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function tw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nw=null;function KC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rw=null,xu=null,wu=null;function vT(e){if(e=Bp(e)){if(typeof rw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Zg(t),rw(e.stateNode,e.type,t))}}function SI(e){xu?wu?wu.push(e):wu=[e]:xu=e}function _I(){if(xu){var e=xu,t=wu;if(wu=xu=null,vT(e),t)for(e=0;e>>=0,e===0?32:31-(rz(e)/oz|0)|0}var ym=64,bm=4194304;function xf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=xf(s):(a&=i,a!==0&&(r=xf(a)))}else i=n&~o,i!==0?r=xf(i):a!==0&&(r=xf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Va(t),e[t]=n}function lz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rf),_T=String.fromCharCode(32),ET=!1;function HI(e,t){switch(e){case"keyup":return Nz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var au=!1;function Lz(e,t){switch(e){case"compositionend":return GI(t);case"keypress":return t.which!==32?null:(ET=!0,_T);case"textInput":return e=t.data,e===_T&&ET?null:e;default:return null}}function Fz(e,t){if(au)return e==="compositionend"||!r$&&HI(e,t)?(e=UI(),pv=e$=Ms=null,au=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=OT(n)}}function JI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ZI(){for(var e=window,t=zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zv(e.document)}return t}function o$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yz(e){var t=ZI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&JI(n.ownerDocument.documentElement,n)){if(r!==null&&o$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=RT(n,a);var i=RT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,iu=null,cw=null,Mf=null,uw=!1;function DT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uw||iu==null||iu!==zv(r)||(r=iu,"selectionStart"in r&&o$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mf&&lp(Mf,r)||(Mf=r,r=qv(cw,"onSelect"),0cu||(e.current=vw[cu],vw[cu]=null,cu--)}function Rn(e,t){cu++,vw[cu]=e.current,e.current=t}var Js={},Gr=tl(Js),xo=tl(!1),Wl=Js;function Iu(e,t){var n=e.type.contextTypes;if(!n)return Js;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wo(e){return e=e.childContextTypes,e!=null}function Kv(){jn(xo),jn(Gr)}function FT(e,t,n){if(Gr.current!==Js)throw Error(at(168));Rn(Gr,t),Rn(xo,n)}function iA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,U7(e)||"Unknown",o));return Yn({},n,r)}function Jv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Js,Wl=Gr.current,Rn(Gr,e),Rn(xo,xo.current),!0}function zT(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=iA(e,t,Wl),r.__reactInternalMemoizedMergedChildContext=e,jn(xo),jn(Gr),Rn(Gr,e)):jn(xo),Rn(xo,n)}var Vi=null,Xg=!1,yb=!1;function sA(e){Vi===null?Vi=[e]:Vi.push(e)}function iB(e){Xg=!0,sA(e)}function nl(){if(!yb&&Vi!==null){yb=!0;var e=0,t=wn;try{var n=Vi;for(wn=1;e>=i,o-=i,Wi=1<<32-Va(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R,E=I}if(k===w.length)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,E=I}if(R.done)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return Fn&&_l(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return e&&E.forEach(function(U){return t(g,U)}),Fn&&_l(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===ou&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mm:e:{for(var _=w.key,$=y;$!==null;){if($.key===_){if(_=w.type,_===ou){if($.tag===7){n(g,$.sibling),y=o($,w.props.children),y.return=g,g=y;break e}}else if($.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ts&&qT(_)===$.type){n(g,$.sibling),y=o($,w.props),y.ref=Kd(g,$,w),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}w.type===ou?(y=zl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=wv(w.type,w.key,w.props,null,g.mode,C),C.ref=Kd(g,y,w),C.return=g,g=C)}return i(g);case ru:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Eb(w,g.mode,C),y.return=g,g=y}return i(g);case Ts:return $=w._init,x(g,y,$(w._payload),C)}if(bf(w))return b(g,y,w,C);if(Wd(w))return v(g,y,w,C);Em(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=_b(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Nu=mA(!0),vA=mA(!1),Vp={},vi=tl(Vp),fp=tl(Vp),pp=tl(Vp);function Nl(e){if(e===Vp)throw Error(at(174));return e}function p$(e,t){switch(Rn(pp,t),Rn(fp,e),Rn(vi,Vp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qx(t,e)}jn(vi),Rn(vi,t)}function ju(){jn(vi),jn(fp),jn(pp)}function gA(e){Nl(pp.current);var t=Nl(vi.current),n=Qx(t,e.type);t!==n&&(Rn(fp,e),Rn(vi,n))}function h$(e){fp.current===e&&(jn(vi),jn(fp))}var Gn=tl(0);function ng(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bb=[];function m$(){for(var e=0;en?n:4,e(!0);var r=xb.transition;xb.transition={};try{e(!1),t()}finally{wn=n,xb.transition=r}}function MA(){return ba().memoizedState}function uB(e,t,n){var r=Hs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},IA(e))AA(t,n);else if(n=dA(e,t,n,r),n!==null){var o=ro();Ua(n,e,r,o),NA(n,t,r)}}function dB(e,t,n){var r=Hs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(IA(e))AA(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ha(s,i)){var l=t.interleaved;l===null?(o.next=o,d$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dA(e,t,o,r),n!==null&&(o=ro(),Ua(n,e,r,o),NA(n,t,r))}}function IA(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function AA(e,t){If=rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function NA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}var og={readContext:ya,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},fB={readContext:ya,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:KT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gv(4194308,4,TA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gv(4194308,4,e,t)},useInsertionEffect:function(e,t){return gv(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uB.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:YT,useDebugValue:x$,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=YT(!1),t=e[0];return e=cB.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,o=ai();if(Fn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Tr===null)throw Error(at(349));Gl&30||xA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,KT(CA.bind(null,r,a,e),[e]),r.flags|=2048,vp(9,wA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ai(),t=Tr.identifierPrefix;if(Fn){var n=Hi,r=Wi;n=(r&~(1<<32-Va(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ci]=t,e[dp]=r,HA(e,t,!1,!1),t.stateNode=e;e:{switch(i=tw(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;oFu&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304)}else{if(!r)if(e=ng(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Fn)return zr(t),null}else 2*sr()-a.renderingStartTime>Fu&&n!==1073741824&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,Rn(Gn,r?n&1|2:n&1),t):(zr(t),null);case 22:case 23:return E$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jo&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function xB(e,t){switch(i$(t),t.tag){case 1:return wo(t.type)&&Kv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ju(),jn(xo),jn(Gr),m$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h$(t),null;case 13:if(jn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Au()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Gn),null;case 4:return ju(),null;case 10:return u$(t.type._context),null;case 22:case 23:return E$(),null;case 24:return null;default:return null}}var Tm=!1,Wr=!1,wB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function Tw(e,t,n){try{n()}catch(r){er(e,t,r)}}var ok=!1;function CB(e,t){if(dw=Hv,e=ZI(),o$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fw={focusedElem:e,selectionRange:n},Hv=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ma(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){er(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=ok,ok=!1,b}function Af(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Tw(t,n,a)}o=o.next}while(o!==r)}}function ty(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function YA(e){var t=e.alternate;t!==null&&(e.alternate=null,YA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[dp],delete t[mw],delete t[oB],delete t[aB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function KA(e){return e.tag===5||e.tag===3||e.tag===4}function ak(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ow(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yv));else if(r!==4&&(e=e.child,e!==null))for(Ow(e,t,n),e=e.sibling;e!==null;)Ow(e,t,n),e=e.sibling}function Rw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rw(e,t,n),e=e.sibling;e!==null;)Rw(e,t,n),e=e.sibling}var Dr=null,Ia=!1;function xs(e,t,n){for(n=n.child;n!==null;)JA(e,t,n),n=n.sibling}function JA(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(qg,n)}catch{}switch(n.tag){case 5:Wr||pu(n,t);case 6:var r=Dr,o=Ia;Dr=null,xs(e,t,n),Dr=r,Ia=o,Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dr.removeChild(n.stateNode));break;case 18:Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?gb(e.parentNode,n):e.nodeType===1&&gb(e,n),ip(e)):gb(Dr,n.stateNode));break;case 4:r=Dr,o=Ia,Dr=n.stateNode.containerInfo,Ia=!0,xs(e,t,n),Dr=r,Ia=o;break;case 0:case 11:case 14:case 15:if(!Wr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Tw(n,t,i),o=o.next}while(o!==r)}xs(e,t,n);break;case 1:if(!Wr&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){er(n,t,s)}xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:n.mode&1?(Wr=(r=Wr)||n.memoizedState!==null,xs(e,t,n),Wr=r):xs(e,t,n);break;default:xs(e,t,n)}}function ik(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wB),t.forEach(function(r){var o=RB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ka(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SB(r/1960))-r,10e?16:e,Is===null)var r=!1;else{if(e=Is,Is=null,sg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-S$?Fl(e,0):$$|=n),Co(e,t)}function o3(e,t){t===0&&(e.mode&1?(t=bm,bm<<=1,!(bm&130023424)&&(bm=4194304)):t=1);var n=ro();e=Xi(e,t),e!==null&&(Fp(e,t,n),Co(e,n))}function OB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o3(e,n)}function RB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),o3(e,n)}var a3;a3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xo.current)bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bo=!1,yB(e,t,n);bo=!!(e.flags&131072)}else bo=!1,Fn&&t.flags&1048576&&lA(t,Xv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yv(e,t),e=t.pendingProps;var o=Iu(t,Gr.current);$u(t,n),o=g$(null,t,r,e,o,n);var a=y$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)?(a=!0,Jv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,f$(t),o.updater=Qg,t.stateNode=o,o._reactInternals=t,ww(t,r,e,n),t=Sw(null,t,r,!0,a,n)):(t.tag=0,Fn&&a&&a$(t),to(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MB(r),e=Ma(r,e),o){case 0:t=$w(null,t,r,e,n);break e;case 1:t=tk(null,t,r,e,n);break e;case 11:t=QT(null,t,r,e,n);break e;case 14:t=ek(null,t,r,Ma(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),$w(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),tk(e,t,r,o,n);case 3:e:{if(VA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,fA(e,t),tg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Lu(Error(at(423)),t),t=nk(e,t,r,n,o);break e}else if(r!==o){o=Lu(Error(at(424)),t),t=nk(e,t,r,n,o);break e}else for(Vo=Vs(t.stateNode.containerInfo.firstChild),Ho=t,Fn=!0,Aa=null,n=vA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Au(),r===o){t=Qi(e,t,n);break e}to(e,t,r,n)}t=t.child}return t;case 5:return gA(t),e===null&&yw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,pw(r,o)?i=null:a!==null&&pw(r,a)&&(t.flags|=32),BA(e,t),to(e,t,i,n),t.child;case 6:return e===null&&yw(t),null;case 13:return UA(e,t,n);case 4:return p$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nu(t,null,r,n):to(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),QT(e,t,r,o,n);case 7:return to(e,t,t.pendingProps,n),t.child;case 8:return to(e,t,t.pendingProps.children,n),t.child;case 12:return to(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Rn(Qv,r._currentValue),r._currentValue=i,a!==null)if(Ha(a.value,i)){if(a.children===o.children&&!xo.current){t=Qi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Gi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}to(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$u(t,n),o=ya(o),r=r(o),t.flags|=1,to(e,t,r,n),t.child;case 14:return r=t.type,o=Ma(r,t.pendingProps),o=Ma(r.type,o),ek(e,t,r,o,n);case 15:return FA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),yv(e,t),t.tag=1,wo(r)?(e=!0,Jv(t)):e=!1,$u(t,n),hA(t,r,o),ww(t,r,o,n),Sw(null,t,r,!0,e,n);case 19:return WA(e,t,n);case 22:return zA(e,t,n)}throw Error(at(156,t.tag))};function i3(e,t){return DI(e,t)}function DB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(e,t,n,r){return new DB(e,t,n,r)}function T$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MB(e){if(typeof e=="function")return T$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qC)return 11;if(e===YC)return 14}return 2}function Gs(e,t){var n=e.alternate;return n===null?(n=ha(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")T$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ou:return zl(n.children,o,a,t);case GC:i=8,o|=8;break;case Hx:return e=ha(12,n,t,o|2),e.elementType=Hx,e.lanes=a,e;case Gx:return e=ha(13,n,t,o),e.elementType=Gx,e.lanes=a,e;case qx:return e=ha(19,n,t,o),e.elementType=qx,e.lanes=a,e;case mI:return ry(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pI:i=10;break e;case hI:i=9;break e;case qC:i=11;break e;case YC:i=14;break e;case Ts:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=ha(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function zl(e,t,n,r){return e=ha(7,e,r,t),e.lanes=n,e}function ry(e,t,n,r){return e=ha(22,e,r,t),e.elementType=mI,e.lanes=n,e.stateNode={isHidden:!1},e}function _b(e,t,n){return e=ha(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=ha(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function k$(e,t,n,r,o,a,i,s,l){return e=new IB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ha(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},f$(a),e}function AB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u3)}catch(e){console.error(e)}}u3(),lI.exports=Jo;var nd=lI.exports;const Cf=Bt(nd);var hk=nd;Ux.createRoot=hk.createRoot,Ux.hydrateRoot=hk.hydrateRoot;const ug=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),ly=e=>JSON.parse(JSON.stringify(e)),M$=(e,t)=>{e=ly(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];ug(r)&&ug(o)?e[n]=M$(o,r):e[n]=r}return e},d3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return ug(o)?ly(o):o},zB=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=zB(e.allOf,t);return Zc(n,t)}else if(typeof e.$ref<"u"){const n=d3(e.$ref,t);return Zc(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=Zc(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>Zc(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=Zc(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:ug(e.definitions)&&(t=M$(t,e.definitions)),Zc(ly(e),t)}var BB=typeof yo=="object"&&yo&&yo.Object===Object&&yo,f3=BB,VB=f3,UB=typeof self=="object"&&self&&self.Object===Object&&self,WB=VB||UB||Function("return this")(),so=WB,HB=so,GB=HB.Symbol,rd=GB,mk=rd,p3=Object.prototype,qB=p3.hasOwnProperty,YB=p3.toString,Xd=mk?mk.toStringTag:void 0;function KB(e){var t=qB.call(e,Xd),n=e[Xd];try{e[Xd]=void 0;var r=!0}catch{}var o=YB.call(e);return r&&(t?e[Xd]=n:delete e[Xd]),o}var JB=KB,ZB=Object.prototype,XB=ZB.toString;function QB(e){return XB.call(e)}var eV=QB,vk=rd,tV=JB,nV=eV,rV="[object Null]",oV="[object Undefined]",gk=vk?vk.toStringTag:void 0;function aV(e){return e==null?e===void 0?oV:rV:gk&&gk in Object(e)?tV(e):nV(e)}var rl=aV;function iV(e){return e!=null&&typeof e=="object"}var Xo=iV,sV=rl,lV=Xo,cV="[object Symbol]";function uV(e){return typeof e=="symbol"||lV(e)&&sV(e)==cV}var od=uV,dV=od;function fV(e,t,n){for(var r=-1,o=e.length;++rt}var mV=hV;function vV(){this.__data__=[],this.size=0}var gV=vV;function yV(e,t){return e===t||e!==e&&t!==t}var Up=yV,bV=Up;function xV(e,t){for(var n=e.length;n--;)if(bV(e[n][0],t))return n;return-1}var cy=xV,wV=cy,CV=Array.prototype,$V=CV.splice;function SV(e){var t=this.__data__,n=wV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$V.call(t,n,1),--this.size,!0}var _V=SV,EV=cy;function PV(e){var t=this.__data__,n=EV(t,e);return n<0?void 0:t[n][1]}var TV=PV,kV=cy;function OV(e){return kV(this.__data__,e)>-1}var RV=OV,DV=cy;function MV(e,t){var n=this.__data__,r=DV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IV=MV,AV=gV,NV=_V,jV=TV,LV=RV,FV=IV;function ad(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&oH?new eH:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=nG}var F$=rG,oG=rl,aG=F$,iG=Xo,sG="[object Arguments]",lG="[object Array]",cG="[object Boolean]",uG="[object Date]",dG="[object Error]",fG="[object Function]",pG="[object Map]",hG="[object Number]",mG="[object Object]",vG="[object RegExp]",gG="[object Set]",yG="[object String]",bG="[object WeakMap]",xG="[object ArrayBuffer]",wG="[object DataView]",CG="[object Float32Array]",$G="[object Float64Array]",SG="[object Int8Array]",_G="[object Int16Array]",EG="[object Int32Array]",PG="[object Uint8Array]",TG="[object Uint8ClampedArray]",kG="[object Uint16Array]",OG="[object Uint32Array]",An={};An[CG]=An[$G]=An[SG]=An[_G]=An[EG]=An[PG]=An[TG]=An[kG]=An[OG]=!0;An[sG]=An[lG]=An[xG]=An[cG]=An[wG]=An[uG]=An[dG]=An[fG]=An[pG]=An[hG]=An[mG]=An[vG]=An[gG]=An[yG]=An[bG]=!1;function RG(e){return iG(e)&&aG(e.length)&&!!An[oG(e)]}var DG=RG;function MG(e){return function(t){return e(t)}}var z$=MG,pg={exports:{}};pg.exports;(function(e,t){var n=f3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(pg,pg.exports);var B$=pg.exports,IG=DG,AG=z$,Pk=B$,Tk=Pk&&Pk.isTypedArray,NG=Tk?AG(Tk):IG,hy=NG,Ob,kk;function _3(){if(kk)return Ob;kk=1;var e=BH(),t=Hp,n=lr,r=Gp,o=qp,a=hy,i=Object.prototype,s=i.hasOwnProperty;function l(c,u){var f=n(c),p=!f&&t(c),m=!f&&!p&&r(c),b=!f&&!p&&!m&&a(c),v=f||p||m||b,x=v?e(c.length,String):[],g=x.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||o(y,g)))&&x.push(y);return x}return Ob=l,Ob}var jG=Object.prototype;function LG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jG;return e===n}var my=LG;function FG(e,t){return function(n){return e(t(n))}}var E3=FG,zG=E3,BG=zG(Object.keys,Object),VG=BG,UG=my,WG=VG,HG=Object.prototype,GG=HG.hasOwnProperty;function qG(e){if(!UG(e))return WG(e);var t=[];for(var n in Object(e))GG.call(e,n)&&n!="constructor"&&t.push(n);return t}var V$=qG,YG=Wp,KG=F$;function JG(e){return e!=null&&KG(e.length)&&!YG(e)}var os=JG,Rb,Ok;function _i(){if(Ok)return Rb;Ok=1;var e=_3(),t=V$,n=os;function r(o){return n(o)?e(o):t(o)}return Rb=r,Rb}var ZG=w3,XG=L$,QG=_i();function eq(e){return ZG(e,QG,XG)}var P3=eq,Rk=P3,tq=1,nq=Object.prototype,rq=nq.hasOwnProperty;function oq(e,t,n,r,o,a){var i=n&tq,s=Rk(e),l=s.length,c=Rk(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:rq.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:KJ(e,t,n)}var ZJ=JJ,XJ="\\ud800-\\udfff",QJ="\\u0300-\\u036f",eZ="\\ufe20-\\ufe2f",tZ="\\u20d0-\\u20ff",nZ=QJ+eZ+tZ,rZ="\\ufe0e\\ufe0f",oZ="\\u200d",aZ=RegExp("["+oZ+XJ+nZ+rZ+"]");function iZ(e){return aZ.test(e)}var t4=iZ;function sZ(e){return e.split("")}var lZ=sZ,n4="\\ud800-\\udfff",cZ="\\u0300-\\u036f",uZ="\\ufe20-\\ufe2f",dZ="\\u20d0-\\u20ff",fZ=cZ+uZ+dZ,pZ="\\ufe0e\\ufe0f",hZ="["+n4+"]",Bw="["+fZ+"]",Vw="\\ud83c[\\udffb-\\udfff]",mZ="(?:"+Bw+"|"+Vw+")",r4="[^"+n4+"]",o4="(?:\\ud83c[\\udde6-\\uddff]){2}",a4="[\\ud800-\\udbff][\\udc00-\\udfff]",vZ="\\u200d",i4=mZ+"?",s4="["+pZ+"]?",gZ="(?:"+vZ+"(?:"+[r4,o4,a4].join("|")+")"+s4+i4+")*",yZ=s4+i4+gZ,bZ="(?:"+[r4+Bw+"?",Bw,o4,a4,hZ].join("|")+")",xZ=RegExp(Vw+"(?="+Vw+")|"+bZ+yZ,"g");function wZ(e){return e.match(xZ)||[]}var CZ=wZ,$Z=lZ,SZ=t4,_Z=CZ;function EZ(e){return SZ(e)?_Z(e):$Z(e)}var PZ=EZ,TZ=ZJ,kZ=t4,OZ=PZ,RZ=dd;function DZ(e){return function(t){t=RZ(t);var n=kZ(t)?OZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?TZ(n,1).join(""):t.slice(1);return r[e]()+o}}var MZ=DZ,IZ=MZ,AZ=IZ("toUpperCase"),NZ=AZ,jZ=qJ,LZ=NZ,FZ=jZ(function(e,t,n){return e+(n?" ":"")+LZ(t)}),l4=FZ;const yy=Bt(l4);var zZ=_i();const BZ=Bt(zZ);var VZ=ic,UZ=function(){try{var e=VZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),c4=UZ,Zk=c4;function WZ(e,t,n){t=="__proto__"&&Zk?Zk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var q$=WZ,HZ=q$,GZ=Up;function qZ(e,t,n){(n!==void 0&&!GZ(e[t],n)||n===void 0&&!(t in e))&&HZ(e,t,n)}var u4=qZ;function YZ(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var KZ=YZ,JZ=KZ,ZZ=JZ(),d4=ZZ,hg={exports:{}};hg.exports;(function(e,t){var n=so,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(hg,hg.exports);var f4=hg.exports,Xk=y3;function XZ(e){var t=new e.constructor(e.byteLength);return new Xk(t).set(new Xk(e)),t}var Y$=XZ,QZ=Y$;function eX(e,t){var n=t?QZ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var p4=eX;function tX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=SQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var x4=PQ,TQ=$Q,kQ=x4,OQ=kQ(TQ),Q$=OQ,RQ=vy,DQ=b4,MQ=Q$;function IQ(e,t){return MQ(DQ(e,t,RQ),e+"")}var w4=IQ,AQ=Up,NQ=os,jQ=qp,LQ=Qo;function FQ(e,t,n){if(!LQ(n))return!1;var r=typeof t;return(r=="number"?NQ(n)&&jQ(t,n.length):r=="string"&&t in n)?AQ(n[t],e):!1}var C4=FQ,zQ=w4,BQ=C4;function VQ(e){return zQ(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&BQ(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,le&&le<=Z?re:Ib(re,Z)):re}},mixin:function(N){return function(V){var Z=this;if(!C(Z))return N(Z,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,Z.prototype[le]])}),N(Z,Object(V)),g(re,function(le){var xe=le[1];C(xe)?Z.prototype[le[0]]=xe:delete Z.prototype[le[0]]}),Z}},nthArg:function(N){return function(V){var Z=V<0?1:k(V)+1;return x(N(V),Z)}},rearg:function(N){return function(V,Z){var re=Z?Z.length:0;return x(N(V,Z),re)}},runInContext:function(N){return function(V){return Uw(e,N(V),r)}}};function U(N,V){if(i.cap){var Z=yr.iterateeRearg[N];if(Z)return X(V,Z);var re=!o&&yr.iterateeAry[N];if(re)return J(V,re)}return V}function G(N,V,Z){return l||i.curry&&Z>1?x(V,Z):V}function B(N,V,Z){if(i.fixed&&(c||!yr.skipFixed[N])){var re=yr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,Z):Sne(V,le)}return V}function z(N,V,Z){return i.rearg&&Z>1&&(u||!yr.skipRearg[N])?E(V,yr.methodRearg[N]||yr.aryRearg[Z]):V}function Y(N,V){V=I(V);for(var Z=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Qne,`{ +/* [wrapped with `+t+`] */ +`)}var tre=ere;function nre(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var z4=fre,pre=eS,hre=z4,mre=1,vre=2,gre=8,yre=16,bre=32,xre=64,wre=128,Cre=256,$re=512,Sre=[["ary",wre],["bind",mre],["bindKey",vre],["curry",gre],["curryRight",yre],["flip",$re],["partial",bre],["partialRight",xre],["rearg",Cre]];function _re(e,t){return pre(Sre,function(n){var r="_."+n[0];t&n[1]&&!hre(e,r)&&e.push(r)}),e.sort()}var Ere=_re,Pre=Xne,Tre=tre,kre=Q$,Ore=Ere;function Rre(e,t,n){var r=t+"";return kre(e,Tre(r,Ore(Pre(r),n)))}var B4=Rre,Dre=N4(),Mre=j4,Ire=B4,Are=1,Nre=2,jre=4,Lre=8,TO=32,kO=64;function Fre(e,t,n,r,o,a,i,s,l,c){var u=t&Lre,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?TO:kO,t&=~(u?kO:TO),t&jre||(t&=~(Are|Nre));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Dre(e)&&Mre(x,v),x.placeholder=r,Ire(x,e,t)}var V4=Fre;function zre(e){var t=e;return t.placeholder}var U4=zre,Bre=Kp,Vre=qp,Ure=Math.min;function Wre(e,t){for(var n=e.length,r=Ure(t.length,n),o=Bre(e);r--;){var a=t[r];e[r]=Vre(a,n)?o[a]:void 0}return e}var Hre=Wre,OO="__lodash_placeholder__";function Gre(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?Y4(s,t-1,n,r,o):Lae(o,s):r||(o[o.length]=s)}return o}var K4=Y4,zae=K4;function Bae(e){var t=e==null?0:e.length;return t?zae(e,1):[]}var Vae=Bae,Uae=Vae,Wae=b4,Hae=Q$;function Gae(e){return Hae(Wae(e,void 0,Uae),e+"")}var lS=Gae,qae=iS,Yae=lS,Kae=256,Jae=Yae(function(e,t){return qae(e,Kae,void 0,void 0,void 0,t)}),Zae=Jae,Xae=ud,Qae=Kp,eie=lr,tie=od,nie=A3,rie=lc,oie=dd;function aie(e){return eie(e)?Xae(e,rie):tie(e)?[e]:Qae(nie(oie(e)))}var iie=aie,sie={ary:cae,assign:$4,clone:pae,curry:vae,forEach:eS,isArray:lr,isError:$ae,isFunction:Wp,isWeakMap:Tae,iteratee:Mae,keys:V$,rearg:Zae,toInteger:Zp,toPath:iie},lie=_ne,cie=sie;function uie(e,t,n){return lie(cie,e,t,n)}var pd=uie,Jb,HO;function die(){if(HO)return Jb;HO=1;var e=Z$,t=Yp,n=qp,r=Qo,o=lc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Jie=Kie,Zie=Jie,Xie=j3,Qie=Zp,ese=dd;function tse(e,t,n){e=ese(e),t=Xie(t);var r=e.length;n=n===void 0?r:Zie(Qie(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var nse=tse;const rse=Bt(nse);function ose(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var ase=ose,ise=z3,sse=cS,lse=cc,cse=ase,use=lr;function dse(e,t,n){var r=use(e)?ise:cse,o=arguments.length<3;return r(e,lse(t),n,o,sse)}var fse=dse;const Ww=Bt(fse);var pse=ud;function hse(e,t){return pse(t,function(n){return[n,e[n]]})}var mse=hse;function vse(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var gse=vse,yse=mse,bse=sc,xse=b3,wse=gse,Cse="[object Map]",$se="[object Set]";function Sse(e){return function(t){var n=bse(t);return n==Cse?xse(t):n==$se?wse(t):yse(t,e(t))}}var _se=Sse,Ese=_se,Pse=_i(),Tse=Ese(Pse),kse=Tse;const Ose=Bt(kse);var Rse=rl,Dse=lr,Mse=Xo,Ise="[object String]";function Ase(e){return typeof e=="string"||!Dse(e)&&Mse(e)&&Rse(e)==Ise}var Nse=Ase,jse=ud;function Lse(e,t){return jse(t,function(n){return e[n]})}var Fse=Lse,zse=Fse,Bse=_i();function Vse(e){return e==null?[]:zse(e,Bse(e))}var Use=Vse,Wse=F4,Hse=os,Gse=Nse,qse=Zp,Yse=Use,Kse=Math.max;function Jse(e,t,n,r){e=Hse(e)?e:Yse(e),n=n&&!r?qse(n):0;var o=e.length;return n<0&&(n=Kse(o+n,0)),Gse(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wse(e,t,n)>-1}var Zse=Jse;const eN=Bt(Zse);var Xse=cc,Qse=os,ele=_i();function tle(e){return function(t,n,r){var o=Object(t);if(!Qse(t)){var a=Xse(n);t=ele(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var nle=tle,rle=L4,ole=cc,ale=Zp,ile=Math.max;function sle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:ale(n);return o<0&&(o=ile(r+o,0)),rle(e,ole(t),o)}var lle=sle,cle=nle,ule=lle,dle=cle(ule),fle=dle;const uS=Bt(fle);var ple=Math.ceil,hle=Math.max;function mle(e,t,n,r){for(var o=-1,a=hle(ple((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var vle=mle,gle=vle,yle=C4,Xb=q4;function ble(e){return function(t,n,r){return r&&typeof r!="number"&&yle(t,n,r)&&(n=r=void 0),t=Xb(t),n===void 0?(n=t,t=0):n=Xb(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(Gw);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yp,n=Gw;var r=yp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=Gw;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,V){super(),this.varKind=D,this.name=N,this.rhs=V}render({es5:D,_n:N}){const V=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,V){super(),this.lhs=D,this.rhs=N,this.sideEffects=V}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,V,Z){super(D,V,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=B(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,V)=>N+V.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const V=D[N].optimizeNodes();Array.isArray(V)?D.splice(N,1,...V):V?D[N]=V:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:V}=this;let Z=V.length;for(;Z--;){const re=V[Z];re.optimizeNames(D,N)||(z(D,re.names),V.splice(Z,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const V=N.optimizeNodes();N=this.else=Array.isArray(V)?new x(V):V}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=B(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=B(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,V,Z){super(),this.varKind=D,this.name=N,this.from=V,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:V,from:Z,to:re}=this;return`for(${N} ${V}=${Z}; ${V}<${re}; ${V}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,V,Z){super(),this.loop=D,this.varKind=N,this.name=V,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=B(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class $ extends b{constructor(D,N,V){super(),this.name=D,this.args=N,this.async=V}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}$.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var V,Z;return super.optimizeNames(D,N),(V=this.catch)===null||V===void 0||V.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const V=this._extScope.value(D,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,V,Z){const re=this._scope.toName(N);return V!==void 0&&Z&&(this._constants[re.str]=V),this._leafNode(new i(D,re,V)),re}const(D,N,V){return this._def(n.varKinds.const,D,N,V)}let(D,N,V){return this._def(n.varKinds.let,D,N,V)}var(D,N,V){return this._def(n.varKinds.var,D,N,V)}assign(D,N,V){return this._leafNode(new s(D,N,V))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[V,Z]of D)N.length>1&&N.push(","),N.push(V),(V!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,V){if(this._blockNode(new g(D)),N&&V)this.code(N).else().code(V).endIf();else if(N)this.code(N).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,V,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(D);return this._for(new C(re,le,N,V),()=>Z(le))}forOf(D,N,V,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const le=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${le}.length`,xe=>{this.var(re,(0,t._)`${le}[${xe}]`),V(re)})}return this._for(new _("of",Z,re,N),()=>V(re))}forIn(D,N,V,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return V&&(this._currNode=Z.finally=new R,this.code(V)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-N;if(V<0||D!==void 0&&V!==D)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,V,Z){return this._blockNode(new $(D,N,V)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const V=this._currNode;if(V instanceof D||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function B(q,D,N){if(q instanceof t.Name)return V(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,le)=>(le instanceof t.Name&&(le=V(le)),le instanceof t._Code?re.push(...le._items):re.push(le),re),[]));function V(re){const le=N[re.str];return le===void 0||D[re.str]!==1?re:(delete D[re.str],le)}function Z(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&D[le.str]===1&&N[le.str]!==void 0)}}function z(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=L(e.operators.AND);function H(...q){return q.reduce(Q)}e.and=H;const J=L(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function L(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=yp;function r($){const E={};for(const k of $)E[k]=!0;return E}e.toHash=r;function o($,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a($,E),!i(E,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,E=$.schema){const{opts:k,self:I}=$;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,E){if(typeof $=="boolean")return!$;for(const k in $)if(E[k])return!0;return!1}e.schemaHasRules=i;function s($,E){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c($){return p(decodeURIComponent($))}e.unescapeFragment=c;function u($){return encodeURIComponent(f($))}e.escapeFragment=u;function f($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m($,E){if(Array.isArray($))for(const k of $)E(k);else E($)}e.eachItem=m;function b({mergeNames:$,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const B=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?$(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(B instanceof t.Name)?I(R,B):B}}e.mergeEvaluated={props:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{$.if((0,t._)`${E} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>{E===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),x($,k,E))}),mergeValues:($,E)=>$===!0?!0:{...$,...E},resultToName:v}),items:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>$.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:($,E)=>$===!0?!0:Math.max($,E),resultToName:($,E)=>$.var("items",E)})};function v($,E){if(E===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return E!==void 0&&x($,k,E),k}e.evaluatedPropsToName=v;function x($,E,k){Object.keys(k).forEach(I=>$.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y($,E){return $.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(w=e.Type||(e.Type={}));function C($,E,k){if($ instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,E,k=$.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);$.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});const Br=Jt,Mle={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ei.default=Mle;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ei;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:$,allErrors:E}=C,k=f(x,g,y);w??($||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:$}=w,E=f(x,g,y);l(C,E),_||$||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const $=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const($,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${$}.instancePath === undefined`,()=>x.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${$}.schema`,y),x.assign((0,t._)`${$}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:$,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,$],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(Xp);Object.defineProperty(zu,"__esModule",{value:!0});zu.boolOrEmptySchema=zu.topBoolOrEmptySchema=void 0;const Ile=Xp,Ale=Jt,Nle=Ei,jle={message:"boolean schema is false"};function Lle(e){const{gen:t,schema:n,validateName:r}=e;n===!1?nN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Nle.default.data):(t.assign((0,Ale._)`${r}.errors`,null),t.return(!0))}zu.topBoolOrEmptySchema=Lle;function Fle(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),nN(e)):n.var(t,!0)}zu.boolOrEmptySchema=Fle;function nN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Ile.reportError)(o,jle,void 0,t)}var Qp={},Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.getRules=Kl.isJSONType=void 0;const zle=["string","number","integer","boolean","null","object","array"],Ble=new Set(zle);function Vle(e){return typeof e=="string"&&Ble.has(e)}Kl.isJSONType=Vle;function Ule(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Kl.getRules=Ule;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.shouldUseRule=qi.shouldUseGroup=qi.schemaHasRulesForType=void 0;function Wle({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&rN(e,r)}qi.schemaHasRulesForType=Wle;function rN(e,t){return t.rules.some(n=>oN(e,n))}qi.shouldUseGroup=rN;function oN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}qi.shouldUseRule=oN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Kl,n=qi,r=Xp,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:$,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,$,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:$,data:E,opts:k}=w,I=$.let("dataType",(0,o._)`typeof ${E}`),R=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>$.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>$.assign(R,E))),$.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);$.else(),g(w),$.endIf(),$.if((0,o._)`${R} !== undefined`,()=>{$.assign(E,R),m(w,R)});function F(U){switch(U){case"string":$.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${I} == "boolean" || ${E} === null + || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":$.elseIf((0,o._)`${I} === "boolean" || ${E} === null + || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":$.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":$.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),$.assign(R,null);return;case"array":$.elseIf((0,o._)`${I} === "string" || ${I} === "number" + || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},$){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,$))}function b(w,C,_,$=i.Correct){const E=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return $===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,$){if(w.length===1)return b(w[0],C,_,$);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,$));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:$}=w,E=(0,a.schemaRefOrVal)(w,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:E,schemaValue:E,parentSchema:$,params:{},it:w}}})(Qp);var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.assignDefaults=void 0;const jc=Jt,Hle=dn;function Gle(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)qO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>qO(e,a,o.default))}Cy.assignDefaults=Gle;function qO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,jc._)`${a}${(0,jc.getProperty)(t)}`;if(o){(0,Hle.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,jc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,jc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,jc._)`${s} = ${(0,jc.stringify)(n)}`)}var hi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const Nn=Jt,dS=dn,ws=Ei,qle=dn;function Yle(e,t){const{gen:n,data:r,it:o}=e;n.if(pS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Nn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Yle;function Kle({gen:e,data:t,it:{opts:n}},r,o){return(0,Nn.or)(...r.map(a=>(0,Nn.and)(pS(e,t,a,n.ownProperties),(0,Nn._)`${o} = ${a}`)))}Qt.checkMissingProp=Kle;function Jle(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Jle;function aN(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=aN;function fS(e,t,n){return(0,Nn._)`${aN(e)}.call(${t}, ${n})`}Qt.isOwnProperty=fS;function Zle(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} !== undefined`;return r?(0,Nn._)`${o} && ${fS(e,t,n)}`:o}Qt.propertyInData=Zle;function pS(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} === undefined`;return r?(0,Nn.or)(o,(0,Nn.not)(fS(e,t,n))):o}Qt.noPropertyInData=pS;function iN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=iN;function Xle(e,t){return iN(t).filter(n=>!(0,dS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=Xle;function Qle({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,Nn._)`${e}, ${t}, ${r}${o}`:t,f=[[ws.default.instancePath,(0,Nn.strConcat)(ws.default.instancePath,a)],[ws.default.parentData,i.parentData],[ws.default.parentDataProperty,i.parentDataProperty],[ws.default.rootData,ws.default.rootData]];i.opts.dynamicRef&&f.push([ws.default.dynamicAnchors,ws.default.dynamicAnchors]);const p=(0,Nn._)`${u}, ${n.object(...f)}`;return l!==Nn.nil?(0,Nn._)`${s}.call(${l}, ${p})`:(0,Nn._)`${s}(${p})`}Qt.callValidateCode=Qle;const ece=(0,Nn._)`new RegExp`;function tce({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Nn._)`${o.code==="new RegExp"?ece:(0,qle.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=tce;function nce(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,Nn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:dS.Type.Num},a),t.if((0,Nn.not)(a),s)})}}Qt.validateArray=nce;function rce(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,dS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,Nn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,Nn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=rce;Object.defineProperty(hi,"__esModule",{value:!0});hi.validateKeywordUsage=hi.validSchemaType=hi.funcKeywordCode=hi.macroKeywordCode=void 0;const no=Jt,Rl=Ei,oce=Qt,ace=Xp;function ice(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=sN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:no.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}hi.macroKeywordCode=ice;function sce(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;cce(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=sN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&YO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&YO(e),x(()=>lce(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,no._)`await `),y=>r.assign(f,!1).if((0,no._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,no._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,no._)`${u}.errors`;return r.assign(g,null),v(no.nil),g}function v(g=t.async?(0,no._)`await `:no.nil){const y=l.opts.passContext?Rl.default.this:Rl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,no._)`${g}${(0,oce.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,no.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}hi.funcKeywordCode=sce;function YO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,no._)`${r.parentData}[${r.parentDataProperty}]`))}function lce(e,t){const{gen:n}=e;n.if((0,no._)`Array.isArray(${t})`,()=>{n.assign(Rl.default.vErrors,(0,no._)`${Rl.default.vErrors} === null ? ${t} : ${Rl.default.vErrors}.concat(${t})`).assign(Rl.default.errors,(0,no._)`${Rl.default.vErrors}.length`),(0,ace.extendErrors)(e)},()=>e.error())}function cce({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function sN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,no.stringify)(n)})}function uce(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}hi.validSchemaType=uce;function dce({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}hi.validateKeywordUsage=dce;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.extendSubschemaMode=qs.extendSubschemaData=qs.getSubschema=void 0;const ui=Jt,lN=dn;function fce(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,lN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}qs.getSubschema=fce;function pce(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(n)}`,!0);l(p),e.errorPath=(0,ui.str)`${c}${(0,lN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof ui.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}qs.extendSubschemaData=pce;function hce(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}qs.extendSubschemaMode=hce;var Ir={},cN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},uN={exports:{}},As=uN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};$v(t,r,o,e,"",e)};As.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};As.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};As.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};As.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $v(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in As.arrayKeywords)for(var p=0;pt+=dN(r)),t===1/0))return 1/0}return t}function fN(e,t="",n){n!==!1&&(t=_u(t));const r=e.parse(t);return pN(e,r)}Ir.getFullPath=fN;function pN(e,t){return e.serialize(t).split("#")[0]+"#"}Ir._getFullPath=pN;const $ce=/#\/?$/;function _u(e){return e?e.replace($ce,""):""}Ir.normalizeId=_u;function Sce(e,t,n){return n=_u(n),e.resolve(t,n)}Ir.resolveUrl=Sce;const _ce=/^[a-z_][-a-z0-9._]*$/i;function Ece(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=_u(e[n]||t),a={"":o},i=fN(r,o,!1),s={},l=new Set;return bce(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=_u(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==_u(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!_ce.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!yce(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ir.getSchemaRefs=Ece;Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getData=Wa.KeywordCxt=Wa.validateFunctionCode=void 0;const hN=zu,KO=Qp,hS=qi,vg=Qp,Pce=Cy,Lf=hi,Qb=qs,St=Jt,Lt=Ei,Tce=Ir,Yi=dn,ef=Xp;function kce(e){if(gN(e)&&(yN(e),vN(e))){Dce(e);return}mN(e,()=>(0,hN.topBoolOrEmptySchema)(e))}Wa.validateFunctionCode=kce;function mN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${JO(n,o)}`),Rce(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Oce(o)}`,r.$async,()=>e.code(JO(n,o)).code(a))}function Oce(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Rce(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Dce(e){const{schema:t,opts:n,gen:r}=e;mN(e,()=>{n.$comment&&t.$comment&&xN(e),jce(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Mce(e),bN(e),zce(e)})}function Mce(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function JO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function Ice(e,t){if(gN(e)&&(yN(e),vN(e))){Ace(e,t);return}(0,hN.boolOrEmptySchema)(e,t)}function vN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function gN(e){return typeof e.schema!="boolean"}function Ace(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&xN(e),Lce(e),Fce(e);const a=r.const("_errs",Lt.default.errors);bN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function yN(e){(0,Yi.checkUnknownRules)(e),Nce(e)}function bN(e,t){if(e.opts.jtd)return ZO(e,[],!1,t);const n=(0,KO.getSchemaTypes)(e.schema),r=(0,KO.coerceAndCheckDataType)(e,n);ZO(e,n,!r,t)}function Nce(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Yi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function jce(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Yi.checkStrictMode)(e,"default is ignored in the schema root")}function Lce(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Tce.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Fce(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function xN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function zce(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Bce(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Bce({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function ZO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Yi.schemaHasRulesButRef)(a,u))){o.block(()=>$N(e,"$ref",u.all.$ref.definition));return}l.jtd||Vce(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,hS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,vg.checkDataType)(p.type,i,l.strictNumbers)),XO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,vg.reportTypeError)(e)),o.endIf()):XO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function XO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Pce.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,hS.shouldUseRule)(r,a)&&$N(e,a.keyword,a.definition,t.type)})}function Vce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Uce(e,t),e.opts.allowUnionTypes||Wce(e,t),Hce(e,e.dataTypes))}function Uce(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{wN(e.dataTypes,n)||mS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),qce(e,t)}}function Wce(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mS(e,"use allowUnionTypes to allow union type keyword")}function Hce(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,hS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Gce(t,i))&&mS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Gce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function wN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qce(e,t){const n=[];for(const r of e.dataTypes)wN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function mS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Yi.checkStrictMode)(e,t,e.opts.strictTypes)}class CN{constructor(t,n,r){if((0,Lf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",SN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Lf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?ef.reportExtraError:ef.reportError)(this,this.def.error,n)}$dataError(){(0,ef.reportError)(this,this.def.$dataError||ef.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ef.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,vg.checkDataTypes)(l,n,a.opts.strictNumbers,vg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Qb.getSubschema)(this.it,t);(0,Qb.extendSubschemaData)(r,this.it,t),(0,Qb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Ice(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Yi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Yi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Wa.KeywordCxt=CN;function $N(e,t,n,r){const o=new CN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Lf.funcKeywordCode)(o,n):"macro"in n?(0,Lf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Lf.funcKeywordCode)(o,n)}const Yce=/^\/(?:[^~]|~0|~1)*$/,Kce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function SN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Yce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Kce.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Yi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Wa.getData=SN;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});class Jce extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}eh.default=Jce;var th={};Object.defineProperty(th,"__esModule",{value:!0});const ex=Ir;class Zce extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,ex.resolveUrl)(t,n,r),this.missingSchema=(0,ex.normalizeId)((0,ex.getFullPath)(t,this.missingRef))}}th.default=Zce;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.resolveSchema=go.getCompilingSchema=go.resolveRef=go.compileSchema=go.SchemaEnv=void 0;const Oa=Jt,Xce=eh,xl=Ei,ja=Ir,QO=dn,Qce=Wa;class $y{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,ja.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}go.SchemaEnv=$y;function vS(e){const t=_N.call(this,e);if(t)return t;const n=(0,ja.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Oa.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:Xce.default,code:(0,Oa._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:xl.default.data,parentData:xl.default.parentData,parentDataProperty:xl.default.parentDataProperty,dataNames:[xl.default.data],dataPathArr:[Oa.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Oa.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Oa.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Oa._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Qce.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(xl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${xl.default.self}`,`${xl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Oa.Name?void 0:b,items:v instanceof Oa.Name?void 0:v,dynamicProps:b instanceof Oa.Name,dynamicItems:v instanceof Oa.Name},m.source&&(m.source.evaluated=(0,Oa.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}go.compileSchema=vS;function eue(e,t,n){var r;n=(0,ja.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=rue.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new $y({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=tue.call(this,a)}go.resolveRef=eue;function tue(e){return(0,ja.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vS.call(this,e)}function _N(e){for(const t of this._compilations)if(nue(t,e))return t}go.getCompilingSchema=_N;function nue(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function rue(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Sy.call(this,e,t)}function Sy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,ja._getFullPath)(this.opts.uriResolver,n);let o=(0,ja.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return tx.call(this,n,e);const a=(0,ja.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=Sy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:tx.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||vS.call(this,i),a===(0,ja.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,ja.resolveUrl)(this.opts.uriResolver,o,c)),new $y({schema:s,schemaId:l,root:e,baseId:o})}return tx.call(this,n,i)}}go.resolveSchema=Sy;const oue=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tx(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,QO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!oue.has(s)&&c&&(t=(0,ja.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,QO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,ja.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Sy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new $y({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const aue="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",iue="Meta-schema for $data reference (JSON AnySchema extension proposal)",sue="object",lue=["$data"],cue={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},uue=!1,due={$id:aue,description:iue,type:sue,required:lue,properties:cue,additionalProperties:uue};var gS={},Yw={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(yo,function(n){function r(){for(var se=arguments.length,oe=Array(se),ue=0;ue1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function B(se){throw new RangeError(R[se])}function z(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function Y(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(I,".");var Ee=se.split("."),pt=z(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=U(oe/ue);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var ue=[],ke=oe.length,Ee=0,pt=_,me=C,pe=oe.lastIndexOf($);pe<0&&(pe=0);for(var De=0;De=128&&B("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&B("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>U((b-Ee)/xt))&&B("overflow"),Ee+=ut*xt;var yt=Nt<=me?x:Nt>=me+g?g:Nt-me;if(utU(b/Wt)&&B("overflow"),xt*=Wt}var En=ue.length+1;me=L(Ee-lt,En,lt==0),U(Ee/En)>b-pt&&B("overflow"),pt+=U(Ee/En),Ee%=En,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},q=function(oe){var ue=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,me=C,pe=!0,De=!1,nt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(pe=(xt=lt.next()).done);pe=!0){var Nt=xt.value;Nt<128&&ue.push(G(Nt))}}catch(co){De=!0,nt=co}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&ZaU((b-pt)/Kr)&&B("overflow"),pt+=(Wt-Ee)*Kr,Ee=Wt;var Do=!0,Xa=!1,Un=void 0;try{for(var dl=oe[Symbol.iterator](),Jr;!(Do=(Jr=dl.next()).done);Do=!0){var $h=Jr.value;if($hb&&B("overflow"),$h==Ee){for(var fl=pt,Mo=v;;Mo+=v){var Oi=Mo<=me?x:Mo>=me+g?g:Mo-me;if(fl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():ue="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),ue}function le(se){for(var oe="",ue=0,ke=se.length;ue=194&&Ee<224){if(ke-ue>=6){var pt=parseInt(se.substr(ue+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=se.substr(ue,6);ue+=6}else if(Ee>=224){if(ke-ue>=9){var me=parseInt(se.substr(ue+4,2),16),pe=parseInt(se.substr(ue+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(me&63)<<6|pe&63)}else oe+=se.substr(ue,9);ue+=9}else oe+=se.substr(ue,3),ue+=3}return oe}function xe(se,oe){function ue(ke){var Ee=le(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return se.scheme&&(se.scheme=String(se.scheme).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),se.host!==void 0&&(se.host=String(se.host).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),se.path!==void 0&&(se.path=String(se.path).replace(oe.PCT_ENCODED,ue).replace(se.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),se.query!==void 0&&(se.query=String(se.query).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),se}function fe(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ge(se,oe){var ue=se.match(oe.IPV4ADDRESS)||[],ke=p(ue,2),Ee=ke[1];return Ee?Ee.split(".").map(fe).join("."):se}function he(se,oe){var ue=se.match(oe.IPV6ADDRESS)||[],ke=p(ue,3),Ee=ke[1],pt=ke[2];if(Ee){for(var me=Ee.toLowerCase().split("::").reverse(),pe=p(me,2),De=pe[0],nt=pe[1],lt=nt?nt.split(":").map(fe):[],xt=De.split(":").map(fe),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),En=0;En1){var ki=Wt.slice(0,Vn.index),Za=Wt.slice(Vn.index+Vn.length);Ro=ki.join(":")+"::"+Za.join(":")}else Ro=Wt.join(":");return pt&&(Ro+="%"+pt),Ro}else return se}var _e=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Be(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(se=(oe.scheme?oe.scheme+":":"")+"//"+se);var Ee=se.match(_e);if(Ee){ve?(ue.scheme=Ee[1],ue.userinfo=Ee[3],ue.host=Ee[4],ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=Ee[7],ue.fragment=Ee[8],isNaN(ue.port)&&(ue.port=Ee[5])):(ue.scheme=Ee[1]||void 0,ue.userinfo=se.indexOf("@")!==-1?Ee[3]:void 0,ue.host=se.indexOf("//")!==-1?Ee[4]:void 0,ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=se.indexOf("?")!==-1?Ee[7]:void 0,ue.fragment=se.indexOf("#")!==-1?Ee[8]:void 0,isNaN(ue.port)&&(ue.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),ue.host&&(ue.host=he(ge(ue.host,ke),ke)),ue.scheme===void 0&&ue.userinfo===void 0&&ue.host===void 0&&ue.port===void 0&&!ue.path&&ue.query===void 0?ue.reference="same-document":ue.scheme===void 0?ue.reference="relative":ue.fragment===void 0?ue.reference="absolute":ue.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==ue.reference&&(ue.error=ue.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||ue.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(ue.host&&(oe.domainHost||pt&&pt.domainHost))try{ue.host=V.toASCII(ue.host.replace(ke.PCT_ENCODED,le).toLowerCase())}catch(me){ue.error=ue.error||"Host's domain name can not be converted to ASCII via punycode: "+me}xe(ue,u)}else xe(ue,ke);pt&&pt.parse&&pt.parse(ue,oe)}else ue.error=ue.error||"URI can not be parsed.";return ue}function Ue(se,oe){var ue=oe.iri!==!1?f:u,ke=[];return se.userinfo!==void 0&&(ke.push(se.userinfo),ke.push("@")),se.host!==void 0&&ke.push(he(ge(String(se.host),ue),ue).replace(ue.IPV6ADDRESS,function(Ee,pt,me){return"["+pt+(me?"%25"+me:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(ke.push(":"),ke.push(String(se.port))),ke.length?ke.join(""):void 0}var ze=/^\.\.?\//,He=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function Ce(se){for(var oe=[];se.length;)if(se.match(ze))se=se.replace(ze,"");else if(se.match(He))se=se.replace(He,"/");else if(se.match(be))se=se.replace(be,"/"),oe.pop();else if(se==="."||se==="..")se="";else{var ue=se.match(we);if(ue){var ke=ue[0];se=se.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function qe(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||se.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(se,oe),se.host&&!ue.IPV6ADDRESS.test(se.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{se.host=oe.iri?V.toUnicode(se.host):V.toASCII(se.host.replace(ue.PCT_ENCODED,le).toLowerCase())}catch(pe){se.error=se.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+pe}}xe(se,ue),oe.reference!=="suffix"&&se.scheme&&(ke.push(se.scheme),ke.push(":"));var pt=Ue(se,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),se.path&&se.path.charAt(0)!=="/"&&ke.push("/")),se.path!==void 0){var me=se.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(me=Ce(me)),pt===void 0&&(me=me.replace(/^\/\//,"/%2F")),ke.push(me)}return se.query!==void 0&&(ke.push("?"),ke.push(se.query)),se.fragment!==void 0&&(ke.push("#"),ke.push(se.fragment)),ke.join("")}function rt(se,oe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(se=Be(qe(se,ue),ue),oe=Be(qe(oe,ue),ue)),ue=ue||{},!ue.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=Ce(oe.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?Ee.path="/"+oe.path:se.path?Ee.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=Ce(Ee.path)),Ee.query=oe.query):(Ee.path=se.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=se.query),Ee.userinfo=se.userinfo,Ee.host=se.host,Ee.port=se.port),Ee.scheme=se.scheme),Ee.fragment=oe.fragment,Ee}function Ae(se,oe,ue){var ke=l({scheme:"null"},ue);return qe(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=qe(Be(se,oe),oe):a(se)==="object"&&(se=Be(qe(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=qe(Be(se,ue),ue):a(se)==="object"&&(se=qe(se,ue)),typeof oe=="string"?oe=qe(Be(oe,ue),ue):a(oe)==="object"&&(oe=qe(oe,ue)),se===oe}function Pe(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,le)}var it={scheme:"http",domainHost:!0,parse:function(oe,ue){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,ue){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ne={scheme:"ws",domainHost:!0,parse:function(oe,ue){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,ue){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],me=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=me,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$e="[0-9A-Fa-f]",Se=o(o("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+o("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+o("%"+$e+$e)),Ze="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(tt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(Se,"g"),Et=new RegExp(r("[^]",Ze,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(se){var oe=le(se);return oe.match(vt)?oe:se}var Vt={scheme:"mailto",parse:function(oe,ue){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,me={},pe=ke.query.split("&"),De=0,nt=pe.length;Denew RegExp(X,L);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var L,K,q,D,N,V,Z,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,qe,rt,Ae;const Le=X.strict,Fe=(L=X.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(V=(N=X.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=X.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=X.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=X.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=X.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=X.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=X.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=X.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=X.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=X.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(qe=X.validateFormats)!==null&&qe!==void 0?qe:!0,unicodeRegExp:(rt=X.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=X.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:it}}class C{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...w(L)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(L.logger);const D=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=R.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&I.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),E.call(this),L.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&L&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:L,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[K]||L:void 0}validate(L,K){let q;if(typeof L=="string"){if(q=this.getSchema(L),!q)throw new Error(`no schema with key or ref "${L}"`)}else q=this.compile(L);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(L,K){const q=this._addSchema(L,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(L,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,L,K);async function D(xe,fe){await N.call(this,xe.$schema);const ge=this._addSchema(xe,fe);return ge.validate||V.call(this,ge)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return Z.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function Z({missingSchema:xe,missingRef:fe}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${fe} cannot be resolved`)}async function re(xe){const fe=await le.call(this,xe);this.refs[xe]||await N.call(this,fe.$schema),this.refs[xe]||this.addSchema(fe,xe,K)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(L,K,q,D=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,q,D);return this}let N;if(typeof L=="object"){const{schemaId:V}=this.opts;if(N=L[V],N!==void 0&&typeof N!="string")throw new Error(`schema ${V} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(L,q,K,D,!0),this}addMetaSchema(L,K,q=this.opts.validateSchema){return this.addSchema(L,K,!0,q),this}validateSchema(L,K){if(typeof L=="boolean")return!0;let q;if(q=L.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,L);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(L){let K;for(;typeof(K=$.call(this,L))=="string";)L=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,L),!K)return;this.refs[L]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=$.call(this,L);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const K=L;this._cache.delete(K);let q=L[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const K of L)this.addKeyword(K);return this}addKeyword(L,K){let q;if(typeof L=="string")q=L,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof L=="object"&&K===void 0){if(K=L,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,q,K),!K)return(0,u.eachItem)(q,N=>z.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>z.call(this,N,D):N=>D.type.forEach(V=>z.call(this,N,D,V))),this}getKeyword(L){const K=this.RULES.all[L];return typeof K=="object"?K.definition:!!K}removeKeyword(L){const{RULES:K}=this;delete K.keywords[L],delete K.all[L];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===L);D>=0&&q.rules.splice(D,1)}return this}addFormat(L,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[L]=K,this}errorsText(L=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!L||L.length===0?"No errors":L.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(L,K){const q=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const D of K){const N=D.split("/").slice(1);let V=L;for(const Z of N)V=V[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[Z];le&&xe&&(V[Z]=J(xe))}}return L}_removeAllSchemas(L,K){for(const q in L){const D=L[q];(!K||K.test(q))&&(typeof D=="string"?delete L[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete L[q]))}}_addSchema(L,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:Z}=this.opts;if(typeof L=="object")V=L[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(L);if(re!==void 0)return re;q=(0,l.normalizeId)(V||q);const le=l.getSchemaRefs.call(this,L,q);return re=new i.SchemaEnv({schema:L,schemaId:Z,meta:K,baseId:q,localRefs:le}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(L,!0),re}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):i.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,L,K,q="error"){for(const D in X){const N=D;N in L&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function $(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const L in X)this.addSchema(X[L],L)}function k(){for(const X in this.opts.formats){const L=this.opts.formats[X];L&&this.addFormat(X,L)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in X){const K=X[L];K.keyword||(K.keyword=L),this.addKeyword(K)}}function R(){const X={...this.opts};for(const L of b)delete X[L];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function B(X,L){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function z(X,L,K){var q;const D=L==null?void 0:L.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=D?N.post:N.rules.find(({type:re})=>re===K);if(V||(V={type:K,rules:[]},N.rules.push(V)),N.keywords[X]=!0,!L)return;const Z={keyword:X,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?Y.call(this,V,Z,L.before):V.rules.push(Z),N.all[X]=Z,(q=L.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,L,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,L):(X.rules.push(L),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:L}=X;L!==void 0&&(X.$data&&this.opts.$data&&(L=J(L)),X.validateSchema=this.compile(L,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,H]}}})(tN);var yS={},bS={},xS={};Object.defineProperty(xS,"__esModule",{value:!0});const pue={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xS.default=pue;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.callRef=Jl.getValidate=void 0;const hue=th,eR=Qt,mo=Jt,Lc=Ei,tR=go,Mm=dn,mue={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=tR.resolveRef.call(l,c,o,n);if(u===void 0)throw new hue.default(r.opts.uriResolver,o,n);if(u instanceof tR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Sv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Sv(e,(0,mo._)`${b}.validate`,c,c.$async)}function p(b){const v=PN(e,b);Sv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,mo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:mo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function PN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,mo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Jl.getValidate=PN;function Sv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Lc.default.this:mo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,mo._)`await ${(0,eR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,mo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,eR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,mo._)`${b}.errors`;o.assign(Lc.default.vErrors,(0,mo._)`${Lc.default.vErrors} === null ? ${v} : ${Lc.default.vErrors}.concat(${v})`),o.assign(Lc.default.errors,(0,mo._)`${Lc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Mm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,mo._)`${b}.evaluated.props`);a.props=Mm.mergeEvaluated.props(o,g,a.props,mo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Mm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,mo._)`${b}.evaluated.items`);a.items=Mm.mergeEvaluated.items(o,g,a.items,mo.Name)}}}Jl.callRef=Sv;Jl.default=mue;Object.defineProperty(bS,"__esModule",{value:!0});const vue=xS,gue=Jl,yue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",vue.default,gue.default];bS.default=yue;var wS={},CS={};Object.defineProperty(CS,"__esModule",{value:!0});const gg=Jt,Cs=gg.operators,yg={maximum:{okStr:"<=",ok:Cs.LTE,fail:Cs.GT},minimum:{okStr:">=",ok:Cs.GTE,fail:Cs.LT},exclusiveMaximum:{okStr:"<",ok:Cs.LT,fail:Cs.GTE},exclusiveMinimum:{okStr:">",ok:Cs.GT,fail:Cs.LTE}},bue={message:({keyword:e,schemaCode:t})=>(0,gg.str)`must be ${yg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,gg._)`{comparison: ${yg[e].okStr}, limit: ${t}}`},xue={keyword:Object.keys(yg),type:"number",schemaType:"number",$data:!0,error:bue,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,gg._)`${n} ${yg[t].fail} ${r} || isNaN(${n})`)}};CS.default=xue;var $S={};Object.defineProperty($S,"__esModule",{value:!0});const Ff=Jt,wue={message:({schemaCode:e})=>(0,Ff.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ff._)`{multipleOf: ${e}}`},Cue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:wue,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Ff._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Ff._)`${i} !== parseInt(${i})`;e.fail$data((0,Ff._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};$S.default=Cue;var SS={},_S={};Object.defineProperty(_S,"__esModule",{value:!0});function TN(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Dl._)`{limit: ${e}}`},Eue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_ue,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Dl.operators.GT:Dl.operators.LT,i=o.opts.unicode===!1?(0,Dl._)`${n}.length`:(0,Dl._)`${(0,$ue.useFunc)(e.gen,Sue.default)}(${n})`;e.fail$data((0,Dl._)`${i} ${a} ${r}`)}};SS.default=Eue;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Pue=Qt,bg=Jt,Tue={message:({schemaCode:e})=>(0,bg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bg._)`{pattern: ${e}}`},kue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Tue,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,bg._)`(new RegExp(${o}, ${i}))`:(0,Pue.usePattern)(e,r);e.fail$data((0,bg._)`!${s}.test(${t})`)}};ES.default=kue;var PS={};Object.defineProperty(PS,"__esModule",{value:!0});const zf=Jt,Oue={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,zf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,zf._)`{limit: ${e}}`},Rue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Oue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?zf.operators.GT:zf.operators.LT;e.fail$data((0,zf._)`Object.keys(${n}).length ${o} ${r}`)}};PS.default=Rue;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const tf=Qt,Bf=Jt,Due=dn,Mue={message:({params:{missingProperty:e}})=>(0,Bf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bf._)`{missingProperty: ${e}}`},Iue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Mue,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Due.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Bf.nil,f);else for(const m of n)(0,tf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,tf.checkMissingProp)(e,n,m)),(0,tf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,tf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,tf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Bf.not)(b),()=>{e.error(),t.break()})},Bf.nil)}}};TS.default=Iue;var kS={};Object.defineProperty(kS,"__esModule",{value:!0});const Vf=Jt,Aue={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Vf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Vf._)`{limit: ${e}}`},Nue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Aue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Vf.operators.GT:Vf.operators.LT;e.fail$data((0,Vf._)`${n}.length ${o} ${r}`)}};kS.default=Nue;var OS={},nh={};Object.defineProperty(nh,"__esModule",{value:!0});const kN=cN;kN.code='require("ajv/dist/runtime/equal").default';nh.default=kN;Object.defineProperty(OS,"__esModule",{value:!0});const nx=Qp,Rr=Jt,jue=dn,Lue=nh,Fue={message:({params:{i:e,j:t}})=>(0,Rr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Rr._)`{i: ${e}, j: ${t}}`},zue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Fue,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,nx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Rr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Rr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Rr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,nx.checkDataTypes)(c,x,s.opts.strictNumbers,nx.DataType.Wrong),y=t.const("indices",(0,Rr._)`{}`);t.for((0,Rr._)`;${b}--;`,()=>{t.let(x,(0,Rr._)`${n}[${b}]`),t.if(g,(0,Rr._)`continue`),c.length>1&&t.if((0,Rr._)`typeof ${x} == "string"`,(0,Rr._)`${x} += "_"`),t.if((0,Rr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Rr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Rr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,jue.useFunc)(t,Lue.default),g=t.name("outer");t.label(g).for((0,Rr._)`;${b}--;`,()=>t.for((0,Rr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Rr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};OS.default=zue;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});const Kw=Jt,Bue=dn,Vue=nh,Uue={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kw._)`{allowedValue: ${e}}`},Wue={keyword:"const",$data:!0,error:Uue,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Kw._)`!${(0,Bue.useFunc)(t,Vue.default)}(${n}, ${o})`):e.fail((0,Kw._)`${a} !== ${n}`)}};RS.default=Wue;var DS={};Object.defineProperty(DS,"__esModule",{value:!0});const $f=Jt,Hue=dn,Gue=nh,que={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,$f._)`{allowedValues: ${e}}`},Yue={keyword:"enum",schemaType:"array",$data:!0,error:que,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Hue.useFunc)(t,Gue.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,$f.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,$f._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,$f._)`${c()}(${n}, ${m}[${b}])`:(0,$f._)`${n} === ${v}`}}};DS.default=Yue;Object.defineProperty(wS,"__esModule",{value:!0});const Kue=CS,Jue=$S,Zue=SS,Xue=ES,Que=PS,ede=TS,tde=kS,nde=OS,rde=RS,ode=DS,ade=[Kue.default,Jue.default,Zue.default,Xue.default,Que.default,ede.default,tde.default,nde.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rde.default,ode.default];wS.default=ade;var MS={},md={};Object.defineProperty(md,"__esModule",{value:!0});md.validateAdditionalItems=void 0;const Ml=Jt,Jw=dn,ide={message:({params:{len:e}})=>(0,Ml.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ml._)`{limit: ${e}}`},sde={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ide,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Jw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}ON(e,r)}};function ON(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Ml._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Ml._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,Jw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Ml._)`${s} <= ${t.length}`);n.if((0,Ml.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:Jw.Type.Num},c),i.allErrors||n.if((0,Ml.not)(c),()=>n.break())})}}md.validateAdditionalItems=ON;md.default=sde;var IS={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.validateTuple=void 0;const nR=Jt,_v=dn,lde=Qt,cde={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return RN(e,"additionalItems",t);n.items=!0,!(0,_v.alwaysValidSchema)(n,t)&&e.ok((0,lde.validateArray)(e))}};function RN(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=_v.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,nR._)`${a}.length`);n.forEach((f,p)=>{(0,_v.alwaysValidSchema)(s,f)||(r.if((0,nR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,_v.checkStrictMode)(s,x,p.strictTuples)}}}vd.validateTuple=RN;vd.default=cde;Object.defineProperty(IS,"__esModule",{value:!0});const ude=vd,dde={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ude.validateTuple)(e,"items")};IS.default=dde;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});const rR=Jt,fde=dn,pde=Qt,hde=md,mde={message:({params:{len:e}})=>(0,rR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rR._)`{limit: ${e}}`},vde={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mde,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,fde.alwaysValidSchema)(r,t)&&(o?(0,hde.validateAdditionalItems)(e,o):e.ok((0,pde.validateArray)(e)))}};AS.default=vde;var NS={};Object.defineProperty(NS,"__esModule",{value:!0});const ua=Jt,Im=dn,gde={message:({params:{min:e,max:t}})=>t===void 0?(0,ua.str)`must contain at least ${e} valid item(s)`:(0,ua.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ua._)`{minContains: ${e}}`:(0,ua._)`{minContains: ${e}, maxContains: ${t}}`},yde={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:gde,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,ua._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Im.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Im.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Im.alwaysValidSchema)(a,n)){let v=(0,ua._)`${u} >= ${i}`;s!==void 0&&(v=(0,ua._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,ua._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Im.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,ua._)`${v}++`),s===void 0?t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,ua._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};NS.default=yde;var DN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, + missingProperty: ${f}, + depsCount: ${c}, + deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(DN);var jS={};Object.defineProperty(jS,"__esModule",{value:!0});const MN=Jt,bde=dn,xde={message:"property name must be valid",params:({params:e})=>(0,MN._)`{propertyName: ${e.propertyName}}`},wde={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:xde,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,bde.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,MN.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};jS.default=wde;var _y={};Object.defineProperty(_y,"__esModule",{value:!0});const Am=Qt,Da=Jt,Cde=Ei,Nm=dn,$de={message:"must NOT have additional properties",params:({params:e})=>(0,Da._)`{additionalProperty: ${e.additionalProperty}}`},Sde={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$de,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Nm.alwaysValidSchema)(i,n))return;const c=(0,Am.allSchemaProperties)(r.properties),u=(0,Am.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Da._)`${a} === ${Cde.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,Nm.schemaRefOrVal)(i,r.properties,"properties");g=(0,Am.isOwnProperty)(t,y,x)}else c.length?g=(0,Da.or)(...c.map(y=>(0,Da._)`${x} === ${y}`)):g=Da.nil;return u.length&&(g=(0,Da.or)(g,...u.map(y=>(0,Da._)`${(0,Am.usePattern)(e,y)}.test(${x})`))),(0,Da.not)(g)}function m(x){t.code((0,Da._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,Nm.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Da.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Da.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:Nm.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};_y.default=Sde;var LS={};Object.defineProperty(LS,"__esModule",{value:!0});const _de=Wa,oR=Qt,rx=dn,aR=_y,Ede={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&aR.default.code(new _de.KeywordCxt(a,aR.default,"additionalProperties"));const i=(0,oR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=rx.mergeEvaluated.props(t,(0,rx.toHash)(i),a.props));const s=i.filter(f=>!(0,rx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,oR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};LS.default=Ede;var FS={};Object.defineProperty(FS,"__esModule",{value:!0});const iR=Qt,jm=Jt,sR=dn,lR=dn,Pde={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,iR.allSchemaProperties)(n),l=s.filter(v=>(0,sR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof jm.Name)&&(a.props=(0,lR.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,sR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,jm._)`${(0,iR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:lR.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,jm._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,jm.not)(u),()=>t.break())})})}}};FS.default=Pde;var zS={};Object.defineProperty(zS,"__esModule",{value:!0});const Tde=dn,kde={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Tde.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zS.default=kde;var BS={};Object.defineProperty(BS,"__esModule",{value:!0});const Ode=Qt,Rde={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ode.validateUnion,error:{message:"must match a schema in anyOf"}};BS.default=Rde;var VS={};Object.defineProperty(VS,"__esModule",{value:!0});const Ev=Jt,Dde=dn,Mde={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ev._)`{passingSchemas: ${e.passing}}`},Ide={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Mde,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Dde.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Ev._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Ev._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Ev.Name)})})}}};VS.default=Ide;var US={};Object.defineProperty(US,"__esModule",{value:!0});const Ade=dn,Nde={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ade.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};US.default=Nde;var WS={};Object.defineProperty(WS,"__esModule",{value:!0});const xg=Jt,IN=dn,jde={message:({params:e})=>(0,xg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xg._)`{failingKeyword: ${e.ifClause}}`},Lde={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jde,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,IN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=cR(r,"then"),a=cR(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,xg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,xg._)`${u}`):e.setParams({ifClause:u})}}}};function cR(e,t){const n=e.schema[t];return n!==void 0&&!(0,IN.alwaysValidSchema)(e,n)}WS.default=Lde;var HS={};Object.defineProperty(HS,"__esModule",{value:!0});const Fde=dn,zde={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Fde.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};HS.default=zde;Object.defineProperty(MS,"__esModule",{value:!0});const Bde=md,Vde=IS,Ude=vd,Wde=AS,Hde=NS,Gde=DN,qde=jS,Yde=_y,Kde=LS,Jde=FS,Zde=zS,Xde=BS,Qde=VS,efe=US,tfe=WS,nfe=HS;function rfe(e=!1){const t=[Zde.default,Xde.default,Qde.default,efe.default,tfe.default,nfe.default,qde.default,Yde.default,Gde.default,Kde.default,Jde.default];return e?t.push(Vde.default,Wde.default):t.push(Bde.default,Ude.default),t.push(Hde.default),t}MS.default=rfe;var GS={},qS={};Object.defineProperty(qS,"__esModule",{value:!0});const ar=Jt,ofe={message:({schemaCode:e})=>(0,ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ar._)`{format: ${e}}`},afe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ofe,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ar._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ar._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ar._)`${v}.type || "string"`).assign(g,(0,ar._)`${v}.validate`),()=>n.assign(x,(0,ar._)`"string"`).assign(g,v)),e.fail$data((0,ar.or)(y(),w()));function y(){return l.strictSchema===!1?ar.nil:(0,ar._)`${i} && !${g}`}function w(){const C=u.$async?(0,ar._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ar._)`${g}(${r})`,_=(0,ar._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ar._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const $=_ instanceof RegExp?(0,ar.regexpCode)(_):l.code.formats?(0,ar._)`${l.code.formats}${(0,ar.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ar._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${g}(${r})`}return typeof x=="function"?(0,ar._)`${g}(${r})`:(0,ar._)`${g}.test(${r})`}}}};qS.default=afe;Object.defineProperty(GS,"__esModule",{value:!0});const ife=qS,sfe=[ife.default];GS.default=sfe;var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.contentVocabulary=Bu.metadataVocabulary=void 0;Bu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(yS,"__esModule",{value:!0});const lfe=bS,cfe=wS,ufe=MS,dfe=GS,uR=Bu,ffe=[lfe.default,cfe.default,(0,ufe.default)(),dfe.default,uR.metadataVocabulary,uR.contentVocabulary];yS.default=ffe;var YS={},AN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(AN);Object.defineProperty(YS,"__esModule",{value:!0});const Qc=Jt,Zw=AN,dR=go,pfe=dn,hfe={message:({params:{discrError:e,tagName:t}})=>e===Zw.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Qc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},mfe={keyword:"discriminator",type:"object",schemaType:"object",error:hfe,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Qc._)`${n}${(0,Qc.getProperty)(s)}`);t.if((0,Qc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zw.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,Qc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Zw.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,Qc.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Wa;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=eh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=th;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Hw,Hw.exports);var NN=Hw.exports;const $fe=Bt(NN);var Xw={exports:{}},jN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function $(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(jN);var LN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=NN,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(LN);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jN,r=LN,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Xw,Xw.exports);var Sfe=Xw.exports;const _fe=Bt(Sfe),Pv="additionalProperties",Tv="required",Efe=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Pfe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Pv)},a=this.findOption(r)(Tv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Efe(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const FN=(e,t={})=>{const n=o=>a=>{switch(a){case Pv:return Object.prototype.hasOwnProperty.call(t,Pv)?t[Pv]:!0;case Tv:return Object.prototype.hasOwnProperty.call(t,Tv)?t[Tv](o):Object.keys(o);default:return}};return new Pfe(n).schemaObject(e)};var wi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(wi||(wi={}));const zN=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Tfe=e=>e.type==="Group",BN=e=>e.elements!==void 0,kfe=e=>!!e&&typeof e=="object",Ofe=e=>kfe(e)&&typeof e.scope=="string",Rfe=e=>!!e&&typeof e=="object",VN=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},UN=(e,t)=>{VN(e,t,-1)},WN=(e,t)=>{VN(e,t,1)},Dfe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},fR=(e={})=>tn({},Dfe,e),pR=(e=fR(),t)=>{switch(t.type){case x_:return fR(t.config);default:return e}},zi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Mfe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Qw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),hR=(e,t)=>{if(t){if(Ife(t.options))return t.options.ajv;if(t.options!==void 0&&rU(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Qw(e.ajv,t.schema):e.ajv:zpe()},Ife=e=>e?e.ajv!==void 0:!1,mR=(e,t)=>t&&Afe(t.options)?t.options.validationMode:e.validationMode,Afe=e=>e?e.validationMode!==void 0:!1,Nfe=e=>e?e.additionalErrors!==void 0:!1,vR=(e,t)=>t&&Nfe(t.options)?t.options.additionalErrors:e.additionalErrors,gR=(e=Mfe,t)=>{switch(t.type){case m_:{const n=hR(e,t),r=mR(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data),i=vR(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case v_:{const n=hR(e,t),r=mR(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data)):e.data!==t.data&&(a=zi(o,t.data));const i=vR(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:X4(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case g_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=zi(r,e.data);return{...e,validator:r,errors:o}}case w_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Qw(e.ajv,t.schema).compile(t.schema):e.validator,o=zi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case C_:return{...e,uischema:t.uischema};case y_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(pO(e.data)),r=zi(e.validator,n);return{...e,data:n,errors:r}}else{const n=dr(e.data,t.path),r=t.updater(pO(n)),o=mie(t.path,r,e.data===void 0?{}:e.data),a=zi(e.validator,o);return{...e,data:o,errors:a}}}case b_:return{...e,errors:t.errors};case $_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=zi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Qw(e.ajv,e.schema).compile(e.schema),r=zi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},jfe=e=>dr(e,"data"),Lfe=e=>dr(e,"schema"),Ffe=e=>dr(e,"uischema"),zfe=e=>dr(e,"ajv"),Bfe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},wg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Bfe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ty(t),t},KS=(e,t,n)=>r=>{const o=mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>wg(a));return mg(r,a=>{if(Ufe.indexOf(a.keyword)!==-1&&!Sg(a.parentSchema))return!1;const i=wg(a);let s=n(i);const l=a.parentSchema;return s&&!Vfe(l)&&!Sg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&X4(l,t)),s})},Vfe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Ufe=["additionalProperties","allOf","anyOf","oneOf"],HN=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return KS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Wfe=(e,t)=>HN(e,t,n=>n===e),Hfe=(e,t)=>HN(e,t,n=>n.startsWith(e+".")),JS=(e,t)=>zN(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Gfe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ci=(e,t,n)=>JS(e,t)??Gfe(n),Cg=(e,t,n,r)=>`${Ci(e,t,n)}.${r}`,qfe=(e,t)=>`${e}.${t}`,ZS=(e,t)=>t,XS=(e,t,n)=>{var s;const r=Cg(e.parentSchema,n,wg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},QS=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Cg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return u_(e.map(i=>t(i,n,o)))},Ey=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!zN(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=JS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},GN=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=qfe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Ur;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Ur||(Ur={}));const qN=[{key:Ur.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Ur.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Ur.removeTooltip,default:()=>"Delete"},{key:Ur.removeAriaLabel,default:()=>"Delete button"},{key:Ur.upAriaLabel,default:()=>"Move item up"},{key:Ur.up,default:()=>"Up"},{key:Ur.down,default:()=>"Down"},{key:Ur.downAriaLabel,default:()=>"Move item down"},{key:Ur.noDataMessage,default:()=>"No data"},{key:Ur.noSelection,default:()=>"No selection"},{key:Ur.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Ur.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Ur.deleteDialogAccept,default:()=>"Yes"},{key:Ur.deleteDialogDecline,default:()=>"No"}],mu={locale:"en",translate:ZS,translateError:XS},yR=(e=mu,t)=>{switch(t.type){case E_:{const n=t.locale??mu.locale,r=t.translator??mu.translate,o=t.errorTranslator??mu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case __:return{...e,translate:t.translator??ZS,translateError:t.errorTranslator??XS};case S_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Yfe=e=>e===void 0?ZS:e.translate,Kfe=e=>e===void 0?XS:e.translateError,Vu=-1,Ga=e=>!Mt(e)&&e.scope!==void 0,qr=e=>(t,n,r)=>{if(Mt(t)||!Ga(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Zs(n,"object")&&(a=wa(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},e_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ga(n))return!1;const a=n.scope;let i=r;return Zs(r,"object")&&(i=wa(r,a,o==null?void 0:o.rootSchema)),i=dr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},qa=e=>qr(t=>!Mt(t)&&Zs(t,e)),Py=e=>qr(t=>!Mt(t)&&t.format===e&&Zs(t,"string")),Sn=e=>t=>!Mt(t)&&t.type===e,as=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Jfe=e=>t=>Mt(e)||!Ga(t)?!1:rse(t.scope,e),Zfe=e=>t=>{if(Mt(e)||!Ga(t))return!1;const n=t.scope;return!Mt(n)&&Lie(n.split("/"))===e},Cn=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),dc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),mn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Vu,Xfe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Vu?Vu:a+e},YN=Cn(Sn("Control"),qa("boolean")),Qfe=Cn(Sn("Control"),qa("object")),KN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),JN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),ZN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),t_=Cn(Sn("Control"),dc(qr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),qr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),XN=Cn(Sn("Control"),qr(e=>Sg(e))),QN=Cn(Sn("Control"),qa("integer")),e5=Cn(Sn("Control"),qa("number")),t5=Cn(Sn("Control"),qa("string")),n5=Cn(Sn("Control"),as("multi",!0)),r5=Cn(Sn("Control"),dc(Py("date"),as("format","date"))),o5=Cn(Sn("Control"),dc(Py("time"),as("format","time"))),a5=Cn(Sn("Control"),dc(Py("date-time"),as("format","date-time"))),i5=Cn(qr((e,t)=>Zs(e,"array")&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e;return Zs(n,"object")})),n_=Cn(Sn("Control"),i5),Sf=(e,t,n)=>{if(x3(e))return Ww(e,(r,o)=>r||Sf(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=wa(n,e.$ref,n);if(r&&!r.$ref)return Sf(r,t,n)}return e.items?Sf(e.items,t,n):e.properties?Ww(Ose(e.properties),(r,[o,a])=>r||Sf(a,t,n),!1):!1},r_=(e,t,n)=>{if(!Sn("Control")(e,t,n))return!1;const r=e.scope,o=wa(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Sf(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Sg(i)||Zs(i,"object")&&(a++,a===2)||Zs(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},epe=n_,s5=Cn(Sn("Control"),qr((e,t)=>Uu(e).length!==0&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e,r=Uu(n);return r.length===1&&eN(["integer","number","boolean","string"],r[0])})),l5=Cn(Sn("Control"),dc(qa("number"),qa("integer")),qr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),as("slider",!0)),tpe=Cn(Sn("Control"),qa("integer"),as("format",!0)),c5=e=>e.type==="Categorization",u5=e=>e.type==="Category",o_=e=>Mt(e.elements)?!1:e.elements.map(t=>c5(t)?o_(t):u5(t)).reduce((t,n)=>t&&n,!0),npe=e=>o_(e),rpe=e=>(t,n,r)=>!e(t,n,r);var ope=Object.freeze({__proto__:null,NOT_APPLICABLE:Vu,isControl:Ga,schemaMatches:qr,schemaSubPathMatches:e_,schemaTypeIs:qa,formatIs:Py,uiTypeIs:Sn,optionIs:as,scopeEndsWith:Jfe,scopeEndIs:Zfe,and:Cn,or:dc,rankWith:mn,withIncreasedRank:Xfe,isBooleanControl:YN,isObjectControl:Qfe,isAllOfControl:KN,isAnyOfControl:JN,isOneOfControl:ZN,isEnumControl:t_,isOneOfEnumControl:XN,isIntegerControl:QN,isNumberControl:e5,isStringControl:t5,isMultiLineControl:n5,isDateControl:r5,isTimeControl:o5,isDateTimeControl:a5,isObjectArray:i5,isObjectArrayControl:n_,isObjectArrayWithNesting:r_,isArrayObjectControl:epe,isPrimitiveArrayControl:s5,isRangeControl:l5,isNumberFormatControl:tpe,isCategorization:c5,isCategory:u5,hasCategory:o_,categorizationHasCategory:npe,not:rpe});const d5=e=>(t,n,r)=>{const o=gy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Vu)return o.uischema},rh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():Ql.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=d5(e)(t,n,r);return s===void 0?typeof o=="function"?o():Ql.uiSchema(t,o,"#",i):s},f5=(e,t)=>n=>Wfe(e,t)(n.jsonforms.core),p5=(e,t)=>n=>Hfe(e,t)(n.jsonforms.core),Zl=e=>e.jsonforms.config,xa=()=>e=>Yfe(dr(e,"jsonforms.i18n")),a_=()=>e=>Kfe(dr(e,"jsonforms.i18n")),oh=e=>jfe(dr(e,"jsonforms.core")),$g=e=>Lfe(dr(e,"jsonforms.core")),ape=e=>Ffe(dr(e,"jsonforms.core")),gd=e=>zfe(dr(e,"jsonforms.core")),i_=e=>dr(e,"jsonforms.renderers"),s_=e=>dr(e,"jsonforms.cells"),ipe=e=>dr(e,"jsonforms.uischemas"),fc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},h5=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Ty),a=r[0]==="#"||r[0]===""?2:1;return hd(a,r.length,2).map(i=>r[i])},m5=(e,t)=>{if(!Ofe(e))return t??"";const n=h5(e.scope);return Mt(n)?t??"":fc(t,n.join("."))},Xl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ty=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),eC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),spe=e=>e==="#"||e===void 0||e==="",wa=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Ty);return kv(e,r,n)},kv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=wa(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(spe(r))return kv(e,o,n);const a=dr(e,r),i=kv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=kv(c,[r,...o],n),s)break;return s}},lpe=e=>e.type==="OR",cpe=e=>e.type==="AND",upe=e=>e.type==="LEAF",dpe=e=>Dle(e,"schema"),bR=(e,t)=>m5(e,t),tC=(e,t,n,r)=>{if(cpe(t))return t.conditions.reduce((o,a)=>o&&tC(e,a,n,r),!0);if(lpe(t))return t.conditions.reduce((o,a)=>o||tC(e,a,n,r),!1);if(upe(t))return eC(e,bR(t,n))===t.expectedValue;if(dpe(t)){const o=eC(e,bR(t,n));return r.validate(t.schema,o)}else return!0},v5=(e,t,n,r)=>{const o=e.rule.condition;return tC(t,o,n,r)},fpe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.HIDE:return!o;case wi.SHOW:return o;default:return!0}},ppe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.DISABLE:return!o;case wi.ENABLE:return o;default:return!0}},l_=e=>!!(e.rule&&(e.rule.effect===wi.SHOW||e.rule.effect===wi.HIDE)),hpe=e=>!!(e.rule&&(e.rule.effect===wi.ENABLE||e.rule.effect===wi.DISABLE)),yd=(e,t,n=void 0,r)=>e.rule?fpe(e,t,n,r):!0,mpe=(e,t,n=void 0,r)=>e.rule?ppe(e,t,n,r):!0,c_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&hpe(n)?mpe(n,o,t==null?void 0:t.path,gd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},g5=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),u_=e=>e==null?"":e.join(` +`),Zs=(e,t)=>eN(Uu(e),t),Uu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(x3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=uS(e.allOf,n=>Uu(n).length!==0);if(t)return Uu(t)}return[]},_o={schema:wa,data:eC},vpe=e=>h5(e.scope).join("."),ir={compose:fc,fromScoped:vpe},ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Ty(n.substr(n.lastIndexOf("/")+1));return yy(r)}return""},y5=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Lm(ox(e,t),n);if(typeof n=="string")return Lm(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return Lm(r,o)}return Lm(ox(e,t),!0)},Lm=(e,t)=>({text:e,show:t}),gpe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=_o.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},ky=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Oy=(e,t)=>e&&!t,es=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},Eo=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,bp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},d_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},bd=(e,t)=>{const{uischema:n}=t,r=oh(e),o=m5(n,t.path),a=t.visible===void 0||l_(n)?yd(n,r,t.path,gd(e)):t.visible,i=n,s=t.id,l=$g(e),c=i.scope!==void 0&&gpe(t.schema,i.scope,l),u=_o.schema(t.schema||l,i.scope,l),f=f5(o,u)(e),p=u!==void 0?u.description:"",m=_o.data(r,o),b=y5(n,u),v=b.show?b.text:"",x=Zl(e),g=c_(e,t,n,u||l,r,x),y=u??l,w=xa()(e),C=a_()(e),_=Ci(y,n,o),$=w(Cg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Cg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=QS(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Zl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},ype=e=>({handleChange(t,n){e(Fa(t,()=>n))}}),bpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},xpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},wpe=(e,t)=>{var a;const n=bd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return d_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return bp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))}));return{...n,options:o}},Cpe=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?uS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=fc(r,`${o}`),s=_o.data(oh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},f_=(e,t)=>{const{...n}=bd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},$pe=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=f_(e,t),l=_o.schema(r,"items",s.rootSchema),c=p5(n,l)(e),u=xa()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||i_(e),cells:t.cells||s_(e),translations:GN(u,qN,a,i)}},Spe=e=>({addItem:(t,n)=>()=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Fa(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Fa(t,r=>(UN(r,n),r)))},moveDown:(t,n)=>()=>{e(Fa(t,r=>(WN(r,n),r)))}}),_pe=e=>({addItem:(t,n)=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Fa(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),b5={visible:!0,enabled:!0,path:"",direction:"column"},Epe=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":b5.direction,Ppe=(e,t)=>{const n=oh(e),{uischema:r}=t,o=t.visible===void 0||l_(r)?yd(t.uischema,n,t.path,gd(e)):t.visible,a=_o.data(n,t.path),i=Zl(e),s=c_(e,t,r,void 0,n,i),l=xa()(e),c=Rfe(r)?Ey(r,l):void 0;return{...b5,renderers:t.renderers||i_(e),cells:t.cells||s_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Epe(r),config:i,label:c}},Tpe=(e,t)=>({renderers:t.renderers||dr(e.jsonforms,"renderers"),cells:t.cells||dr(e.jsonforms,"cells"),schema:t.schema||$g(e),rootSchema:$g(e),uischema:t.uischema||ape(e),path:t.path,enabled:t.enabled,config:Zl(e)}),p_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=bd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=_o.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:ipe(e)}},kpe=(e,t)=>p_(e,t,"allOf"),Ope=(e,t)=>p_(e,t,"anyOf"),Rpe=(e,t)=>p_(e,t,"oneOf"),Dpe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=f_(e,t),c=_o.schema(r,"items",l.rootSchema),u=xa()(e),f=QS(p5(n,c)(e),a_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:GN(u,qN,i,s)}},Mpe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||l_(n)?yd(t.uischema,oh(e),t.path,gd(e)):t.visible,o=n.text,a=xa()(e),i=JS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Zl(e),renderers:t.renderers||i_(e),cells:t.cells||s_(e)}},Ry=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=oh(e),c=t.visible!==void 0?t.visible:yd(a,l,void 0,gd(e)),u=$g(e),f=Zl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=c_(e,t,a,r||u,l,f);const m=xa()(e),b=a_()(e),v=QS(f5(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:_o.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:Zl(e),rootSchema:u,renderers:i,cells:s}},Ipe=(e,t)=>{const n=Ry(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Ape=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},Npe=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},jpe=(e,t,n)=>e.title?e.title:n+"-"+t,Dy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?_o.schema(t,i.$ref,t):i;return{schema:l,uischema:rh(a,l,r.scope,o,void 0,r,t),label:jpe(i,s,n)}}),h_=new Set,x5=(e,t)=>t<=1?e:e+t.toString(),Lpe=(e,t)=>{const n=x5(e,t);return!h_.has(n)},w5=e=>{e===void 0&&(e="undefined");let t=0;for(;!Lpe(e,t);)t++;const n=x5(e,t);return h_.add(n),n},C5=e=>h_.delete(e),Fpe=e=>{if(e.properties)return uS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Sg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),zpe=e=>{const t=new $fe({allErrors:!0,verbose:!0,strict:!1,...e});return _fe(t),t},$5=e=>({type:e,elements:[]}),Ov=e=>({type:"Control",scope:e}),Bpe=(e,t)=>{if(!Mt(e)&&!BN(e)){const n=$5(t);return n.elements.push(e),n}return e},Vpe=(e,t)=>{if(!Mt(t)){const n=yy(t);if(Tfe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Upe=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),nC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return nC(wa(a,e.$ref,a),t,n,r,o,a);if(Upe(e)){const s=Ov(n);return t.push(s),s}const i=Uu(e);if(i.length===0)return null;if(i.length>1){const s=Ov(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=$5(o);if(t.push(s),e.properties&&BZ(e.properties).length>1&&Vpe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Xl(c)}`;u.$ref!==void 0&&(u=wa(a,u.$ref,a)),nC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Ov(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},S5=(e,t="VerticalLayout",n="#",r=e)=>Bpe(nC(e,[],n,"",t,r),t),Ql={jsonSchema:FN,uiSchema:S5,controlElement:Ov},m_="jsonforms/INIT",v_="jsonforms/UPDATE_CORE",g_="jsonforms/SET_AJV",y_="jsonforms/UPDATE",b_="jsonforms/UPDATE_ERRORS",Wpe="jsonforms/VALIDATE",_5="jsonforms/ADD_RENDERER",E5="jsonforms/REMOVE_RENDERER",P5="jsonforms/ADD_CELL",T5="jsonforms/REMOVE_CELL",x_="jsonforms/SET_CONFIG",k5="jsonforms/ADD_UI_SCHEMA",O5="jsonforms/REMOVE_UI_SCHEMA",w_="jsonforms/SET_SCHEMA",C_="jsonforms/SET_UISCHEMA",$_="jsonforms/SET_VALIDATION_MODE",S_="jsonforms/SET_LOCALE",__="jsonforms/SET_TRANSLATOR",E_="jsonforms/UPDATE_I18N",R5="jsonforms/ADD_DEFAULT_DATA",D5="jsonforms/REMOVE_DEFAULT_DATA",Hpe=(e,t=FN(e),n,r)=>({type:m_,data:e,schema:t,uischema:typeof n=="object"?n:S5(t),options:r}),Gpe=(e,t,n,r)=>({type:v_,data:e,schema:t,uischema:n,options:r}),qpe=(e,t)=>({type:R5,schemaPath:e,data:t}),Ype=e=>({type:D5,schemaPath:e}),Kpe=e=>({type:g_,ajv:e}),Fa=(e,t)=>({type:y_,path:e,updater:t}),Jpe=e=>({type:b_,errors:e}),Zpe=(e,t)=>({type:_5,tester:e,renderer:t}),Xpe=(e,t)=>({type:P5,tester:e,cell:t}),Qpe=(e,t)=>({type:T5,tester:e,cell:t}),ehe=(e,t)=>({type:E5,tester:e,renderer:t}),the=e=>({type:x_,config:e}),nhe=e=>({type:$_,validationMode:e}),rhe=(e,t)=>({type:k5,tester:e,uischema:t}),ohe=e=>({type:O5,tester:e}),ahe=e=>({type:S_,locale:e}),ihe=e=>({type:w_,schema:e}),she=(e,t)=>({type:__,translator:e,errorTranslator:t}),lhe=(e,t,n)=>({type:E_,locale:e,translator:t,errorTranslator:n}),che=e=>({type:C_,uischema:e});var Fc=Object.freeze({__proto__:null,INIT:m_,UPDATE_CORE:v_,SET_AJV:g_,UPDATE_DATA:y_,UPDATE_ERRORS:b_,VALIDATE:Wpe,ADD_RENDERER:_5,REMOVE_RENDERER:E5,ADD_CELL:P5,REMOVE_CELL:T5,SET_CONFIG:x_,ADD_UI_SCHEMA:k5,REMOVE_UI_SCHEMA:O5,SET_SCHEMA:w_,SET_UISCHEMA:C_,SET_VALIDATION_MODE:$_,SET_LOCALE:S_,SET_TRANSLATOR:__,UPDATE_I18N:E_,ADD_DEFAULT_DATA:R5,REMOVE_DEFAULT_DATA:D5,init:Hpe,updateCore:Gpe,registerDefaultData:qpe,unregisterDefaultData:Ype,setAjv:Kpe,update:Fa,updateErrors:Jpe,registerRenderer:Zpe,registerCell:Xpe,unregisterCell:Qpe,unregisterRenderer:ehe,setConfig:the,setValidationMode:nhe,registerUISchema:rhe,unregisterUISchema:ohe,setLocale:ahe,setSchema:ihe,setTranslator:she,updateI18n:lhe,setUISchema:che});const _g={createLabelDescriptionFrom:y5,convertToValidClassName:g5};var uhe=so,dhe=function(){return uhe.Date.now()},fhe=dhe,phe=Qo,ax=fhe,xR=G4,hhe="Expected a function",mhe=Math.max,vhe=Math.min;function ghe(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(hhe);t=xR(t)||0,phe(n)&&(u=!!n.leading,f="maxWait"in n,a=f?mhe(xR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var E=r,k=o;return r=o=void 0,c=$,i=e.apply(k,E),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var E=$-l,k=$-c,I=t-E;return f?vhe(I,a-k):I}function x($){var E=$-l,k=$-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var $=ax();if(x($))return y($);s=setTimeout(g,v($))}function y($){return s=void 0,p&&r?m($):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(ax())}function _(){var $=ax(),E=x($);if(r=arguments,o=this,l=$,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var yhe=ghe;const M5=Bt(yhe);class I5 extends M.Component{constructor(t){super(t)}}class A5 extends I5{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class N5 extends S.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const bhe={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},j5=M.createContext({core:bhe,renderers:[]}),xhe=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},whe=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=S.useReducer(gR,void 0,()=>gR(t.core,Fc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Fc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(pR,void 0,()=>pR(void 0,Fc.setConfig(t.config)));xhe(()=>{p(Fc.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(yR,void 0,()=>{var _,$,E;return yR(t.i18n,Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))});S.useEffect(()=>{var _,$,E;b(Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=S.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=S.useRef(n);S.useEffect(()=>{x.current=n},[n]);const g=S.useCallback(M5((..._)=>{var $;return($=x.current)==null?void 0:$.call(x,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(j5.Provider,{value:v},e)},pc=()=>S.useContext(j5),Che=(e,t)=>Dpe({jsonforms:{...e}},t),$he=(e,t)=>$pe({jsonforms:{...e}},t),She=(e,t)=>Ppe({jsonforms:{...e}},t),_he=(e,t)=>bd({jsonforms:{...e}},t),Ehe=(e,t)=>{var o;const n=bpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Phe=(e,t)=>{var o;const n=xpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},The=(e,t)=>{var o;const n=wpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},khe=(e,t)=>f_({jsonforms:{...e}},t),Ohe=(e,t)=>({...kpe({jsonforms:{...e}},t)}),Oo=e=>S.useMemo(()=>ype(e),[e]),Rhe=(e,t)=>{const n=Ope({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Dhe=(e,t)=>{const n=Rpe({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Mhe=(e,t)=>Tpe({jsonforms:{...e}},t),L5=e=>({...Oo(e),...S.useMemo(()=>Spe(e),[e])}),Ihe=(e,t)=>Cpe({jsonforms:{...e}},t),Ahe=(e,t)=>Ry({jsonforms:{...e}},t),Nhe=(e,t)=>{var o;const n=Ape({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},jhe=(e,t)=>{var o;const n=Npe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Lhe=(e,t)=>Ipe({jsonforms:{...e}},t),Fhe=e=>({...Oo(e),...S.useMemo(()=>_pe(e),[e])}),zhe=(e,t)=>Mpe({jsonforms:{...e}},t),Sr=e=>function(n){const r=pc();return M.createElement(e,{ctx:r,props:n})},Bhe=e=>function({ctx:n,props:r}){const o=Mhe(n,r);return M.createElement(e,Object.assign({},r,o))},Vhe=e=>function({ctx:n,props:r}){const o=_he(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Uhe=e=>function({ctx:n,props:r}){const o=She(n,r);return M.createElement(e,Object.assign({},r,o))},Whe=e=>function({ctx:n,props:r}){const o=Dhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Hhe=e=>function({ctx:n,props:r}){const o=Rhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Ghe=e=>function({ctx:n,props:r}){const o=Ohe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},qhe=e=>function({ctx:n,props:r}){const o=khe(n,r);return M.createElement(e,Object.assign({},r,o))},Yhe=e=>function({ctx:n,props:r}){const o=Che(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Khe=e=>function({ctx:n,props:r}){const o=$he(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Jhe=e=>function({ctx:n,props:r}){const o=Ihe(n,r);return M.createElement(e,Object.assign({},r,o))},Zhe=e=>function({ctx:n,props:r}){const o=Ahe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Xhe=e=>function({ctx:n,props:r}){const o=Lhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Qhe=e=>function({ctx:n,props:r}){const o=Nhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},eme=e=>function({ctx:n,props:r}){const o=Ehe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},tme=e=>function({ctx:n,props:r}){const o=jhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},nme=e=>function({ctx:n,props:r}){const o=Phe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},rme=e=>function({ctx:n,props:r}){const o=The(n,r),a=Fhe(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},ome=e=>function({ctx:n,props:r}){const o=zhe(n,r);return M.createElement(e,Object.assign({},r,o))},F5=(e,t=!0)=>Sr(Bhe(t?M.memo(e):e)),lo=(e,t=!0)=>Sr(Vhe(t?M.memo(e):e)),is=(e,t=!0)=>Sr(Uhe(t?M.memo(e):e)),ame=(e,t=!0)=>Sr(Whe(t?M.memo(e):e)),z5=(e,t=!0)=>Sr(Hhe(t?M.memo(e):e)),ime=(e,t=!0)=>Sr(Ghe(t?M.memo(e):e)),sme=(e,t=!0)=>Sr(qhe(t?M.memo(e):e)),My=(e,t=!0)=>Sr(Yhe(t?M.memo(e):e)),B5=(e,t=!0)=>Sr(Khe(t?M.memo(e):e)),lme=(e,t=!0)=>Sr(Jhe(t?M.memo(e):e)),pr=(e,t=!0)=>Sr(Zhe(t?M.memo(e):e)),cme=(e,t=!0)=>Sr(Xhe(t?M.memo(e):e)),V5=(e,t=!0)=>Sr(Qhe(t?M.memo(e):e)),P_=(e,t=!0)=>Sr(eme(t?M.memo(e):e)),ume=(e,t=!0)=>Sr(tme(t?M.memo(e):e)),T_=(e,t=!0)=>Sr(nme(t?M.memo(e):e)),dme=(e,t=!0)=>Sr(rme(t?M.memo(e):e)),U5=(e,t=!0)=>Sr(ome(t?M.memo(e):e)),ol=e=>function(n){var i,s;const r=pc(),o=((i=r.i18n)==null?void 0:i.locale)??mu.locale,a=((s=r.i18n)==null?void 0:s.translate)??mu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class W5 extends M.Component{constructor(t){super(t),this.state={id:Ga(t.uischema)?w5(t.uischema.scope):void 0}}componentWillUnmount(){Ga(this.props.uischema)&&C5(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(fme,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const fme=M.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>gy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(N5,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class pme extends W5{constructor(t){super(t)}}const Po=F5(W5);F5(pme);const wR=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=S.useMemo(()=>r!==void 0?r:Ql.jsonSchema(n),[r,n]),v=S.useMemo(()=>typeof o=="object"?o:Ql.uiSchema(b),[o,b]);return M.createElement(whe,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(Po,null))},hme=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=S.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=S.useMemo(()=>gy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(N5,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ec=cme(hme),mme={black:"#000",white:"#fff"},xp=mme,vme={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},zc=vme,gme={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Bc=gme,yme={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Vc=yme,bme={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uc=bme,xme={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wc=xme,wme={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},nf=wme,Cme={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$me=Cme;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=H5(e[n])}),t}function Hr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ui(t[o])&&o in e&&Ui(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Ui(t[o])?H5(t[o]):t[o]:r[o]=t[o])}),r}var G5={exports:{}},Sme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_me=Sme,Eme=_me;function q5(){}function Y5(){}Y5.resetWarningCache=q5;var Pme=function(){function e(r,o,a,i,s,l){if(l!==Eme){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y5,resetWarningCache:q5};return n.PropTypes=n,n};G5.exports=Pme();var Tme=G5.exports;const j=Bt(Tme);function Xs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ah(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ome(e,t){return()=>null}function Eu(e,t){var n,r;return S.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zn(e){return e&&e.ownerDocument||document}function $i(e){return zn(e).defaultView||window}function Rme(e,t){return()=>null}function wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Dme=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kn=Dme;let CR=0;function Mme(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(CR+=1,n(`mui-${CR}`))},[t]),r}const $R=ep["useId".toString()];function Ya(e){if($R!==void 0){const t=$R();return e??t}return Mme(e)}function Ime(e,t,n,r,o){return null}function Cr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),s=o?e:a,l=S.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=S.useRef(e);return Kn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wp(n,t)})},e)}let Iy=!0,rC=!1,SR;const Ame={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Nme(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ame[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jme(e){e.metaKey||e.altKey||e.ctrlKey||(Iy=!0)}function ix(){Iy=!1}function Lme(){this.visibilityState==="hidden"&&rC&&(Iy=!0)}function Fme(e){e.addEventListener("keydown",jme,!0),e.addEventListener("mousedown",ix,!0),e.addEventListener("pointerdown",ix,!0),e.addEventListener("touchstart",ix,!0),e.addEventListener("visibilitychange",Lme,!0)}function zme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Iy||Nme(t)}function Ay(){const e=S.useCallback(o=>{o!=null&&Fme(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(rC=!0,window.clearTimeout(SR),SR=window.setTimeout(()=>{rC=!1},100),t.current=!1,!0):!1}function r(o){return zme(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function K5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Hc;function J5(){if(Hc)return Hc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Hc="reverse",e.scrollLeft>0?Hc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Hc="negative")),document.body.removeChild(e),Hc}function Bme(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(J5()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Vme=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},k_=Vme,Ume={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wme=Ume;function O_(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=O_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const _R=e=>e,Hme=()=>{let e=_R;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_R}}},Gme=Hme(),Z5=Gme,qme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function et(e,t,n="Mui"){const r=qme[t];return r?`${n}-${r}`:`${Z5.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const Ny="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function X5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yme=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kme=X5(function(e){return Yme.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jme(e){if(e.sheet)return e.sheet;for(var t=0;t0?Mr(wd,--To):0,Wu--,cr===10&&(Wu=1,Ly--),cr}function Go(){return cr=To2||$p(cr)>3?"":" "}function cve(e,t){for(;--t&&Go()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ih(e,Rv()+(t<6&&gi()==32&&Go()==32))}function aC(e){for(;Go();)switch(cr){case e:return To;case 34:case 39:e!==34&&e!==39&&aC(cr);break;case 40:e===41&&aC(e);break;case 92:Go();break}return To}function uve(e,t){for(;Go()&&e+cr!==47+10;)if(e+cr===42+42&&gi()===47)break;return"/*"+ih(t,To-1)+"*"+jy(e===47?e:Go())}function dve(e){for(;!$p(gi());)Go();return ih(e,To)}function fve(e){return oj(Mv("",null,null,null,[""],e=rj(e),0,[0],e))}function Mv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,$=r,E=w;x;)switch(b=y,y=Go()){case 40:if(b!=108&&Mr(E,f-1)==58){oC(E+=hn(Dv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Dv(y);break;case 9:case 10:case 13:case 32:E+=lve(b);break;case 92:E+=cve(Rv()-1,7);continue;case 47:switch(gi()){case 42:case 47:Fm(pve(uve(Go(),Rv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=si(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=hn(E,/\f/g,"")),m>0&&si(E)-f&&Fm(m>32?PR(E+";",r,n,f-1):PR(hn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Fm($=ER(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Mv(E,t,$,$,C,a,f,s,_);else switch(p===99&&Mr(E,3)===110?100:p){case 100:case 108:case 109:case 115:Mv(e,$,$,r&&Fm(ER(e,$,$,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Mv(E,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+si(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&sve()==125)continue}switch(E+=jy(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(si(E)-1)*g,g=1;break;case 64:gi()===45&&(E+=Dv(Go())),p=gi(),u=f=si(w=E+=dve(Rv())),y++;break;case 45:b===45&&si(E)==2&&(v=0)}}return a}function ER(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=M_(p),b=0,v=0,x=0;b0?p[g]+" "+y:hn(y,/&\f/g,p[g])))&&(l[x++]=w);return Fy(e,t,n,o===0?R_:s,l,c,u)}function pve(e,t,n){return Fy(e,t,n,Q5,jy(ive()),Cp(e,2,-2),0)}function PR(e,t,n,r){return Fy(e,t,n,D_,Cp(e,0,r),Cp(e,r+1,-1),r)}function Pu(e,t){for(var n="",r=M_(e),o=0;o6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+Pg+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oC(e,"stretch")?aj(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,si(e)-3-(~oC(e,"!important")&&10))){case 107:return hn(e,":",":"+pn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Mr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+Vr+e+e}return e}var Cve=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case D_:t.return=aj(t.value,t.length);break;case ej:return Pu([rf(t,{value:hn(t.value,"@","@"+pn)})],o);case R_:if(t.length)return ave(t.props,function(a){switch(ove(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pu([rf(t,{props:[hn(a,/:(read-\w+)/,":"+Pg+"$1")]})],o);case"::placeholder":return Pu([rf(t,{props:[hn(a,/:(plac\w+)/,":"+pn+"input-$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,":"+Pg+"$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,Vr+"input-$1")]})],o)}return""})}},$ve=[Cve],Sve=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||$ve,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nve={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jve=/[A-Z]|^ms/g,Lve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fj=function(t){return t.charCodeAt(1)===45},kR=function(t){return t!=null&&typeof t!="boolean"},sx=X5(function(e){return fj(e)?e:e.replace(jve,"-$&").toLowerCase()}),OR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lve,function(r,o,a){return li={name:o,styles:a,next:li},o})}return Nve[t]!==1&&!fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return li={name:n.name,styles:n.styles,next:li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)li={name:r.name,styles:r.styles,next:li},r=r.next;var o=n.styles+";";return o}return Fve(e,t,n)}case"function":{if(e!==void 0){var a=li,i=n(e);return li=a,Sp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Fve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Wve:Hve},IR=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Gve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return uj(n,r,o),Bve(function(){return dj(n,r,o)}),null},qve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=IR(t,n,r),l=s||MR(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Kve(o)?n:o):t;return O.jsx(Vve,{styles:r})}/** + * @mui/styled-engine v5.14.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Zve(e,t){return iC(e,t)}const Xve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qve=["values","unit","step"],ege=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function tge(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Qve),a=ege(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${z_[e]}px)`};function ko(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||AR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||AR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||z_).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function vj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function gj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function oge(e,...t){const n=vj(e),r=[n,...t].reduce((o,a)=>Hr(o,a),{});return gj(Object.keys(n),r)}function age(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Bl({values:e,breakpoints:t,base:n}){const r=n||age(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Jy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Tg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Jy(e,n)||r,t&&(o=t(o,r,e)),o}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Jy(l,r)||{};return ko(i,s,f=>{let p=Tg(c,o,f);return f===p&&typeof f=="string"&&(p=Tg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function ige(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sge={m:"margin",p:"padding"},lge={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cge=ige(e=>{if(e.length>2)if(NR[e])e=NR[e];else return[e];const[t,n]=e.split(""),r=sge[t],o=lge[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),B_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...B_,...V_];function sh(e,t,n,r){var o;const a=(o=Jy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function U_(e){return sh(e,"spacing",8)}function tc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function uge(e,t){return n=>e.reduce((r,o)=>(r[o]=tc(t,n),r),{})}function dge(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=cge(n),a=uge(o,r),i=e[n];return ko(e,i,a)}function yj(e,t){const n=U_(e.theme);return Object.keys(e).map(r=>dge(e,t,r,n)).reduce(Uf,{})}function Zn(e){return yj(e,B_)}Zn.propTypes={};Zn.filterProps=B_;function Xn(e){return yj(e,V_)}Xn.propTypes={};Xn.filterProps=V_;function fge(e=8){if(e.mui)return e;const t=U_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Zy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Uf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function di(e){return typeof e!="number"?e:`${e}px solid`}const pge=yn({prop:"border",themeKey:"borders",transform:di}),hge=yn({prop:"borderTop",themeKey:"borders",transform:di}),mge=yn({prop:"borderRight",themeKey:"borders",transform:di}),vge=yn({prop:"borderBottom",themeKey:"borders",transform:di}),gge=yn({prop:"borderLeft",themeKey:"borders",transform:di}),yge=yn({prop:"borderColor",themeKey:"palette"}),bge=yn({prop:"borderTopColor",themeKey:"palette"}),xge=yn({prop:"borderRightColor",themeKey:"palette"}),wge=yn({prop:"borderBottomColor",themeKey:"palette"}),Cge=yn({prop:"borderLeftColor",themeKey:"palette"}),Xy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tc(t,r)});return ko(e,e.borderRadius,n)}return null};Xy.propTypes={};Xy.filterProps=["borderRadius"];Zy(pge,hge,mge,vge,gge,yge,bge,xge,wge,Cge,Xy);const Qy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sh(e.theme,"spacing",8),n=r=>({gap:tc(t,r)});return ko(e,e.gap,n)}return null};Qy.propTypes={};Qy.filterProps=["gap"];const e0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({columnGap:tc(t,r)});return ko(e,e.columnGap,n)}return null};e0.propTypes={};e0.filterProps=["columnGap"];const t0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({rowGap:tc(t,r)});return ko(e,e.rowGap,n)}return null};t0.propTypes={};t0.filterProps=["rowGap"];const $ge=yn({prop:"gridColumn"}),Sge=yn({prop:"gridRow"}),_ge=yn({prop:"gridAutoFlow"}),Ege=yn({prop:"gridAutoColumns"}),Pge=yn({prop:"gridAutoRows"}),Tge=yn({prop:"gridTemplateColumns"}),kge=yn({prop:"gridTemplateRows"}),Oge=yn({prop:"gridTemplateAreas"}),Rge=yn({prop:"gridArea"});Zy(Qy,e0,t0,$ge,Sge,_ge,Ege,Pge,Tge,kge,Oge,Rge);function Tu(e,t){return t==="grey"?t:e}const Dge=yn({prop:"color",themeKey:"palette",transform:Tu}),Mge=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tu}),Ige=yn({prop:"backgroundColor",themeKey:"palette",transform:Tu});Zy(Dge,Mge,Ige);function Bo(e){return e<=1&&e!==0?`${e*100}%`:e}const Age=yn({prop:"width",transform:Bo}),W_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||z_[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bo(n)}};return ko(e,e.maxWidth,t)}return null};W_.filterProps=["maxWidth"];const Nge=yn({prop:"minWidth",transform:Bo}),jge=yn({prop:"height",transform:Bo}),Lge=yn({prop:"maxHeight",transform:Bo}),Fge=yn({prop:"minHeight",transform:Bo});yn({prop:"size",cssProperty:"width",transform:Bo});yn({prop:"size",cssProperty:"height",transform:Bo});const zge=yn({prop:"boxSizing"});Zy(Age,W_,Nge,jge,Lge,Fge,zge);const Bge={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xy},color:{themeKey:"palette",transform:Tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tu},backgroundColor:{themeKey:"palette",transform:Tu},p:{style:Xn},pt:{style:Xn},pr:{style:Xn},pb:{style:Xn},pl:{style:Xn},px:{style:Xn},py:{style:Xn},padding:{style:Xn},paddingTop:{style:Xn},paddingRight:{style:Xn},paddingBottom:{style:Xn},paddingLeft:{style:Xn},paddingX:{style:Xn},paddingY:{style:Xn},paddingInline:{style:Xn},paddingInlineStart:{style:Xn},paddingInlineEnd:{style:Xn},paddingBlock:{style:Xn},paddingBlockStart:{style:Xn},paddingBlockEnd:{style:Xn},m:{style:Zn},mt:{style:Zn},mr:{style:Zn},mb:{style:Zn},ml:{style:Zn},mx:{style:Zn},my:{style:Zn},margin:{style:Zn},marginTop:{style:Zn},marginRight:{style:Zn},marginBottom:{style:Zn},marginLeft:{style:Zn},marginX:{style:Zn},marginY:{style:Zn},marginInline:{style:Zn},marginInlineStart:{style:Zn},marginInlineEnd:{style:Zn},marginBlock:{style:Zn},marginBlockStart:{style:Zn},marginBlockEnd:{style:Zn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qy},rowGap:{style:t0},columnGap:{style:e0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:W_},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n0=Bge;function Vge(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Uge(e,t){return typeof e=="function"?e(t):e}function Wge(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Jy(o,c)||{};return f?f(i):ko(i,r,b=>{let v=Tg(p,u,b);return b===v&&typeof b=="string"&&(v=Tg(p,u,`${n}${b==="default"?"":je(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:n0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=vj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Uge(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Uf(p,e(m,b,a,i));else{const v=ko({theme:a},b,x=>({[m]:x}));Vge(v,b)?p[m]=t({sx:b,theme:a}):p=Uf(p,v)}else p=Uf(p,e(m,b,a,i))}),gj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const bj=Wge();bj.filterProps=["sx"];const H_=bj,Hge=["breakpoints","palette","spacing","shape"];function r0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,Hge),s=tge(n),l=fge(o);let c=Hr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},rge,a)},i);return c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}function Gge(e){return Object.keys(e).length===0}function G_(e=null){const t=S.useContext(L_);return!t||Gge(t)?e:t}const qge=r0();function lh(e=qge){return G_(e)}function Yge({styles:e,themeId:t,defaultTheme:n={}}){const r=lh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Jve,{styles:o})}const Kge=["sx"],Jge=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:n0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function q_(e){const{sx:t}=e,n=Oe(e,Kge),{systemProps:r,otherProps:o}=Jge(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ui(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function xj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=jR(r)?e[o]:je(e[o]):r+=`${jR(r)?o:je(o)}${je(e[o].toString())}`}),r}const Xge=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qge(e){return Object.keys(e).length===0}function eye(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tye=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,kg=e=>{const t={};return e&&e.forEach(n=>{const r=wj(n.props);t[r]=n.style}),t},nye=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),kg(n)},Og=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[wj(a.props)])}),o},rye=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Og(e,t,a)};function Wf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oye=r0(),aye=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Iv({defaultTheme:e,theme:t,themeId:n}){return Qge(t)?e:t[n]||t}function iye(e){return e?(t,n)=>n[e]:null}const LR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Iv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Og(t,kg(a),a);return[o,...i]}return o};function Cj(e={}){const{themeId:t,defaultTheme:n=oye,rootShouldForwardProp:r=Wf,slotShouldForwardProp:o=Wf}=e,a=i=>H_(T({},i,{theme:Iv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Xve(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=iye(aye(c))}=s,m=Oe(s,Xge),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Wf;c==="Root"||c==="root"?g=r:c?g=o:eye(i)&&(g=void 0);const y=Zve(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const $=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>LR({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Ui(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let B=R;return Og(G,kg(U),U).forEach(Y=>{B=Hr(B,Y)}),B}),F}return R}):[];let E=C;if(Ui(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Og(F,kg(R),R).forEach(B=>{U=Hr(U,B)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>LR({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t})),U=tye(l,F);if(U){const G={};return Object.entries(U).forEach(([B,z])=>{G[B]=typeof z=="function"?z(T({},R,{theme:F})):z}),p(R,G)}return null}),l&&!b&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t}));return rye(R,nye(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...$);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const sye=Cj(),lye=sye;function Y_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:O_(t.components[n].defaultProps,r)}function $j({props:e,name:t,defaultTheme:n,themeId:r}){let o=lh(n);return r&&(o=o[r]||o),Y_({theme:o,name:t,props:e})}function K_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cye(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function nc(e){if(e.type)return e;if(e.charAt(0)==="#")return nc(cye(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Xs(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Xs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function o0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function uye(e){e=nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),o0({type:s,values:l})}function FR(e){e=nc(e);let t=e.type==="hsl"||e.type==="hsla"?nc(uye(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dye(e,t){const n=FR(e),r=FR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=nc(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function a0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o0(e)}function i0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o0(e)}const fye=["component","direction","spacing","divider","children","className","useFlexGap"],pye=r0(),hye=lye("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mye(e){return $j({props:e,name:"MuiStack",defaultTheme:pye})}function vye(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yye=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},ko({theme:t},Bl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U_(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Bl({values:e.direction,base:o}),i=Bl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Hr(n,ko({theme:t},i,(l,c)=>e.useFlexGap?{gap:tc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gye(c?a[c]:e.direction)}`]:tc(r,l)}}))}return n=oge(t.breakpoints,n),n};function bye(e={}){const{createStyledComponent:t=hye,useThemeProps:n=mye,componentName:r="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>et(r,l),{}),a=t(yye);return S.forwardRef(function(l,c){const u=n(l),f=q_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,fye),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ie(_.root,g)},w,{children:v?vye(x,v):x}))})}function xye(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wye=["mode","contrastThreshold","tonalOffset"],zR={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xp.white,default:xp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lx={text:{primary:xp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function BR(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function Cye(e="light"){return e==="dark"?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function $ye(e="light"){return e==="dark"?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[500],light:Bc[300],dark:Bc[700]}}function Sye(e="light"){return e==="dark"?{main:zc[500],light:zc[300],dark:zc[700]}:{main:zc[700],light:zc[400],dark:zc[800]}}function _ye(e="light"){return e==="dark"?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:Uc[700],light:Uc[500],dark:Uc[900]}}function Eye(e="light"){return e==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}function Pye(e="light"){return e==="dark"?{main:nf[400],light:nf[300],dark:nf[700]}:{main:"#ed6c02",light:nf[500],dark:nf[900]}}function Tye(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,wye),a=e.primary||Cye(t),i=e.secondary||$ye(t),s=e.error||Sye(t),l=e.info||_ye(t),c=e.success||Eye(t),u=e.warning||Pye(t);function f(v){return dye(v,lx.text.primary)>=n?lx.text.primary:zR.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Xs(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(Xs(12,x?` (${x})`:"",JSON.stringify(v.main)));return BR(v,"light",y,r),BR(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:lx,light:zR};return Hr(T({common:T({},xp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:$me,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const kye=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Oye(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},UR='"Roboto", "Helvetica", "Arial", sans-serif';function Rye(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=UR,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,kye),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===UR?{letterSpacing:`${Oye(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,VR),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Dye=.2,Mye=.14,Iye=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Dye})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mye})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Iye})`].join(",")}const Aye=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],Nye=Aye,jye=["duration","easing","delay"],Lye={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Sj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WR(e){return`${Math.round(e)}ms`}function Fye(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zye(e){const t=T({},Lye,e.easing),n=T({},Sj,e.duration);return T({getAutoHeightDuration:Fye,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,jye),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:WR(i)} ${s} ${typeof l=="string"?l:WR(l)}`).join(",")}},e,{easing:t,duration:n})}const Bye={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vye=Bye,Uye=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wye(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Uye);if(e.vars)throw new Error(Xs(18));const s=Tye(r),l=r0(e);let c=Hr(l,{mixins:xye(l.breakpoints,n),palette:s,shadows:Nye.slice(),typography:Rye(s,a),transitions:zye(o),zIndex:T({},Vye)});return c=Hr(c,i),c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}const Hye=Wye(),s0=Hye;function nr(){const e=lh(s0);return e[Ny]||e}function Ke({props:e,name:t}){return $j({props:e,name:t,defaultTheme:s0,themeId:Ny})}const ta=e=>Wf(e)&&e!=="classes",J_=Wf,Gye=Cj({themeId:Ny,defaultTheme:s0,rootShouldForwardProp:ta}),de=Gye,qye=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},HR=qye;function Yye(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kye=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Xe(o,Yye,r)},Zye=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),_j=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Kye),b=S.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Jye(v);return O.jsxs(Zye,T({as:s,className:Ie(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});_j.muiName="SvgIcon";const sC=_j;function rr(e,t){function n(r,o){return O.jsx(sC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sC.muiName,S.memo(S.forwardRef(n))}const Xye={configure:e=>{Z5.configure(e)}},Qye=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:Eg,createSvgIcon:rr,debounce:ah,deprecatedPropType:Ome,isMuiElement:Eu,ownerDocument:zn,ownerWindow:$i,requirePropFactory:Rme,setRef:wp,unstable_ClassNameGenerator:Xye,unstable_useEnhancedEffect:Kn,unstable_useId:Ya,unsupportedProp:Ime,useControlled:Cr,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Ay},Symbol.toStringTag,{value:"Module"}));var _n={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Z_=Symbol.for("react.element"),X_=Symbol.for("react.portal"),l0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),u0=Symbol.for("react.profiler"),d0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),e0e=Symbol.for("react.server_context"),p0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),m0=Symbol.for("react.suspense_list"),v0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),t0e=Symbol.for("react.offscreen"),Ej;Ej=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z_:switch(e=e.type,e){case l0:case u0:case c0:case h0:case m0:return e;default:switch(e=e&&e.$$typeof,e){case e0e:case f0:case p0:case g0:case v0:case d0:return e;default:return t}}case X_:return t}}}_n.ContextConsumer=f0;_n.ContextProvider=d0;_n.Element=Z_;_n.ForwardRef=p0;_n.Fragment=l0;_n.Lazy=g0;_n.Memo=v0;_n.Portal=X_;_n.Profiler=u0;_n.StrictMode=c0;_n.Suspense=h0;_n.SuspenseList=m0;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return _a(e)===f0};_n.isContextProvider=function(e){return _a(e)===d0};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z_};_n.isForwardRef=function(e){return _a(e)===p0};_n.isFragment=function(e){return _a(e)===l0};_n.isLazy=function(e){return _a(e)===g0};_n.isMemo=function(e){return _a(e)===v0};_n.isPortal=function(e){return _a(e)===X_};_n.isProfiler=function(e){return _a(e)===u0};_n.isStrictMode=function(e){return _a(e)===c0};_n.isSuspense=function(e){return _a(e)===h0};_n.isSuspenseList=function(e){return _a(e)===m0};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l0||e===u0||e===c0||e===h0||e===m0||e===t0e||typeof e=="object"&&e!==null&&(e.$$typeof===g0||e.$$typeof===v0||e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===p0||e.$$typeof===Ej||e.getModuleId!==void 0)};_n.typeOf=_a;function lC(e,t){return lC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lC(e,t)}function Q_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lC(e,t)}function n0e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function r0e(e,t){e.classList?e.classList.add(t):n0e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o0e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GR(e.className,t):e.setAttribute("class",GR(e.className&&e.className.baseVal||"",t))}const qR={disabled:!1},Rg=M.createContext(null);var Pj=function(t){return t.scrollTop},_f="unmounted",Tl="exited",kl="entering",eu="entered",cC="exiting",ss=function(e){Q_(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Tl,a.appearStatus=kl):l=eu:r.unmountOnExit||r.mountOnEnter?l=_f:l=Tl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===_f?{status:Tl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==kl&&i!==eu&&(a=kl):(i===kl||i===eu)&&(a=cC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this);i&&Pj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tl&&this.setState({status:_f})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Cf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||qR.disabled){this.safeSetState({status:eu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:kl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:eu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Cf.findDOMNode(this);if(!a||qR.disabled){this.safeSetState({status:Tl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Tl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===_f)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Rg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ss.contextType=Rg;ss.propTypes={};function Gc(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc};ss.UNMOUNTED=_f;ss.EXITED=Tl;ss.ENTERING=kl;ss.ENTERED=eu;ss.EXITING=cC;const y0=ss;var a0e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return r0e(t,r)})},cx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return o0e(t,r)})},e2=function(e){Q_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Hu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function p0e(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const h0e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],m0e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(r,p0e,n)},v0e=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g0e=de("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y0e=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Sj.standard,TransitionComponent:C=y0}=r,_=Oe(r,h0e),$=T({},r,{orientation:g,collapsedSize:s}),E=m0e($),k=nr(),I=S.useRef(),R=S.useRef(null),F=S.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",B=G?"width":"height";S.useEffect(()=>()=>{clearTimeout(I.current)},[]);const z=S.useRef(null),Y=sn(n,z),Q=V=>Z=>{if(V){const re=z.current;Z===void 0?V(re):V(re,Z)}},H=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((V,Z)=>{R.current&&G&&(R.current.style.position="absolute"),V.style[B]=U,f&&f(V,Z)}),X=Q((V,Z)=>{const re=H();R.current&&G&&(R.current.style.position="");const{duration:le,easing:xe}=Hu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const fe=k.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${fe}ms`,F.current=fe}else V.style.transitionDuration=typeof le=="string"?le:`${le}ms`;V.style[B]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,Z)}),L=Q((V,Z)=>{V.style[B]="auto",p&&p(V,Z)}),K=Q(V=>{V.style[B]=`${H()}px`,b&&b(V)}),q=Q(v),D=Q(V=>{const Z=H(),{duration:re,easing:le}=Hu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[B]=U,V.style.transitionTimingFunction=le,x&&x(V)}),N=V=>{w==="auto"&&(I.current=setTimeout(V,F.current||0)),o&&o(z.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:z,timeout:w==="auto"?null:w},_,{children:(V,Z)=>O.jsx(v0e,T({as:l,className:Ie(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[V]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},$,{state:V}),ref:Y},Z,{children:O.jsx(g0e,{ownerState:T({},$,{state:V}),className:E.wrapper,ref:R,children:O.jsx(y0e,{ownerState:T({},$,{state:V}),className:E.wrapperInner,children:a})})}))}))});kj.muiSupportAuto=!0;const b0e=kj;function x0e(e){return et("MuiPaper",e)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const w0e=["className","component","elevation","square","variant"],C0e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xe(a,x0e,o)},$0e=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",HR(t.elevation))}, ${Tt("#fff",HR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),S0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,w0e),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=C0e(u);return O.jsx($0e,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),ls=S0e,_0e=S.createContext({}),Oj=_0e;function E0e(e){return et("MuiAccordion",e)}const P0e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),zm=P0e,T0e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],k0e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},E0e,t)},O0e=de(ls,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${zm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${zm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${zm.expanded}`]:{margin:"16px 0"}})),R0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=b0e,TransitionProps:m}=r,b=Oe(r,T0e),[v,x]=Cr({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=S.Children.toArray(o),C=S.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),$=k0e(_);return O.jsxs(O0e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Oj.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:$.region,children:w})}))]}))}),D0e=R0e;function M0e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const I0e=["className"],A0e=e=>{const{classes:t}=e;return Xe({root:["root"]},M0e,t)},N0e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),j0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,I0e),i=r,s=A0e(i);return O.jsx(N0e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),L0e=j0e;function F0e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=S.useState(!1),p=Ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),S.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const z0e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=z0e,B0e=["center","classes","className"];let b0=e=>e,YR,KR,JR,ZR;const uC=550,V0e=80,U0e=F_(YR||(YR=b0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),W0e=F_(KR||(KR=b0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),H0e=F_(JR||(JR=b0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),G0e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),q0e=de(F0e,{name:"MuiTouchRipple",slot:"Ripple"})(ZR||(ZR=b0` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),da.rippleVisible,U0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,W0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,H0e,({theme:e})=>e.transitions.easing.easeInOut),Y0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,B0e),[l,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=S.useRef(!1),m=S.useRef(0),b=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=S.useCallback(C=>{const{pulsate:_,rippleX:$,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(q0e,{classes:{ripple:Ie(a.ripple,da.ripple),rippleVisible:Ie(a.rippleVisible,da.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,da.ripplePulsate),child:Ie(a.child,da.child),childLeaving:Ie(a.childLeaving,da.childLeaving),childPulsate:Ie(a.childPulsate,da.childPulsate)},timeout:uC,pulsate:_,rippleX:$,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,B;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:z,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(z-F.left),G=Math.round(Y-F.top)}if(k)B=Math.sqrt((2*F.width**2+F.height**2)/3),B%2===0&&(B+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;B=Math.sqrt(z**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},V0e)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},[o,x]),y=S.useCallback(()=>{g({},{pulsate:!0})},[g]),w=S.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c($=>$.length>0?$.slice(1):$),f.current=_},[]);return S.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(G0e,T({className:Ie(da.root,a.root,i),ref:v},s,{children:O.jsx(r2,{component:null,exit:!0,children:l})}))}),K0e=Y0e;function J0e(e){return et("MuiButtonBase",e)}const Z0e=Qe("MuiButtonBase",["root","disabled","focusVisible"]),X0e=Z0e,Q0e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],e1e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},J0e,o);return n&&r&&(i.root+=` ${r}`),i},t1e=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${X0e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),n1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:$,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:B,type:z}=r,Y=Oe(r,Q0e),Q=S.useRef(null),H=S.useRef(null),J=sn(H,B),{isFocusVisibleRef:X,onFocus:L,onBlur:K,ref:q}=Ay(),[D,N]=S.useState(!1);c&&D&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,Z]=S.useState(!1);S.useEffect(()=>{Z(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{D&&p&&!u&&V&&H.current.pulsate()},[u,p,D,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&H.current&&H.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",x),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),ve=le("start",F),Be=le("stop",I),Ue=le("stop",R),ze=le("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),be=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=S.useRef(!1),Ce=mt(Te=>{p&&!we.current&&D&&H.current&&Te.key===" "&&(we.current=!0,H.current.stop(Te,()=>{H.current.start(Te)})),Te.target===Te.currentTarget&&be()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&be()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),qe=mt(Te=>{p&&Te.key===" "&&H.current&&D&&!Te.defaultPrevented&&(we.current=!1,H.current.stop(Te,()=>{H.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(Y.href||Y.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=z===void 0?"button":z,Ae.disabled=c):(!Y.href&&!Y.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=sn(n,q,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=e1e(Fe);return O.jsxs(t1e,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:qe,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:U,type:z},Ae,Y,{children:[i,re?O.jsx(K0e,T({ref:J,center:a},G)):null]}))}),Ca=n1e;function r1e(e){return et("MuiAccordionSummary",e)}const o1e=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vu=o1e,a1e=["children","className","expandIcon","focusVisibleClassName","onClick"],i1e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},r1e,t)},s1e=de(Ca,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vu.expanded}`]:{minHeight:64}})}),l1e=de("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{margin:"20px 0"}})),c1e=de("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{transform:"rotate(180deg)"}})),u1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,a1e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(Oj),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=i1e(v);return O.jsxs(s1e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ie(x.root,a),focusVisibleClassName:Ie(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(l1e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(c1e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),d1e=u1e;function f1e(e){return et("MuiIconButton",e)}const p1e=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h1e=p1e,m1e=["edge","children","className","color","disabled","disableFocusRipple","size"],v1e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(a)}`]};return Xe(i,f1e,t)},g1e=de(Ca,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h1e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),y1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,m1e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=v1e(p);return O.jsx(g1e,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),tr=y1e,b1e=rr(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function x1e(e){return et("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const w1e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],C1e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xe(s,x1e,i)},$1e=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),XR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},S1e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_1e=e=>S1e[e]||e,E1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=_1e(r.color),a=q_(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=XR}=a,b=Oe(a,w1e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||XR[p])||"span",g=C1e(v);return O.jsx($1e,T({as:x,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),gn=E1e;function P1e(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1e=["className","color","enableColorOnDark","position"],k1e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Xe(o,P1e,r)},Bm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O1e=de(ls,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),R1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,T1e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=k1e(c);return O.jsx(O1e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),D1e=R1e;function yi(e){return typeof e=="string"}function Ef(e,t,n){return e===void 0||yi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function M1e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const I1e={disableDefaultClasses:!1},A1e=S.createContext(I1e);function N1e(e){const{disableDefaultClasses:t}=S.useContext(A1e);return n=>t?"":e(n)}function Hf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function al(e,t,n){return typeof e=="function"?e(t,n):e}function QR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function j1e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ie(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Hf(T({},o,r)),s=QR(r),l=QR(o),c=t(i),u=Ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const L1e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,L1e),s=a?{}:al(r,o),{props:l,internalRef:c}=j1e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ef(n,T({},l,{ref:u}),o)}function F1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=k_({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const z1e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B1e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V1e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function U1e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V1e(e))}function W1e(e){const t=[],n=[];return Array.from(e.querySelectorAll(z1e)).forEach((r,o)=>{const a=B1e(r);a===-1||!U1e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function H1e(){return!0}function Rj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=W1e,isEnabled:i=H1e,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(!1),b=S.useRef(null),v=sn(t.ref,b),x=S.useRef(null);S.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const $=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval($),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs(S.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var $o="top",$a="bottom",Sa="right",So="left",o2="auto",ch=[$o,$a,Sa,So],Gu="start",_p="end",G1e="clippingParents",Dj="viewport",of="popper",q1e="reference",eD=ch.reduce(function(e,t){return e.concat([t+"-"+Gu,t+"-"+_p])},[]),Mj=[].concat(ch,[o2]).reduce(function(e,t){return e.concat([t,t+"-"+Gu,t+"-"+_p])},[]),Y1e="beforeRead",K1e="read",J1e="afterRead",Z1e="beforeMain",X1e="main",Q1e="afterMain",ebe="beforeWrite",tbe="write",nbe="afterWrite",rbe=[Y1e,K1e,J1e,Z1e,X1e,Q1e,ebe,tbe,nbe];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rc(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function va(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a2(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function obe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!va(a)||!Si(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function abe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!va(o)||!Si(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const ibe={name:"applyStyles",enabled:!0,phase:"write",fn:obe,effect:abe,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Vl=Math.max,Dg=Math.min,qu=Math.round;function dC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ij(){return!/^((?!chrome|android).)*safari/i.test(dC())}function Yu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&va(e)&&(o=e.offsetWidth>0&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var i=rc(e)?Yo(e):window,s=i.visualViewport,l=!Ij()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function i2(e){var t=Yu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Aj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return Yo(e).getComputedStyle(e)}function sbe(e){return["table","td","th"].indexOf(Si(e))>=0}function il(e){return((rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function x0(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(a2(e)?e.host:null)||il(e)}function tD(e){return!va(e)||ts(e).position==="fixed"?null:e.offsetParent}function lbe(e){var t=/firefox/i.test(dC()),n=/Trident/i.test(dC());if(n&&va(e)){var r=ts(e);if(r.position==="fixed")return null}var o=x0(e);for(a2(o)&&(o=o.host);va(o)&&["html","body"].indexOf(Si(o))<0;){var a=ts(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function uh(e){for(var t=Yo(e),n=tD(e);n&&sbe(n)&&ts(n).position==="static";)n=tD(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||lbe(e)||t}function s2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gf(e,t,n){return Vl(e,Dg(t,n))}function cbe(e,t,n){var r=Gf(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function jj(e){return Object.assign({},Nj(),e)}function Lj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ube=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jj(typeof t!="number"?t:Lj(t,ch))};function dbe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=bi(n.placement),l=s2(s),c=[So,Sa].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=ube(o.padding,n),p=i2(a),m=l==="y"?$o:So,b=l==="y"?$a:Sa,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=uh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],$=y/2-p[u]/2+w,E=Gf(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function fbe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Aj(t.elements.popper,o)&&(t.elements.arrow=o))}const pbe={name:"arrow",enabled:!0,phase:"main",fn:dbe,effect:fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var hbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mbe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qu(n*o)/o||0,y:qu(r*o)/o||0}}function nD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=So,C=$o,_=window;if(c){var $=uh(n),E="clientHeight",k="clientWidth";if($===Yo(n)&&($=il(n),ts($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,o===$o||(o===So||o===Sa)&&a===_p){C=$a;var I=f&&$===_&&_.visualViewport?_.visualViewport.height:$[E];v-=I-r.height,v*=l?1:-1}if(o===So||(o===$o||o===$a)&&a===_p){w=Sa;var R=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&hbe),U=u===!0?mbe({x:m,y:v},Yo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function vbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:bi(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vbe,data:{}};var Vm={passive:!0};function ybe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Yo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Vm)}),s&&l.addEventListener("resize",n.update,Vm),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Vm)}),s&&l.removeEventListener("resize",n.update,Vm)}}const bbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ybe,data:{}};var xbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Av(e){return e.replace(/left|right|bottom|top/g,function(t){return xbe[t]})}var wbe={start:"end",end:"start"};function rD(e){return e.replace(/start|end/g,function(t){return wbe[t]})}function l2(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c2(e){return Yu(il(e)).left+l2(e).scrollLeft}function Cbe(e,t){var n=Yo(e),r=il(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ij();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+c2(e),y:l}}function $be(e){var t,n=il(e),r=l2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+c2(e),l=-r.scrollTop;return ts(o||n).direction==="rtl"&&(s+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function u2(e){var t=ts(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Fj(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:va(e)&&u2(e)?e:Fj(x0(e))}function qf(e,t){var n;t===void 0&&(t=[]);var r=Fj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),i=o?[a].concat(a.visualViewport||[],u2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qf(x0(i)))}function fC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sbe(e,t){var n=Yu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function oD(e,t,n){return t===Dj?fC(Cbe(e,n)):rc(t)?Sbe(t,n):fC($be(il(e)))}function _be(e){var t=qf(x0(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&va(e)?uh(e):e;return rc(r)?t.filter(function(o){return rc(o)&&Aj(o,r)&&Si(o)!=="body"}):[]}function Ebe(e,t,n,r){var o=t==="clippingParents"?_be(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=oD(e,c,r);return l.top=Vl(u.top,l.top),l.right=Dg(u.right,l.right),l.bottom=Dg(u.bottom,l.bottom),l.left=Vl(u.left,l.left),l},oD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zj(e){var t=e.reference,n=e.element,r=e.placement,o=r?bi(r):null,a=r?Ku(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case $o:l={x:i,y:t.y-n.height};break;case $a:l={x:i,y:t.y+t.height};break;case Sa:l={x:t.x+t.width,y:s};break;case So:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?s2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Gu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _p:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?G1e:s,c=n.rootBoundary,u=c===void 0?Dj:c,f=n.elementContext,p=f===void 0?of:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=jj(typeof x!="number"?x:Lj(x,ch)),y=p===of?q1e:of,w=e.rects.popper,C=e.elements[b?y:p],_=Ebe(rc(C)?C:C.contextElement||il(e.elements.popper),l,u,i),$=Yu(e.elements.reference),E=zj({reference:$,element:w,strategy:"absolute",placement:o}),k=fC(Object.assign({},w,E)),I=p===of?k:$,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===of&&F){var U=F[o];Object.keys(R).forEach(function(G){var B=[Sa,$a].indexOf(G)>=0?1:-1,z=[$o,$a].indexOf(G)>=0?"y":"x";R[G]+=U[z]*B})}return R}function Pbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Mj:l,u=Ku(r),f=u?s?eD:eD.filter(function(b){return Ku(b)===u}):ch,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Ep(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[bi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Tbe(e){if(bi(e)===o2)return[];var t=Av(e);return[rD(e),t,rD(t)]}function kbe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=bi(x),y=g===x,w=l||(y||!b?[Av(x)]:Tbe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(bi(N)===o2?Pbe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,z=B?"width":"height",Y=Ep(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=B?G?Sa:So:G?$a:$o;_[z]>$[z]&&(Q=Av(Q));var H=Av(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[H]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,L=function(N){var V=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return I=V,"break"},K=X;K>0;K--){var q=L(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Obe={name:"flip",enabled:!0,phase:"main",fn:kbe,requiresIfExists:["offset"],data:{_skip:!1}};function aD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iD(e){return[$o,Sa,$a,So].some(function(t){return e[t]>=0})}function Rbe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ep(t,{elementContext:"reference"}),s=Ep(t,{altBoundary:!0}),l=aD(i,r),c=aD(s,o,a),u=iD(l),f=iD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Dbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rbe};function Mbe(e,t,n){var r=bi(e),o=[So,$o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[So,Sa].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function Ibe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=Mj.reduce(function(u,f){return u[f]=Mbe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Abe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ibe};function Nbe(e){var t=e.state,n=e.name;t.modifiersData[n]=zj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jbe={name:"popperOffsets",enabled:!0,phase:"read",fn:Nbe,data:{}};function Lbe(e){return e==="x"?"y":"x"}function Fbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Ep(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=bi(t.placement),y=Ku(t.placement),w=!y,C=s2(g),_=Lbe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if($){if(a){var G,B=C==="y"?$o:So,z=C==="y"?$a:Sa,Y=C==="y"?"height":"width",Q=$[C],H=Q+x[B],J=Q-x[z],X=m?-k[Y]/2:0,L=y===Gu?E[Y]:k[Y],K=y===Gu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?i2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),V=N[B],Z=N[z],re=Gf(0,E[Y],D[Y]),le=w?E[Y]/2-X-re-V-R.mainAxis:L-re-V-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,fe=t.elements.arrow&&uh(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(G=F==null?void 0:F[C])!=null?G:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=Gf(m?Dg(H,_e):H,Q,m?Vl(J,ve):J);$[C]=Be,U[C]=Be-Q}if(s){var Ue,ze=C==="x"?$o:So,He=C==="x"?$a:Sa,be=$[_],we=_==="y"?"height":"width",Ce=be+x[ze],qe=be-x[He],rt=[$o,So].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-E[we]-k[we]-Ae+R.altAxis,Fe=rt?be+E[we]+k[we]-Ae-R.altAxis:qe,Pe=m&&rt?cbe(Le,be,Fe):Gf(m?Le:Ce,be,m?Fe:qe);$[_]=Pe,U[_]=Pe-be}t.modifiersData[r]=U}}const zbe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fbe,requiresIfExists:["offset"]};function Bbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vbe(e){return e===Yo(e)||!va(e)?l2(e):Bbe(e)}function Ube(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wbe(e,t,n){n===void 0&&(n=!1);var r=va(t),o=va(t)&&Ube(t),a=il(t),i=Yu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||u2(a))&&(s=Vbe(t)),va(t)?(l=Yu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=c2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Hbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Gbe(e){var t=Hbe(e);return rbe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ybe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sD={placement:"bottom",modifiers:[],strategy:"absolute"};function lD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(Xbe(o)||document.body)},[o,a]),Kn(()=>{if(i&&!a)return wp(n,i),()=>{wp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return O.jsx(S.Fragment,{children:r})}return O.jsx(S.Fragment,{children:i&&nd.createPortal(r,i)})});function Qbe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const exe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],txe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nxe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pC(e){return typeof e=="function"?e():e}function rxe(e){return e.nodeType!==void 0}const oxe=()=>Xe({root:["root"]},N1e(Qbe)),axe={},ixe=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,exe),g=S.useRef(null),y=sn(g,n),w=S.useRef(null),C=sn(w,p),_=S.useRef(C);Kn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>w.current,[]);const $=nxe(u,i),[E,k]=S.useState($),[I,R]=S.useState(pC(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&R(pC(o))},[o]),Kn(()=>{if(!I||!c)return;const z=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=Zbe(I,g.current,T({placement:$},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,$]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=oxe(),G=(r=b.root)!=null?r:"div",B=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},B,{children:typeof a=="function"?a(F):a}))}),sxe=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=axe,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,txe),[w,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=pC(r);E=R&&rxe(R)?zn(R).body:zn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(Bj,{disablePortal:s,container:E,children:O.jsx(ixe,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function lxe(e){const t=zn(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cD(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function uD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!cxe(i);s&&l&&Yf(i,o)})}function ux(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uxe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lxe(r)){const i=K5(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cD(r)+i}px`;const s=zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cD(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=zn(r).body;else{const i=r.parentElement,s=$i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function dxe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fxe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Yf(t.modalRef,!1);const o=dxe(n);uD(n,t.mount,t.modalRef,o,!0);const a=ux(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ux(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=uxe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ux(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Yf(t.modalRef,n),uD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Yf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pxe(e){return typeof e=="function"?e():e}function hxe(e){return e?e.props.hasOwnProperty("in"):!1}const mxe=new fxe;function vxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mxe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=S.useRef({}),m=S.useRef(null),b=S.useRef(null),v=sn(b,f),[x,g]=S.useState(!u),y=hxe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>zn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=pxe(t)||C().body;o.add(_(),Y),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?$():b.current&&Yf(b.current,w))}),R=S.useCallback(()=>{o.remove(_(),w)},[w,o]);S.useEffect(()=>()=>{R()},[R]),S.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var H;(H=Y.onKeyDown)==null||H.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var H;(H=Y.onClick)==null||H.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Hf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const H=T({},Q,Y);return T({role:"presentation"},H,{onKeyDown:F(H),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Eg(Y,l==null?void 0:l.props.onEnter),onExited:Eg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const gxe=2;function Vj(e,t){return e-t}function af(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function dD(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Cxe=e=>e;let Gm;function dx(){return Gm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Gm=CSS.supports("touch-action","none"):Gm=!0),Gm}function $xe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=Cxe,step:v=1,tabIndex:x,value:g}=e,y=S.useRef(),[w,C]=S.useState(-1),[_,$]=S.useState(-1),[E,k]=S.useState(!1),I=S.useRef(0),[R,F]=Cr({controlled:g,default:n??l,name:"Slider"}),U=u&&((Ae,Le,Fe)=>{const Pe=Ae.nativeEvent||Ae,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:Le,name:c}}),u(Te,Le,Fe)}),G=Array.isArray(R);let B=G?R.slice().sort(Vj):[R];B=B.map(Ae=>af(Ae,l,s));const z=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],Y=z.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:H,onFocus:J,ref:X}=Ay(),[L,K]=S.useState(-1),q=S.useRef(),D=sn(X,q),N=sn(m,D),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&K(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},Z=Ae=>Le=>{var Fe;H(Le),Q.current===!1&&K(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Kn(()=>{if(r&&q.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&w!==-1&&C(-1),r&&L!==-1&&K(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=B[Pe],it=Y.indexOf(Te);let ct=Le.target.valueAsNumber;if(z&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:Fe}=q,{width:Pe,height:Te,bottom:it,left:ct}=Fe.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Ae.y)/Te:gt=(Ae.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Ne;if(Ne=yxe(gt,l,s),v)Ne=xxe(Ne,v,l);else{const te=dD(Y,Ne);Ne=Y[te]}Ne=af(Ne,l,s);let ne=0;if(G){Le?ne=le.current:ne=dD(B,Ne),o&&(Ne=af(Ne,B[ne-1]||-1/0,B[ne+1]||1/0));const te=Ne;Ne=fD({values:B,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=Um(Ae,y);if(!Le)return;if(I.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});Wm({sliderRef:q,activeIndex:Pe,setActive:C}),F(Fe),!E&&I.current>gxe&&k(!0),U&&!Hm(Fe,R)&&U(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=Um(Ae,y);if(k(!1),!Le)return;const{newValue:Fe}=fe({finger:Le,move:!0});C(-1),Ae.type==="touchend"&&$(-1),f&&f(Ae,Fe),y.current=void 0,ve()}),_e=mt(Ae=>{if(r)return;dx()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=Um(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});Wm({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!Hm(Te,R)&&U(Ae,Te,it)}I.current=0;const Pe=zn(q.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=zn(q.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=q;return Ae.addEventListener("touchstart",_e,{passive:dx()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:dx()}),ve()}},[ve,_e]),S.useEffect(()=>{r&&ve()},[r,ve]);const Be=Ae=>Le=>{var Fe;if((Fe=Ae.onMouseDown)==null||Fe.call(Ae,Le),r||Le.defaultPrevented||Le.button!==0)return;Le.preventDefault();const Pe=Um(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});Wm({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!Hm(it,R)&&U(Le,it,ct)}I.current=0;const Te=zn(q.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=Mg(G?B[0]:l,l,s),ze=Mg(B[B.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Hf(Ae),Fe={onMouseDown:Be(Le||{})},Pe=T({},Le,Fe);return T({},Ae,{ref:N},Pe)},be=Ae=>Le=>{var Fe;(Fe=Ae.onMouseOver)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index"));$(Pe)},we=Ae=>Le=>{var Fe;(Fe=Ae.onMouseLeave)==null||Fe.call(Ae,Le),$(-1)};return{active:w,axis:xe,axisProps:wxe,dragging:E,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Hf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:Z(Fe||{})},Te=T({},Fe,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Le=e.step)!=null?Le:void 0,disabled:r},Ae,Te,{style:T({},Wme,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Hf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:z,open:_,range:G,rootRef:N,trackLeap:ze,trackOffset:Ue,values:B,getThumbStyle:Ae=>({pointerEvents:w!==-1&&w!==Ae?"none":void 0})}}const Sxe=["onChange","maxRows","minRows","style","value"];function qm(e){return parseInt(e,10)||0}const _xe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Exe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Sxe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=sn(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),x=S.useCallback(()=>{const C=u.current,$=$i(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=$.boxSizing,I=qm($.paddingBottom)+qm($.paddingTop),R=qm($.borderBottomWidth)+qm($.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const B=G+(k==="border-box"?I+R:0),z=Math.abs(G-F)<=1;return{outerHeightStyle:B,overflow:z}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:E}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=x();pD(C)||v(_=>g(_,C))},[x]);Kn(()=>{const C=()=>{const F=x();pD(F)||nd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let $;const E=ah(_),k=u.current,I=$i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame($),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Kn(()=>{y()}),S.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs(S.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},_xe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function hD(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pxe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=hD(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=hD(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function fx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Oxe(e){const{unstable_isActiveElementInListbox:t=kxe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=Txe,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=me=>{var pe;return(pe=me.label)!=null?pe:me},groupBy:_,handleHomeEndKeys:$=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(me,pe)=>me===pe,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:B,onInputChange:z,onOpen:Y,open:Q,openOnFocus:H=!1,options:J,readOnly:X=!1,selectOnFocus:L=!e.freeSolo,value:K}=e,q=Ya(E);let D=C;D=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),Z=S.useRef(null),re=S.useRef(null),[le,xe]=S.useState(null),[fe,ge]=S.useState(-1),he=o?0:-1,_e=S.useRef(he),[ve,Be]=Cr({controlled:K,default:u,name:c}),[Ue,ze]=Cr({controlled:I,default:"",name:c,state:"inputValue"}),[He,be]=S.useState(!1),we=S.useCallback((me,pe)=>{if(!(F?ve.length!(g&&(F?ve:[ve]).some(pe=>pe!==null&&R(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:D}):[],Te=k_({filteredOptions:Pe,value:ve,inputValue:Ue});S.useEffect(()=>{const me=ve!==Te.value;He&&!me||y&&!me||we(null,ve)},[ve,we,He,Te.value,y]);const it=Ce&&Pe.length>0&&!X,ct=mt(me=>{me===-1?Z.current.focus():le.querySelector(`[data-tag-index="${me}"]`).focus()});S.useEffect(()=>{F&&fe>ve.length-1&&(ge(-1),ct(-1))},[ve,F,fe,ct]);function gt(me,pe){if(!re.current||me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===Pe.length||pe==="previous"&&De===-1)return-1;const nt=re.current.querySelector(`[data-option-index="${De}"]`),lt=b?!1:!nt||nt.disabled||nt.getAttribute("aria-disabled")==="true";if(nt&&!nt.hasAttribute("tabindex")||lt)De+=pe==="next"?1:-1;else return De}}const Ne=mt(({event:me,index:pe,reason:De="auto"})=>{if(_e.current=pe,pe===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${pe}`),B&&B(me,pe===-1?null:Pe[pe],De),!re.current)return;const nt=re.current.querySelector(`[role="option"].${n}-focused`);nt&&(nt.classList.remove(`${n}-focused`),nt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(pe===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${pe}"]`);if(xt&&(xt.classList.add(`${n}-focused`),De==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&De!=="mouse"&&De!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!Fe)return;const xt=gt((()=>{const Nt=Pe.length-1;if(pe==="reset")return he;if(pe==="start")return 0;if(pe==="end")return Nt;const ut=_e.current+pe;return ut<0?ut===-1&&k?-1:v&&_e.current!==-1||Math.abs(pe)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(pe)>1?Nt:0:ut})(),De);if(Ne({index:xt,reason:nt,event:me}),r&&pe!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?D(pe):"",lt=De?D(De):"";return nt===lt};if(_e.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?ve.length===Te.value.length&&Te.value.every((pe,De)=>D(ve[De])===D(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>D(nt)===D(pe)))return!0}return!1},ie=S.useCallback(()=>{if(!Fe||te())return;const me=F?ve[0]:ve;if(Pe.length===0||me==null){ne({diff:"reset"});return}if(re.current){if(me!=null){const pe=Pe[_e.current];if(F&&pe&&fx(ve,nt=>R(pe,nt))!==-1)return;const De=fx(Pe,nt=>R(nt,me));De===-1?ne({diff:"reset"}):Ne({index:De});return}if(_e.current>=Pe.length-1){Ne({index:Pe.length-1});return}Ne({index:_e.current})}},[Pe.length,F?!1:ve,g,ne,Ne,Fe,Ue,F]),$e=mt(me=>{wp(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(qe(!0),Ae(!0),Y&&Y(me))},Ze=(me,pe)=>{Ce&&(qe(!1),G&&G(me,pe))},tt=(me,pe,De,nt)=>{if(F){if(ve.length===pe.length&&ve.every((lt,xt)=>lt===pe[xt]))return}else if(ve===pe)return;U&&U(me,pe,De,nt),Be(pe)},ft=S.useRef(!1),_t=(me,pe,De="selectOption",nt="options")=>{let lt=De,xt=pe;if(F){xt=Array.isArray(ve)?ve.slice():[];const Nt=fx(xt,ut=>R(pe,ut));Nt===-1?xt.push(pe):nt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(me,xt),tt(me,xt,lt,{option:pe}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&Ze(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(me,pe){if(me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===ve.length||pe==="previous"&&De===-1)return-1;const nt=le.querySelector(`[data-tag-index="${De}"]`);if(!nt||!nt.hasAttribute("tabindex")||nt.disabled||nt.getAttribute("aria-disabled")==="true")De+=pe==="next"?1:-1;else return De}}const dt=(me,pe)=>{if(!F)return;Ue===""&&Ze(me,"toggleInput");let De=fe;fe===-1?Ue===""&&pe==="previous"&&(De=ve.length-1):(De+=pe==="next"?1:-1,De<0&&(De=0),De===ve.length&&(De=-1)),De=vt(De,pe),ge(De),ct(De)},Et=me=>{N.current=!0,ze(""),z&&z(me,"","clear"),tt(me,F?[]:null,"clear")},Yt=me=>pe=>{if(me.onKeyDown&&me.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(pe.key)===-1&&(ge(-1),ct(-1)),pe.which!==229))switch(pe.key){case"Home":Fe&&$&&(pe.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":Fe&&$&&(pe.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),ne({diff:-mD,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:mD,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowDown":pe.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowUp":pe.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowLeft":dt(pe,"previous");break;case"ArrowRight":dt(pe,"next");break;case"Enter":if(_e.current!==-1&&Fe){const De=Pe[_e.current],nt=w?w(De):!1;if(pe.preventDefault(),nt)return;_t(pe,De,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Ze(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!X&&Ue===""&&ve.length>0){const De=fe===-1?ve.length-1:fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break;case"Delete":if(F&&!X&&Ue===""&&ve.length>0&&fe!==-1){const De=fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break}},kt=me=>{be(!0),H&&!N.current&&Se(me)},ln=me=>{if(t(re)){Z.current.focus();return}be(!1),V.current=!0,N.current=!1,a&&_e.current!==-1&&Fe?_t(me,Pe[_e.current],"blur"):a&&y&&Ue!==""?_t(me,Ue,"blur","freeSolo"):s&&we(me,ve),Ze(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),z&&z(me,pe,"input")),pe===""?!f&&!F&&tt(me,null,"clear"):Se(me)},Ut=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_e.current!==pe&&Ne({event:me,index:pe,reason:"mouse"})},Kt=me=>{Ne({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},bn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Bn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Ze(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==q&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(Z.current.focus(),L&&V.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),V.current=!1)},ke=me=>{!m&&(Ue===""||!Ce)&&se(me)};let Ee=y&&Ue.length>0;Ee=Ee||(F?ve.length>0:ve!==null);let pt=Pe;return _&&(pt=Pe.reduce((me,pe,De)=>{const nt=_(pe);return me.length>0&&me[me.length-1].group===nt?me[me.length-1].options.push(pe):me.push({key:De,index:De,group:nt,options:[pe]}),me},[])),m&&He&&ln(),{getRootProps:(me={})=>T({"aria-owns":it?`${q}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:se}),getTagProps:({index:me})=>T({key:me,"data-tag-index":me,tabIndex:-1},!X&&{onDelete:Bn(me)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&R(pe,lt)),nt=w?w(pe):!1;return{key:D(pe),tabIndex:-1,role:"option",id:`${q}-option-${me}`,onMouseMove:Ut,onClick:bn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:q,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const Rxe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Dxe=de(sxe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mxe=S.forwardRef(function(t,n){var r;const o=G_(),a=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,Rxe),$=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(Dxe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},E,{ref:n}))}),dh=Mxe;function Ixe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Axe=["className","color","component","disableGutters","disableSticky","inset"],Nxe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Xe(i,Ixe,t)},jxe=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Uj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,Axe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=Nxe(f);return O.jsx(jxe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});Uj.muiSkipListHighlight=!0;const Lxe=Uj,Fxe=rr(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function zxe(e){return et("MuiChip",e)}const Bxe=Qe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=Bxe,Vxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Uxe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,i&&"deletable",i&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(a)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Xe(c,zxe,t)},Wxe=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${je(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${je(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hxe=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function vD(e){return e.key==="Backspace"||e.key==="Delete"}const Gxe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,Vxe),$=S.useRef(null),E=sn($,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&vD(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&vD(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Ca:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),B=Uxe(G),z=U===Ca?T({component:l||"div",focusVisibleClassName:B.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,B.deleteIcon),onClick:k}):O.jsx(Fxe,{className:Ie(B.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(B.avatar,o.props.className)}));let H=null;return f&&S.isValidElement(f)&&(H=S.cloneElement(f,{className:Ie(B.icon,f.props.className)})),O.jsxs(Wxe,T({as:U,className:Ie(B.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},z,_,{children:[Q||H,O.jsx(Hxe,{className:Ie(B.label),ownerState:G,children:p}),Y]}))}),Wj=Gxe;function sl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const qxe=S.createContext(void 0),w0=qxe;function Pi(){return S.useContext(w0)}function Yxe(e){return O.jsx(Yge,T({},e,{defaultTheme:s0,themeId:Ny}))}function gD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ig(e,t=!1){return e&&(gD(e.value)&&e.value!==""||t&&gD(e.defaultValue)&&e.defaultValue!=="")}function Kxe(e){return e.startAdornment}function Jxe(e){return et("MuiInputBase",e)}const Zxe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=Zxe,Xxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],C0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qxe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,Jxe,t)},S0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ewe=O.jsx(Yxe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),twe=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:$=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:B,readOnly:z,renderSuffix:Y,rows:Q,slotProps:H={},slots:J={},startAdornment:X,type:L="text",value:K}=o,q=Oe(o,Xxe),D=y.value!=null?y.value:K,{current:N}=S.useRef(D!=null),V=S.useRef(),Z=S.useCallback(Pe=>{},[]),re=sn(V,w,y.ref,Z),[le,xe]=S.useState(!1),fe=Pi(),ge=sl({props:o,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&p&&le&&(xe(!1),k&&k())},[fe,p,le,k]);const he=fe&&fe.onFilled,_e=fe&&fe.onEmpty,ve=S.useCallback(Pe=>{Ig(Pe)?he&&he():_e&&_e()},[he,_e]);Kn(()=>{N&&ve({value:D})},[D,ve,N]);const Be=Pe=>{if(ge.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),fe&&fe.onFocus?fe.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),fe&&fe.onBlur?fe.onBlur(Pe):xe(!1)},ze=(Pe,...Te)=>{if(!N){const it=Pe.target||V.current;if(it==null)throw new Error(Xs(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),R&&R(Pe)};let be=g,we=y;$&&be==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),be=Exe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!X)},[fe,X]);const qe=T({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:b,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:X,type:L}),rt=Qxe(qe),Ae=J.root||c.Root||S0,Le=H.root||u.root||{},Fe=J.input||c.Input||_0;return we=T({},we,(r=H.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&ewe,O.jsxs(Ae,T({},Le,!yi(Ae)&&{ownerState:T({},qe,Le.ownerState)},{ref:n,onClick:He},q,{className:Ie(rt.root,Le.className,l,z&&"MuiInputBase-readOnly"),children:[X,O.jsx(w0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:qe,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:x,onAnimationStart:Ce,name:E,placeholder:B,readOnly:z,required:ge.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:L},we,!yi(Fe)&&{as:be,ownerState:T({},qe,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,z&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,Y?Y(T({},ge,{startAdornment:X})):null]}))]})}),d2=twe;function nwe(e){return et("MuiInput",e)}const rwe=T({},Fo,Qe("MuiInput",["root","underline","input"])),Ds=rwe;function owe(e){return et("MuiOutlinedInput",e)}const awe=T({},Fo,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),ii=awe;function iwe(e){return et("MuiFilledInput",e)}const swe=T({},Fo,Qe("MuiFilledInput",["root","underline","input"])),zo=swe,Hj=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function lwe(e){return et("MuiAutocomplete",e)}const cwe=Qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=cwe;var yD,bD;const uwe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],dwe=["ref"],fwe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(f,lwe,t)},pwe=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ds.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ds.root}.${Fo.sizeSmall}`]:{[`& .${Ds.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ii.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ii.root}.${Fo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${zo.root}.${Fo.sizeSmall}`]:{paddingBottom:1,[`& .${zo.input}`]:{padding:"2.5px 4px"}},[`& .${Fo.hiddenLabel}`]:{paddingTop:8},[`& .${zo.root}.${Fo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zo.root}.${Fo.hiddenLabel}.${Fo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),hwe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),mwe=de(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vwe=de(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gwe=de(dh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),ywe=de(ls,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),bwe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),xwe=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),wwe=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Cwe=de(Lxe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$we=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),Swe=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=yD||(yD=O.jsx(b1e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:$=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:B=!1,getLimitTagsText:z=De=>`+${De}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:L="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:le=ls,PopperComponent:xe=dh,popupIcon:fe=bD||(bD=O.jsx(Hj,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,uwe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:qe,getPopupIndicatorProps:rt,getClearProps:Ae,getTagProps:Le,getListboxProps:Fe,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Ne,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:$e,inputValue:Se,groupedOptions:Ze}=Oxe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!E&&it&&!ge,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=K??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,dwe),kt=sn(Et,vt),Vt=Y||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:B,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=fwe(Ut);let bn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:E},Le(nt));Be?bn=Be(Te,De,Ut):bn=Te.map((nt,lt)=>O.jsx(Wj,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(X>-1&&Array.isArray(bn)){const De=bn.length-X;!ne&&De>0&&(bn=bn.splice(0,X),bn.push(O.jsx("span",{className:Kt.tag,children:z(De)},bn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(Cwe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx($we,{className:Kt.groupUl,ownerState:Ut,children:De.children})]},De.key)),ue=ve||((De,nt)=>O.jsx("li",T({},De,{children:Vt(nt)}))),ke=(De,nt)=>{const lt=Pe({option:De,index:nt});return ue(T({},lt,{className:Kt.option}),De,{selected:lt["aria-selected"],index:nt,inputValue:Se},Ut)},Ee=(r=He.clearIndicator)!=null?r:w.clearIndicator,pt=(o=He.paper)!=null?o:w.paper,me=(a=He.popper)!=null?a:w.popper,pe=(i=He.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs(S.Fragment,{children:[O.jsx(pwe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:E,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:qe(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:bn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(hwe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(mwe,T({},Ae(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ie(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(vwe,T({},rt(),{disabled:E,"aria-label":Ne?y:re,title:Ne?y:re,ownerState:Ut},pe,{className:Ie(Kt.popupIndicator,pe==null?void 0:pe.className),children:fe})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ge},Ce())})})),ie?O.jsx(gwe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Ne},me,{className:Ie(Kt.popper,me==null?void 0:me.className),children:O.jsxs(ywe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[q&&Ze.length===0?O.jsx(bwe,{className:Kt.loading,ownerState:Ut,children:D}):null,Ze.length===0&&!G&&!q?O.jsx(xwe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Ze.length>0?O.jsx(wwe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Ze.map((De,nt)=>Q?se({key:De.key,group:De.group,children:De.options.map((lt,xt)=>ke(lt,De.index+xt))}):ke(De,nt))})):null]}))})):null]})}),_we=Swe,Ewe=rr(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Pwe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Twe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],kwe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Pwe,t)},Owe=de("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Rwe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Dwe=de(Ewe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Mwe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const Iwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,Twe);let b=null;const v=Mwe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=kwe(y);return g?b=O.jsx(Rwe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(Dwe,{ownerState:y,className:w.fallback}),O.jsx(Owe,T({as:s,ownerState:y,className:Ie(w.root,i),ref:n},m,{children:b}))}),Gj=Iwe,Awe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Nwe={entering:{opacity:1},entered:{opacity:1}},jwe=S.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=y0}=t,w=Oe(t,Awe),C=S.useRef(null),_=sn(C,s.ref,n),$=B=>z=>{if(B){const Y=C.current;z===void 0?B(Y):B(Y,z)}},E=$(p),k=$((B,z)=>{Tj(B);const Y=Hu({style:x,timeout:g,easing:l},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",Y),B.style.transition=r.transitions.create("opacity",Y),u&&u(B,z)}),I=$(f),R=$(v),F=$(B=>{const z=Hu({style:x,timeout:g,easing:l},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",z),B.style.transition=r.transitions.create("opacity",z),m&&m(B)}),U=$(b),G=B=>{a&&a(C.current,B)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(B,z)=>S.cloneElement(s,T({style:T({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},Nwe[B],x,s.props.style),ref:_},z))}))}),Cd=jwe;function Lwe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const Fwe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zwe=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},Lwe,t)},Bwe=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vwe=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=Cd,transitionDuration:g}=i,y=Oe(i,Fwe),w=T({},i,{component:c,invisible:p}),C=zwe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(Bwe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ie(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),qj=Vwe;function Uwe(e){return et("MuiBadge",e)}const Wwe=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),$s=Wwe,Hwe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],px=10,hx=4,Gwe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Xe(s,Uwe,i)},qwe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ywe=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:px*2,lineHeight:1,padding:"0 6px",height:px*2,borderRadius:px,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:hx,height:hx*2,minWidth:hx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Kwe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:$,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,Hwe),{badgeContent:R,invisible:F,max:U,displayValue:G}=F1e({max:w,invisible:y,badgeContent:C,showZero:E}),B=k_({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),z=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:H=u,variant:J=k}=z?B:c,X=J!=="dot"?G:void 0,L=T({},c,{badgeContent:R,invisible:z,max:U,displayValue:X,showZero:E,anchorOrigin:H,color:Y,overlap:Q,variant:J}),K=Gwe(L),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:qwe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:Ywe,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:V,ownerState:L,className:Ie(K.badge,V==null?void 0:V.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),Yj=Kwe;function Jwe(e){return et("MuiButton",e)}const Zwe=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ym=Zwe,Xwe=S.createContext({}),Qwe=Xwe,eCe=S.createContext(void 0),tCe=eCe,nCe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rCe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${je(t)}`,`size${je(o)}`,`${a}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Xe(s,Jwe,i);return T({},i,l)},Kj=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oCe=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ym.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ym.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ym.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ym.disabled}`]:{boxShadow:"none"}}),aCe=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kj(e))),iCe=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kj(e))),sCe=S.forwardRef(function(t,n){const r=S.useContext(Qwe),o=S.useContext(tCe),a=O_(r,t),i=Ke({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,nCe),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=rCe($),k=y&&O.jsx(aCe,{className:E.startIcon,ownerState:$,children:y}),I=b&&O.jsx(iCe,{className:E.endIcon,ownerState:$,children:b}),R=o||"";return O.jsxs(oCe,T({ownerState:$,className:Ie(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Uo=sCe;function lCe(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const cCe=["className","raised"],uCe=e=>{const{classes:t}=e;return Xe({root:["root"]},lCe,t)},dCe=de(ls,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),fCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,cCe),s=T({},r,{raised:a}),l=uCe(s);return O.jsx(dCe,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),pCe=fCe;function hCe(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const mCe=["className","component"],vCe=e=>{const{classes:t}=e;return Xe({root:["root"]},hCe,t)},gCe=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),yCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,mCe),s=T({},r,{component:a}),l=vCe(s);return O.jsx(gCe,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),bCe=yCe;function xCe(e){return et("MuiCardHeader",e)}const wCe=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),xD=wCe,CCe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$Ce=e=>{const{classes:t}=e;return Xe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},xCe,t)},SCe=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${xD.title}`]:t.title,[`& .${xD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_Ce=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ECe=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),PCe=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),TCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,CCe),b=T({},r,{component:s,disableTypography:l}),v=$Ce(b);let x=f;x!=null&&x.type!==gn&&!l&&(x=O.jsx(gn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==gn&&!l&&(g=O.jsx(gn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(SCe,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(_Ce,{className:v.avatar,ownerState:b,children:a}),O.jsxs(PCe,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(ECe,{className:v.action,ownerState:b,children:o})]}))}),kCe=TCe;function OCe(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RCe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DCe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Xe(a,OCe,t)},MCe=de(Ca)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ICe=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ACe=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:$,value:E}=t,k=Oe(t,RCe),[I,R]=Cr({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Pi(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},B=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let z=l;F&&typeof z>"u"&&(z=F.disabled);const Y=$==="checkbox"||$==="radio",Q=T({},t,{checked:I,disabled:z,disableFocusRipple:c,edge:u}),H=DCe(Q);return O.jsxs(MCe,T({component:"span",className:Ie(H.root,i),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(ICe,T({autoFocus:r,checked:o,defaultChecked:s,className:H.input,disabled:z,id:Y?p:void 0,name:v,onChange:B,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),f2=ACe,NCe=rr(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jCe=rr(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LCe=rr(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function FCe(e){return et("MuiCheckbox",e)}const zCe=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mx=zCe,BCe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],VCe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Xe(a,FCe,t);return T({},t,i)},UCe=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mx.checked}, &.${mx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),WCe=O.jsx(jCe,{}),HCe=O.jsx(NCe,{}),GCe=O.jsx(LCe,{}),qCe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=WCe,color:s="primary",icon:l=HCe,indeterminate:c=!1,indeterminateIcon:u=GCe,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,BCe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=VCe(g);return O.jsx(UCe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ie(y.root,m)},b,{classes:y}))}),YCe=qCe;function KCe(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const JCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ZCe=e=>{const{open:t,exited:n,classes:r}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},KCe,r)},XCe=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),QCe=de(qj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),e$e=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=QCe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:B}=c,z=Oe(c,JCe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:H,getTransitionProps:J,portalRef:X,isTopModal:L,exited:K,hasTransition:q}=vxe(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=ZCe(D),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),q){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const Z=(r=(o=B==null?void 0:B.root)!=null?o:g.Root)!=null?r:XCe,re=(a=(i=B==null?void 0:B.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,fe=zt({elementType:Z,externalSlotProps:le,externalForwardedProps:z,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ge=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>H(T({},he,{onClick:_e=>{F&&F(_e),he!=null&&he.onClick&&he.onClick(_e)}})),className:Ie(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(Bj,{ref:X,container:v,disablePortal:$,children:O.jsxs(Z,T({},fe,{children:[!I&&u?O.jsx(re,T({},ge)):null,O.jsx(Rj,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:L,open:U,children:S.cloneElement(b,V)})]}))})}),Jj=e$e;function t$e(e){return et("MuiDialog",e)}const n$e=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Kf=n$e,r$e=S.createContext({}),Zj=r$e,o$e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],a$e=de(qj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),i$e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${je(n)}`],paper:["paper",`paperScroll${je(n)}`,`paperWidth${je(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,t$e,t)},s$e=de(Jj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),l$e=de("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${je(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),c$e=de(ls,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${je(n.scroll)}`],t[`paperWidth${je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Kf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),u$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ls,PaperProps:C={},scroll:_="paper",TransitionComponent:$=Cd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,o$e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=i$e(R),U=S.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},B=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},z=Ya(s),Y=S.useMemo(()=>({titleId:z}),[z]);return O.jsx(s$e,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:a$e},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:B,ownerState:R},I,{children:O.jsx($,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(l$e,{className:Ie(F.container),onMouseDown:G,ownerState:R,children:O.jsx(c$e,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":z},C,{className:Ie(F.paper,C.className),ownerState:R,children:O.jsx(Zj.Provider,{value:Y,children:u})}))})}))}))}),E0=u$e;function d$e(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const f$e=["className","disableSpacing"],p$e=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},d$e,t)},h$e=de("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),m$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,f$e),s=T({},r,{disableSpacing:a}),l=p$e(s);return O.jsx(h$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),P0=m$e;function v$e(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function g$e(e){return et("MuiDialogTitle",e)}const y$e=Qe("MuiDialogTitle",["root"]),b$e=y$e,x$e=["className","dividers"],w$e=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},v$e,t)},C$e=de("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${b$e.root} + &`]:{paddingTop:0}})),$$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,x$e),s=T({},r,{dividers:a}),l=w$e(s);return O.jsx(C$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),T0=$$e;function S$e(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const _$e=["children","className"],E$e=e=>{const{classes:t}=e,r=Xe({root:["root"]},S$e,t);return T({},t,r)},P$e=de(gn,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,_$e),i=E$e(a);return O.jsx(P$e,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),p2=T$e,k$e=["className","id"],O$e=e=>{const{classes:t}=e;return Xe({root:["root"]},g$e,t)},R$e=de(gn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),D$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,k$e),s=r,l=O$e(s),{titleId:c=a}=S.useContext(Zj);return O.jsx(R$e,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),h2=D$e;function M$e(e){return et("MuiDivider",e)}const I$e=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wD=I$e,A$e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],N$e=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},M$e,r)},j$e=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),L$e=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,A$e),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=N$e(v);return O.jsx(j$e,T({as:s,className:Ie(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(L$e,{className:x.wrapper,ownerState:v,children:a}):null}))});Xj.muiSkipListHighlight=!0;const CD=Xj,F$e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],z$e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},iwe,t);return T({},t,o)},B$e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${zo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zo.disabled}, .${zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),V$e=de(_0,{name:"MuiFilledInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Qj=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,F$e),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=z$e(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Hr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:B$e,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:V$e;return O.jsx(d2,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});Qj.muiName="Input";const e6=Qj;function U$e(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const W$e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],H$e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Xe(o,U$e,t)},G$e=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),q$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,W$e),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=H$e(y),[C,_]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{if(!Eu(B,["Input","Select"]))return;const z=Eu(B,["Select"])?B.props.input:B;z&&Kxe(z.props)&&(G=!0)}),G}),[$,E]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{Eu(B,["Input","Select"])&&(Ig(B.props,!0)||Ig(B.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=S.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,$,R,f,p,F,b,v,x]);return O.jsx(w0.Provider,{value:U,children:O.jsx(G$e,T({as:s,ownerState:y,className:Ie(w.root,a),ref:n},g,{children:o}))})}),fh=q$e,Y$e=bye({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),K$e=Y$e;function J$e(e){return et("MuiFormControlLabel",e)}const Z$e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pf=Z$e,X$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q$e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,J$e,t)},eSe=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pf.label}`]:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),tSe=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),nSe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,X$e),x=Pi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=sl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=Q$e(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==gn&&!u&&(k=O.jsx(gn,T({component:"span"},E,{className:Ie($.label,E==null?void 0:E.className),children:k}))),O.jsxs(eSe,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,w),y?O.jsxs(K$e,{direction:"row",alignItems:"center",children:[k,O.jsxs(tSe,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),k0=nSe;function rSe(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const oSe=["className","row"],aSe=e=>{const{classes:t,row:n,error:r}=e;return Xe({root:["root",n&&"row",r&&"error"]},rSe,t)},iSe=de("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),sSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,oSe),s=Pi(),l=sl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=aSe(c);return O.jsx(iSe,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),t6=sSe;function lSe(e){return et("MuiFormHelperText",e)}const cSe=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$D=cSe;var SD;const uSe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dSe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,lSe,t)},fSe=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$D.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$D.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),pSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,uSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=dSe(u);return O.jsx(fSe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?SD||(SD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),fr=pSe;function hSe(e){return et("MuiFormLabel",e)}const mSe=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jf=mSe,vSe=["children","className","color","component","disabled","error","filled","focused","required"],gSe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,hSe,t)},ySe=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Jf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Jf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),bSe=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),xSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,vSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gSe(u);return O.jsxs(ySe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(bSe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),m2=xSe,wSe=S.createContext(),_D=wSe;function CSe(e){return et("MuiGrid",e)}const $Se=[0,1,2,3,4,5,6,7,8,9,10],SSe=["column-reverse","column","row-reverse","row"],_Se=["nowrap","wrap-reverse","wrap"],sf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Pp=Qe("MuiGrid",["root","container","item","zeroMinWidth",...$Se.map(e=>`spacing-xs-${e}`),...SSe.map(e=>`direction-xs-${e}`),..._Se.map(e=>`wrap-xs-${e}`),...sf.map(e=>`grid-xs-${e}`),...sf.map(e=>`grid-sm-${e}`),...sf.map(e=>`grid-md-${e}`),...sf.map(e=>`grid-lg-${e}`),...sf.map(e=>`grid-xl-${e}`)]),ESe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ku(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PSe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Bl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${ku(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function TSe({theme:e,ownerState:t}){const n=Bl({values:t.direction,breakpoints:e.breakpoints.values});return ko({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Pp.item}`]={maxWidth:"none"}),o})}function n6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function kSe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingTop:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Pp.item}`]:{paddingTop:0}}})}return o}function OSe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${ku(u)})`,marginLeft:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingLeft:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Pp.item}`]:{paddingLeft:0}}})}return o}function RSe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const DSe=de("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=RSe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),TSe,kSe,OSe,PSe);function MSe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const ISe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=MSe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(f,CSe,t)},ASe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=nr(),a=q_(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,ESe),y=m||b,w=l||b,C=S.useContext(_D),_=u?s||12:C,$={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&($[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},$,{breakpoints:o.keys}),I=ISe(k);return O.jsx(_D.Provider,{value:_,children:O.jsx(DSe,T({ownerState:k,className:Ie(I.root,i),as:c,ref:n},E))})}),en=ASe,NSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hC(e){return`scale(${e}, ${e**2})`}const jSe={entering:{opacity:1,transform:hC(1)},entered:{opacity:1,transform:"none"}},vx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r6=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=y0}=t,g=Oe(t,NSe),y=S.useRef(),w=S.useRef(),C=nr(),_=S.useRef(null),$=sn(_,a.ref,n),E=z=>Y=>{if(z){const Q=_.current;Y===void 0?z(Q):z(Q,Y)}},k=E(u),I=E((z,Y)=>{Tj(z);const{duration:Q,delay:H,easing:J}=Hu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=X):X=Q,z.style.transition=[C.transitions.create("opacity",{duration:X,delay:H}),C.transitions.create("transform",{duration:vx?X:X*.666,delay:H,easing:J})].join(","),l&&l(z,Y)}),R=E(c),F=E(m),U=E(z=>{const{duration:Y,delay:Q,easing:H}=Hu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=J):J=Y,z.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:vx?J:J*.666,delay:vx?Q:Q||J*.333,easing:H})].join(","),z.style.opacity=0,z.style.transform=hC(.75),f&&f(z)}),G=E(p),B=z=>{v==="auto"&&(y.current=setTimeout(z,w.current||0)),r&&r(_.current,z)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:B,timeout:v==="auto"?null:v},g,{children:(z,Y)=>S.cloneElement(a,T({style:T({opacity:0,transform:hC(.75),visibility:z==="exited"&&!s?"hidden":void 0},jSe[z],b,a.props.style),ref:$},Y))}))});r6.muiSupportAuto=!0;const Ag=r6;function LSe(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Kn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const o6=ep["useSyncExternalStore"];function FSe(e,t,n,r,o){const a=S.useCallback(()=>t,[t]),i=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return o6(l,s,i)}function ph(e,t={}){const n=G_(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Y_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(o6!==void 0?FSe:LSe)(l,o,a,i,s)}const zSe=["initialWidth","width"],Ns=["xs","sm","md","lg","xl"],BSe=(e,t,n=!0)=>n?Ns.indexOf(e)<=Ns.indexOf(t):Ns.indexOf(e)n?Ns.indexOf(t)<=Ns.indexOf(e):Ns.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=nr(),l=i.theme||s,c=Y_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,zSe),[m,b]=S.useState(!1);Kn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},WSe=USe;function HSe(e){const{children:t,only:n,width:r}=e,o=nr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${je(o)}`:`${o}${je(a)}`)]};return Xe(r,qSe,t)},JSe=de("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function ZSe(e){const{children:t,className:n,only:r}=e,o=Oe(e,YSe),a=nr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=KSe(s);return O.jsx(JSe,{className:Ie(l.root,n),ownerState:s,children:t})}const XSe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Pn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,XSe);return t==="js"?O.jsx(GSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(ZSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const QSe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],e_e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},nwe,t);return T({},t,o)},t_e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}})}),n_e=de(_0,{name:"MuiInput",slot:"Input",overridesResolver:$0})({}),a6=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,QSe),y=e_e(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Hr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:t_e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:n_e;return O.jsx(d2,T({slots:{root:$,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});a6.muiName="Input";const cs=a6;function r_e(e){return et("MuiInputAdornment",e)}const o_e=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),ED=o_e;var PD;const a_e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],i_e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s_e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,i,r&&"hiddenLabel",a&&`size${je(a)}`]};return Xe(s,r_e,t)},l_e=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i_e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ED.positionStart}&:not(.${ED.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),c_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,a_e),p=Pi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=s_e(b);return O.jsx(w0.Provider,{value:null,children:O.jsx(l_e,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(gn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?PD||(PD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),v2=c_e;function u_e(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d_e=["disableAnimation","margin","shrink","variant","className"],f_e=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,u_e,t);return T({},t,c)},p_e=de(m2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),h_e=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,d_e),l=Pi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=sl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=f_e(f);return O.jsx(p_e,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),i6=h_e,m_e=S.createContext({}),Ki=m_e;function v_e(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const g_e=["children","className","component","dense","disablePadding","subheader"],y_e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},v_e,t)},b_e=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),x_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,g_e),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=y_e(p);return O.jsx(Ki.Provider,{value:f,children:O.jsxs(b_e,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),g2=x_e;function w_e(e){return et("MuiListItem",e)}const C_e=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),tu=C_e,$_e=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),S_e=$_e;function __e(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const E_e=["className"],P_e=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},__e,n)},T_e=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),s6=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,E_e),i=S.useContext(Ki),s=T({},r,{disableGutters:i.disableGutters}),l=P_e(s);return O.jsx(T_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});s6.muiName="ListItemSecondaryAction";const l6=s6,k_e=["className"],O_e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],R_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},D_e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},w_e,r)},M_e=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:R_e})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${S_e.root}`]:{paddingRight:48}},{[`&.${tu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),I_e=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:$={},slots:E={}}=r,k=Oe(r.ContainerProps,k_e),I=Oe(r,O_e),R=S.useContext(Ki),F=S.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=S.useRef(null);Kn(()=>{a&&U.current&&U.current.focus()},[a]);const G=S.Children.toArray(s),B=G.length&&Eu(G[G.length-1],["ListItemSecondaryAction"]),z=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:B,selected:_}),Y=D_e(z),Q=sn(U,n),H=E.root||u.Root||M_e,J=$.root||f.root||{},X=T({className:Ie(Y.root,J.className,l),disabled:v},I);let L=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ie(tu.focusVisible,w),L=Ca),B?(L=!X.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":X.component==="li"&&(X.component="div")),O.jsx(Ki.Provider,{value:F,children:O.jsxs(I_e,T({as:p,className:Ie(Y.container,m),ref:Q,ownerState:z},k,{children:[O.jsx(H,T({},J,!yi(H)&&{as:L,ownerState:T({},z,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(Ki.Provider,{value:F,children:O.jsxs(H,T({},J,{as:L,ref:Q},!yi(H)&&{ownerState:T({},z,J.ownerState)},X,{children:[G,C&&O.jsx(l6,{children:C})]}))})}),c6=A_e;function N_e(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const j_e=["className"],L_e=e=>{const{alignItems:t,classes:n}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},N_e,n)},F_e=de("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),z_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,j_e),i=S.useContext(Ki),s=T({},r,{alignItems:i.alignItems}),l=L_e(s);return O.jsx(F_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),B_e=z_e,V_e=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),TD=V_e;function U_e(e){return et("MuiListItemText",e)}const W_e=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ng=W_e,H_e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],G_e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Xe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},U_e,t)},q_e=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ng.primary}`]:t.primary},{[`& .${Ng.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Y_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,H_e),{dense:m}=S.useContext(Ki);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=G_e(x);return b!=null&&b.type!==gn&&!i&&(b=O.jsx(gn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==gn&&!i&&(v=O.jsx(gn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(q_e,T({className:Ie(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),K_e=Y_e,J_e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function u6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function lf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!u6(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Z_e=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,J_e),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,$=zn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),lf(C,$,c,l,gx);else if(_==="ArrowUp")w.preventDefault(),lf(C,$,c,l,kD);else if(_==="Home")w.preventDefault(),lf(C,null,c,l,gx);else if(_==="End")w.preventDefault(),lf(C,null,c,l,kD);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=$&&!E.repeating&&u6($,E);E.previousKeyMatched&&(R||lf(C,$,!1,l,gx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;S.Children.forEach(i,(w,C)=>{if(!S.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=S.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),S.cloneElement(w,_)}return w});return O.jsx(g2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),y2=Z_e;function X_e(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const Q_e=["onEntering"],e2e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],t2e=["slotProps"];function OD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function DD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function yx(e){return typeof e=="function"?e():e}const n2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},X_e,t)},r2e=de(Jj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d6=de(ls,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o2e=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:$=Ag,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Q_e),F=Oe(i,e2e),U=(r=C==null?void 0:C.paper)!=null?r:y,G=S.useRef(),B=sn(G,U.ref),z=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:$,transitionDuration:E,TransitionProps:R}),Y=n2e(z),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=yx(l),ve=(he&&he.nodeType===1?he:zn(G.current).body).getBoundingClientRect();return{top:ve.top+OD(ve,c.vertical),left:ve.left+RD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),H=S.useCallback(he=>({vertical:OD(he,_.vertical),horizontal:RD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=H(_e);if(f==="none")return{top:null,left:null,transformOrigin:DD(ve)};const Be=Q();let Ue=Be.top-ve.vertical,ze=Be.left-ve.horizontal;const He=Ue+_e.height,be=ze+_e.width,we=$i(yx(l)),Ce=we.innerHeight-x,qe=we.innerWidth-x;if(x!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(x!==null&&zeqe){const rt=be-qe;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:DD(ve)}},[l,f,Q,H,x]),[X,L]=S.useState(g),K=S.useCallback(()=>{const he=G.current;if(!he)return;const _e=J(he);_e.top!==null&&(he.style.top=_e.top),_e.left!==null&&(he.style.left=_e.left),he.style.transformOrigin=_e.transformOrigin,L(!0)},[J]);S.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(he,_e)=>{k&&k(he,_e),K()},D=()=>{L(!1)};S.useEffect(()=>{g&&K()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),S.useEffect(()=>{if(!g)return;const he=ah(()=>{K()}),_e=$i(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,K]);let N=E;E==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?zn(yx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:r2e,re=(a=w==null?void 0:w.paper)!=null?a:d6,le=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:B},ownerState:z,className:Ie(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:z,className:Ie(Y.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,t2e);return O.jsx(Z,T({},ge,!yi(Z)&&{slotProps:fe,disableScrollLock:I},{children:O.jsx($,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},le,{children:p}))}))}))}),a2e=o2e;function i2e(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const s2e=["onEntering"],l2e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],c2e={vertical:"top",horizontal:"right"},u2e={vertical:"top",horizontal:"left"},d2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},i2e,t)},f2e=de(a2e,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p2e=de(d6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h2e=de(y2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),m2e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,s2e),_=Oe(a,l2e),$=nr(),E=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=d2e(k),R=i&&!c&&p,F=S.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let B=-1;S.Children.map(s,(J,X)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||B===-1)&&(B=X))});const z=(r=y.paper)!=null?r:p2e,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),H=zt({elementType:z,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(f2e,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?c2e:u2e,slots:{paper:z,root:y.root},slotProps:{root:Q,paper:H},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(h2e,T({onKeyDown:G,actions:F,autoFocus:i&&(B===-1||c),autoFocusItem:R,variant:g},u,{className:Ie(I.list,u.className),children:s}))}))}),v2e=m2e;function g2e(e){return et("MuiMenuItem",e)}const y2e=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cf=y2e,b2e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x2e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},w2e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},g2e,i);return T({},i,l)},C2e=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x2e})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wD.inset}`]:{marginLeft:52},[`& .${Ng.root}`]:{marginTop:0,marginBottom:0},[`& .${Ng.inset}`]:{paddingLeft:36},[`& .${TD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${TD.root} svg`]:{fontSize:"1.25rem"}}))),$2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,b2e),b=S.useContext(Ki),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=S.useRef(null);Kn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=w2e(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(Ki.Provider,{value:v,children:O.jsx(C2e,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),jg=$2e;function S2e(e){return et("MuiNativeSelect",e)}const _2e=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b2=_2e,E2e=["className","disabled","error","IconComponent","inputRef","variant"],P2e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return Xe(s,S2e,t)},f6=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${b2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),T2e=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ta,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b2.multiple}`]:t.multiple}]}})(f6),p6=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${b2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),k2e=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),O2e=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,E2e),u=T({},t,{disabled:o,variant:l,error:a}),f=P2e(u);return O.jsxs(S.Fragment,{children:[O.jsx(T2e,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(k2e,{as:i,ownerState:u,className:f.icon})]})}),R2e=O2e;var MD;const D2e=["children","classes","className","label","notched"],M2e=de("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),I2e=de("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function A2e(e){const{className:t,label:n,notched:r}=e,o=Oe(e,D2e),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(M2e,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(I2e,{ownerState:i,children:a?O.jsx("span",{children:n}):MD||(MD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const N2e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],j2e=e=>{const{classes:t}=e,r=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},owe,t);return T({},t,r)},L2e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ii.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ii.focused} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ii.error} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ii.disabled} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),F2e=de(A2e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),z2e=de(_0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),h6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,N2e),y=j2e(l),w=Pi(),C=sl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),$=(r=(o=v.root)!=null?o:c.Root)!=null?r:L2e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:z2e;return O.jsx(d2,T({slots:{root:$,input:E},renderSuffix:k=>O.jsx(F2e,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs(S.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});h6.muiName="Input";const m6=h6,B2e=rr(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),V2e=rr(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),U2e=de("span")({position:"relative",display:"flex"}),W2e=de(B2e)({transform:"scale(1)"}),H2e=de(V2e)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function v6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(U2e,{className:n.root,ownerState:o,children:[O.jsx(W2e,{fontSize:r,className:n.background,ownerState:o}),O.jsx(H2e,{fontSize:r,className:n.dot,ownerState:o})]})}const G2e=S.createContext(void 0),g6=G2e;function q2e(){return S.useContext(g6)}function Y2e(e){return et("MuiRadio",e)}const K2e=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ID=K2e,J2e=["checked","checkedIcon","color","icon","name","onChange","size","className"],Z2e=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Xe(o,Y2e,t))},X2e=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ID.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${ID.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Q2e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const AD=O.jsx(v6,{checked:!0}),ND=O.jsx(v6,{}),eEe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=AD,color:l="primary",icon:c=ND,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,J2e),v=T({},a,{color:l,size:p}),x=Z2e(v),g=q2e();let y=i;const w=Eg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=Q2e(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(X2e,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=ND.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=AD.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ie(x.root,m)},b))}),tEe=eEe,nEe=["actions","children","defaultValue","name","onChange","value"],rEe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,nEe),u=S.useRef(null),[f,p]=Cr({controlled:l,default:a,name:"RadioGroup"});S.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Ya(i),v=S.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(g6.Provider,{value:v,children:O.jsx(t6,T({role:"radiogroup",ref:m},c,{children:o}))})}),oEe=rEe;function aEe(e){return et("MuiSelect",e)}const iEe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uf=iEe;var jD;const sEe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lEe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${uf.select}`]:t.select},{[`&.${uf.select}`]:t[n.variant]},{[`&.${uf.error}`]:t.error},{[`&.${uf.multiple}`]:t.multiple}]}})(f6,{[`&.${uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cEe=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),uEe=de("input",{shouldForwardProp:e=>J_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function LD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dEe(e){return e==null||typeof e=="string"&&!e.trim()}const fEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,aEe,t)},pEe=S.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:$,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:B,value:z,variant:Y="standard"}=t,Q=Oe(t,sEe),[H,J]=Cr({controlled:z,default:f,name:"Select"}),[X,L]=Cr({controlled:R,default:u,name:"Select"}),K=S.useRef(null),q=S.useRef(null),[D,N]=S.useState(null),{current:V}=S.useRef(R!=null),[Z,re]=S.useState(),le=sn(n,x),xe=S.useCallback(Ne=>{q.current=Ne,Ne&&N(Ne)},[]),fe=D==null?void 0:D.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{q.current.focus()},node:K.current,value:H}),[H]),S.useEffect(()=>{u&&X&&D&&!V&&(re(s?null:fe.clientWidth),q.current.focus())},[D,s]),S.useEffect(()=>{i&&q.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=zn(q.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?I&&I(ne):E&&E(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),q.current.focus(),ge(!0,Ne))},_e=Ne=>{ge(!1,Ne)},ve=S.Children.toArray(l),Be=Ne=>{const ne=ve.find(te=>te.props.value===Ne.target.value);ne!==void 0&&(J(ne.props.value),$&&$(Ne,ne))},Ue=Ne=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(H)?H.slice():[];const ie=H.indexOf(Ne.props.value);ie===-1?te.push(Ne.props.value):te.splice(ie,1)}else te=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ne),H!==te&&(J(te),$)){const ie=ne.nativeEvent||ne,$e=new ie.constructor(ie.type,ie);Object.defineProperty($e,"target",{writable:!0,value:{value:te,name:C}}),$($e,Ne)}w||ge(!1,ne)}},ze=Ne=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},He=D!==null&&X,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const qe=[];let rt=!1;(Ig({value:H})||m)&&(U?we=U(H):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(w){if(!Array.isArray(H))throw new Error(Xs(2));ne=H.some(te=>LD(te,Ne.props.value)),ne&&rt&&qe.push(Ne.props.children)}else ne=LD(H,Ne.props.value),ne&&rt&&(Ce=Ne.props.children);return S.cloneElement(Ne,{"aria-selected":ne?"true":"false",onClick:Ue(Ne),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Ne.props.value})});rt&&(w?qe.length===0?we=null:we=qe.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},x2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ta(e)&&e!=="variant",slot:"Root"},yEe=de(cs,x2)(""),bEe=de(m6,x2)(""),xEe=de(e6,x2)(""),y6=S.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Hj,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,mEe),R=y?R2e:hEe,F=Pi(),U=sl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,B=T({},r,{variant:G,classes:i}),z=gEe(B),Y=Oe(z,vEe),Q=p||{standard:O.jsx(yEe,{ownerState:B}),outlined:O.jsx(bEe,{label:b,ownerState:B}),filled:O.jsx(xEe,{ownerState:B})}[G],H=sn(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:T({id:f},E)},m,{classes:m?Hr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:H,className:Ie(Q.props.className,s,z.root)},!p&&{variant:G},I))})});y6.muiName="Select";const b6=y6,wEe=e=>!e||!yi(e),CEe=wEe;function $Ee(e){return et("MuiSlider",e)}const SEe=Qe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),za=SEe,_Ee=e=>{const{open:t}=e;return{offset:Ie(t&&za.valueLabelOpen),circle:za.valueLabelCircle,label:za.valueLabelLabel}};function EEe(e){const{children:t,className:n,value:r}=e,o=_Ee(e);return t?S.cloneElement(t,{className:Ie(t.props.className)},O.jsxs(S.Fragment,{children:[t.props.children,O.jsx("span",{className:Ie(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const PEe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function FD(e){return e}const TEe=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`],n.size!=="medium"&&t[`size${je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${za.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${za.dragging}`]:{[`& .${za.thumb}, & .${za.track}`]:{transition:"none"}}})),kEe=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),OEe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),REe=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${je(n.color)}`],n.size!=="medium"&&t[`thumbSize${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${za.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${za.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${za.disabled}`]:{"&:hover":{boxShadow:"none"}}})),DEe=de(EEe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${za.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),MEe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>J_(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),IEe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>J_(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),AEe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${je(s)}`,l&&`size${je(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${je(l)}`,s&&`thumbColor${je(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xe(c,$Ee,i)},NEe=({children:e})=>e,jEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,$,E,k,I,R;const F=Ke({props:t,name:"MuiSlider"}),G=nr().direction==="rtl",{"aria-label":B,"aria-valuetext":z,"aria-labelledby":Y,component:Q="span",components:H={},componentsProps:J={},color:X="primary",classes:L,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:V,marks:Z=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=FD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=FD}=F,He=Oe(F,PEe),be=T({},F,{isRtl:G,max:re,min:le,classes:L,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:qe,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=$xe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=AEe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:H.Root)!=null?r:TEe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:H.Rail)!=null?a:kEe,Ze=(s=(l=ve==null?void 0:ve.track)!=null?l:H.Track)!=null?s:OEe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:H.Thumb)!=null?c:REe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:H.ValueLabel)!=null?f:DEe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:H.Mark)!=null?m:MEe,vt=(v=(x=ve==null?void 0:ve.markLabel)!=null?x:H.MarkLabel)!=null?v:IEe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:H.Input)!=null?g:"input",Et=(w=_e==null?void 0:_e.root)!=null?w:J.root,Yt=(C=_e==null?void 0:_e.rail)!=null?C:J.rail,kt=(_=_e==null?void 0:_e.track)!=null?_:J.track,ln=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(E=_e==null?void 0:_e.valueLabel)!=null?E:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(I=_e==null?void 0:_e.markLabel)!=null?I:J.markLabel,bn=(R=_e==null?void 0:_e.input)!=null?R:J.input,Bn=zt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},CEe($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),se=zt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=zt({elementType:Ze,externalSlotProps:kt,additionalProps:{style:T({},we[Fe].offset(Ne),we[Fe].leap(ne))},ownerState:T({},be,kt==null?void 0:kt.ownerState),className:ie.track}),ue=zt({elementType:tt,getSlotProps:rt,externalSlotProps:ln,ownerState:T({},be,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=zt({elementType:dt,getSlotProps:qe,externalSlotProps:bn,ownerState:be});return O.jsxs($e,T({},Bn,{children:[O.jsx(Se,T({},se)),O.jsx(Ze,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=Mg(pe.value,le,re),lt=we[Fe].offset(nt);let xt;return Be===!1?xt=gt.indexOf(pe.value)!==-1:xt=Be==="normal"&&(Te?pe.value>=gt[0]&&pe.value<=gt[gt.length-1]:pe.value<=gt[0])||Be==="inverted"&&(Te?pe.value<=gt[0]||pe.value>=gt[gt.length-1]:pe.value>=gt[0]),O.jsxs(S.Fragment,{children:[O.jsx(_t,T({"data-index":De},Ee,!yi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ie(Ee.className,xt&&ie.markActive)})),pe.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":De},pt,!yi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ie(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:pe.label})):null]},De)}),gt.map((pe,De)=>{const nt=Mg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?NEe:ft;return O.jsx(xt,T({},!yi(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:D},ke,{children:O.jsx(tt,T({"data-index":De},ue,{className:Ie(ie.thumb,ue.className,Le===De&&ie.active,Pe===De&&ie.focusVisible),style:T({},lt,te(De),ue.style),children:O.jsx(dt,T({"data-index":De,"aria-label":N?N(De):B,"aria-valuenow":he(pe),"aria-labelledby":Y,"aria-valuetext":V?V(he(pe),De):z,value:gt[De]},me))}))}),De)})]}))}),LEe=jEe;function FEe(e){return et("MuiTooltip",e)}const zEe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),js=zEe,BEe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function VEe(e){return Math.round(e*1e5)/1e5}const UEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,FEe,t)},WEe=de(dh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${js.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${js.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${js.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${js.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),HEe=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${js.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${js.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${js.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${js.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),GEe=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Km=!1,bx=null,df={x:0,y:0};function Jm(e,t){return n=>{t&&t(n),e(n)}}const qEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const $=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:B=!1,disableTouchListener:z=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:H=700,followCursor:J=!1,id:X,leaveDelay:L=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:V="bottom",PopperComponent:Z,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=Ag,TransitionProps:he}=$,_e=Oe($,BEe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=nr(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),qe=B||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=Cr({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Ya(X),gt=S.useRef(),Ne=S.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(Fe.current)},[]);S.useEffect(()=>()=>{clearTimeout(rt.current),clearTimeout(Ae.current),clearTimeout(Le.current),Ne()},[Ne]);const ne=yt=>{clearTimeout(bx),Km=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(bx),bx=setTimeout(()=>{Km=!1},800+L),Te(!1),q&&it&&q(yt),clearTimeout(rt.current),rt.current=setTimeout(()=>{Ce.current=!1},Be.transitions.duration.shortest)}),ie=yt=>{Ce.current&&yt.type!=="touchstart"||(ze&&ze.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Le.current),Y||Km&&Q?Ae.current=setTimeout(()=>{ne(yt)},Km?Q:Y):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Ze,onFocus:tt,ref:ft}=Ay(),[,_t]=S.useState(!1),vt=yt=>{Ze(yt),Se.current===!1&&(_t(!1),$e(yt))},dt=yt=>{ze||He(yt.currentTarget),tt(yt),Se.current===!0&&(_t(!0),ie(yt))},Et=yt=>{Ce.current=!0;const Wt=ve.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=$e,ln=yt=>{Et(yt),clearTimeout(Le.current),clearTimeout(rt.current),Ne(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},H)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},K)};S.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),bn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),df={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},se=typeof fe=="string";F?(Bn.title=!it&&se&&!G?fe:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=se?fe:null,Bn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Bn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:bn}:{}),ue={};z||(oe.onTouchStart=ln,oe.onTouchEnd=Vt),G||(oe.onMouseOver=Jm(Yt,oe.onMouseOver),oe.onMouseLeave=Jm(kt,oe.onMouseLeave),qe||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),U||(oe.onFocus=Jm(dt,oe.onFocus),oe.onBlur=Jm(vt,oe.onBlur),qe||(ue.onFocus=dt,ue.onBlur=vt));const ke=S.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!be,options:{element:be,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[be,re]),Ee=T({},$,{isRtl:Ue,arrow:E,disableInteractive:qe,placement:V,PopperComponentProp:Z,touch:Ce.current}),pt=UEe(Ee),me=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:WEe,pe=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ge)!=null?a:Ag,De=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:HEe,nt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:GEe,lt=Ef(me,T({},re,(p=le.popper)!=null?p:R.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=Ef(pe,T({},he,(v=le.transition)!=null?v:R.transition),Ee),Nt=Ef(De,T({},(x=le.tooltip)!=null?x:R.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=Ef(nt,T({},(w=le.arrow)!=null?w:R.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:Z??dh,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:df.y,left:df.x,right:df.x,bottom:df.y,width:0,height:0})}:ze,popperRef:Kt,open:ze?it:!1,id:ct,transition:!0},ue,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(pe,T({timeout:Be.transitions.duration.shorter},yt,xt,{children:O.jsxs(De,T({},Nt,{children:[fe,E?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),hc=qEe,YEe=S.createContext({}),hh=YEe,KEe=S.createContext({}),O0=KEe;function JEe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const ZEe=["active","children","className","component","completed","disabled","expanded","index","last"],XEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Xe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},JEe,t)},QEe=de("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),ePe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,ZEe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=S.useContext(hh);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=XEe(E),I=O.jsxs(QEe,T({as:s,className:Ie(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(O0.Provider,{value:$,children:v&&!x&&f!==0?O.jsxs(S.Fragment,{children:[v,I]}):I})}),tPe=ePe,nPe=rr(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),rPe=rr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function oPe(e){return et("MuiStepIcon",e)}const aPe=Qe("MuiStepIcon",["root","active","completed","error","text"]),xx=aPe;var zD;const iPe=["active","className","completed","error","icon"],sPe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Xe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},oPe,t)},wx=de(sC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${xx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.error}`]:{color:(e.vars||e).palette.error.main}})),lPe=de("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),cPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,iPe),u=T({},r,{active:o,completed:i,error:s}),f=sPe(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(wx,T({as:rPe,className:p,ref:n,ownerState:u},c)):i?O.jsx(wx,T({as:nPe,className:p,ref:n,ownerState:u},c)):O.jsxs(wx,T({className:p,ref:n,ownerState:u},c,{children:[zD||(zD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(lPe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),uPe=cPe;function dPe(e){return et("MuiStepLabel",e)}const fPe=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ls=fPe,pPe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],hPe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Xe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},dPe,t)},mPe=de("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ls.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ls.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),vPe=de("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ls.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.alternativeLabel}`]:{marginTop:16},[`&.${Ls.error}`]:{color:(e.vars||e).palette.error.main}})),gPe=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ls.alternativeLabel}`]:{paddingRight:0}})),yPe=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ls.alternativeLabel}`]:{textAlign:"center"}})),x6=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,pPe),{alternativeLabel:v,orientation:x}=S.useContext(hh),{active:g,disabled:y,completed:w,icon:C}=S.useContext(O0),_=c||C;let $=p;_&&!$&&($=uPe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=hPe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(mPe,T({className:Ie(k.root,i),ref:n,ownerState:E},b,{children:[_||$?O.jsx(gPe,{className:k.iconContainer,ownerState:E,children:O.jsx($,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(yPe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(vPe,T({ownerState:E},I,{className:Ie(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});x6.muiName="StepLabel";const bPe=x6;function xPe(e){return et("MuiStepButton",e)}const wPe=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),BD=wPe,CPe=["children","className","icon","optional"],$Pe=e=>{const{classes:t,orientation:n}=e;return Xe({root:["root",n],touchRipple:["touchRipple"]},xPe,t)},SPe=de(Ca,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BD.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${BD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),_Pe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,CPe),{disabled:c,active:u}=S.useContext(O0),{orientation:f}=S.useContext(hh),p=T({},r,{orientation:f}),m=$Pe(p),b={icon:i,optional:s},v=Eu(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(bPe,T({},b,{children:o}));return O.jsx(SPe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ie(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),EPe=_Pe;function PPe(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const TPe=["className"],kPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${je(n)}`]};return Xe(s,PPe,t)},OPe=de("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),RPe=de("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${je(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),DPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,TPe),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(hh),{active:l,disabled:c,completed:u}=S.useContext(O0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=kPe(f);return O.jsx(OPe,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(RPe,{className:p.line,ownerState:f})}))}),MPe=DPe;function IPe(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const APe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],NPe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Xe({root:["root",t,n&&"alternativeLabel"]},IPe,r)},jPe=de("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),LPe=O.jsx(MPe,{}),FPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=LPe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,APe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=NPe(m),v=S.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>S.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=S.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(hh.Provider,{value:g,children:O.jsx(jPe,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:x}))})}),zPe=FPe;function BPe(e){return et("MuiSwitch",e)}const VPe=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eo=VPe,UPe=["className","color","edge","size","sx"],WPe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Xe(s,BPe,t);return T({},t,l)},HPe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${eo.thumb}`]:{width:16,height:16},[`& .${eo.switchBase}`]:{padding:4,[`&.${eo.checked}`]:{transform:"translateX(16px)"}}})),GPe=de(f2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${eo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${eo.checked}`]:{transform:"translateX(20px)"},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${eo.checked} + .${eo.track}`]:{opacity:.5},[`&.${eo.disabled} + .${eo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${eo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.55)}`}},[`&.${eo.checked} + .${eo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),qPe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),YPe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),KPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,UPe),u=T({},r,{color:a,edge:i,size:s}),f=WPe(u),p=O.jsx(YPe,{className:f.thumb,ownerState:u});return O.jsxs(HPe,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(GPe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(qPe,{className:f.track,ownerState:u})]})}),JPe=KPe;function ZPe(e){return et("MuiTab",e)}const XPe=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),wl=XPe,QPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],eTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(c,ZPe,t)},tTe=de(Ca,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${wl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${wl.selected}`]:{opacity:1},[`&.${wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),nTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,QPe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),$=eTe(_),E=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(tTe,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[E,f]}):O.jsxs(S.Fragment,{children:[f,E]}),u]}))}),Tp=nTe,rTe=S.createContext(),w6=rTe;function oTe(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const aTe=["className","component","padding","size","stickyHeader"],iTe=e=>{const{classes:t,stickyHeader:n}=e;return Xe({root:["root",n&&"stickyHeader"]},oTe,t)},sTe=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),VD="table",lTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=VD,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,aTe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=iTe(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(w6.Provider,{value:p,children:O.jsx(sTe,T({as:a,role:a===VD?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),C6=lTe,cTe=S.createContext(),R0=cTe;function uTe(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const dTe=["className","component"],fTe=e=>{const{classes:t}=e;return Xe({root:["root"]},uTe,t)},pTe=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),hTe={variant:"body"},UD="tbody",mTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=UD}=r,i=Oe(r,dTe),s=T({},r,{component:a}),l=fTe(s);return O.jsx(R0.Provider,{value:hTe,children:O.jsx(pTe,T({className:Ie(l.root,o),as:a,ref:n,role:a===UD?null:"rowgroup",ownerState:s},i))})}),$6=mTe;function vTe(e){return et("MuiTableCell",e)}const gTe=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yTe=gTe,bTe=["align","className","component","padding","scope","size","sortDirection","variant"],xTe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(a)}`]};return Xe(s,vTe,t)},wTe=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?i0(Tt(e.palette.divider,1),.88):a0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${yTe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),CTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,bTe),m=S.useContext(w6),b=S.useContext(R0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=xTe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(wTe,T({as:x,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),$d=CTe;function $Te(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const STe=["className","component"],_Te=e=>{const{classes:t}=e;return Xe({root:["root"]},$Te,t)},ETe=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),PTe={variant:"head"},WD="thead",TTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=WD}=r,i=Oe(r,STe),s=T({},r,{component:a}),l=_Te(s);return O.jsx(R0.Provider,{value:PTe,children:O.jsx(ETe,T({as:a,className:Ie(l.root,o),ref:n,role:a===WD?null:"rowgroup",ownerState:s},i))})}),S6=TTe;function kTe(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const OTe=["className","component","disableGutters","variant"],RTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Xe({root:["root",!n&&"gutters",r]},kTe,t)},DTe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),MTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,OTe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=RTe(c);return O.jsx(DTe,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),ITe=MTe,ATe=rr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),NTe=rr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function jTe(e){return et("MuiTableRow",e)}const LTe=Qe("MuiTableRow",["root","selected","hover","head","footer"]),HD=LTe,FTe=["className","component","hover","selected"],zTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Xe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},jTe,t)},BTe=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),GD="tr",VTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=GD,hover:i=!1,selected:s=!1}=r,l=Oe(r,FTe),c=S.useContext(R0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=zTe(u);return O.jsx(BTe,T({as:a,ref:n,className:Ie(f.root,o),role:a===GD?null:"row",ownerState:u},l))}),ll=VTe;function UTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WTe(e,t,n,r={},o=()=>{}){const{ease:a=UTe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const HTe=["onChange"],GTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qTe(e){const{onChange:t}=e,n=Oe(e,HTe),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Kn(()=>{const i=ah(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=$i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:GTe,ref:o},n))}function YTe(e){return et("MuiTabScrollButton",e)}const KTe=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JTe=KTe,ZTe=["className","slots","slotProps","direction","orientation","disabled"],XTe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Xe({root:["root",n,r&&"disabled"]},YTe,t)},QTe=de(Ca,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${JTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),eke=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,ZTe),p=nr().direction==="rtl",m=T({isRtl:p},a),b=XTe(m),v=(r=s.StartScrollButtonIcon)!=null?r:ATe,x=(o=s.EndScrollButtonIcon)!=null?o:NTe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(QTe,T({component:"div",className:Ie(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),tke=eke;function nke(e){return et("MuiTabs",e)}const rke=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Nv=rke,oke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},ake=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nke,l)},ike=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.scrollButtons}`]:t.scrollButtons},{[`& .${Nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ske=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lke=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cke=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),uke=de(qTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KD={},dke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=nr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=tke,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,oke),G=R==="scrollable",B=x==="vertical",z=B?"scrollTop":"scrollLeft",Y=B?"top":"left",Q=B?"bottom":"right",H=B?"clientHeight":"clientWidth",J=B?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:B,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!B,scrollableY:G&&B,centered:c&&!G,scrollButtonsHideMobile:!m}),L=ake(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=S.useState(!1),[V,Z]=S.useState(KD),[re,le]=S.useState(!1),[xe,fe]=S.useState(!1),[ge,he]=S.useState(!1),[_e,ve]=S.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Ue=S.useRef(null),ze=S.useRef(null),He=()=>{const te=Ue.current;let ie;if(te){const Se=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:Bme(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&I!==!1){const Se=ze.current.children;if(Se.length>0){const Ze=Se[Be.get(I)];$e=Ze?Ze.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(B)Se="top",ie&&te&&($e=ie.top-te.top+te.scrollTop);else if(Se=a?"right":"left",ie&&te){const tt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;$e=(a?-1:1)*(ie[Se]-te[Se]+tt)}const Ze={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))Z(Ze);else{const tt=Math.abs(V[Se]-Ze[Se]),ft=Math.abs(V[J]-Ze[J]);(tt>=1||ft>=1)&&Z(Ze)}}),we=(te,{animation:ie=!0}={})=>{ie?WTe(z,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[z]=te},Ce=te=>{let ie=Ue.current[z];B?ie+=te:(ie+=te*(a?-1:1),ie*=a&&J5()==="reverse"?-1:1),we(ie)},qe=()=>{const te=Ue.current[H];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Ze=$e[Se];if(ie+Ze[H]>te){Se===0&&(ie=te);break}ie+=Ze[H]}return ie},rt=()=>{Ce(-1*qe())},Ae=()=>{Ce(qe())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(uke,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:rt,disabled:!re},E,{className:Ie(L.scrollButtons,E.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Ae,disabled:!xe},E,{className:Ie(L.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[Y]ie[Q]){const Se=ie[z]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=ah(()=>{Ue.current&&be()});let ie;const $e=tt=>{tt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},Se=$i(Ue.current);Se.addEventListener("resize",te);let Ze;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Ze=new MutationObserver($e),Ze.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Ze)==null||tt.disconnect(),(ft=ie)==null||ft.disconnect()}},[be,Te]),S.useEffect(()=>{const te=Array.from(ze.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const $e=te[0],Se=te[ie-1],Ze={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Ze);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Ze);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(KD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(cke,T({},$,{className:Ie(L.indicator,$.className),ownerState:X,style:T({},V,$.style)}));let ct=0;const gt=S.Children.map(u,te=>{if(!S.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Be.set(ie,ct);const $e=ie===I;return ct+=1,S.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:$e&&!D&&it,selected:$e,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=zn(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Ze=x==="horizontal"?"ArrowLeft":"ArrowUp",tt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Ze="ArrowRight",tt="ArrowLeft"),te.key){case Ze:te.preventDefault(),Zm(ie,$e,YD);break;case tt:te.preventDefault(),Zm(ie,$e,qD);break;case"Home":te.preventDefault(),Zm(ie,null,qD);break;case"End":te.preventDefault(),Zm(ie,null,YD);break}},ne=Fe();return O.jsxs(ike,T({className:Ie(L.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(ske,{className:L.scroller,ownerState:X,style:{overflow:_e.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(lke,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:L.flexContainer,ownerState:X,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),D0=dke;function fke(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const pke=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],hke={standard:cs,filled:e6,outlined:m6},mke=e=>{const{classes:t}=e;return Xe({root:["root"]},fke,t)},vke=de(fh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:$,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:B,select:z=!1,SelectProps:Y,type:Q,value:H,variant:J="outlined"}=r,X=Oe(r,pke),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:z,variant:J}),K=mke(L),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),z&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Ya(v),N=b&&D?`${D}-helper-text`:void 0,V=C&&D?`${D}-label`:void 0,Z=hke[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:B,maxRows:_,minRows:$,type:Q,value:H,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(vke,T({className:Ie(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:L},X,{children:[C!=null&&C!==""&&O.jsx(i6,T({htmlFor:D,id:V},x,{children:C})),z?O.jsx(b6,T({"aria-describedby":N,id:D,labelId:V,value:H,input:re},Y,{children:i})):re,b&&O.jsx(fr,T({id:N},p,{children:b}))]}))}),mh=gke;var yke=J$;function bke(e){return yke(e)?void 0:e}var xke=bke,wke=ud,Cke=xy,$ke=Yie,Ske=Yp,_ke=fd,Eke=xke,Pke=lS,Tke=_4,kke=1,Oke=2,Rke=4,Dke=Pke(function(e,t){var n={};if(e==null)return n;var r=!1;t=wke(t,function(a){return a=Ske(a,e),r||(r=a.length>1),a}),_ke(e,Tke(e),n),r&&(n=Cke(n,kke|Oke|Rke,Eke));for(var o=t.length;o--;)$ke(n,t[o]);return n}),Mke=Dke;const Ike=Bt(Mke);function Ake(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Yke){var c=t?null:Gke(e);if(c)return qke(c);i=!1,o=Hke,l=new Vke}else l=t?[]:s;e:for(;++r=B?G:""+Array(B+1-Y.length).join(z)+G},C={s:w,z:function(G){var B=-G.utcOffset(),z=Math.abs(B),Y=Math.floor(z/60),Q=z%60;return(B<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(B,z){if(B.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(T6);var _Oe=T6.exports;const EOe=Bt(_Oe);var k2={},POe=mc;Object.defineProperty(k2,"__esModule",{value:!0});var k6=k2.default=void 0,TOe=POe(vc()),kOe=O,OOe=(0,TOe.default)((0,kOe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");k6=k2.default=OOe;var ROe=cS,DOe=os;function MOe(e,t){var n=-1,r=DOe(e)?Array(e.length):[];return ROe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var IOe=MOe,AOe=ud,NOe=cc,jOe=IOe,LOe=lr;function FOe(e,t){var n=LOe(e)?AOe:jOe;return n(e,NOe(t))}var O6=FOe;const R6=Bt(O6),zOe=["localeText"],mC=S.createContext(null),vh=function(t){var n;const{localeText:r}=t,o=Oe(t,zOe),{utils:a,localeText:i}=(n=S.useContext(mC))!=null?n:{utils:void 0,localeText:void 0},s=Ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=S.useMemo(()=>T({},m,i,r),[m,i,r]),v=S.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=S.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=S.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(mC.Provider,{value:g,children:l})},BOe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),D6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},VOe=D6;BOe(D6);const gc=()=>{const e=S.useContext(mC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=S.useMemo(()=>T({},VOe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>gc().utils,yc=()=>gc().defaultDates,_r=()=>gc().localeText,cl=e=>{const t=qt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},UOe=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WOe=rr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),HOe=rr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),M6=rr(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),qOe=rr(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),YOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),KOe=rr(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function JOe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const ZOe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],XOe=["ownerState"],QOe=["ownerState"],eRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),tRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ZD=de(tr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),nRe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"]},JOe,t)},I6=S.forwardRef(function(t,n){var r,o,a,i;const l=nr().direction==="rtl",c=Ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,$=Oe(c,ZOe),E=c,k=nRe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:ZD,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:ZD,B=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),z=(a=p==null?void 0:p.leftArrowIcon)!=null?a:WOe,Y=zt({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,XOe),H=(i=p==null?void 0:p.rightArrowIcon)!=null?i:HOe,J=zt({elementType:H,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,QOe);return O.jsxs(eRe,T({ref:n,className:Ie(k.root,f),ownerState:E},$,{children:[O.jsx(F,T({},U,{children:l?O.jsx(H,T({},X)):O.jsx(z,T({},Q))})),u?O.jsx(gn,{variant:"subtitle1",component:"span",children:u}):O.jsx(tRe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},B,{children:l?O.jsx(z,T({},Q)):O.jsx(H,T({},X))}))]}))}),fi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),O2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},A6=["hours","minutes","seconds"],Ju=e=>A6.includes(e),Es=e=>A6.includes(e)||e==="meridiem",rRe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,kp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,oRe=(e,t,n,r)=>{const o=kp(r.getHours(e),t,n);return r.setHours(e,o)},XD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gh=(e,t)=>(n,r)=>e?t.isAfter(n,r):XD(n,t)>XD(r,t),Lg=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return fi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:fi(n,["minutes"])?o.minutes:fi(n,["seconds"])?o.seconds:fi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:fi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function yh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=S.useRef(n),f=S.useRef(o),p=S.useRef(o.includes(n)?n:o[0]),[m,b]=Cr({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[x,g]=Cr({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),$=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&$(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",B=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function aRe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function iRe(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function N0(e,t,n,r){const o=qt(),a=rRe(e,o),i=S.useCallback(s=>{const l=e==null?null:oRe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Op=36,j0=2,L0=320,sRe=280,F0=334,N6=232,Tf=48,z0=de("div")({overflow:"hidden",width:L0,maxHeight:F0,display:"flex",flexDirection:"column",margin:"0 auto"});function lRe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Zu=220,xi=36,Rp={x:Zu/2,y:Zu/2},j6={x:Rp.x,y:0},cRe=j6.x-Rp.x,uRe=j6.y-Rp.y,dRe=e=>e*(180/Math.PI),L6=(e,t,n)=>{const r=t-Rp.x,o=n-Rp.y,a=Math.atan2(cRe,uRe)-Math.atan2(r,o);let i=dRe(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},fRe=(e,t,n=1)=>{const r=n*6;let{value:o}=L6(r,e,t);return o=o*n%60,o},pRe=(e,t,n)=>{const{value:r,distance:o}=L6(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},hRe,t)},gRe=de("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),yRe=de("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${xi/2}px)`,border:`${(xi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function bRe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,mRe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=vRe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Zu),transform:`rotateZ(${p}deg)`}};return O.jsx(gRe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(yRe,{ownerState:l,className:c.thumb})}))}function xRe(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Zf=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},wRe=(e,t)=>t==null||!e.isValid(t)?null:t,Yr=(e,t,n)=>t==null||!e.isValid(t)?n:t,CRe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),R2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},vC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},D2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ba=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},$Re=["year","month","day"],Ou=e=>$Re.includes(e),Dp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return fi(n,["year"])?o.year:fi(n,["month"])?o.month:fi(n,["day"])?o.dayOfMonth:fi(n,["month","year"])?`${o.month} ${o.year}`:fi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},SRe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},_Re=e=>{const{classes:t}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},xRe,t)},ERe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),PRe=de("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),TRe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),kRe=de("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ORe=de("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),RRe=de(tr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),DRe=de(tr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),QD=de(gn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function MRe(e){const t=Ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=_r(),_=S.useRef(!1),$=_Re(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:L,offsetY:K}=J;if(L===void 0){const D=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?fRe(L,K,u):pRe(L,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},B=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},z=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=S.useRef(null);Kn(()=>{o&&Q.current.focus()},[o]);const H=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(ERe,{className:Ie(g,$.root),children:[O.jsxs(PRe,{className:$.clock,children:[O.jsx(kRe,{onTouchMove:F,onTouchEnd:U,onMouseUp:B,onMouseMove:G,ownerState:{disabled:v},className:$.squareMask}),!E&&O.jsxs(S.Fragment,{children:[O.jsx(ORe,{className:$.pin}),i!=null&&O.jsx(bRe,{type:m,viewValue:b,isInner:k,hasSelected:z})]}),O.jsx(TRe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:H,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(RRe,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Ba(w,"am"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"am")})}),O.jsx(DRe,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Ba(w,"pm"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"pm")})})]})]})}function IRe(e){return et("MuiClockNumber",e)}const Xm=Qe("MuiClockNumber",["root","selected","disabled"]),ARe=["className","disabled","index","inner","label","selected"],NRe=e=>{const{classes:t,selected:n,disabled:r}=e;return Xe({root:["root",n&&"selected",r&&"disabled"]},IRe,t)},jRe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Xm.disabled}`]:t.disabled},{[`&.${Xm.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:xi,width:xi,position:"absolute",left:`calc((100% - ${xi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Xm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Xm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function F6(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,ARe),c=t,u=NRe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Zu-xi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(jRe,T({className:Ie(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(Zu-xi)/2}px`},ownerState:c},l,{children:i}))}const LRe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(F6,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},eM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(F6,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},M2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=S.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=S.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=S.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Sd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=Cr({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return M2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Na={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},FRe=e=>Math.max(...e.map(t=>{var n;return(n=Na[t.type])!=null?n:1})),ff=(e,t,n)=>{if(t===Na.year)return e.startOfYear(n);if(t===Na.month)return e.startOfMonth(n);if(t===Na.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():ff(t,n,D2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ff(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ff(t,n,e.maxDate));const s=gh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vC(t,i,e.maxTime))),i},z6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BRe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},B0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},B6=(e,t,n,r)=>{switch(n){case"month":return R2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return B0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},V6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?V6(e,a,o.maxLength):a},VRe=(e,t,n,r,o,a,i)=>{const s=BRe(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>U6(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=B6(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},I2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},gu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),W6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},tM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),H6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,G6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return H6(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},WRe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},nM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=z6(e,w),_=G6(e,t,C.contentType,C.type,w),$=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if($)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=V6(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:URe(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:$,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=WRe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],$=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!$&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):$&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let $=_;return s&&$!==null&&$.includes(" ")&&($=`⁩${$}⁦`),a==="spacious"&&["/",".","-"].includes($)&&($=` ${$} `),$};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},HRe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=I2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qRe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=R2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:H6(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=B0(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},YRe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=B0(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},rM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},oM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>rM[i.type]-rM[s.type]).reduce((i,s)=>!a||s.modified?YRe(e,t,s,n,i):i,o),KRe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,JRe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ZRe=["value","referenceDate"],$r={emptyValue:null,getTodayValue:D2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,ZRe);return t!=null&&r.utils.isValid(t)?t:n??zRe(r)},cleanValue:wRe,areValuesEqual:CRe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},A2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:W6(o(t),r),getValueStrFromSections:GRe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},bh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},N2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>$r.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Na.day,timezone:o,getTodayDate:()=>D2(n,o,"date")}),[]);return e??a},XRe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],QRe=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},lRe,t)},eDe=de(z0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),tDe=de(I6,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),nDe=["hours","minutes"],rDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,showViewSwitcher:E,onChange:k,view:I,views:R=nDe,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:B,className:z,disabled:Y,readOnly:Q,timezone:H}=o,J=Oe(o,XRe),X=u??bh(l),L=f??c,{value:K,handleValueChange:q,timezone:D}=Sd({name:"TimeClock",timezone:H,value:p,defaultValue:m,onChange:k,valueManager:$r}),N=N2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),V=_r(),Z=cl(D),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=yh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:B}),{meridiemMode:he,handleMeridiemChange:_e}=N0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=gh(v,r),qe=we==="hours"||we==="minutes"&&R.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||x&&Ce(Le,x)||y&&Ce(Le,Z)||w&&Ce(Z,qe?Fe:Le)),Ae=(Le,Fe=1)=>{if(Le%Fe!==0||_!=null&&_(Le,we))return!1;if($)switch(we){case"hours":return!$(r.setHours(N,Le),"hours");case"minutes":return!$(r.setMinutes(N,Le),"minutes");case"seconds":return!$(r.setSeconds(N,Le),"seconds");default:return!1}return!0};switch(we){case"hours":{const Le=kp(be,he,a),Fe=r.setHours(N,Le),Pe=r.setSeconds(r.setMinutes(Fe,0),0),Te=r.setSeconds(r.setMinutes(Fe,59),59);return!rt({start:Pe,end:Te})||!Ae(Le)}case"minutes":{const Le=r.setMinutes(N,be),Fe=r.setSeconds(Le,0),Pe=r.setSeconds(Le,59);return!rt({start:Fe,end:Pe})||!Ae(be,C)}case"seconds":{const Le=r.setSeconds(N,be);return!rt({start:Le,end:Le})||!Ae(be)}default:throw new Error("not supported")}},[a,N,v,x,he,g,C,_,$,r,y,w,Z,R]),Be=Ya(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const qe=kp(we,he,a);ge(r.setHours(N,qe),Ce)};return{onChange:be,viewValue:r.getHours(N),children:LRe({value:K,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>Y||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,qe)=>{ge(r.setMinutes(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>Y||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,qe)=>{ge(r.setSeconds(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>Y||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,Y]),ze=o,He=QRe(ze);return O.jsxs(eDe,T({ref:n,className:Ie(He.root,z),ownerState:ze},J,{children:[O.jsx(MRe,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(tDe,{className:He.arrowSwitcher,slots:X,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function oDe(e){return et("MuiDigitalClock",e)}const aDe=Qe("MuiDigitalClock",["root","list","item"]),iDe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],sDe=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},oDe,t)},lDe=de(z0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:N6})),cDe=de(y2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),uDe=de(jg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),dDe=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=S.useRef(null),l=sn(n,s),c=Ke({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:$,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:B,onViewChange:z,focusedView:Y,onFocusedViewChange:Q,className:H,disabled:J,readOnly:X,views:L=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,iDe),{value:N,handleValueChange:V,timezone:Z}=Sd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:$r}),re=_r(),le=cl(Z),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=sDe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:uDe,he=zt({elementType:ge,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=N2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=yh({view:G,views:L,openTo:B,onViewChange:z,onChange:ve,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(be=>{Be(be,"finish")});S.useEffect(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;s.current.scrollTop=we-4});const ze=S.useCallback(be=>{const we=gh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||E&&we(be,le)||k&&we(le,be)),qe=()=>i.getMinutes(be)%I!==0||R!=null&&R(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!qe()},[C,i,$,_,E,le,k,I,R,F]),He=S.useMemo(()=>{const be=i.startOfDay(_e);return[be,...Array.from({length:Math.ceil(24*60/f)-1},(we,Ce)=>i.addMinutes(be,f*(Ce+1)))]},[_e,f,i]);return O.jsx(lDe,T({ref:l,className:Ie(fe.root,H),ownerState:xe},D,{children:O.jsx(cDe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(K&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!X&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function fDe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function pDe(e){return et("MuiMultiSectionDigitalClock",e)}const hDe=Qe("MuiMultiSectionDigitalClock",["root","item"]),mDe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vDe=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},pDe,t)},gDe=de(y2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:N6,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),yDe=de(jg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Tf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),bDe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=sn(n,o),i=S.useRef(null),s=Ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,mDe),w=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=vDe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:yDe;return S.useEffect(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][aria-selected="true"]');if(!$||i.current===$){i.current!==$&&(i.current=$);return}i.current=$,b&&l&&$.focus();const E=$.offsetTop;o.current.scrollTop=E-4}),O.jsx(gDe,T({ref:a,className:Ie(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var E,k;if(g&&(E=$.isDisabled)!=null&&E.call($,$.value))return null;const I=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:I,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))}),xDe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},aM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},wDe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],CDe=e=>{const{classes:t}=e;return Xe({root:["root"]},fDe,t)},$De=de(z0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),SDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:B,disabled:z,readOnly:Y,skipDisabled:Q=!1,timezone:H}=o,J=Oe(o,wDe),{value:X,handleValueChange:L,timezone:K}=Sd({name:"MultiSectionDigitalClock",timezone:H,value:p,defaultValue:m,onChange:E,valueManager:$r}),q=_r(),D=cl(K),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=N2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,Ce,qe)=>L(we,Ce,qe)),re=S.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:le,setValueAndGoToView:xe,focusedView:fe}=yh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=N0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const qe=gh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&qe(g,Pe)||x&&qe(Fe,x)||y&&qe(Fe,D)||w&&qe(D,rt?Pe:Fe)),Le=(Fe,Pe=1)=>{if(Fe%Pe!==0||_!=null&&_(Fe,Ce))return!1;if($)switch(Ce){case"hours":return!$(r.setHours(V,Fe),"hours");case"minutes":return!$(r.setMinutes(V,Fe),"minutes");case"seconds":return!$(r.setSeconds(V,Fe),"seconds");default:return!1}return!0};switch(Ce){case"hours":{const Fe=kp(we,he,a),Pe=r.setHours(V,Fe),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Ae({start:Te,end:it})||!Le(Fe)}case"minutes":{const Fe=r.setMinutes(V,we),Pe=r.setSeconds(Fe,0),Te=r.setSeconds(Fe,59);return!Ae({start:Pe,end:Te})||!Le(we,C)}case"seconds":{const Fe=r.setSeconds(V,we);return!Ae({start:Fe,end:Fe})||!Le(we)}default:throw new Error("not supported")}},[a,V,v,x,he,g,C,_,$,r,y,w,D,re]),Be=mt((we,Ce)=>{const qe=re.indexOf(we),rt=re[qe+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const qe=kp(Ce,he,a);Be("hours",r.setHours(V,qe))},items:xDe({now:D,value:X,ampm:a,utils:r,isDisabled:Ce=>z||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:aM({value:r.getMinutes(V),isDisabled:Ce=>z||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(D,Ce),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:aM({value:r.getSeconds(V),isDisabled:Ce=>z||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(D,Ce),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const Ce=Ba(r,"am"),qe=Ba(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!X&&he==="am",ariaLabel:Ce},{value:"pm",label:qe,isSelected:()=>!!X&&he==="pm",ariaLabel:qe}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,he,Be,V,z,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=CDe(He);return O.jsx($De,T({ref:n,className:Ie(be.root,B),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(bDe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:z,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function _De(e){return et("MuiPickersDay",e)}const Cl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),EDe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],PDe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_De,l)},q6=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Op,height:Op,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Cl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.disabled}:not(.${Cl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cl.disabled}&.${Cl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${j0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Cl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},TDe=de(Ca,{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(q6),kDe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(({theme:e,ownerState:t})=>T({},q6({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),pf=()=>{},ODe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=pf,onBlur:b=pf,onKeyDown:v=pf,onMouseDown:x=pf,onMouseEnter:g=pf,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,E=Oe(r,EDe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:$}),I=PDe(k),R=qt(),F=S.useRef(null),U=sn(F,n);Kn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=z=>{x(z),y&&z.preventDefault()},B=z=>{s||p(i),y&&z.currentTarget.focus(),f&&f(z)};return y&&!C?O.jsx(kDe,{className:Ie(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx(TDe,T({className:Ie(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:z=>v(z,i),onFocus:z=>m(z,i),onBlur:z=>b(z,i),onMouseEnter:z=>g(z,i),onClick:B,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),RDe=S.memo(ODe);function K6(e,t,n,r){const{value:o,onError:a}=e,i=gc(),s=S.useRef(r),l=t({adapter:i,value:o,props:e});return S.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const DDe=e=>{const t=qt(),n=_r(),r=gc(),a=nr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:$,handleValueChange:E}=M2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>qRe(t,_),[t,_]),I=S.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,V=>nM(t,_,n,v,V,x,w,a)),[s,v,n,a,w,t,x,_]),R=S.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=S.useState(()=>{const D=I($),N={sections:D,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=FRe(D),Z=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:Z})}),[G,B]=Cr({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),z=D=>{B(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=S.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:V})=>{U(re=>T({},re,{sections:V,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},H=(D,N)=>{const V=[...F.sections];return V[D]=T({},V[D],{value:N,modified:!0}),W6(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=H(Y.startIndex,""),le=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(le);(le!=null&&!t.isValid(le))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=D=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=nM(t,_,n,v,xe,x,w,a);return oM(t,_,xe,fe,le,!1)},V=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:Z,sections:I(V,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:V})=>{V&&Y&&Y.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return S.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),S.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,$)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,$):D=!0,D&&U(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:I($)}))},[$]),{state:F,selectedSectionIndexes:Y,setSelectedSections:z,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:L,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},MDe=5e3,qc=e=>e.saveQuery!=null,IDe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=S.useState(null),l=mt(()=>s(null));S.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),S.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),MDe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!qc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return qc(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),qc(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=$=>B6(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&z6(a,w).contentType==="letter"){const $=_(w),E=b(w,$,g);return qc(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>tM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:U6(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=G6(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qc(w))return w;const C=tM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(qc(y))return y;const w=B0(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function nu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ADe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Fg=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Fg(t.shadowRoot):t:null},j2="@media (pointer: fine)",NDe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=DDe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:$,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:B}=e,z=Oe(e.forwardedProps,NDe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=IDe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),H=S.useRef(null),J=sn(m,H),X=S.useRef(void 0),K=nr().direction==="rtl",q=S.useMemo(()=>JRe(n.sections,K),[n.sections,K]),D=()=>{var be;if(v){o(null);return}const we=(be=H.current.selectionStart)!=null?be:0;let Ce;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?Ce=1:Ce=n.sections.findIndex(rt=>rt.startInInput-rt.startSeparator.length>we);const qe=Ce===-1?n.sections.length-1:Ce-1;o(qe)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),D())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),Z=mt((...be)=>{C==null||C(...be);const we=H.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==H.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(E==null||E(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],qe=/^[a-zA-Z]+$/.test(we),rt=/^[0-9]+$/.test(we),Ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(Ce.contentType==="letter"&&qe||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(qe||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,qe=Ce&&Ce.length>1,rt=qe?Ce:we,Ae=gu(rt);if(r==null||qe){l(qe?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=gu(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-gu(it.endSeparator||"").length;Le=Ae.slice(it.start+gu(it.startSeparator||"").length,gt)}if(KRe()&&Le.length===0){c(rt);return}Y({keyPressed:Le,sectionIndex:r.startIndex})}),fe=mt(be=>{switch(w==null||w(be),!0){case(be.key==="a"&&(be.ctrlKey||be.metaKey)):{be.preventDefault(),o("all");break}case be.key==="ArrowRight":{if(be.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(be.key):{if(be.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(be.key):{if(be.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],Ce=U.getActiveDateManager(t,n,we),qe=VRe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:qe,shouldGoToNextSection:!1});break}}});Kn(()=>{if(!H.current)return;if(r==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,qe=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,qe+=we.endSeparator.length),Ce!==H.current.selectionStart||qe!==H.current.selectionEnd){const rt=H.current.scrollTop;H.current===Fg(document)&&H.current.setSelectionRange(Ce,qe),H.current.scrollTop=rt}});const ge=K6(T({},b,{value:n.value,timezone:p}),B,G.isSameError,G.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:G.hasError(ge),[G,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(H.current&&H.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=H.current&&H.current===Fg(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=H.current.selectionStart)!=null?be:0,qe=(we=H.current.selectionEnd)!=null?we:0;if(Ce===0&&qe===0)return null;const rt=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ce);return rt===-1?n.sections.length-1:rt-1},setSelectedSections:be=>o(be)}));const He=mt((be,...we)=>{var Ce;be.preventDefault(),R==null||R(be,...we),a(),H==null||(Ce=H.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},z,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},xh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Yr(n.utils,e.minDate,n.defaultDates.minDate),f=Yr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},gC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],J6=["minDateTime","maxDateTime"],jDe=[...gC,...yC,...J6],_d=e=>jDe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),LDe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],F2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return LDe.forEach(o),t==="date"?gC.forEach(o):t==="time"?yC.forEach(o):t==="date-time"&&(gC.forEach(o),yC.forEach(o),J6.forEach(o)),{forwardedProps:n,internalProps:r}},FDe=e=>{var t,n,r;const o=qt(),a=yc();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Yr(o,e.minDate,a.minDate),maxDate:Yr(o,e.maxDate,a.maxDate)})},zDe=({props:e,inputRef:t})=>{const n=FDe(e),{forwardedProps:r,internalProps:o}=F2(n,"date");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:xh,valueType:"date"})},BDe=de(E0)({[`& .${Kf.container}`]:{outline:0},[`& .${Kf.paper}`]:{outline:0,minWidth:L0}}),VDe=de(T0)({"&:first-of-type":{padding:0}});function UDe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:BDe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Cd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(VDe,{children:r})}))}function WDe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const HDe="@media (prefers-reduced-motion: reduce)",Ru=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),iM=Ru&&Ru[1]?parseInt(Ru[1],10):null,sM=Ru&&Ru[2]?parseInt(Ru[2],10):null,GDe=iM&&iM<10||sM&&sM<13||!1,Z6=()=>ph(HDe,{defaultMatches:!1})||GDe,qDe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YDe=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},WDe,t)},KDe=de(dh,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),JDe=de(ls,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ZDe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=zn(o.current);if(!o.current||"clientX"in l&&ZDe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return S.useEffect(()=>{if(e){const l=zn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),S.useEffect(()=>{if(e){const l=zn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const QDe=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,qDe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function eMe(e){var t,n,r,o;const a=Ke({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;S.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=S.useRef(null);S.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=Fg(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=XDe(p,u??f),$=S.useRef(null),E=sn($,l),k=sn(E,w),I=a,R=YDe(I),F=Z6(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},B=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?Cd:Ag,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:Rj,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:JDe,Q=(o=v==null?void 0:v.popper)!=null?o:KDe,H=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},H,{children:({TransitionProps:J,placement:X})=>O.jsx(z,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(B,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(QDe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function X6(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const tMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X6,t)},nMe=de("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),rMe=de("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),z2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=tMe(c);return s?null:O.jsxs(nMe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(rMe,{className:u.content,ownerState:c,children:o})]})});function oMe(e){return et("MuiPickersToolbarText",e)}const lM=Qe("MuiPickersToolbarText",["root","selected"]),aMe=["className","selected","value"],iMe=e=>{const{classes:t,selected:n}=e;return Xe({root:["root",n&&"selected"]},oMe,t)},sMe=de(gn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${lM.selected}`]:{color:(e.vars||e).palette.text.primary}})),B2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,aMe),s=iMe(r);return O.jsx(sMe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),lMe=["align","className","selected","typographyClassName","value","variant","width"],cMe=e=>{const{classes:t}=e;return Xe({root:["root"]},X6,t)},uMe=de(Uo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Lo=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,lMe),p=cMe(r);return O.jsx(uMe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(B2,{align:o,className:s,variant:c,value:l,selected:i})}))}),dMe=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,a]=S.useState(!1);S.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=S.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},fMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},pMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},hMe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},mMe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=S.useRef(l),{current:b}=S.useRef(s!==void 0),v=qt(),x=gc(),[g,y]=Cr({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=dMe(e),[_,$]=S.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=M2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});K6(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,Z.value,ge),isControlled:b,closeOnSelect:c},le=fMe(re),xe=pMe(re),fe=hMe(re);if($(ge=>T({},ge,{draft:Z.value,lastPublishedValue:le?Z.value:ge.lastPublishedValue,lastCommittedValue:xe?Z.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(he.shortcut=Z.shortcut),k(Z.value,he)}xe&&a&&a(Z.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),B=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),z=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),H=mt((Z,re,le)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:le})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),L={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:B,onOpen:z,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},V=T({},L,{value:q,onChange:Q,onSelectShortcut:H,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:V,actions:L}},vMe=["className","sx"],gMe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,vMe),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=yh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:E}=S.useMemo(()=>c.reduce((B,z)=>{let Y;return p?Y="field":m[z]!=null?Y="UI":Y="field",B.viewModeLookup[z]=Y,Y==="UI"&&(B.hasUIView=!0),B},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((B,z)=>m[z]!=null&&Ju(z)?B+1:B,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=S.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Kn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Kn(()=>{if(!i)return;let B=x;I==="field"&&F!=null&&(B=F),B!==y&&E[B]==="UI"&&E[y]==="UI"&&(B=y),B!==x&&g(B),C(B,!0)},[i]),{hasUIView:$,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const B=m[F];return B==null?null:B(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function cM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const yMe=(e,t)=>{const[n,r]=S.useState(cM);return Kn(()=>{const a=()=>{r(cM())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),nu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},bMe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=yMe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Q6=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Q6(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const eL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=mMe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=gMe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=bMe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function tL(e){return et("MuiPickersLayout",e)}const Sx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),xMe=["onAccept","onClear","onCancel","onSetToday","actions"];function wMe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,xMe),s=_r();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Uo,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Uo,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Uo,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Uo,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(P0,T({},i,{children:l}))}const CMe=["items","changeImportance","isLandscape","onChange","isValid"],$Me=["getValue"];function SMe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,CMe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,$Me);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(g2,T({dense:!0,sx:[{maxHeight:F0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(c6,{children:O.jsx(Wj,T({},s))},s.label))}))}function _Me(e){return e.view!==null}const EMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tL,t)},PMe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:$}=e,E=_??bh(w),k=$??C,I=EMe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:wMe,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,B=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),z=_Me(B)&&G?O.jsx(G,T({},B)):null,Y=y,Q=E==null?void 0:E.tabs,H=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:SMe,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},X)):null;return{toolbar:z,content:Y,tabs:H,actionBar:U,shortcuts:L}},TMe=PMe,kMe=e=>{const{isLandscape:t,classes:n}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tL,n)},nL=de("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Sx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Sx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));nL.propTypes={as:j.elementType,ownerState:j.shape({isLandscape:j.bool.isRequired}).isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const OMe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),rL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=TMe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=kMe(m);return O.jsxs(nL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(OMe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},V0=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=gh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},V2=({props:e,value:t,adapter:n})=>{const r=xh({adapter:n,value:t,props:e});return r!==null?r:V0({adapter:n,value:t,props:e})},RMe=e=>et("MuiPickersSlideTransition",e),ca=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),DMe=["children","className","reduceAnimations","slideDirection","transKey","classes"],MMe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Xe(r,RMe,t)},IMe=de(r2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ca["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ca["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ca.slideEnterActive}`]:t.slideEnterActive},{[`.${ca.slideExit}`]:t.slideExit},{[`.${ca["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ca["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ca["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ca["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ca.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ca.slideExit}`]:{transform:"translate(0%)"},[`& .${ca["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ca["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function AMe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,DMe),s=MMe(t),l=nr();if(o)return O.jsx("div",{className:Ie(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(IMe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(i0e,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const oL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=gc();return S.useCallback(c=>xh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},NMe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const jMe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LMe=["ownerState"],FMe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},NMe,t)},aL=(Op+j0*2)*6,zMe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BMe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),VMe=de(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),UMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),WMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Op,height:Op,padding:0,margin:`0 ${j0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),HMe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:aL}),GMe=de(AMe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:aL}),qMe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),YMe=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${j0}px 0`,display:"flex",justifyContent:"center"});function KMe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,jMe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),$=cl(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,$),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:RDe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,LMe),G=S.useMemo(()=>p||l(a),[p,l,a]),B=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),z=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:B,isFirstVisibleCell:z,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function JMe(e){const t=Ke({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:$,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,B=cl(G),z=qt(),Y=FMe(t),H=nr().direction==="rtl",J=$||((ze,He)=>z.format(He,"weekdayShort").charAt(0).toUpperCase()),X=oL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),L=_r(),[K,q]=Cr({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=S.useState(()=>i||B),V=mt(ze=>{u||l(ze)}),Z=ze=>{X(ze)||(n(ze),N(ze),k==null||k(!0),q(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":Z(z.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":Z(z.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=z.addDays(He,H?1:-1),we=z.addMonths(He,H?1:-1),Ce=Zf({utils:z,date:be,minDate:H?be:z.startOfMonth(we),maxDate:H?z.endOfMonth(we):be,isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=z.addDays(He,H?-1:1),we=z.addMonths(He,H?-1:1),Ce=Zf({utils:z,date:be,minDate:H?z.startOfMonth(we):be,maxDate:H?be:z.endOfMonth(we),isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"Home":Z(z.startOfWeek(He)),ze.preventDefault();break;case"End":Z(z.endOfWeek(He)),ze.preventDefault();break;case"PageUp":Z(z.addMonths(He,1)),ze.preventDefault();break;case"PageDown":Z(z.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>Z(He)),xe=mt((ze,He)=>{K&&z.isSameDay(D,He)&&(k==null||k(!1))}),fe=z.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>z.startOfDay(ze)),[z,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=z.startOfWeek(B),Be=S.useMemo(()=>{const ze=z.startOfMonth(o),He=z.endOfMonth(o);return X(D)||z.isAfterDay(D,He)||z.isBeforeDay(D,ze)?Zf({utils:z,date:D,minDate:ze,maxDate:He,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,z,G]),Ue=S.useMemo(()=>{const ze=z.setTimezone(o,G),He=z.getWeekArray(ze);let be=z.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=z.format(ze,"weekdayShort").slice(0,2);return O.jsx(VMe,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(ve,He),"weekday"),className:Y.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(HMe,{className:Y.loadingContainer,children:p()}):O.jsx(GMe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,Y.slideTransition)},b,{nodeRef:_e,children:O.jsx(qMe,{ref:_e,role:"rowgroup",className:Y.monthContainer,children:Ue.map((ze,He)=>O.jsxs(YMe,{role:"row",className:Y.weekContainer,"aria-rowindex":He+1,children:[R&&O.jsx(WMe,{className:Y.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(z.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(z.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(KMe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:X,currentMonthNumber:fe,isViewFocused:K,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const ZMe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},XMe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=cl(p),b=qt(),v=S.useRef(ZMe(!!u,i,b)).current,x=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),$r.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Na.day})},[]),[g,y]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=S.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=S.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=oL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:w}},QMe=["ownerState"],U2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=_r(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:tr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,QMe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:KOe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs(S.Fragment,{children:[O.jsx(v2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},eIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tIe=["inputRef"],nIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],iL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,eIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,tIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=zDe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,nIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),rIe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},oIe=({props:e,inputRef:t})=>{const n=rIe(e),{forwardedProps:r,internalProps:o}=F2(n,"time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V0,valueType:"time"})},aIe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],iIe=["inputRef"],sIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],sL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,aIe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,iIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=oIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,sIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),lIe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=yc(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Yr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Yr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},cIe=({props:e,inputRef:t})=>{const n=lIe(e),{forwardedProps:r,internalProps:o}=F2(n,"date-time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V2,valueType:"date-time"})},uIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],dIe=["inputRef"],fIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,uIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,dIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=cIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,fIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),pIe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const hIe=e=>{const{classes:t}=e;return Xe({root:["root"]},pIe,t)},mIe=de(r2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=hIe(t),s=nr();return o?n:O.jsx(mIe,{className:Ie(i.root,r),children:O.jsx(Cd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function vIe(e){return et("MuiPickersMonth",e)}const Qm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),gIe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],yIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vIe,r)},bIe=de("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),xIe=de("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Qm.disabled}`]:t.disabled},{[`&.${Qm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,gIe),x=S.useRef(null),g=yIe(n);return Kn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(bIe,T({className:g.root,ownerState:n},v,{children:O.jsx(xIe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function CIe(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const $Ie=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],SIe=e=>{const{classes:t}=e;return Xe({root:["root"]},CIe,t)};function _Ie(e,t){const n=qt(),r=yc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const EIe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:L0,boxSizing:"border-box"}),PIe=S.forwardRef(function(t,n){const r=_Ie(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:$,gridLabelId:E}=r,k=Oe(r,$Ie),{value:I,handleValueChange:R,timezone:F}=Sd({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:s,granularity:Na.month}),[]),Y=r,Q=SIe(Y),H=S.useMemo(()=>B.getMonth(U),[B,U]),J=S.useMemo(()=>I!=null?B.getMonth(I):x?null:B.getMonth(z),[I,B,x,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(fe=>{q(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=B.startOfMonth(u&&B.isAfter(U,p)?U:p),he=B.startOfMonth(c&&B.isBefore(U,f)?U:f),_e=B.startOfMonth(fe);return B.isBefore(_e,ge)||B.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,U,b,B]),V=mt((fe,ge)=>{if(v)return;const he=B.setMonth(I??z,ge);R(he)}),Z=mt(fe=>{N(B.setMonth(I??z,fe))||(L(fe),D(!0),y&&y(fe))});S.useEffect(()=>{L(fe=>J!==null&&fe!==J?J:fe)},[J]);const re=mt((fe,ge)=>{switch(fe.key){case"ArrowUp":Z((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":Z((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":Z((12+ge+(G.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":Z((12+ge+(G.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{Z(ge)}),xe=mt((fe,ge)=>{X===ge&&D(!1)});return O.jsx(EIe,T({ref:n,className:Ie(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:R2(B,I??z).map(fe=>{const ge=B.getMonth(fe),he=B.format(fe,"monthShort"),_e=B.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(wIe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:K&&ge===X,disabled:Be,tabIndex:ge===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function TIe(e){return et("MuiPickersYear",e)}const ev=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),kIe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],OIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},TIe,r)},RIe=de("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),DIe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),MIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,kIe),x=S.useRef(null),g=OIe(n);return S.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(RIe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(DIe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function IIe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const AIe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],NIe=e=>{const{classes:t}=e;return Xe({root:["root"]},IIe,t)};function jIe(e,t){var n;const r=qt(),o=yc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Yr(r,a.minDate,o.minDate),maxDate:Yr(r,a.maxDate,o.maxDate)})}const LIe=de("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:L0,maxHeight:sRe,boxSizing:"border-box",position:"relative"}),FIe=S.forwardRef(function(t,n){const r=jIe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:$,gridLabelId:E}=r,k=Oe(r,AIe),{value:I,handleValueChange:R,timezone:F}=Sd({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:l,granularity:Na.year}),[]),Y=r,Q=NIe(Y),H=S.useMemo(()=>B.getYear(U),[B,U]),J=S.useMemo(()=>I!=null?B.getYear(I):g?null:B.getYear(z),[I,B,g,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(he=>{q(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&B.isBeforeYear(he,U)||u&&B.isAfterYear(he,U)||m&&B.isBeforeYear(he,m)||p&&B.isAfterYear(he,p))return!0;if(!x)return!1;const _e=B.startOfYear(he);return x(_e)},[u,f,p,m,U,x,B]),V=mt((he,_e)=>{if(v)return;const ve=B.setYear(I??z,_e);R(ve)}),Z=mt(he=>{N(B.setYear(I??z,he))||(L(he),D(!0),y==null||y(he))});S.useEffect(()=>{L(he=>J!==null&&he!==J?J:he)},[J]);const re=mt((he,_e)=>{switch(he.key){case"ArrowUp":Z(_e-_),he.preventDefault();break;case"ArrowDown":Z(_e+_),he.preventDefault();break;case"ArrowLeft":Z(_e+(G.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":Z(_e+(G.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{Z(_e)}),xe=mt((he,_e)=>{X===_e&&D(!1)}),fe=S.useRef(null),ge=sn(n,fe);return S.useEffect(()=>{if(o||fe.current===null)return;const he=fe.current.querySelector('[tabindex="0"]');if(!he)return;const _e=he.offsetHeight,ve=he.offsetTop,Be=fe.current.clientHeight,Ue=fe.current.scrollTop,ze=ve+_e;_e>Be||ve{const _e=B.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(MIe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:K&&_e===X,disabled:Be,tabIndex:_e===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===_e?"date":void 0,yearsPerRow:_,children:B.format(he,"year")},B.format(he,"year"))})}))}),zIe=e=>et("MuiPickersCalendarHeader",e),BIe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),VIe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],UIe=["ownerState"],WIe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zIe,t)},HIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),GIe=de("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),YIe=de(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${BIe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),KIe=de(UOe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),JIe=S.forwardRef(function(t,n){var r,o;const a=_r(),i=qt(),s=Ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:$,timezone:E}=s,k=Oe(s,VIe),I=s,R=WIe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:YIe,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:KIe,B=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),z=Oe(B,UIe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),H=aRe(u,{disableFuture:p,maxDate:b,timezone:E}),J=iRe(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(L=>L!==y)||C[0]);else{const L=C.indexOf(y)!==0?0:1;g(C[L])}};return C.length===1&&C[0]==="year"?null:O.jsxs(HIe,T({},k,{ownerState:I,className:Ie($,R.root),ref:n,children:[O.jsxs(GIe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(cL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(qIe,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},z))}))]}),O.jsx(Cd,{in:y==="day",children:O.jsx(I6,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:H,nextLabel:a.nextMonth})})]}))}),ZIe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const XIe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],QIe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ZIe,t)};function eAe(e,t){var n,r,o,a,i,s,l;const c=qt(),u=yc(),f=Z6(),p=Ke({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Yr(c,p.minDate,u.minDate),maxDate:Yr(c,p.maxDate,u.maxDate)})}const tAe=de(z0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:F0}),nAe=de(cL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),uL=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Ya(),l=eAe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:B,maxDate:z,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:H,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,XIe),{value:he,handleValueChange:_e,timezone:ve}=Sd({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:$r}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=yh({view:k,views:I,openTo:R,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:H}),{referenceDate:Ce,calendarState:qe,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=XMe({value:he,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:B,maxDate:z,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=U&&he||B,it=U&&he||z,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:JIe,ne=zt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Be,currentMonth:qe.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(be(),Ae(Et)),rt(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(be(),Ae(Et)),rt(kt,!0)}),$e=mt(dt=>_e(dt&&vC(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Ze=QIe(Se),tt={disablePast:v,disableFuture:b,maxDate:z,minDate:B},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:ve,gridLabelId:ct},_t=S.useRef(Be);S.useEffect(()=>{_t.current!==Be&&(ze===_t.current&&He(Be,!0),_t.current=Be)},[ze,He,Be]);const vt=S.useMemo(()=>[he],[he]);return O.jsxs(tAe,T({ref:n,className:Ie(Ze.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(nAe,{reduceAnimations:C,className:Ze.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(FIe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(PIe,T({},tt,ft,{hasFocus:gt,className:F,value:he,onChange:te,shouldDisableMonth:$,onFocusedViewChange:dt=>He("month",dt),monthsPerRow:xe,referenceDate:Ce})),Be==="day"&&O.jsx(JMe,T({},qe,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z}))]})})]}))});function rAe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const oAe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aAe=e=>{const{classes:t}=e;return Xe({root:["root"],title:["title"]},rAe,t)},iAe=de(z2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sAe=de(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),lAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,oAe),u=qt(),f=_r(),p=aAe(r),m=S.useMemo(()=>{if(!o)return s;const v=Dp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(iAe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(sAe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function dL(e,t){var n,r,o,a;const i=qt(),s=yc(),l=Ke({props:e,name:t}),c=S.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:bh(l.components);return T({},l,{localeText:c},O2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Yr(i,l.minDate,s.minDate),maxDate:Yr(i,l.maxDate,s.maxDate),slots:T({toolbar:lAe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const cAe=["props","getOpenDialogAriaText"],uAe=["ownerState"],dAe=["ownerState"],W2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,cAe);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:$}=i,E=qt(),k=S.useRef(null),I=S.useRef(null),R=Ya(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:B,layoutProps:z,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:H}=eL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:v2,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(X,uAe),K=(o=c.openPickerButton)!=null?o:tr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(H.value,E),edge:L.position},ownerState:i}),D=Oe(q,dAe),N=c.openPickerIcon,V=c.field,Z=zt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},H,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});B&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),le=(a=c.layout)!=null?a:rL,xe=sn(k,Z.inputRef,g);let fe=R;F&&(x?fe=`${R}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(vh,{localeText:_,children:[O.jsx(V,T({},Z,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(eMe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},z,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:Y()}))}))]})}},ga=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q})=>O.jsx(uL,{view:e,onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q}),fL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=dL(t,"MuiDesktopDatePicker"),u=T({day:ga,month:ga,year:ga},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Dp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:M6,field:iL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},al((b=c.slotProps)==null?void 0:b.field,m),_d(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=W2({props:f,valueManager:$r,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:xh});return p()});fL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const fAe=["props","getOpenDialogAriaText"],H2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,fAe);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=S.useRef(null),_=Ya(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=eL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ADe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const B=T({textField:s.textField},G.slots),z=(r=s.layout)!=null?r:rL,Y=sn(C,G.inputRef,v);let Q=_;$&&(b?Q=`${_}-label`:Q=void 0);const H=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(vh,{localeText:y,children:[O.jsx(U,T({},G,{slots:B,slotProps:H,inputRef:Y})),O.jsx(UDe,T({},k,{open:E,slots:s,slotProps:H,children:O.jsx(z,T({},I,H==null?void 0:H.layout,{slots:s,slotProps:H,children:R()}))}))]})}},pL=S.forwardRef(function(t,n){var r,o,a;const i=_r(),s=qt(),l=dL(t,"MuiMobileDatePicker"),c=T({day:ga,month:ga,year:ga},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Dp(s,l,!1),slots:T({field:iL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},al((m=l.slotProps)==null?void 0:m.field,p),_d(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=H2({props:u,valueManager:$r,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:xh});return f()});pL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const pAe=["desktopModeMediaQuery"],hAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,pAe);return ph(o,{defaultMatches:!0})?O.jsx(fL,T({ref:n},a)):O.jsx(pL,T({ref:n},a))});function mAe(e){return et("MuiTimePickerToolbar",e)}const Xf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),vAe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],gAe=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,mAe,r)},yAe=de(z2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bAe=de(B2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),hL=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Xf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Xf.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));hL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const mL=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Xf.ampmLabel}`]:t.ampmLabel},{[`&.${Xf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Xf.ampmLabel}`]:{fontSize:17}}));mL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};function xAe(e){const t=Ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,vAe),m=qt(),b=_r(),v=nr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=N0(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=gAe(T({},C,{theme:v})),$=O.jsx(bAe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(yAe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(hL,{className:_.hourMinuteLabel,ownerState:C,children:[nu(c,"hours")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),nu(c,["hours","minutes"])&&$,nu(c,"minutes")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),nu(c,["minutes","seconds"])&&$,nu(c,"seconds")&&O.jsx(Lo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(mL,{className:_.ampmSelection,ownerState:C,children:[O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ba(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ba(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function vL(e,t){var n,r,o,a,i;const s=qt(),l=Ke({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=S.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:bh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},O2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:xAe},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Du=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B})=>O.jsx(rDe,{view:e,onViewChange:t,focusedView:n&&Ju(n)?n:null,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B}),gL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(dDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:B}),bC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(SDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B}),wAe=["views","format"],yL=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,wAe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Ju(c)?i.push(c):a.push(c)}),i.length===0)return Dp(e,T({views:a},o),!1);if(a.length===0)return Lg(e,T({views:i},o));const s=Lg(e,T({views:i},o));return`${Dp(e,T({views:a},o),!1)} ${s}`},CAe=(e,t,n)=>n?t.filter(r=>!Es(r)||r==="hours"):e?[...t,"meridiem"]:t,$Ae=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function bL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=$Ae(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:CAe(t,r,i)}}const xL=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=_r(),u=qt(),f=vL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=bL(f),v=p?gL:bC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===bC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:Lg(u,f),views:p?["hours"]:C,slots:T({field:sL,openPickerIcon:GOe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},al((k=f.slotProps)==null?void 0:k.field,E),_d(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:V0});return $()});xL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const wL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=vL(t,"MuiMobileTimePicker"),u=T({hours:Du,minutes:Du,seconds:Du},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Lg(l,c),slots:T({field:sL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},al((v=c.slotProps)==null?void 0:v.field,b),_d(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=H2({props:p,valueManager:$r,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:V0});return m()});wL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const SAe=["desktopModeMediaQuery"],_Ae=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,SAe);return ph(o,{defaultMatches:!0})?O.jsx(xL,T({ref:n},a)):O.jsx(wL,T({ref:n},a))});function EAe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const PAe=e=>Ou(e)?"date":"time",TAe=e=>e==="date"?"day":"hours",kAe=e=>{const{classes:t}=e;return Xe({root:["root"]},EAe,t)},OAe=de(D0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Nv.indicator}`]:{bottom:"auto",top:0}}})),RAe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(qOe,{}),onViewChange:o,timeIcon:a=O.jsx(YOe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=_r(),c=kAe(n),u=(f,p)=>{o(TAe(p))};return s?null:O.jsxs(OAe,{ownerState:n,variant:"fullWidth",value:PAe(i),onChange:u,className:c.root,children:[O.jsx(Tp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(Tp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function DAe(e){return et("MuiDateTimePickerToolbar",e)}const _x=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MAe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],IAe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,DAe,t)},CL=de(z2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));CL.propTypes={as:j.elementType,classes:j.object,className:j.string,isLandscape:j.bool.isRequired,isMobileKeyboardViewOpen:j.bool,landscapeDirection:j.oneOf(["column","row"]),ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),toggleMobileKeyboardView:j.func,toolbarTitle:j.node,viewType:j.oneOf(["date","time"])};const AAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),$L=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),NAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));$L.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const uM=de(B2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),jAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_x.ampmLabel}`]:t.ampmLabel},{[`&.${_x.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_x.ampmLabel}`]:{fontSize:17}}));function LAe(e){const t=Ke({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,MAe),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=N0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=_r(),E=nr(),k=IAe(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(CL,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(AAe,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(Lo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(Lo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs($L,{className:k.timeContainer,ownerState:x,children:[O.jsxs(NAe,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(jAe,{className:k.ampmSelection,ownerState:x,children:[O.jsx(Lo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ba(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(Lo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ba(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(Lo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ba(g,y):"--",width:Tf})]})]}))}function SL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=yc(),v=Ke({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=S.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:bh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,O2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Yr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Yr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:LAe,tabs:RAe},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const FAe=de("div")({display:"flex",margin:"0 auto"}),$l=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:$,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=al((Be=Q==null?void 0:Q.actionBar)!=null?Be:z==null?void 0:z.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:Es(e)?e:"hours",onViewChange:t,focusedView:r&&Es(r)?r:null,onFocusedViewChange:o,views:n.filter(Es),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:B,componentsProps:z,slots:Y,slotProps:Q,readOnly:L,disabled:K,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(FAe,{children:[O.jsx(uL,{view:Ou(e)?e:"day",onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:$,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(CD,{orientation:"vertical"}),_e?gL(T({},ze,{view:"hours",views:["hours"],focusedView:r&&Es(r)?"hours":null,sx:T({width:"auto",[`&.${aDe.root}`]:{maxHeight:F0}},Array.isArray(N)?N:[N])})):bC(T({},ze,{view:Es(e)?e:"hours",views:n.filter(Es),focusedView:r&&Es(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${hDe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(CD,{})]})},_L=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=_r(),f=qt(),p=SL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=bL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:$l,month:$l,year:$l,hours:$l,minutes:$l,seconds:$l,meridiem:$l}:T({day:ga,month:ga,year:ga,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:yL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:lL,openPickerIcon:M6},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},al((k=p.slotProps)==null?void 0:k.field,E),_d(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:V2});return $()});_L.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const EL=S.forwardRef(function(t,n){var r,o,a,i,s;const l=_r(),c=qt(),u=SL(t,"MuiMobileDateTimePicker"),f=T({day:ga,month:ga,year:ga,hours:Du,minutes:Du,seconds:Du},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:yL(c,u),ampmInClock:p,slots:T({field:lL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},al((x=u.slotProps)==null?void 0:x.field,v),_d(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=H2({props:m,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:V2});return b()});EL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const zAe=["desktopModeMediaQuery"],BAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,zAe);return ph(o,{defaultMatches:!0})?O.jsx(_L,T({ref:n},a)):O.jsx(EL,T({ref:n},a))});var PL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",m="year",b="date",v="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var z=["th","st","nd","rd"],Y=B%100;return"["+B+(z[(Y-20)%10]||z[Y]||z[0])+"]"}},w=function(B,z,Y){var Q=String(B);return!Q||Q.length>=z?B:""+Array(z+1-Q.length).join(Y)+B},C={s:w,z:function(B){var z=-B.utcOffset(),Y=Math.abs(z),Q=Math.floor(Y/60),H=Y%60;return(z<=0?"+":"-")+w(Q,2,"0")+":"+w(H,2,"0")},m:function B(z,Y){if(z.date()1)return B(X[0])}else{var L=z.name;$[L]=z,H=L}return!Q&&H&&(_=H),H||!Q&&_},R=function(B,z){if(k(B))return B.clone();var Y=typeof z=="object"?z:{};return Y.date=B,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(B,z){return R(B,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var U=function(){function B(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var z=B.prototype;return z.parse=function(Y){this.$d=function(Q){var H=Q.date,J=Q.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var X=H.match(x);if(X){var L=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(H)}(Y),this.init()},z.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(Y,Q){var H=R(Y);return this.startOf(Q)<=H&&H<=this.endOf(Q)},z.isAfter=function(Y,Q){return R(Y)25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(TL);var UAe=TL.exports;const WAe=Bt(UAe);var kL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(kL);var HAe=kL.exports;const GAe=Bt(HAe);var OL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(OL);var qAe=OL.exports;const YAe=Bt(qAe);var RL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(RL);var KAe=RL.exports;const JAe=Bt(KAe);br.extend(GAe);br.extend(YAe);br.extend(JAe);const ZAe=Q6(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),XAe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QAe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ex=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),dM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),e3e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class G2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=XAe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof br.utc<"u",this.hasTimezonePlugin=()=>typeof br.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return br.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=br.tz.guess();return i!=="UTC"?br.tz(a,i):br(a)}return br(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Ex);return br.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Ex);if(!this.hasTimezonePlugin())throw new Error(dM);const s=a!==void 0&&!a.endsWith("Z");return br(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=br.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(ZAe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Ex);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(dM)}return br.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=e3e((o=this.rawDayJsInstance)!=null?o:br,t),this.locale=t,this.formats=T({},QAe,n),br.extend(WAe)}}var q2={},t3e=mc;Object.defineProperty(q2,"__esModule",{value:!0});var DL=q2.default=void 0,n3e=t3e(vc()),r3e=O,o3e=(0,n3e.default)((0,r3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");DL=q2.default=o3e;const a3e=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=d5(i)(e,s.scope,a);if(l)return M.createElement(Pn,{xsUp:!n},M.createElement(Po,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Dy(e.allOf,t,"allOf",s,a,i);return M.createElement(Pn,{xsUp:!n},c.map((u,f)=>M.createElement(Po,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},i3e=mn(3,KN);var s3e=ime(a3e);class ML extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=Ike(t,n),a=Ql.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&BN(a)&&(i=a.elements.length>0),i?M.createElement(Po,{schema:o,path:r,uischema:a}):null}}const l3e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=S.useState(n||0),f=S.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Dy(e.anyOf,t,p,s,o,l);return M.createElement(Pn,{xsUp:!r},M.createElement(ML,{schema:e,combinatorKeyword:p,path:o}),M.createElement(D0,{value:c,onChange:f},m.map(b=>M.createElement(Tp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(Po,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};z5(l3e);const c3e=de($d)({borderBottom:"none"}),Mp=({children:e,...t})=>M.createElement(c3e,Object.assign({},t),e),u3e=de(Yj)(({theme:e})=>({color:e.palette.error.main})),IL=({errorMessages:e,id:t})=>M.createElement(hc,{id:t,title:e},M.createElement(u3e,{badgeContent:e.split(` +`).length},M.createElement(P2,{color:"inherit"}))),d3e={paddingLeft:0,paddingRight:0},f3e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(ll,null,M.createElement(Mp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Mp,{align:"right",style:d3e},M.createElement(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large"},M.createElement(_2,null)))):null)}),fM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},AL=(e,t,n,r,o)=>{if(t.type==="object")return NL(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},NL=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],p3e=({numColumns:e,translations:t})=>M.createElement(ll,null,M.createElement(Mp,{colSpan:e},M.createElement(gn,{align:"center"},t.noDataMessage))),h3e=M.memo(function({title:t}){return M.createElement($d,null,t)}),m3e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pM=e=>({type:"Control",scope:e,label:!1}),v3e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Mp,null,r.properties?M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:pM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ec,{schema:r,uischema:pM("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(fr,{error:!c},!c&&a))}),g3e=e=>{const t=pc(),n=m3e(t,e),r=Mt(n.errors);return M.createElement(v3e,Object.assign({},n,{isValid:r}))},y3e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(ll,{key:e,hover:!0},AL(g3e,t,e,c,u),c?M.createElement(Mp,{style:l?fM.fixedCell:fM.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(I0,null)))):null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(M0,null))))):null)},b3e=M.memo(y3e),x3e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(p3e,{numColumns:NL(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,hd(e).map(m=>{const b=ir.compose(t,`${m}`);return M.createElement(b3e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let w3e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?AL(h3e,r,n,c,u):void 0;return M.createElement(Pn,{xsUp:!l},M.createElement(C6,null,M.createElement(S6,null,M.createElement(f3e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(ll,null,b,c?M.createElement($d,null):null)),M.createElement($6,null,M.createElement(x3e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const C3e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(h2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(P0,null,M.createElement(Uo,{onClick:o,color:"primary"},l),M.createElement(Uo,{onClick:r,color:"primary"},s)))}),$3e=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return M.createElement(Pn,{xsUp:!l},M.createElement(w3e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(C3e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};My($3e);const ul=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},jL=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[$,E,k]=ul(),I=m.find(G=>G.value===i)??null,R=!Eo(r,t,$,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Pn,{xsUp:!r},M.createElement(_we,{className:s,id:l,disabled:!c,value:I,onChange:(G,B)=>{p(f,B==null?void 0:B.value)},inputValue:C,onInputChange:(G,B)=>{_(B)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(mh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:$})),renderOption:x,filterOptions:g}),M.createElement(fr,{error:!y&&!R},F),M.createElement(fr,{error:!y},U))},Y2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(YCe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});T2.extend(EOe);const K2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=T2(r).format(n);t(e,o)},J2=(e,t)=>{if(!e)return null;const n=T2(e,t);return n.toString()==="Invalid Date"?null:n},S3e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(Po,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),_3e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Pn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},S3e(t,n,r,o,i,s))),wh=M.memo(_3e),LL=e=>function(n){const r=pc(),o=gd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},E3e=e=>e.target.value,bc=(e,t,n,r,o=E3e,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(M5(f=>e(r,f),a),[e,r,a]),c=S.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=S.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},P3e={"enum.none":"None"},T3e=e=>e===""?void 0:parseInt(e,10),k3e=e=>T3e(e.target.value),FL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,k3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),O3e=e=>e===""?void 0:parseFloat(e),R3e=e=>O3e(e.target.value),zL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,R3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),D3e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=S.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=bc(l,"",b,s,v);return M.createElement(cs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),M3e=e=>e.target.value===""?void 0:e.target.value,BL=M.memo(function(t){var R,F,U;const[n,r]=S.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=bc(p,"",o,f,M3e),$=()=>r(!0),E=()=>r(!1),k=nr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(cs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:$,onPointerLeave:E,endAdornment:M.createElement(v2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(tr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(k6,{style:I}))),inputComponent:v})}),I3e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=bc(l,"",n,s);return M.createElement(cs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),U0=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=S.useMemo(()=>p("enum.none",P3e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(b6,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(jg,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(jg,{value:v.value,key:v.value},v.label))))}),VL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(JPe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),A3e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Pn,{xlUp:!t},M.createElement(fh,{component:"fieldset"},M.createElement(t6,{row:!0},o.map((u,f)=>{const p=ir.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(k0,{id:u.value,key:u.value,control:M.createElement(Y2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(fr,{error:!0},n)));dme(A3e);const N3e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>rh(n,r,l.scope,a,()=>Mt(a)?Ql.uiSchema(r,"VerticalLayout"):{...Ql.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Pn,{xsUp:!i},M.createElement(Po,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var j3e=sme(N3e);const L3e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=S.useState(!1),[b,v]=S.useState(l||0),[x,g]=S.useState(0),y=S.useCallback(()=>m(!1),[m]),w=S.useCallback(()=>{m(!1)},[m]),C=Dy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,es(C[k].schema)),v(k)},$=S.useCallback(()=>{_(x),m(!1)},[e,es,x]),E=S.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Pn,{xsUp:!s},M.createElement(ML,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(D0,{value:b,onChange:E},C.map(k=>M.createElement(Tp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(Po,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(E0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(h2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(P0,null,M.createElement(Uo,{onClick:w,color:"primary"},"No"),M.createElement(Uo,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},F3e=mn(3,ZN);var z3e=ame(L3e);const B3e=({text:e,visible:t})=>M.createElement(Pn,{xsUp:!t},M.createElement(gn,{variant:"h6"},e));U5(B3e);const UL=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(ITe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(hc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(_2,null))))))))}),V3e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(c6,{button:!0,selected:n,onClick:o(e)},M.createElement(B_e,null,M.createElement(Gj,{"aria-label":"Index"},e+1)),M.createElement(K_e,{primary:t}),r&&M.createElement(l6,null,M.createElement(tr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(M0,null))));var U3e=lme(V3e);const W3e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=S.useState(void 0),w=S.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>es(t),[es]),$=S.useMemo(()=>rh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Pn,{xsUp:!i},M.createElement(UL,{translations:x,label:ky(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(g2,null,f>0?R6(hd(f),k=>M.createElement(U3e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(Po,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:fc(r,`${g}`)}):M.createElement(gn,{variant:"h6"},x.noSelection))))};My(W3e);const Ed=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!Eo(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Pn,{xsUp:!c},M.createElement(fh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(i6,{htmlFor:o+"-input",error:!m,required:Oy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(fr,{error:!m&&!v},x),M.createElement(fr,{error:!m},g)))},H3e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),G3e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),q3e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=H3e(u.anyOf),m=G3e(u.anyOf).maxLength,b=S.useMemo(()=>tn({},n,i.options),[n,i.options]),v=S.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=bc(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(cs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Y3e extends A5{render(){return M.createElement(Ed,Object.assign({},this.props,{input:q3e}))}}lo(Y3e);const K3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(Y2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(K3e);const J3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(VL,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(J3e);const Z3e=e=>{const[t,n,r]=ul(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!Eo(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],$=y?o:x?null:i,E=y&&!x?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(hAe,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!x&&!y},$),M.createElement(fr,{error:!x},E)))};lo(Z3e);const X3e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(BAe,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(X3e);const Q3e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};P_(ol(M.memo(Q3e)),!1);const e4e=e=>M.createElement(Ed,Object.assign({},e,{input:FL}));lo(e4e);const t4e=e=>{const[t,n,r]=ul(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=bc(m,"",b,p),C=g.format??s.format,_=!Eo(u,l,t,g.showUnfocusedDescription);return M.createElement(Pn,{xsUp:!u},M.createElement(mh,{required:Oy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};lo(t4e);const n4e=e=>M.createElement(Ed,Object.assign({},e,{input:zL}));lo(n4e);const r4e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};T_(ol(M.memo(r4e)),!1);const WL=e=>{const[t,n,r]=ul(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!Eo(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Pn,{xsUp:!f},M.createElement(fh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(m2,{htmlFor:a,error:!x,component:"legend",required:Oy(s,g.hideRequiredAsterisk)},i),M.createElement(oEe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(k0,{value:C.value,key:C.label,control:M.createElement(tEe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(fr,{error:!x},x?y?l:null:c)))},o4e=e=>M.createElement(WL,Object.assign({},e));T_(o4e);const a4e=e=>M.createElement(WL,Object.assign({},e));P_(a4e);const i4e=e=>{const[t,n,r]=ul(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},$=!Eo(p,i,t,g.showUnfocusedDescription),E=S.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Pn,{xsUp:!p},M.createElement(fh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(m2,{htmlFor:o,error:!x,component:"legend",required:Oy(b,g.hideRequiredAsterisk)},M.createElement(gn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(gn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(gn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(LEe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(fr,{error:!x},x?$?i:null:l)))};lo(i4e);const s4e=e=>M.createElement(Ed,Object.assign({},e,{input:BL}));lo(s4e);const l4e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(_Ae,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(l4e);const Px={float:"right"},c4e=e=>{const[t]=S.useState(w5("expand-panel"));S.useEffect(()=>()=>{C5(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,$=S.useMemo(()=>rh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(D0e,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(d1e,{expandIcon:M.createElement(DL,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(Gj,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{onClick:l(m,a),style:Px,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{onClick:s(m,a),style:Px,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(I0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(tr,{onClick:p(m,[a]),style:Px,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(M0,null))))))))),M.createElement(L0e,null,M.createElement(Po,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:w})))},u4e=M.memo(c4e),d4e=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(UN(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(WN(o,n),o)))},[e])}),f4e=e=>function({ctx:n,props:r}){const o=d4e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=fc(s,`${l}`),f=_o.data(n.core.data,u),p=a?dr(f,a,""):dr(f,Fpe(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},p4e=e=>Sr(f4e(e));var h4e=p4e(u4e);const m4e={marginBottom:"10px"},v4e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Pn,{xsUp:!t},M.createElement(pCe,{style:m4e},!Mt(o)&&M.createElement(kCe,{title:o}),M.createElement(bCe,null,M.createElement(wh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),g4e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(v4e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};is(g4e);const y4e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(wh,Object.assign({},l,{renderers:t,cells:n}))};is(y4e);const b4e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(wh,Object.assign({},l,{renderers:a,cells:i}))};is(b4e);const x4e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=S.useState(i),[x,g]=S.useState(c??0),y=S.useMemo(()=>m.elements.filter(E=>yd(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},$=S.useMemo(()=>y.map(E=>Ey(E,p)),[y,p]);return M.createElement(Pn,{xsUp:!s},M.createElement(D1e,{position:"static"},M.createElement(D0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Tp,{key:k,label:$[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(wh,Object.assign({},C,{key:w}))))};LL(ol(is(x4e)));const w4e=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>es(e.schema),[e.schema]),o=S.useCallback($=>(E,k)=>{n(k?$:!1)},[]),a=$=>t===fc(e.path,`${$}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(UL,{translations:C,label:ky(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?R6(hd(s),$=>M.createElement(h4e,{enabled:i,index:$,expanded:a($),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:$,rootSchema:g,enableMoveUp:$!=0,enableMoveDown:${const r=S.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Pn,{xsUp:!e},M.createElement(C4e,Object.assign({visible:e,addItem:r},n)))};My($4e);const S4e=e=>M.createElement(Y2,Object.assign({},e));pr(S4e);const _4e=e=>M.createElement(VL,Object.assign({},e));pr(_4e);const E4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(cs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};pr(E4e);const P4e=e=>M.createElement(U0,Object.assign({},e));V5(ol(M.memo(P4e)),!1);const T4e=e=>M.createElement(FL,Object.assign({},e));pr(T4e);const k4e=e=>M.createElement(zL,Object.assign({},e));pr(k4e);const O4e=e=>M.createElement(D3e,Object.assign({},e));pr(O4e);const R4e=e=>M.createElement(U0,Object.assign({},e));ume(ol(M.memo(R4e)),!1);const D4e=e=>M.createElement(BL,Object.assign({},e));pr(D4e);const M4e=e=>M.createElement(I3e,Object.assign({},e));pr(M4e);const I4e=e=>{const[t,n]=S.useState(0),r=$=>{n($)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=S.useMemo(()=>b.elements.filter($=>yd($,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=S.useMemo(()=>w.map($=>Ey($,m)),[w,m]);return M.createElement(Pn,{xsUp:!c},M.createElement(zPe,{activeStep:t,nonLinear:!0},w.map(($,E)=>M.createElement(tPe,{key:_[E]},M.createElement(EPe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(wh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Uo,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Uo,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};LL(ol(is(I4e)));var HL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var $=_.match(r);if(!$)return null;var E=(""+$[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(HL);var A4e=HL.exports;const N4e=Bt(A4e);var GL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,$<=_.r||!_.r){$<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&($=m(""+$)),v=typeof E=="string"?E.replace("%d",$):E($,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(GL);var j4e=GL.exports;const L4e=Bt(j4e),F4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"})),z4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var Z2={exports:{}};Z2.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if($=$<<1,E==c-1){_.push(u($));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,$,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Z2);var W0=Z2.exports,B4e=Array.prototype,V4e=B4e.join;function U4e(e,t){return e==null?"":V4e.call(e,t)}var W4e=U4e;const qL=Bt(W4e);var H4e=pd,YL=H4e("filter",Z4);YL.placeholder=uc();var G4e=YL;const hM=Bt(G4e);var q4e=pd,KL=q4e("map",O6);KL.placeholder=uc();var Y4e=KL;const mM=Bt(Y4e);var Tx,vM;function K4e(){if(vM)return Tx;vM=1;var e=oS(),t=lS,n=rS(),r=A4(),o=lr,a=N4(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=mg(e,o=>o.name===t);return Ww(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},La=e=>(t,...n)=>qL(Qf(e)(t,n)," "),aNe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],iNe={styles:aNe},sNe=M.createContext(iNe),lNe=()=>S.useContext(sNe),X2=()=>{const{styles:e}=lNe();return e},Ti=e=>function(n){const r=pc(),o=X2(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Qf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${g5(a.scope)}`]);s&&(c=c.concat(Qf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>La(o)("control.label"),[o]),p=S.useMemo(()=>La(o)("input.description"),[o]),m=S.useMemo(()=>La(o)("control.validation"),[o]),b=S.useMemo(()=>La(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=S.useMemo(()=>La(o),[o]),g=S.useMemo(()=>Qf(o),[o]),y=c.join(" "),w=v.join(" "),C=S.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},Q2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=X2(),i=La(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:La(a),getStyle:Qf(a),className:o.join(" ")}))},Ka=Q2("control.input"),cNe=Q2("control.select"),uNe=Q2("control.checkbox"),dNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},fNe=mn(2,YN);var pNe=pr(uNe(dNe));const hNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},mNe=mn(2,r5);var vNe=pr(Ka(hNe));const gNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},yNe=mn(2,a5);var bNe=pr(Ka(gNe));const xNe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=S.useMemo(()=>u("enum.none",oNe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},wNe=mn(2,t_);var CNe=V5(ol(cNe(xNe)));const $Ne=e=>e===""?void 0:parseInt(e,10),SNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,$Ne(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},_Ne=mn(2,QN);var ENe=pr(Ka(SNe));const PNe=e=>e===""?void 0:Number(e),TNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,PNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},kNe=mn(2,e5);var ONe=pr(Ka(TNe));const RNe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};pr(Ka(RNe));const DNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},MNe=mn(4,l5);var INe=pr(Ka(DNe));const ANe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},NNe=mn(1,t5);pr(Ka(ANe));const jNe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},LNe=mn(2,n5);pr(Ka(jNe));const FNe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},zNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,FNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},BNe=mn(2,o5);var VNe=pr(Ka(zNe));class UNe extends A5{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!Eo(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=gy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Vu?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},ky(a,f,g.hideRequiredAsterisk)),M.createElement(ec,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const WNe=mn(1,Ga);var e9=Ti(lo(UNe));const t9=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=X2(),[v,x]=S.useState(!1),g=S.useMemo(()=>La(b)("control.radio"),[b]),y=S.useMemo(()=>La(b)("control.radio.option"),[b]),w=S.useMemo(()=>La(b)("control.radio.input"),[b]),C=S.useMemo(()=>La(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!Eo(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},ky(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:$},_?k?a:null:i))},HNe=e=>M.createElement(t9,Object.assign({},e)),GNe=mn(3,Cn(t_,as("format","radio")));var qNe=Ti(P_(HNe));const YNe=e=>M.createElement(t9,Object.assign({},e)),KNe=mn(3,Cn(XN,as("format","radio")));var JNe=Ti(T_(YNe));const{convertToValidClassName:ZNe}=_g,XNe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=S.useMemo(()=>rh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),$=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),ZNe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:$},n),M.createElement("button",{className:_,onClick:i(r,es(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?hd(0,t.length).map(U=>{const G=fc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(Po,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},QNe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=_g.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${_g.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:E};return M.createElement(XNe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var e5e=Ti(B5(QNe));const t5e=mn(4,r_),eE=e=>e.type==="Categorization",n5e=mn(1,Cn(Sn("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>eE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),r5e=(e,t)=>t===e?"selected":"",n9=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>Ey(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>eE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(n9,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:r5e(l,t)},M.createElement("span",null,s[c]))))},o5e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(Po,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class a5e extends I5{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(n9,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(o5e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:eE(n)?this.findCategory(n):n}}var i5e=Ti(ol(is(a5e)));const s5e=mn(1,Sn("Label")),l5e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var c5e=Ti(U5(l5e));const{convertToValidClassName:u5e}=_g,{or:d5e,isObjectArrayControl:f5e,isPrimitiveArrayControl:p5e,rankWith:h5e}=ope,m5e=h5e(3,d5e(f5e,p5e));class v5e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),u5e(m.scope)].join(" "),w=$=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${$}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,es(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?yM(xM,hM($=>r.properties[$].type!=="array"),mM($=>M.createElement("th",{key:$},r.properties[$].title??rNe($))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map(($,E)=>{const k=ir.compose(a,`${E}`),I=mg(f,G=>wg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?yM(xM,hM(G=>r.properties[G].type!=="array"),mM(G=>{const B=ir.compose(k,G.toString());return M.createElement("td",{key:B},M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(G)}`,o),uischema:w(Xl(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:ir.compose(k,E.toString())},M.createElement(ec,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},qL(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var g5e=Ti(B5(v5e));const tE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=pc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(Po,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},y5e=mn(1,Sn("Group")),b5e=e=>{const{data:t,...n}=e;return M.createElement(x5e,Object.assign({},n))},x5e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),tE(c,t,p,r,o))});var w5e=Ti(is(b5e));const r9=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),C5e=mn(1,Sn("HorizontalLayout")),$5e=e=>{const{data:t,...n}=e;return M.createElement(S5e,Object.assign({},n))},S5e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(r9,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},tE(l,t,f,s,a))});var _5e=Ti(is($5e,!1));const E5e=mn(1,Sn("VerticalLayout")),P5e=e=>{const{data:t,...n}=e;return M.createElement(T5e,Object.assign({},n))},T5e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(r9,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},tE(l,t,f,r,a))});var k5e=Ti(is(P5e,!1));const O5e=[{tester:WNe,renderer:e9},{tester:GNe,renderer:qNe},{tester:KNe,renderer:JNe},{tester:t5e,renderer:e5e},{tester:s5e,renderer:c5e},{tester:n5e,renderer:i5e},{tester:m5e,renderer:g5e},{tester:y5e,renderer:w5e},{tester:E5e,renderer:k5e},{tester:C5e,renderer:_5e}];function o9(e){let t=window.location.pathname.split("/playground")[0];return t.endsWith("/")&&(t=t.slice(0,-1)),new URL(t+e,window.location.origin)}const R5e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new $(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var B=0;B-1?D=N:(q=o.isUndefined(L)?void 0:R(L),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(V,Z){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function w(L,K){var q=L;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(L){return Object.keys(L).filter(function(K){return K!=="$ref"})}function _(L){var K;switch(L.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=L.uriDetails.reference}return K}function $(L,K){var q=p[L],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,Z){Z(void 0,JSON.parse(V.text))}),D=(D=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(V){return o.cloneDeep(V)})}function E(L,K){var q=!0;try{if(!o.isPlainObject(L))throw new Error("obj is not an Object");if(!o.isString(L.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function I(L,K){L.error=K.message,L.missing=!0}function R(L){return u.parse(L)}function F(L,K,q){w(L,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(L,K){var q,D;if(L=o.isUndefined(L)?{}:o.cloneDeep(L),!o.isObject(L))throw new TypeError("options must be an Object");if(!o.isUndefined(L.resolveCirculars)&&!o.isBoolean(L.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(L.filter)||o.isArray(L.filter)||o.isFunction(L.filter)||o.isString(L.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(L.includeInvalid)&&!o.isBoolean(L.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(L.location)&&!o.isString(L.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(L.refPreProcessor)&&!o.isFunction(L.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(L.refPostProcessor)&&!o.isFunction(L.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(L.subDocPath)&&!o.isArray(L.subDocPath)&&!Q(L.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(L.resolveCirculars)&&(L.resolveCirculars=!1),L.filter=function(N){var V,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?V=N.filter:o.isUndefined(N.filter)&&(V=function(){return!0}),function(re,le){return(re.type!=="invalid"||N.includeInvalid===!0)&&V(re,le)}}(L),o.isUndefined(L.location)&&(L.location=k("./root.json")),(q=L.location.split("#")).length>1&&(L.subDocPath="#"+q[1]),D=decodeURI(L.location)===L.location,L.location=x(L.location,void 0),D&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=H(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(K))try{w(K,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function G(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function B(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function z(L,K){var q={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function D(N,V,Z,re){var le=!0;function xe(fe,ge){Z.push(ge),D(N,fe,Z,re),Z.pop()}o.isFunction(re)&&(le=re(N,V,Z)),N.indexOf(V)===-1&&(N.push(V),le!==!1&&(o.isArray(V)?V.forEach(function(fe,ge){xe(fe,ge.toString())}):o.isObject(V)&&o.forOwn(V,function(fe,ge){xe(fe,ge)})),N.pop())}(function(D,N){var V,Z=[];return N.length>0&&(V=D,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],Z.push(V))})),Z}(L,(K=U(K,L)).subDocPath),w(L,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,V){var Z,re,le=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),V)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,V)),K.filter(Z,V)&&(re=J(V),q[re]=Z),C(N).length>0&&(le=!1)),le}),q}function Y(L){var K,q,D,N={def:L};try{if(E(L,!0),K=L.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,K){var q,D=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(q=L.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&L!=="#"&&L.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(L.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function H(L){try{Q(L,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=L.split("/");return K.shift(),G(K)}function J(L,K){if(!o.isArray(L))throw new Error("path must be an Array");return(K!==!1?"#":"")+(L.length>0?"/":"")+B(L).join("/")}function X(L,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");K=U(K,L),L=o.cloneDeep(L)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(V,Z,re){var le,xe,fe=Promise.resolve(),ge=J(Z.subDocPath),he=k(Z.location),_e=i.dirname(Z.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=z(V,Z),o.forOwn(le,function(Be,Ue){var ze,He,be=k(Z.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?x(_e,Be.uri):Z.location)+"#"+(Be.uri.indexOf("#")>-1?Be.uri.split("#")[1]:""));re.refs[be]=Be,y(Be)&&(Be.fqURI=we,re.deps[ve][Ue===ge?"#":Ue.replace(ge+"/","#/")]=we,be.indexOf(we+"/")!==0&&be!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:H(decodeURI(Be.uriDetails.fragment)),g(Be)?(delete xe.filter,xe.location=we.split("#")[0],fe=fe.then((ze=re,He=xe,function(){var Ce=k(He.location),qe=ze.docs[Ce];return o.isUndefined(qe)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return qe})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,qe,rt){return function(Ae){if(o.isError(Ae))I(rt,Ae);else try{return N(Ae,qe,Ce).catch(function(Le){I(rt,Le)})}catch(Le){I(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,K,D).then(function(){return D})}).then(function(D){var N={},V=[],Z=[],re=new a.Graph,le=k(K.location),xe=le+J(K.subDocPath),fe=i.dirname(le);return Object.keys(D.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e){re.setEdge(he,_e)})}),(V=a.alg.findCycles(re)).forEach(function(ge){ge.forEach(function(he){Z.indexOf(he)===-1&&Z.push(he)})}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=D.refs[he+ve.slice(1)],be=g(He);Z.indexOf(_e)>-1&&V.forEach(function(we){Ue||(Be=we.indexOf(_e))>-1&&we.forEach(function(Ce){Ue||ze.indexOf(Ce+"/")===0&&(be&&Be!==we.length-1&&_e[_e.length-1]==="#"||(Ue=!0))})}),Ue&&(He.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ge){var he=D.deps[ge],_e=ge.split("#"),ve=D.docs[_e[0]],Be=H(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=D.docs[He[0]],we=Be.concat(H(ze)),Ce=D.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!K.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=w(be,H(He[1]))}catch(qe){return void I(Ce,qe)}_e[1]===""&&ze==="#"?D.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(D.refs).forEach(function(ge){var he,_e,ve=D.refs[ge];ve.type!=="invalid"&&(ve.fqURI[ve.fqURI.length-1]==="#"&&ve.uri[ve.uri.length-1]!=="#"&&(ve.fqURI=ve.fqURI.substr(0,ve.fqURI.length-1)),he=ve.fqURI.split("/"),_e=ve.uri.split("/"),o.times(_e.length-1,function(Be){var Ue=_e[_e.length-Be-1],ze=_e[_e.length-Be],He=he.length-Be-1;Ue!=="."&&Ue!==".."&&ze!==".."&&(he[He]=Ue)}),ve.fqURI=he.join("/"),ve.fqURI.indexOf(le)===0?ve.fqURI=ve.fqURI.replace(le,""):ve.fqURI.indexOf(fe)===0&&(ve.fqURI=ve.fqURI.replace(fe,"")),ve.fqURI[0]==="/"&&(ve.fqURI="."+ve.fqURI)),ge.indexOf(xe)===0&&function Be(Ue,ze,He){var be,we=ze.split("#"),Ce=D.refs[ze];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=D.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(qe){Be(Ce.refdId,Ce.refdId+qe.substr(1),He.concat(H(qe)))})):!Ce.circular&&Ce.error&&(Ce.error=Ce.error.replace("options.subDocPath","JSON Pointer"),Ce.error.indexOf("#")>-1&&(Ce.error=Ce.error.replace(Ce.uri.substr(Ce.uri.indexOf("#")),Ce.uri)),Ce.error.indexOf("ENOENT:")!==0&&Ce.error.indexOf("Not Found")!==0||(Ce.error="JSON Pointer points to missing location: "+Ce.uri))}(xe,ge,H(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(D.docs[le],H(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:D.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return G(L)},e.exports.encodePath=function(L){return B(L)},e.exports.findRefs=function(L,K){return z(L,K)},e.exports.findRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=z(V,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:z(V,re),value:V}})}(L,K)},e.exports.getRefDetails=function(L){return Y(L)},e.exports.isPtr=function(L,K){return Q(L,K)},e.exports.isRef=function(L,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(L,K)},e.exports.pathFromPtr=function(L){return H(L)},e.exports.pathToPtr=function(L,K){return J(L,K)},e.exports.resolveRefs=function(L,K){return X(L,K)},e.exports.resolveRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){return X(V,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:V}})})}(L,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",$="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",H="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,he=RegExp(ge.source),_e=/^\s+|\s+$/g,ve=/^\s+/,Be=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Ne+"]",ie="["+gt+"]",$e="\\d+",Se="[\\u2700-\\u27bf]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tt="[^\\ud800-\\udfff"+Ne+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Ze+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",ln="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",bn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ut].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,me={};me[F]=me[U]=me[G]=me[B]=me[z]=me[Y]=me["[object Uint8ClampedArray]"]=me[Q]=me[H]=!0,me[u]=me[f]=me[I]=me[p]=me[R]=me[m]=me[b]=me[v]=me[g]=me[y]=me[w]=me[C]=me[_]=me[$]=me[k]=!1;var pe={};pe[u]=pe[f]=pe[I]=pe[R]=pe[p]=pe[m]=pe[F]=pe[U]=pe[G]=pe[B]=pe[z]=pe[g]=pe[y]=pe[w]=pe[C]=pe[_]=pe[$]=pe[E]=pe[Y]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[H]=!0,pe[b]=pe[v]=pe[k]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,En=Wt&&Wt.exports===yt,na=En&&xt.process,Vn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||na&&na.binding&&na.binding("util")}catch{}}(),Ro=Vn&&Vn.isArrayBuffer,ki=Vn&&Vn.isDate,Za=Vn&&Vn.isMap,Kr=Vn&&Vn.isRegExp,Do=Vn&&Vn.isSet,Xa=Vn&&Vn.isTypedArray;function Un(Me,Ye,Ge){switch(Ge.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,Ge[0]);case 2:return Me.call(Ye,Ge[0],Ge[1]);case 3:return Me.call(Ye,Ge[0],Ge[1],Ge[2])}return Me.apply(Ye,Ge)}function dl(Me,Ye,Ge,ht){for(var Ft=-1,cn=Me==null?0:Me.length;++Ft-1}function wc(Me,Ye,Ge){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return Ge}function vE(Me,Ye){for(var Ge=Me.length;Ge--&&Cc(Ye,Me[Ge],0)>-1;);return Ge}function a8(Me,Ye){for(var Ge=Me.length,ht=0;Ge--;)Me[Ge]===Ye&&++ht;return ht}var i8=e1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),s8=e1({"&":"&","<":"<",">":">",'"':""","'":"'"});function l8(Me){return"\\"+De[Me]}function $c(Me){return ue.test(Me)}function o1(Me){var Ye=-1,Ge=Array(Me.size);return Me.forEach(function(ht,Ft){Ge[++Ye]=[Ft,ht]}),Ge}function gE(Me,Ye){return function(Ge){return Me(Ye(Ge))}}function us(Me,Ye){for(var Ge=-1,ht=Me.length,Ft=0,cn=[];++Ge",""":'"',"'":"'"}),ds=function Me(Ye){var Ge,ht=(Ye=Ye==null?ut:ds.defaults(ut.Object(),Ye,ds.pick(ut,Ee))).Array,Ft=Ye.Date,cn=Ye.Error,hr=Ye.Function,Qa=Ye.Math,Dn=Ye.Object,a1=Ye.RegExp,d8=Ye.String,ra=Ye.TypeError,Eh=ht.prototype,f8=hr.prototype,_c=Dn.prototype,Ph=Ye["__core-js_shared__"],Th=f8.toString,xn=_c.hasOwnProperty,p8=0,yE=(Ge=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",kh=_c.toString,h8=Th.call(Dn),m8=ut._,v8=a1("^"+Th.call(xn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oh=En?Ye.Buffer:void 0,fs=Ye.Symbol,Rh=Ye.Uint8Array,bE=Oh?Oh.allocUnsafe:void 0,Dh=gE(Dn.getPrototypeOf,Dn),xE=Dn.create,wE=_c.propertyIsEnumerable,Mh=Eh.splice,CE=fs?fs.isConcatSpreadable:void 0,Td=fs?fs.iterator:void 0,pl=fs?fs.toStringTag:void 0,Ih=function(){try{var d=gl(Dn,"defineProperty");return d({},"",{}),d}catch{}}(),g8=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,y8=Ft&&Ft.now!==ut.Date.now&&Ft.now,b8=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,Ah=Qa.ceil,Nh=Qa.floor,i1=Dn.getOwnPropertySymbols,x8=Oh?Oh.isBuffer:void 0,$E=Ye.isFinite,w8=Eh.join,C8=gE(Dn.keys,Dn),mr=Qa.max,jr=Qa.min,$8=Ft.now,S8=Ye.parseInt,SE=Qa.random,_8=Eh.reverse,s1=gl(Ye,"DataView"),kd=gl(Ye,"Map"),l1=gl(Ye,"Promise"),Ec=gl(Ye,"Set"),Od=gl(Ye,"WeakMap"),Rd=gl(Dn,"create"),jh=Od&&new Od,Pc={},E8=yl(s1),P8=yl(kd),T8=yl(l1),k8=yl(Ec),O8=yl(Od),Lh=fs?fs.prototype:void 0,Dd=Lh?Lh.valueOf:void 0,_E=Lh?Lh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof oa)return d;if(xn.call(d,"__wrapped__"))return EP(d)}return new oa(d)}var Tc=function(){function d(){}return function(h){if(!Wn(h))return{};if(xE)return xE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Fh(){}function oa(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function hl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function aa(d,h,P,A,W,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(P&&(ce=W?P(d,A,W,ae):P(d)),ce!==void 0)return ce;if(!Wn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&xn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!ye)return uo(d,ce)}else{var ot=Lr(d),Ct=ot==v||ot==x;if(gs(d))return XE(d,ye);if(ot==w||ot==u||Ct&&!W){if(ce=Re||Ct?{}:gP(d),!ye)return Re?function(Je,st){return ti(Je,mP(Je),st)}(d,function(Je,st){return Je&&ti(st,po(st),Je)}(ce,d)):function(Je,st){return ti(Je,M1(Je),st)}(d,TE(ce,d))}else{if(!pe[ot])return W?d:{};ce=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return E1(Je);case p:case m:return new wt(+Je);case R:return function(jt,Xt){var Pt=Xt?E1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case B:case z:case Y:case"[object Uint8ClampedArray]":case Q:case H:return QE(Je,It);case g:return new wt;case y:case $:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,qe.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Dd?Dn(Dd.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new Pa);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),WP(d)?d.forEach(function(Je){ce.add(aa(Je,h,P,Je,d,ae))}):VP(d)&&d.forEach(function(Je,st){ce.set(st,aa(Je,h,P,st,d,ae))});var Rt=Ve?void 0:(We?Re?O1:k1:Re?po:Er)(d);return Jr(Rt||d,function(Je,st){Rt&&(Je=d[st=Je]),Md(ce,st,aa(Je,h,P,st,d,ae))}),ce}function kE(d,h,P){var A=P.length;if(d==null)return!A;for(d=Dn(d);A--;){var W=P[A],ae=h[W],ce=d[W];if(ce===void 0&&!(W in d)||!ae(ce))return!1}return!0}function OE(d,h,P){if(typeof d!="function")throw new ra(s);return zd(function(){d.apply(void 0,P)},h)}function Id(d,h,P,A){var W=-1,ae=Oi,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;P&&(h=Tn(h,Io(P))),A?(ae=wc,ce=!1):h.length>=200&&(ae=Pd,ce=!1,h=new ml(h));e:for(;++W-1},Ri.prototype.set=function(d,h){var P=this.__data__,A=zh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Di.prototype.clear=function(){this.size=0,this.__data__={hash:new hl,map:new(kd||Ri),string:new hl}},Di.prototype.delete=function(d){var h=Xh(this,d).delete(d);return this.size-=h?1:0,h},Di.prototype.get=function(d){return Xh(this,d).get(d)},Di.prototype.has=function(d){return Xh(this,d).has(d)},Di.prototype.set=function(d,h){var P=Xh(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},ml.prototype.add=ml.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},ml.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.clear=function(){this.__data__=new Ri,this.size=0},Pa.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},Pa.prototype.get=function(d){return this.__data__.get(d)},Pa.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ri){var A=P.__data__;if(!kd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Di(A)}return P.set(d,h),this.size=P.size,this};var ps=rP(ei),RE=rP(f1,!0);function I8(d,h){var P=!0;return ps(d,function(A,W,ae){return P=!!h(A,W,ae)}),P}function Bh(d,h,P){for(var A=-1,W=d.length;++A0&&P(ye)?h>1?Or(ye,h-1,P,A,W):co(W,ye):A||(W[W.length]=ye)}return W}var d1=oP(),ME=oP(!0);function ei(d,h){return d&&d1(d,h,Er)}function f1(d,h){return d&&ME(d,h,Er)}function Vh(d,h){return Mo(h,function(P){return ji(d[P])})}function kc(d,h){for(var P=0,A=(h=ms(h,d)).length;d!=null&&Ph}function A8(d,h){return d!=null&&xn.call(d,h)}function N8(d,h){return d!=null&&h in Dn(d)}function h1(d,h,P){for(var A=P?wc:Oi,W=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=Tn(Ve,Io(h))),Re=jr(Ve.length,Re),ye[ce]=!P&&(h||W>=120&&Ve.length>=120)?new ml(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Je=Re[We];return Rt*(Je=="desc"?-1:1)}}return ce.index-ye.index}(W,ae,P)})}function UE(d,h,P){for(var A=-1,W=h.length,ae={};++A-1;)ye!==d&&Mh.call(ye,Re,1),Mh.call(d,Re,1);return d}function WE(d,h){for(var P=d?h.length:0,A=P-1;P--;){var W=h[P];if(P==A||W!==ae){var ae=W;Ni(W)?Mh.call(d,W,1):C1(d,W)}}return d}function b1(d,h){return d+Nh(SE()*(h-d+1))}function x1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Nh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return j1(xP(d,h,ho),d+"")}function L8(d){return PE(Ic(d))}function F8(d,h){var P=Ic(d);return Qh(P,vl(h,0,P.length))}function jd(d,h,P,A){if(!Wn(d))return d;for(var W=-1,ae=(h=ms(h,d)).length,ce=ae-1,ye=d;ye!=null&&++WW?0:W+h),(P=P>W?W:P)<0&&(P+=W),W=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(W);++A>>1,ce=d[ae];ce!==null&&!No(ce)&&(P?ce<=h:ce=200){var We=h?null:W8(d);if(We)return _h(We);ce=!1,W=Pd,Re=new ml}else Re=h?[]:ye;e:for(;++A=A?d:ia(d,h,P)}var ZE=g8||function(d){return ut.clearTimeout(d)};function XE(d,h){if(h)return d.slice();var P=d.length,A=bE?bE(P):new d.constructor(P);return d.copy(A),A}function E1(d){var h=new d.constructor(d.byteLength);return new Rh(h).set(new Rh(d)),h}function QE(d,h){var P=h?E1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function eP(d,h){if(d!==h){var P=d!==void 0,A=d===null,W=d==d,ae=No(d),ce=h!==void 0,ye=h===null,Re=h==h,We=No(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||A&&ce&&Re||!P&&Re||!W)return 1;if(!A&&!ae&&!We&&d1?P[W-1]:void 0,ce=W>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(W--,ae):void 0,ce&&Xr(P[0],P[1],ce)&&(ae=W<3?void 0:ae,W=1),h=Dn(h);++A-1?W[ae?h[ce]:ce]:void 0}}function sP(d){return Ai(function(h){var P=h.length,A=P,W=oa.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new ra(s);if(W&&!ce&&Zh(ae)=="wrapper")var ce=new oa([],!0)}for(A=ce?A:P;++A1&&wt.reverse(),Ve&&Reye))return!1;var We=ae.get(d);if(We&&ae.get(h))return We==h;var Ve=-1,ot=!0,Ct=2&P?new ml:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),W.replace(Ue,`{ +/* [wrapped with `+ae+`] */ +`)}(A,function(W,ae){return Jr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!Oi(W,ye)&&W.push(ye)}),W.sort()}(function(W){var ae=W.match(ze);return ae?ae[1].split(He):[]}(A),P)))}function SP(d){var h=0,P=0;return function(){var A=$8(),W=16-(A-P);if(P=A,W>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Qh(d,h){var P=-1,A=d.length,W=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,DP(d,P)});function MP(d){var h=ee(d);return h.__chain__=!0,h}function em(d,h){return h(d)}var fF=Ai(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,W=function(ae){return u1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Ni(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:em,args:[W],thisArg:void 0}),new oa(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(W)}),pF=Gh(function(d,h,P){xn.call(d,P)?++d[P]:Mi(d,P,1)}),hF=iP(PP),mF=iP(TP);function IP(d,h){return(Ht(d)?Jr:ps)(d,Ot(h,3))}function AP(d,h){return(Ht(d)?$h:RE)(d,Ot(h,3))}var vF=Gh(function(d,h,P){xn.call(d,P)?d[P].push(h):Mi(d,P,[h])}),gF=Zt(function(d,h,P){var A=-1,W=typeof h=="function",ae=fo(d)?ht(d.length):[];return ps(d,function(ce){ae[++A]=W?Un(h,ce,P):Ad(ce,h,P)}),ae}),yF=Gh(function(d,h,P){Mi(d,P,h)});function tm(d,h){return(Ht(d)?Tn:LE)(d,Ot(h,3))}var bF=Gh(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),xF=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Xr(d,h[0],h[1])?h=[]:P>2&&Xr(h[0],h[1],h[2])&&(h=[h[0]]),VE(d,Or(h,1),[])}),nm=y8||function(){return ut.Date.now()};function NP(d,h,P){return h=P?void 0:h,Ii(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function jP(d,h){var P;if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var z1=Zt(function(d,h,P){var A=1;if(P.length){var W=us(P,Dc(z1));A|=32}return Ii(d,A,h,P,W)}),LP=Zt(function(d,h,P){var A=3;if(P.length){var W=us(P,Dc(LP));A|=32}return Ii(h,A,d,P,W)});function FP(d,h,P){var A,W,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new ra(s);function $t(At){var jt=A,Xt=W;return A=W=void 0,We=At,ce=d.apply(Xt,jt)}function Rt(At){return We=At,ye=zd(st,h),Ve?$t(At):ce}function Je(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=nm();if(Je(At))return It(At);ye=zd(st,function(jt){var Xt=h-(jt-Re);return ot?jr(Xt,ae-(jt-We)):Xt}(At))}function It(At){return ye=void 0,Ct&&A?$t(At):(A=W=void 0,ce)}function wt(){var At=nm(),jt=Je(At);if(A=arguments,W=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return ZE(ye),ye=zd(st,h),$t(Re)}return ye===void 0&&(ye=zd(st,h)),ce}return h=la(h)||0,Wn(P)&&(Ve=!!P.leading,ae=(ot="maxWait"in P)?mr(la(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){ye!==void 0&&ZE(ye),We=0,A=Re=W=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(nm())},wt}var wF=Zt(function(d,h){return OE(d,1,h)}),CF=Zt(function(d,h,P){return OE(d,la(h)||0,P)});function rm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ra(s);var P=function A(){var W=arguments,ae=h?h.apply(this,W):W[0],ce=A.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,W);return A.cache=ce.set(ae,ye)||ce,ye};return P.cache=new(rm.Cache||Di),P}function om(d){if(typeof d!="function")throw new ra(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}rm.Cache=Di;var $F=U8(function(d,h){var P=(h=h.length==1&&Ht(h[0])?Tn(h[0],Io(Ot())):Tn(Or(h,1),Io(Ot()))).length;return Zt(function(A){for(var W=-1,ae=jr(A.length,P);++W=h}),bl=AE(function(){return arguments}())?AE:function(d){return Jn(d)&&xn.call(d,"callee")&&!wE.call(d,"callee")},Ht=ht.isArray,PF=Ro?Io(Ro):function(d){return Jn(d)&&Zr(d)==I};function fo(d){return d!=null&&am(d.length)&&!ji(d)}function or(d){return Jn(d)&&fo(d)}var gs=x8||X1,TF=ki?Io(ki):function(d){return Jn(d)&&Zr(d)==m};function V1(d){if(!Jn(d))return!1;var h=Zr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Bd(d)}function ji(d){if(!Wn(d))return!1;var h=Zr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function BP(d){return typeof d=="number"&&d==Gt(d)}function am(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Wn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var VP=Za?Io(Za):function(d){return Jn(d)&&Lr(d)==g};function UP(d){return typeof d=="number"||Jn(d)&&Zr(d)==y}function Bd(d){if(!Jn(d)||Zr(d)!=w)return!1;var h=Dh(d);if(h===null)return!0;var P=xn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Th.call(P)==h8}var U1=Kr?Io(Kr):function(d){return Jn(d)&&Zr(d)==C},WP=Do?Io(Do):function(d){return Jn(d)&&Lr(d)==_};function im(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Zr(d)==$}function No(d){return i(d)=="symbol"||Jn(d)&&Zr(d)==E}var Mc=Xa?Io(Xa):function(d){return Jn(d)&&am(d.length)&&!!me[Zr(d)]},kF=Jh(g1),OF=Jh(function(d,h){return d<=h});function HP(d){if(!d)return[];if(fo(d))return im(d)?Ea(d):uo(d);if(Td&&d[Td])return function(P){for(var A,W=[];!(A=P.next()).done;)W.push(A.value);return W}(d[Td]());var h=Lr(d);return(h==g?o1:h==_?_h:Ic)(d)}function Li(d){return d?(d=la(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Li(d),P=h%1;return h==h?P?h-P:h:0}function GP(d){return d?vl(Gt(d),0,4294967295):0}function la(d){if(typeof d=="number")return d;if(No(d))return NaN;if(Wn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Wn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var P=Ae.test(d);return P||Fe.test(d)?lt(d.slice(2),P?2:8):rt.test(d)?NaN:+d}function qP(d){return ti(d,po(d))}function vn(d){return d==null?"":Ao(d)}var RF=Oc(function(d,h){if(Fd(h)||fo(h))ti(h,Er(h),d);else for(var P in h)xn.call(h,P)&&Md(d,P,h[P])}),YP=Oc(function(d,h){ti(h,po(h),d)}),sm=Oc(function(d,h,P,A){ti(h,po(h),d,A)}),DF=Oc(function(d,h,P,A){ti(h,Er(h),d,A)}),MF=Ai(u1),IF=Zt(function(d,h){d=Dn(d);var P=-1,A=h.length,W=A>2?h[2]:void 0;for(W&&Xr(h[0],h[1],W)&&(A=1);++P1),ae}),ti(d,O1(d),P),A&&(P=aa(P,7,H8));for(var W=h.length;W--;)C1(P,h[W]);return P}),BF=Ai(function(d,h){return d==null?{}:function(P,A){return UE(P,A,function(W,ae){return H1(P,ae)})}(d,h)});function JP(d,h){if(d==null)return{};var P=Tn(O1(d),function(A){return[A]});return h=Ot(h),UE(d,P,function(A,W){return h(A,W[0])})}var ZP=dP(Er),XP=dP(po);function Ic(d){return d==null?[]:r1(d,Er(d))}var VF=Rc(function(d,h,P){return h=h.toLowerCase(),d+(P?QP(h):h)});function QP(d){return G1(vn(d).toLowerCase())}function eT(d){return(d=vn(d))&&d.replace(Te,i8).replace(Bn,"")}var UF=Rc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),WF=Rc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),HF=aP("toLowerCase"),GF=Rc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),qF=Rc(function(d,h,P){return d+(P?" ":"")+G1(h)}),YF=Rc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),G1=aP("toUpperCase");function tT(d,h,P){return d=vn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(be)||[]}(d):d.match(h)||[]}var nT=Zt(function(d,h){try{return Un(d,void 0,h)}catch(P){return V1(P)?P:new cn(P)}}),KF=Ai(function(d,h){return Jr(h,function(P){P=ni(P),Mi(d,P,z1(d[P],d))}),d});function q1(d){return function(){return d}}var JF=sP(),ZF=sP(!0);function ho(d){return d}function Y1(d){return jE(typeof d=="function"?d:aa(d,1))}var XF=Zt(function(d,h){return function(P){return Ad(P,d,h)}}),QF=Zt(function(d,h){return function(P){return Ad(d,P,h)}});function K1(d,h,P){var A=Er(h),W=Vh(h,A);P!=null||Wn(h)&&(W.length||!A.length)||(P=h,h=d,d=this,W=Vh(h,Er(h)));var ae=!(Wn(P)&&"chain"in P&&!P.chain),ce=ji(d);return Jr(W,function(ye){var Re=h[ye];d[ye]=Re,ce&&(d.prototype[ye]=function(){var We=this.__chain__;if(ae||We){var Ve=d(this.__wrapped__),ot=Ve.__actions__=uo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,co([this.value()],arguments))})}),d}function J1(){}var e7=P1(Tn),t7=P1(fl),n7=P1(X0);function rT(d){return I1(d)?Q0(ni(d)):function(h){return function(P){return kc(P,h)}}(d)}var r7=cP(),o7=cP(!0);function Z1(){return[]}function X1(){return!1}var a7=Yh(function(d,h){return d+h},0),i7=T1("ceil"),s7=Yh(function(d,h){return d/h},1),l7=T1("floor"),Q1,c7=Yh(function(d,h){return d*h},1),u7=T1("round"),d7=Yh(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=NP,ee.assign=RF,ee.assignIn=YP,ee.assignInWith=sm,ee.assignWith=DF,ee.at=MF,ee.before=jP,ee.bind=z1,ee.bindAll=KF,ee.bindKey=LP,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=MP,ee.chunk=function(d,h,P){h=(P?Xr(d,h,P):h===void 0)?1:mr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var W=0,ae=0,ce=ht(Ah(A/h));WWe?0:We+ye),(Re=Re===void 0||Re>We?We:Gt(Re))<0&&(Re+=We),Re=ye>Re?0:GP(Re);ye>>0)?(d=vn(d))&&(typeof h=="string"||h!=null&&!U1(h))&&!(h=Ao(h))&&$c(d)?vs(Ea(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new ra(s);return h=h==null?0:mr(Gt(h),0),Zt(function(P){var A=P[h],W=vs(P,0,h);return A&&co(W,A),Un(d,this,W)})},ee.tail=function(d){var h=d==null?0:d.length;return h?ia(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?ia(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?ia(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,W=!0;if(typeof d!="function")throw new ra(s);return Wn(P)&&(A="leading"in P?!!P.leading:A,W="trailing"in P?!!P.trailing:W),FP(d,h,{leading:A,maxWait:h,trailing:W})},ee.thru=em,ee.toArray=HP,ee.toPairs=ZP,ee.toPairsIn=XP,ee.toPath=function(d){return Ht(d)?Tn(d,ni):No(d)?[d]:uo(_P(vn(d)))},ee.toPlainObject=qP,ee.transform=function(d,h,P){var A=Ht(d),W=A||gs(d)||Mc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=W?A?new ae:[]:Wn(d)&&ji(ae)?Tc(Dh(d)):{}}return(W?Jr:ei)(d,function(ce,ye,Re){return h(P,ce,ye,Re)}),P},ee.unary=function(d){return NP(d,1)},ee.union=rF,ee.unionBy=oF,ee.unionWith=aF,ee.uniq=function(d){return d&&d.length?hs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?hs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?hs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||C1(d,h)},ee.unzip=F1,ee.unzipWith=DP,ee.update=function(d,h,P){return d==null?d:YE(d,h,_1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:YE(d,h,_1(P),A)},ee.values=Ic,ee.valuesIn=function(d){return d==null?[]:r1(d,po(d))},ee.without=iF,ee.words=tT,ee.wrap=function(d,h){return B1(_1(h),d)},ee.xor=sF,ee.xorBy=lF,ee.xorWith=cF,ee.zip=uF,ee.zipObject=function(d,h){return JE(d||[],h||[],Md)},ee.zipObjectDeep=function(d,h){return JE(d||[],h||[],jd)},ee.zipWith=dF,ee.entries=ZP,ee.entriesIn=XP,ee.extend=YP,ee.extendWith=sm,K1(ee,ee),ee.add=a7,ee.attempt=nT,ee.camelCase=VF,ee.capitalize=QP,ee.ceil=i7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=la(P))==P?P:0),h!==void 0&&(h=(h=la(h))==h?h:0),vl(la(d),h,P)},ee.clone=function(d){return aa(d,4)},ee.cloneDeep=function(d){return aa(d,5)},ee.cloneDeepWith=function(d,h){return aa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return aa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||kE(d,h,Er(h))},ee.deburr=eT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=s7,ee.endsWith=function(d,h,P){d=vn(d),h=Ao(h);var A=d.length,W=P=P===void 0?A:vl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,W)==h},ee.eq=Ta,ee.escape=function(d){return(d=vn(d))&&N.test(d)?d.replace(q,s8):d},ee.escapeRegExp=function(d){return(d=vn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?fl:I8;return P&&Xr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=hF,ee.findIndex=PP,ee.findKey=function(d,h){return dE(d,Ot(h,3),ei)},ee.findLast=mF,ee.findLastIndex=TP,ee.findLastKey=function(d,h){return dE(d,Ot(h,3),f1)},ee.floor=l7,ee.forEach=IP,ee.forEachRight=AP,ee.forIn=function(d,h){return d==null?d:d1(d,Ot(h,3),po)},ee.forInRight=function(d,h){return d==null?d:ME(d,Ot(h,3),po)},ee.forOwn=function(d,h){return d&&ei(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&f1(d,Ot(h,3))},ee.get=W1,ee.gt=_F,ee.gte=EF,ee.has=function(d,h){return d!=null&&vP(d,h,A8)},ee.hasIn=H1,ee.head=OP,ee.identity=ho,ee.includes=function(d,h,P,A){d=fo(d)?d:Ic(d),P=P&&!A?Gt(P):0;var W=d.length;return P<0&&(P=mr(W+P,0)),im(d)?P<=W&&d.indexOf(h,P)>-1:!!W&&Cc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=P==null?0:Gt(P);return W<0&&(W=mr(A+W,0)),Cc(d,h,W)},ee.inRange=function(d,h,P){return h=Li(h),P===void 0?(P=h,h=0):P=Li(P),function(A,W,ae){return A>=jr(W,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=WP,ee.isString=im,ee.isSymbol=No,ee.isTypedArray=Mc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&Lr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Zr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":w8.call(d,h)},ee.kebabCase=UF,ee.last=sa,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=A;return P!==void 0&&(W=(W=Gt(P))<0?mr(A+W,0):jr(W,A-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,W):Sh(d,fE,W,!0)},ee.lowerCase=WF,ee.lowerFirst=HF,ee.lt=kF,ee.lte=OF,ee.max=function(d){return d&&d.length?Bh(d,ho,p1):void 0},ee.maxBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),p1):void 0},ee.mean=function(d){return pE(d,ho)},ee.meanBy=function(d,h){return pE(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Bh(d,ho,g1):void 0},ee.minBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),g1):void 0},ee.stubArray=Z1,ee.stubFalse=X1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=c7,ee.nth=function(d,h){return d&&d.length?BE(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=m8),this},ee.noop=J1,ee.now=nm,ee.pad=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;if(!h||A>=h)return d;var W=(h-A)/2;return Kh(Nh(W),P)+d+Kh(Ah(W),P)},ee.padEnd=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var W=SE();return jr(d+W*(h-d+nt("1e-"+((W+"").length-1))),h)}return b1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?Z0:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,ps)},ee.reduceRight=function(d,h,P){var A=Ht(d)?n8:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,RE)},ee.repeat=function(d,h,P){return h=(P?Xr(d,h,P):h===void 0)?1:Gt(h),x1(vn(d),h)},ee.replace=function(){var d=arguments,h=vn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,W=(h=ms(h,d)).length;for(W||(W=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=jr(d,4294967295);d-=4294967295;for(var W=n1(A,h=Ot(h));++P=ae)return d;var ye=P-Sc(A);if(ye<1)return A;var Re=ce?vs(ce,0,ye).join(""):d.slice(0,ye);if(W===void 0)return Re+A;if(ce&&(ye+=Re.length-ye),U1(W)){if(d.slice(ye).search(W)){var We,Ve=Re;for(W.global||(W=a1(W.source,vn(qe.exec(W))+"g")),W.lastIndex=0;We=W.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(Ao(W),ye)!=ye){var Ct=Re.lastIndexOf(W);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=vn(d))&&D.test(d)?d.replace(K,u8):d},ee.uniqueId=function(d){var h=++p8;return vn(d)+h},ee.upperCase=YF,ee.upperFirst=G1,ee.each=IP,ee.eachRight=AP,ee.first=OP,K1(ee,(Q1={},ei(ee,function(d,h){xn.call(ee.prototype,h)||(Q1[h]=d)}),Q1),{chain:!1}),ee.VERSION="4.17.15",Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Jr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:mr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=jr(P,A.__takeCount__):A.__views__.push({size:jr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Jr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(W){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(W,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Jr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Jr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(ho)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Ad(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(om(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ei(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),W=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);W&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=A?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=W.apply(ee,co([It],ye));return A&&Ct?wt[0]:wt};Ve&&P&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Je=Re&&!$t;if(!ae&&Ve){ce=Je?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:em,args:[ot],thisArg:void 0}),new oa(st,Ct)}return Rt&&Je?d.apply(this,ye):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Eh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var W=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],W)}return this[P](function(ce){return h.apply(Ht(ce)?ce:[],W)})}}),ei(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";xn.call(Pc,A)||(Pc[A]=[]),Pc[A].push({name:h,func:P})}}),Pc[qh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=uo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=uo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=uo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,W=P?d.length:0,ae=function(Xt,Pt,Dt){for(var vr=-1,Qr=Dt.length;++vr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Fh;){var A=EP(P);A.__index__=0,A.__values__=void 0,h?W.__wrapped__=A:h=A;var W=A;P=P.__wrapped__}return W.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:em,args:[L1],thisArg:void 0}),new oa(h,this.__chain__)}return this.thru(L1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return KE(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Td&&(ee.prototype[Td]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=ds,(a=(function(){return ds}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=ds)._=ds,yt._=ds):ut._=ds}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),$=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,B,z){var Y,Q=1&F,H=2&F,J=4&F;if(U&&(Y=B?U(R,G,B,z):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var L=b(R),K=L=="[object Function]"||L=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(L=="[object Object]"||L=="[object Arguments]"||K&&!B){if(Y=H||K?{}:g(R),!Q)return H?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[L])return B?R:{};Y=x(R,L,Q)}}z||(z=new r);var q=z.get(R);if(q)return q;z.set(R,Y),$(R)?R.forEach(function(V){Y.add(I(V,F,U,V,R,z))}):C(R)&&R.forEach(function(V,Z){Y.set(Z,I(V,F,U,Z,R,z))});var D=J?H?m:p:H?keysIn:E,N=X?void 0:D(R);return o(N||R,function(V,Z){N&&(V=R[Z=V]),a(Y,Z,I(V,F,U,Z,R,z))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var $ in C)b(_,$,C[$]);return _.join("&")}function b(C,_,$){if($!=null)if(Array.isArray($))$.forEach(function(k){b(C,_,k)});else if(s($))for(var E in $)b(C,_+"["+E+"]",$[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof $!="string"&&!this._isHost($)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&($=I($))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send($!==void 0?$:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,$){var E=new f.Request(C,_);return this._setDefaults(E),$&&E.end($),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var E=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.head=function(C,_,$){var E=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.options=function(C,_,$){var E=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.del=w,f.delete=w,f.patch=function(C,_,$){var E=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.post=function(C,_,$){var E=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.put=function(C,_,$){var E=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var $e=te.length-1,Se=1;Se<$e;++Se)te[Se]=te[Se].slice(1,-1);return te[$e]=te[$e].slice(1),te.join("")}return te[0]}function u(ne){return"(?:"+ne+")"}function f(ne){return ne===void 0?"undefined":ne===null?"null":Object.prototype.toString.call(ne).split(" ").pop().split("]").shift().toLowerCase()}function p(ne){return ne.toUpperCase()}function m(ne){var te=c("[0-9]","[A-Fa-f]"),ie=u(u("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+u("%[89A-Fa-f]"+te+"%"+te+te)+"|"+u("%"+te+te)),$e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=c("[\\:\\/\\?\\#\\[\\]\\@]",$e),Ze=ne?"[\\uE000-\\uF8FF]":"[]",tt=c("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",ne?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");u("[A-Za-z]"+c("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),u(u(ie+"|"+c(tt,$e,"[\\:]"))+"*");var ft=u(u("25[0-5]")+"|"+u("2[0-4][0-9]")+"|"+u("1[0-9][0-9]")+"|"+u("0?[1-9][0-9]")+"|0?0?[0-9]"),_t=u(ft+"\\."+ft+"\\."+ft+"\\."+ft),vt=u(te+"{1,4}"),dt=u(u(vt+"\\:"+vt)+"|"+_t),Et=u(u(vt+"\\:")+"{6}"+dt),Yt=u("\\:\\:"+u(vt+"\\:")+"{5}"+dt),kt=u(u(vt)+"?\\:\\:"+u(vt+"\\:")+"{4}"+dt),ln=u(u(u(vt+"\\:")+"{0,1}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{3}"+dt),Vt=u(u(u(vt+"\\:")+"{0,2}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{2}"+dt),Ut=u(u(u(vt+"\\:")+"{0,3}"+vt)+"?\\:\\:"+vt+"\\:"+dt),Kt=u(u(u(vt+"\\:")+"{0,4}"+vt)+"?\\:\\:"+dt),bn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Bn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,ln,Vt,Ut,Kt,bn,Bn].join("|")),oe=u(u(tt+"|"+ie)+"+");u("[vV]"+te+"+\\."+c(tt,$e,"[\\:]")+"+"),u(u(ie+"|"+c(tt,$e))+"*");var ue=u(ie+"|"+c(tt,$e,"[\\:\\@]"));return u(u(ie+"|"+c(tt,$e,"[\\@]"))+"+"),u(u(ue+"|"+c("[\\/\\?]",Ze))+"*"),{NOT_SCHEME:new RegExp(c("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",tt,$e),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",tt,$e),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",tt,$e),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",tt,$e),"g"),NOT_QUERY:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",tt,$e),"g"),UNRESERVED:new RegExp(tt,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",tt,Se),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+_t+")$"),IPV6ADDRESS:new RegExp("^\\[?("+se+")"+u(u("\\%25|\\%(?!"+te+"{2})")+"("+oe+")")+"?\\]?$")}}var b=m(!1),v=m(!0),x=function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return function(ie,$e){var Se=[],Ze=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Ze=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Ze=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Ze&&vt.return&&vt.return()}finally{if(tt)throw ft}}return Se}(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=2147483647,y=/^xn--/,w=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Ze,tt){for(var ft=[],_t=Ze.length;_t--;)ft[_t]=tt(Ze[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function R(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Ze=ne.charCodeAt(ie++);(64512&Ze)==56320?te.push(((1023&Se)<<10)+(1023&Ze)+65536):(te.push(Se),ie--)}else te.push(Se)}return te}var F=function(ne,te){return ne+22+75*(ne<26)-((te!=0)<<5)},U=function(ne,te,ie){var $e=0;for(ne=ie?$(ne/700):ne>>1,ne+=$(ne/te);ne>455;$e+=36)ne=$(ne/35);return $($e+36*ne/(ne+38))},G=function(ne){var te,ie=[],$e=ne.length,Se=0,Ze=128,tt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt<$e;){for(var dt=Se,Et=1,Yt=36;;Yt+=36){vt>=$e&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>$((g-Se)/Et))&&k("overflow"),Se+=kt*Et;var ln=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=U(Se-dt,Ut,dt==0),$(Se/Ut)>g-Ze&&k("overflow"),Ze+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Ze)}return String.fromCodePoint.apply(String,ie)},B=function(ne){var te=[],ie=(ne=R(ne)).length,$e=128,Se=0,Ze=72,tt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(tt=(vt=dt.next()).done);tt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!tt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=$e&&se$((g-Se)/oe)&&k("overflow"),Se+=(ln-$e)*oe,$e=ln;var ue=!0,ke=!1,Ee=void 0;try{for(var pt,me=ne[Symbol.iterator]();!(ue=(pt=me.next()).done);ue=!0){var pe=pt.value;if(pe<$e&&++Se>g&&k("overflow"),pe==$e){for(var De=Se,nt=36;;nt+=36){var lt=nt<=Ze?1:nt>=Ze+26?26:nt-Ze;if(De>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,$e=ne.length;ie<$e;){var Se=parseInt(ne.substr(ie+1,2),16);if(Se<128)te+=String.fromCharCode(Se),ie+=3;else if(Se>=194&&Se<224){if($e-ie>=6){var Ze=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Ze)}else te+=ne.substr(ie,6);ie+=6}else if(Se>=224){if($e-ie>=9){var tt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&Se)<<12|(63&tt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie($e){var Se=J($e);return Se.match(te.UNRESERVED)?Se:$e}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,H).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,H).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,H).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,H).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,H).replace(te.PCT_ENCODED,p)),ne}function L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=x(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=x(ie,3),Se=$e[1],Ze=$e[2];if(Se){for(var tt=Se.toLowerCase().split("::").reverse(),ft=x(tt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(L):[],Et=_t.split(":").map(L),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Bn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);bn=Bn.join(":")+"::"+se.join(":")}else bn=Vt.join(":");return Ze&&(bn+="%"+Ze),bn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function V(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},$e=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var Se=ne.match(D);if(Se){N?(ie.scheme=Se[1],ie.userinfo=Se[3],ie.host=Se[4],ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=Se[7],ie.fragment=Se[8],isNaN(ie.port)&&(ie.port=Se[5])):(ie.scheme=Se[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?Se[3]:void 0,ie.host=ne.indexOf("//")!==-1?Se[4]:void 0,ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=ne.indexOf("?")!==-1?Se[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?Se[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Se[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,$e),$e)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Ze=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Ze&&Ze.unicodeSupport)X(ie,$e);else{if(ie.host&&(te.domainHost||Ze&&Ze.domainHost))try{ie.host=z(ie.host.replace($e.PCT_ENCODED,J).toLowerCase())}catch(tt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+tt}X(ie,b)}Ze&&Ze.parse&&Ze.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,$e=[];return ne.userinfo!==void 0&&($e.push(ne.userinfo),$e.push("@")),ne.host!==void 0&&$e.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Ze,tt){return"["+Ze+(tt?"%25"+tt:"")+"]"})),typeof ne.port=="number"&&($e.push(":"),$e.push(ne.port.toString(10))),$e.length?$e.join(""):void 0}var re=/^\.\.?\//,le=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(le))ne=ne.replace(le,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(fe);if(!ie)throw new Error("Unexpected dot segment condition");var $e=ie[0];ne=ne.slice($e.length),te.push($e)}return te.join("")}function he(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,$e=[],Se=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(Se&&Se.serialize&&Se.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||Se&&Se.domainHost)try{ne.host=te.iri?Y(ne.host):z(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Ze=Z(ne,te);if(Ze!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Ze),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Ze===void 0&&(tt=tt.replace(/^\/\//,"/%2F")),$e.push(tt)}return ne.query!==void 0&&($e.push("?"),$e.push(ne.query)),ne.fragment!==void 0&&($e.push("#"),$e.push(ne.fragment)),$e.join("")}function _e(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=arguments[3],Se={};return $e||(ne=V(he(ne,ie),ie),te=V(he(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(Se.scheme=te.scheme,Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.path?(te.path.charAt(0)==="/"?Se.path=ge(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?Se.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:Se.path=te.path:Se.path="/"+te.path,Se.path=ge(Se.path)),Se.query=te.query):(Se.path=ne.path,te.query!==void 0?Se.query=te.query:Se.query=ne.query),Se.userinfo=ne.userinfo,Se.host=ne.host,Se.port=ne.port),Se.scheme=ne.scheme),Se.fragment=te.fragment,Se}function ve(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Be={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},ze={},He="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+u("%"+be+be)),Ce=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),qe=new RegExp(He,"g"),rt=new RegExp(we,"g"),Ae=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ce),"g"),Le=new RegExp(c("[^]",He,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Fe=Le;function Pe(ne){var te=J(ne);return te.match(qe)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,$e=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var Se=!1,Ze={},tt=ie.query.split("&"),ft=0,_t=tt.length;ft<_t;++ft){var vt=tt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}function D5e(e,t,n){var r=this,o=S.useRef(null),a=S.useRef(0),i=S.useRef(null),s=S.useRef([]),l=S.useRef(),c=S.useRef(),u=S.useRef(e),f=S.useRef(!0);S.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;S.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=S.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},$=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w($,t),m?y(o.current):c.current;if(v)return w($,t),y(o.current)}return i.current||w($,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function M5e(e,t){return e===t}function wM(e){return typeof e=="function"?function(){return e}:e}function I5e(e,t,n){var r,o,a=n&&n.equalityFn||M5e,i=(r=S.useState(wM(e)),o=r[1],[r[0],S.useCallback(function(f){return o(wM(f))},[])]),s=i[0],l=i[1],c=D5e(S.useCallback(function(f){return l(f)},[l]),t,n),u=S.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function A5e(e){const[t,n]=S.useState({config:null,input:null});S.useEffect(()=>{async function o(){n({config:window.CONFIG_SCHEMA?await Rx(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await Rx(window.INPUT_SCHEMA):null})}o()},[]);const[r]=I5e(e,500);return S.useEffect(()=>{r.defaults||fetch(o9(`/c/${W0.compressToEncodedURIComponent(JSON.stringify(r.data))}/input_schema`)).then(o=>o.json()).then(Rx).then(o=>n(a=>({...a,input:o}))).catch(()=>{})},[r]),t}/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */var N5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),j5e=Object.prototype.hasOwnProperty;function xC(e,t){return j5e.call(e,t)}function wC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ol(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $C(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!CC(m))throw new Qn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);CC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=F5e[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=yu[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Qn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Qn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&$C(e.value))throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new Qn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Qn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=s9([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function s9(e,t,n){try{if(!Array.isArray(e))throw new Qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)H0(Wo(t),Wo(e),n||!0);else{n=n||Bg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function rE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=wC(t),i=wC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(xC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?rE(u,f,n,r+"/"+Ol(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"replace",path:r+"/"+Ol(c),value:Wo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"remove",path:r+"/"+Ol(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function eje(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function $M(){return{data:"",event:"",id:"",retry:void 0}}var tje=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=_C);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=nje,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??oje;async function _(){var $;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await Z5e(E.body,X5e(Q5e(k=>{k?m[SM]=k:delete m[SM]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(E))!==null&&$!==void 0?$:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function oje(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(_C)))throw new Error(`Expected content-type to be ${_C}, Actual: ${t}`)}function aje(e,t){return H0(e,t,!0,!1).newDocument}function ije(e={}){const[t,n]=S.useState(null),[r,o]=S.useState(null),a=S.useRef(e.onStart);a.current=e.onStart;const i=S.useRef(e.onSuccess);i.current=e.onSuccess;const s=S.useRef(e.onError);s.current=e.onError;const l=S.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await rje(o9("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=aje(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=S.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const l9=S.createContext(null);function c9(e,t){const n=S.useContext(l9),r=S.useRef(t);r.current=t,S.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}const oE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),sje=de($d)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Ap=({children:e,...t})=>O.jsx(sje,{...t,children:e}),aE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),lje=de(Yj)(({theme:e})=>({color:e.palette.error.main})),cje=({errorMessages:e,id:t})=>O.jsx(hc,{id:t,title:e,children:O.jsx(lje,{badgeContent:e.split(` +`).length,children:O.jsx(P2,{color:"inherit"})})}),uje={paddingLeft:0,paddingRight:0},dje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(ll,{children:[O.jsx(Ap,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(cje,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Ap,{align:"right",style:uje,children:O.jsx(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large",sx:{p:1},children:O.jsx(aE,{className:"text-ls-black"})})})}):null]})}),_M={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},u9=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return d9(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},d9=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],fje=({numColumns:e,translations:t})=>O.jsx(ll,{children:O.jsx(Ap,{colSpan:e,children:O.jsx(gn,{align:"center",children:t.noDataMessage})})}),pje=M.memo(function({title:t}){return O.jsx($d,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),hje=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},EM=e=>({type:"Control",scope:e,label:!1}),mje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Ap,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:EM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ec,{schema:r,uischema:EM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(fr,{error:!c,children:!c&&a})]})}),vje=e=>{const t=pc(),n=hje(t,e),r=Mt(n.errors);return O.jsx(mje,{...n,isValid:r})},gje=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(ll,{hover:!0,children:[u9(vje,t,e,c,u),c?O.jsx(Ap,{style:l?_M.fixedCell:_M.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs(S.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(A0,{})})}),O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(I0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(oE,{className:"text-ls-black"})})})]})}):null]},e)},yje=M.memo(gje),bje=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(fje,{numColumns:d9(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:hd(e).map(m=>{const b=ir.compose(t,`${m}`);return O.jsx(yje,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class xje extends M.Component{constructor(){super(...arguments);Ud(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?u9(pje,o,r,u,f):void 0;return O.jsx(Pn,{xsUp:!c,children:O.jsxs(C6,{children:[O.jsxs(S6,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx(dje,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(ll,{children:[v,u?O.jsx($d,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx($6,{children:O.jsx(bje,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const wje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(h2,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(T0,{children:O.jsx(p2,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(P0,{children:[O.jsx(Uo,{onClick:o,color:"primary",children:l}),O.jsx(Uo,{onClick:r,color:"primary",children:s})]})]})}),Cje=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Pn,{xsUp:!l,children:[O.jsx(xje,{...e,openDeleteDialog:c}),O.jsx(wje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},$je=mn(11,dc(n_,s5,r_)),f9=My(Cje);function Sje(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var m9="!";function Rje(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function Dje(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Mje(e){return{cache:Oje(e.cacheSize),splitModifiers:Rje(e),..._je(e)}}var Ije=/\s+/;function Aje(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Ije).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=Dje(l).join(":"),v=c?b+m9:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Nje(){for(var e=arguments.length,t=new Array(e),n=0;n{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Ys(OM,"pointer-events-none select-none"),children:[e.value," "]})]})}const Xje=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},RM=pr(Ka(Xje));function Qje(e){try{return JSON.parse(e)}catch{return e}}function e6e(e){try{return JSON.stringify(e)}catch{return e}}const t6e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:typeof t=="object"?e6e(t):t??"",onChange:u=>l(s,u===""?void 0:Qje(u)),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},n6e=pr(Ka(t6e));function oo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function r6e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function y9(...e){return t=>e.forEach(n=>r6e(n,t))}function ns(...e){return S.useCallback(y9(...e),e)}function G0(e,t=[]){let n=[];function r(a,i){const s=S.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=S.useMemo(()=>b,Object.values(b));return S.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=S.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,o6e(o,...t)]}function o6e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const TC=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},a6e=ep["useId".toString()]||(()=>{});let i6e=0;function jv(e){const[t,n]=S.useState(a6e());return TC(()=>{e||n(r=>r??String(i6e++))},[e]),e||(t?`radix-${t}`:"")}function Qs(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ch({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=s6e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Qs(n),l=S.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function s6e({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=Qs(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Np=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(c6e);if(a){const i=a.props.children,s=o.map(l=>l===a?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return S.createElement(kC,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(kC,T({},r,{ref:t}),n)});Np.displayName="Slot";const kC=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...u6e(r,n.props),ref:t?y9(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});kC.displayName="SlotClone";const l6e=({children:e})=>S.createElement(S.Fragment,null,e);function c6e(e){return S.isValidElement(e)&&e.type===l6e}function u6e(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const d6e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ko=d6e.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Np:t;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function f6e(e,t){e&&nd.flushSync(()=>e.dispatchEvent(t))}function p6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const OC="dismissableLayer.update",h6e="dismissableLayer.pointerDownOutside",m6e="dismissableLayer.focusOutside";let DM;const v6e=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g6e=S.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=S.useContext(v6e),[f,p]=S.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=S.useState({}),v=ns(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,$=y6e(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=b6e(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return p6e(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(DM=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),MM(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=DM)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),MM())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener(OC,k),()=>document.removeEventListener(OC,k)},[]),S.createElement(Ko.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:oo(e.onFocusCapture,E.onFocusCapture),onBlurCapture:oo(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:oo(e.onPointerDownCapture,$.onPointerDownCapture)}))});function y6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){b9(h6e,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&b9(m6e,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function MM(){const e=new CustomEvent(OC);document.dispatchEvent(e)}function b9(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?f6e(o,a):o.dispatchEvent(a)}const Dx="focusScope.autoFocusOnMount",Mx="focusScope.autoFocusOnUnmount",IM={bubbles:!1,cancelable:!0},x6e=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=Qs(o),u=Qs(a),f=S.useRef(null),p=ns(t,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let y=function($){if(m.paused||!s)return;const E=$.target;s.contains(E)?f.current=E:Ps(f.current,{select:!0})},w=function($){if(m.paused||!s)return;const E=$.relatedTarget;E!==null&&(s.contains(E)||Ps(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&Ps(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),S.useEffect(()=>{if(s){NM.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Dx,IM);s.addEventListener(Dx,c),s.dispatchEvent(g),g.defaultPrevented||(w6e(E6e(x9(s)),{select:!0}),document.activeElement===v&&Ps(s))}return()=>{s.removeEventListener(Dx,c),setTimeout(()=>{const g=new CustomEvent(Mx,IM);s.addEventListener(Mx,u),s.dispatchEvent(g),g.defaultPrevented||Ps(v??document.body,{select:!0}),s.removeEventListener(Mx,u),NM.remove(m)},0)}}},[s,c,u,m]);const b=S.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=C6e(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ps(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ps(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(Ko.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function w6e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ps(r,{select:t}),document.activeElement!==n)return}function C6e(e){const t=x9(e),n=AM(t,e),r=AM(t.reverse(),e);return[n,r]}function x9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function AM(e,t){for(const n of e)if(!$6e(n,{upTo:t}))return n}function $6e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S6e(e){return e instanceof HTMLInputElement&&"select"in e}function Ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S6e(e)&&t&&e.select()}}const NM=_6e();function _6e(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jM(e,t),e.unshift(t)},remove(t){var n;e=jM(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function jM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function E6e(e){return e.filter(t=>t.tagName!=="A")}const P6e=S.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Cf.createPortal(S.createElement(Ko.div,T({},o,{ref:t})),r):null});function T6e(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const q0=e=>{const{present:t,children:n}=e,r=k6e(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=ns(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};q0.displayName="Presence";function k6e(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=T6e(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=nv(r.current);a.current=s==="mounted"?c:"none"},[s]),TC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=nv(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),TC(()=>{if(t){const c=f=>{const m=nv(r.current).includes(f.animationName);f.target===t&&m&&nd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=nv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function nv(e){return(e==null?void 0:e.animationName)||"none"}let Ix=0;function O6e(){S.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:LM()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:LM()),Ix++,()=>{Ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ix--}},[])}function LM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return q6e;var t=Y6e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J6e=S9(),Z6e=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(D6e,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Lv,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Fv,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Lv," .").concat(Lv,` { + right: 0 `).concat(r,`; + } + + .`).concat(Fv," .").concat(Fv,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(M6e,": ").concat(s,`px; + } +`)},X6e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return K6e(o)},[o]);return S.createElement(J6e,{styles:Z6e(a,!t,o,n?"":"!important")})},RC=!1;if(typeof window<"u")try{var rv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",rv,rv),window.removeEventListener("test",rv,rv)}catch{RC=!1}var Yc=RC?{passive:!1}:!1,Q6e=function(e){return e.tagName==="TEXTAREA"},_9=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q6e(e)&&n[t]==="visible")},eLe=function(e){return _9(e,"overflowY")},tLe=function(e){return _9(e,"overflowX")},zM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=E9(e,n);if(r){var o=P9(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nLe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rLe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E9=function(e,t){return e==="v"?eLe(t):tLe(t)},P9=function(e,t){return e==="v"?nLe(t):rLe(t)},oLe=function(e,t){return e==="h"&&t==="rtl"?-1:1},aLe=function(e,t,n,r,o){var a=oLe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=P9(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&E9(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},ov=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},iLe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sLe=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},lLe=0,Kc=[];function cLe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(lLe++)[0],a=S.useState(function(){return S9()})[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=R6e([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=ov(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,$=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&$.type==="range")return!1;var k=zM(E,$);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=zM(E,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return aLe(I,x,v,I==="h"?w:C,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!Kc.length||Kc[Kc.length-1]!==a)){var g="deltaY"in x?BM(x):ov(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&iLe(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(VM).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=S.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=S.useCallback(function(v){n.current=ov(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,BM(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,ov(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Kc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Yc),document.addEventListener("touchmove",l,Yc),document.addEventListener("touchstart",u,Yc),function(){Kc=Kc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Yc),document.removeEventListener("touchmove",l,Yc),document.removeEventListener("touchstart",u,Yc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:sLe(o)}):null,m?S.createElement(X6e,{gapMode:"margin"}):null)}const uLe=z6e($9,cLe);var T9=S.forwardRef(function(e,t){return S.createElement(Y0,pi({},e,{ref:t,sideCar:uLe}))});T9.classNames=Y0.classNames;const dLe=T9;var fLe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jc=new WeakMap,av=new WeakMap,iv={},jx=0,k9=function(e){return e&&(e.host||k9(e.parentNode))},pLe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=k9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hLe=function(e,t,n,r){var o=pLe(t,Array.isArray(e)?e:[e]);iv[n]||(iv[n]=new WeakMap);var a=iv[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Jc.get(p)||0)+1,x=(a.get(p)||0)+1;Jc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&av.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),jx++,function(){i.forEach(function(f){var p=Jc.get(f)-1,m=a.get(f)-1;Jc.set(f,p),a.set(f,m),p||(av.has(f)||f.removeAttribute(r),av.delete(f)),m||f.removeAttribute(n)}),jx--,jx||(Jc=new WeakMap,Jc=new WeakMap,av=new WeakMap,iv={})}},mLe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||fLe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),hLe(r,o,n,"aria-hidden")):function(){return null}};const O9="Dialog",[R9,r8e]=G0(O9),[vLe,Ja]=R9(O9),gLe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=S.useRef(null),l=S.useRef(null),[c=!1,u]=Ch({prop:r,defaultProp:o,onChange:a});return S.createElement(vLe,{scope:t,triggerRef:s,contentRef:l,contentId:jv(),titleId:jv(),descriptionId:jv(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},yLe="DialogTrigger",bLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(yLe,n),a=ns(t,o.triggerRef);return S.createElement(Ko.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sE(o.open)},r,{ref:a,onClick:oo(e.onClick,o.onOpenToggle)}))}),D9="DialogPortal",[xLe,M9]=R9(D9,{forceMount:void 0}),wLe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(D9,t);return S.createElement(xLe,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(q0,{present:n||a.open},S.createElement(P6e,{asChild:!0,container:o},i))))},DC="DialogOverlay",CLe=S.forwardRef((e,t)=>{const n=M9(DC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(DC,e.__scopeDialog);return a.modal?S.createElement(q0,{present:r||a.open},S.createElement($Le,T({},o,{ref:t}))):null}),$Le=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(DC,n);return S.createElement(dLe,{as:Np,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(Ko.div,T({"data-state":sE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jp="DialogContent",SLe=S.forwardRef((e,t)=>{const n=M9(jp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(jp,e.__scopeDialog);return S.createElement(q0,{present:r||a.open},a.modal?S.createElement(_Le,T({},o,{ref:t})):S.createElement(ELe,T({},o,{ref:t})))}),_Le=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(null),o=ns(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return mLe(a)},[]),S.createElement(I9,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oo(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:oo(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oo(e.onFocusOutside,a=>a.preventDefault())}))}),ELe=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(I9,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),I9=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(jp,n),l=S.useRef(null),c=ns(t,l);return O6e(),S.createElement(S.Fragment,null,S.createElement(x6e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(g6e,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),PLe="DialogTitle",TLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(PLe,n);return S.createElement(Ko.h2,T({id:o.titleId},r,{ref:t}))}),kLe="DialogDescription",OLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(kLe,n);return S.createElement(Ko.p,T({id:o.descriptionId},r,{ref:t}))}),RLe="DialogClose",DLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(RLe,n);return S.createElement(Ko.button,T({type:"button"},r,{ref:t,onClick:oo(e.onClick,()=>o.onOpenChange(!1))}))});function sE(e){return e?"open":"closed"}const MLe=gLe,ILe=bLe,ALe=wLe,NLe=CLe,jLe=SLe,LLe=TLe,FLe=OLe,zLe=DLe;var A9=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lE=()=>M.useContext(A9);function BLe(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BLe(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var VLe=typeof window<"u"?S.useLayoutEffect:S.useEffect;function MC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function ULe(){return cE(/^Mac/)}function WLe(){return cE(/^iPhone/)}function HLe(){return cE(/^iPad/)||ULe()&&navigator.maxTouchPoints>1}function N9(){return WLe()||HLe()}function cE(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Lx=typeof document<"u"&&window.visualViewport;function UM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function j9(e){for(UM(e)&&(e=e.parentElement);e&&!UM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var GLe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),sv=0,Fx;function qLe(e={}){let{isDisabled:t}=e;VLe(()=>{if(!t)return sv++,sv===1&&(N9()?Fx=KLe():Fx=YLe()),()=>{sv--,sv===0&&Fx()}},[t])}function YLe(){return MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"))}function KLe(){let e,t=0,n=f=>{e=j9(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Ug(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Ug(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Lx&&(Lx.height{WM(p)}):Lx.addEventListener("resize",()=>WM(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=MC(vf(document,"touchstart",n,{passive:!1,capture:!0}),vf(document,"touchmove",r,{passive:!1,capture:!0}),vf(document,"touchend",o,{passive:!1,capture:!0}),vf(document,"focus",a,!0),vf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Vg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function WM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=j9(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Ug(e){return e instanceof HTMLInputElement&&!GLe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function JLe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ZLe(...e){return t=>e.forEach(n=>JLe(n,t))}function L9(...e){return S.useCallback(ZLe(...e),e)}var _s=null;function XLe({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(_s===null&&e){_s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(_s!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=_s.position,document.body.style.top=_s.top,document.body.style.left=_s.left,document.body.style.height=_s.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),_s=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var F9=new WeakMap;function Hn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&F9.set(e,r)}function lv(e,t){if(!e||!(e instanceof HTMLElement))return;let n=F9.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function cv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function QLe(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},z9=.4;function B9(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function e9e({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=B9(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function t9e({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=e9e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=B9(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function n9e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=t9e({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",$=0;_&&($=parseInt(w,10));let E=_?$:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Hn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,$=f===a-1,E=f===0;if($&&Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)z9&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Hn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,$=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs($);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var r9e=.25,o9e=500,HM=8,Sl=16,GM=26;function V9({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=r9e,scrollLockTimeout:c=o9e,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[$,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),B=M.useRef(null),z=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),H=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),L=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),V=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ge.length-1&&(z.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=n9e({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:B,onSnapPointChange:Z});qLe({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Be}=XLe({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-GM)/window.innerWidth}function ze(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,N9()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),L.current=Pe.clientY)}function He(Pe,Te){var it;let ct=Pe,gt=new Date,Ne=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?cv(D.current):null;if(z.current&>.getTime()-z.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.length>0)return!1;if(H.current&>.getTime()-H.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return H.current=new Date,!1;if(ct.scrollTop!==0)return H.current=new Date,!1}ct=ct.parentNode}return!0}function be(Pe){if(R){let Te=L.current-Pe.clientY,it=Te>0;if(i&&le===0&&!u||!J.current&&!He(Pe.target,it))return;if(J.current=!0,Hn(D.current,{transition:"none"}),Hn(B.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=QLe(Te);Hn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Ne=ct/N.current,ne=ve(ct,it);ne!==null&&(Ne=ne);let te=1-Ne;if((_e||f&&le===f-1)&&(o==null||o(Pe,Ne),Hn(B.current,{opacity:`${te}`,transition:"none"},!0)),gt&&B.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Hn(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Hn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{rt(!1),Be()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Ug(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Ne)>60&&(K.current=!K.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(q.current=Ne,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-GM),b?D.current.style.height=`${ie-Math.max(Ne,0)}px`:D.current.style.height=`${Math.max($e,gt-te)}px`}else D.current.style.height=`${V.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Ne,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[le,i,ge]);function we(){D.current&&(x==null||x(),D.current&&(Hn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{lv(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function Ce(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=cv(D.current);Hn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Hn(Pe,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function qe(Pe){if(!R||!D.current)return;J.current&&Ug(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=cv(D.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>z9){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}M.useEffect(()=>{y&&(z.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Hn(document.body,{background:"black"},!0),Hn(Te,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(lv(Te,"overflow"),lv(Te,"transform"),lv(Te,"borderRadius"),Hn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-Sl)/window.innerWidth:1,it=Pe?-Sl:0;X.current&&window.clearTimeout(X.current),Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Hn(D.current,{transition:"none",transform:`translate3d(0, ${cv(D.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-Sl)/window.innerWidth,ct=it+Te*(1-it),gt=-Sl+Te*Sl;Hn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-Sl)/window.innerWidth:1,ct=Te?-Sl:0;Te&&Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(MLe,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(A9.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:B,scaleBackground:rt,onPress:ze,setVisible:E,onRelease:qe,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:K,modal:v,snapPointsOffset:ge}},n))}var U9=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lE(),c=L9(n,r),u=o&&o.length>0;return M.createElement(NLe,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});U9.displayName="Drawer.Overlay";var W9=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lE(),y=L9(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(jLe,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});W9.displayName="Drawer.Content";function a9e({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lE();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(V9,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var gf={Root:V9,NestedRoot:a9e,Content:W9,Overlay:U9,Trigger:ILe,Portal:ALe,Close:zLe,Title:LLe,Description:FLe};const H9=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),i9e=e=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),s9e=e=>S.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),l9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),zx=2e3;function IC(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(W0.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Bx(e){const[t,n]=S.useState(!1),r=S.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return S.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(l9e,{}):O.jsx(s9e,{})})}function c9e(e){const t=S.useMemo(()=>W0.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${IC(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +from langserve import RemoteRunnable + +chain = RemoteRunnable("${r}") +chain.invoke({ ... }) +`,s=` +import { RemoteRunnable } from "langchain/runnables/remote"; + +const chain = new RemoteRunnable({ url: \`${a}\` }); +const result = await chain.invoke({ ... }); +`;return O.jsxs(gf.Root,{children:[O.jsx(gf.Trigger,{asChild:!0,children:e.children}),O.jsxs(gf.Portal,{children:[O.jsx(gf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(gf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.lengthS.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function d9e(e){return typeof e=="object"&&e!=null}function Wg(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(d9e(r))r=r[o];else return}return r}function K0(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function f9e(e){const t=e+"CollectionProvider",[n,r]=G0(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=ns(b,g.collectionRef);return M.createElement(Np,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=ns(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Np,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const p9e=S.createContext(void 0);function G9(e){const t=S.useContext(p9e);return e||t||"ltr"}const Vx="rovingFocusGroup.onEntryFocus",h9e={bubbles:!1,cancelable:!0},uE="RovingFocusGroup",[AC,q9,m9e]=f9e(uE),[v9e,Y9]=G0(uE,[m9e]),[g9e,y9e]=v9e(uE),b9e=S.forwardRef((e,t)=>S.createElement(AC.Provider,{scope:e.__scopeRovingFocusGroup},S.createElement(AC.Slot,{scope:e.__scopeRovingFocusGroup},S.createElement(x9e,T({},e,{ref:t}))))),x9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=S.useRef(null),p=ns(t,f),m=G9(a),[b=null,v]=Ch({prop:i,defaultProp:s,onChange:l}),[x,g]=S.useState(!1),y=Qs(c),w=q9(n),C=S.useRef(!1),[_,$]=S.useState(0);return S.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Vx,y),()=>E.removeEventListener(Vx,y)},[y]),S.createElement(g9e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:S.useCallback(E=>v(E),[v]),onItemShiftTab:S.useCallback(()=>g(!0),[]),onFocusableItemAdd:S.useCallback(()=>$(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>$(E=>E-1),[])},S.createElement(Ko.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:oo(e.onMouseDown,()=>{C.current=!0}),onFocus:oo(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(Vx,h9e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(z=>z.focusable),F=R.find(z=>z.active),U=R.find(z=>z.id===b),B=[F,U,...R].filter(Boolean).map(z=>z.ref.current);K9(B)}}C.current=!1}),onBlur:oo(e.onBlur,()=>g(!1))})))}),w9e="RovingFocusGroupItem",C9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=jv(),l=a||s,c=y9e(w9e,n),u=c.currentTabStopId===l,f=q9(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),S.createElement(AC.ItemSlot,{scope:n,id:l,focusable:r,active:o},S.createElement(Ko.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:oo(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:oo(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:oo(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=_9e(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?E9e(g,y+1):g.slice(y+1)}setTimeout(()=>K9(g))}})})))}),$9e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S9e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _9e(e,t,n){const r=S9e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $9e[r]}function K9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const P9e=b9e,T9e=C9e,k9e=S.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Ch({prop:n,onChange:o,defaultProp:r});return S.createElement(Ko.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:oo(e.onClick,()=>{e.disabled||s(!i)})}))}),J0="ToggleGroup",[J9,o8e]=G0(J0,[Y9]),Z9=Y9(),O9e=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(R9e,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(D9e,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${J0}\``)}),[X9,Q9]=J9(J0),R9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ch({prop:n,defaultProp:r,onChange:o});return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(e8,T({},a,{ref:t})))}),D9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Ch({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(e8,T({},a,{ref:t})))}),[M9e,I9e]=J9(J0),e8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Z9(n),u=G9(i),f={role:"group",dir:u,...l};return M.createElement(M9e,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(P9e,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Ko.div,T({},f,{ref:t}))):M.createElement(Ko.div,T({},f,{ref:t})))}),NC="ToggleGroupItem",A9e=M.forwardRef((e,t)=>{const n=Q9(NC,e.__scopeToggleGroup),r=I9e(NC,e.__scopeToggleGroup),o=Z9(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(T9e,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(qM,T({},s,{ref:t}))):M.createElement(qM,T({},s,{ref:t}))}),qM=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Q9(NC,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(k9e,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),N9e=O9e,YM=A9e,j9e=mn(12,Cn(Ga,qr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function KM(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function JM(e,t){return typeof e=="string"?[{content:e,type:t}]:KM(e)?[e]:Array.isArray(e)&&e.every(KM)?e:null}function ZM(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const L9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??""),i=JM(o,"human"),s=JM(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=ir.compose(e.path,`${r}`),a=n.type??"chat",i=ZM((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(ir.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(N9e,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(ir.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(ir.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(YM,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(u9e,{className:"w-4 h-4"})}),O.jsx(YM,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(H9,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(oE,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(ir.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(ir.compose(o,"name"),p.target.value)}}),a==="ai"&&ZM((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(ir.compose(o,"additional_kwargs.function_call.name")),e.handleChange(ir.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(Xu,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(ir.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(Xu,{value:n.content,onChange:p=>{e.handleChange(ir.compose(o,"content"),p)}})]},r)})})]})}),F9e=mn(12,Cn(Ga,qr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!K0(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),z9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=ir.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(Xu,{value:n,onChange:i=>{e.handleChange(ir.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(Xu,{value:r,onChange:i=>{e.handleChange(ir.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(oE,{className:"w-4 h-4"})})]},o)})})]})}),B9e=mn(12,Cn(Ga,qr(e=>K0(e)?e.extra.widget.type==="base64file":!1))),V9e=lo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),U9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function t8(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function W9e(e){const[t,n]=S.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(U9e,{className:Ys("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:br.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:t8(a.final_output)??"..."})]},a.id))})]})}class Hg{constructor(t){Ud(this,"content");Ud(this,"name");Ud(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Hg({content:this.content+t.content,additional_kwargs:Hg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function H9e(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function G9e(e){return e.length>0&&e.every(t=>H9e(t))}function q9e(e){var t;if(G9e(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Hg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(t8).join("")||"..."}const Y9e=z5(e=>{const t=Dy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(Po,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:jC,cells:LC})}),K9e=mn(3,JN);br.extend(L4e);br.extend(N4e);const J9e=mn(2,Cn(Sn("Control"),qa("object"),qr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),Z9e=mn(1,Cn(Sn("Control"),qa("object"))),X9e=mn(1,Cn(Sn("Control"))),jC=[...O5e,{tester:J9e,renderer:j3e},{tester:i3e,renderer:s3e},{tester:F3e,renderer:z3e},{tester:K9e,renderer:Y9e},{tester:$je,renderer:f9},{tester:Z9e,renderer:e9},{tester:j9e,renderer:L9e},{tester:F9e,renderer:z9e},{tester:B9e,renderer:V9e}],Q9e=mn(1,(e,t)=>t.type==="array"),LC=[{tester:fNe,cell:pNe},{tester:mNe,cell:vNe},{tester:yNe,cell:bNe},{tester:wNe,cell:CNe},{tester:_Ne,cell:ENe},{tester:kNe,cell:ONe},{tester:MNe,cell:INe},{tester:LNe,cell:RM},{tester:NNe,cell:RM},{tester:BNe,cell:VNe},{tester:Q9e,cell:f9},{tester:X9e,cell:n6e}];function e8e(){var v,x,g,y,w,C;const[e]=S.useState(()=>window.location.search.includes("embeded=true")),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[],defaults:!0}),[o,a]=S.useState({data:null,errors:[]}),i=A5e(n);S.useEffect(()=>{if(i.config){const _=IC(window.location.href);r({data:_.configFromUrl??t.current??Rm(i.config),errors:[],defaults:!0}),a({data:Rm(i.input),errors:[]})}},[i.config]);const s=S.useRef({onStart:[],onSuccess:[],onError:[]}),{startStream:l,stopStream:c,latest:u}=ije({onStart(..._){for(const $ of s.current.onStart)$(..._)},onSuccess(..._){for(const $ of s.current.onSuccess)$(..._)},onError(..._){for(const $ of s.current.onError)$(..._)}});S.useEffect(()=>{var _;(_=window.parent)==null||_.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function _($){if($.source===window.parent){const E=$.data;if(typeof E=="object"&&E!=null)switch(E.type){case"update":{const k=E.value;if(Object.keys(k.config).length>0){t.current=k.config,r({data:k.config,errors:[],defaults:!1});break}}}}}return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[]);const f=S.useMemo(()=>i.input?JSON.stringify(Rm(i.input))!==JSON.stringify(o.data):!1,[i.input,o.data]);function p(){var _,$;!c&&((_=o.errors)!=null&&_.length||($=n.errors)!=null&&$.length)||(c?c():l(o.data,n.data))}const m=S.useRef(null);m.current=p,S.useEffect(()=>{window.addEventListener("keydown",_=>{var $;_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),($=m.current)==null||$.call(m))})},[]);const b=!c&&(!!((v=o.errors)!=null&&v.length)||!!((x=n.errors)!=null&&x.length));return!i.config||!i.input?O.jsx(O.Fragment,{}):O.jsx(l9.Provider,{value:s,children:O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),Object.keys(i.config).length>0&&O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(wR,{schema:i.config,data:n.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>_?r({data:_,errors:$,defaults:!1}):void 0}),!!((g=n.errors)!=null&&g.length)&&n.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(y=n.errors)==null?void 0:y.map((_,$)=>O.jsx("li",{children:_.message},$))})]})})]})]}),!e&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),f&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>a({data:Rm(i.input),errors:[]}),children:"Reset"})]}),O.jsx(wR,{schema:i.input,data:o.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>a({data:_,errors:$})}),!!((w=o.errors)!=null&&w.length)&&o.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(C=o.errors)==null?void 0:C.map((_,$)=>O.jsx("li",{children:_.message},$))})]})]}),u&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(q9e,{streamed:u.streamed_output})}),O.jsx(W9e,{latest:u})]})]}),O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),e?O.jsxs(O.Fragment,{children:[O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",onClick:()=>{var _;return(_=window.parent)==null?void 0:_.postMessage({type:"close"},"*")},children:"Cancel"}),O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:opacity-50 transition-colors",onClick:()=>{var k;const _=W0.compressToEncodedURIComponent(JSON.stringify(n.data)),E=`${IC(window.location.href).basePath}/c/${_}`;(k=window.parent)==null||k.postMessage({type:"apply",value:{targetUrl:E,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(c9e,{config:n.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(z4e,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx("button",{type:"button",className:Ys("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",b?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:p,disabled:b,children:c?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(F4e,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})})})}Ux.createRoot(document.getElementById("root")).render(O.jsx(e8e,{})); diff --git a/langserve/playground/dist/assets/index-849f2582.js b/langserve/playground/dist/assets/index-849f2582.js deleted file mode 100644 index 9fbde321..00000000 --- a/langserve/playground/dist/assets/index-849f2582.js +++ /dev/null @@ -1,255 +0,0 @@ -var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jd=(e,t,n)=>(q7(e,typeof t!="symbol"?t+"":t,n),n);function Y7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var CI={exports:{}},ay={},$I={exports:{}},an={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Yp=Symbol.for("react.element"),J7=Symbol.for("react.portal"),Z7=Symbol.for("react.fragment"),X7=Symbol.for("react.strict_mode"),Q7=Symbol.for("react.profiler"),ez=Symbol.for("react.provider"),tz=Symbol.for("react.context"),nz=Symbol.for("react.forward_ref"),rz=Symbol.for("react.suspense"),oz=Symbol.for("react.memo"),az=Symbol.for("react.lazy"),OT=Symbol.iterator;function iz(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var SI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_I=Object.assign,EI={};function id(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}id.prototype.isReactComponent={};id.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PI(){}PI.prototype=id.prototype;function n$(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}var r$=n$.prototype=new PI;r$.constructor=n$;_I(r$,id.prototype);r$.isPureReactComponent=!0;var RT=Array.isArray,TI=Object.prototype.hasOwnProperty,o$={current:null},kI={key:!0,ref:!0,__self:!0,__source:!0};function OI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)TI.call(t,r)&&!kI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=W[j];if(0>>1;jo(N,X))Bo(Z,N)?(W[j]=Z,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(Z,X))W[j]=Z,W[B]=X,j=B;else break e}}return J}function o(W,J){var X=W.sortIndex-J.sortIndex;return X!==0?X:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=W)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-W)}}function _(W,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var X=p;p=J;try{return W.apply(this,arguments)}finally{p=X}}}})(II);MI.exports=II;var gz=MI.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var AI=$,Ko=gz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aw=Object.prototype.hasOwnProperty,yz=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,MT={},IT={};function bz(e){return aw.call(IT,e)?!0:aw.call(MT,e)?!1:yz.test(e)?IT[e]=!0:(MT[e]=!0,!1)}function xz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wz(e,t,n,r){if(t===null||typeof t>"u"||xz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jr[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jr[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jr[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jr[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jr[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jr[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jr[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jr[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jr[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var i$=/[\-:]([a-z])/g;function s$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!1,!1)});jr.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!0,!0)});function l$(e,t,n,r){var o=jr.hasOwnProperty(t)?jr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{vb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Cz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=gb(e.type,!1),e;case 11:return e=gb(e.type.render,!1),e;case 1:return e=gb(e.type,!0),e;default:return""}}function cw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case iw:return"Profiler";case c$:return"StrictMode";case sw:return"Suspense";case lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case LI:return(e.displayName||"Context")+".Consumer";case jI:return(e._context.displayName||"Context")+".Provider";case u$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d$:return t=e.displayName||null,t!==null?t:cw(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return cw(e(t))}catch{}}return null}function $z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cw(t);case 8:return t===c$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function el(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sz(e){var t=zI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Em(e){e._valueTracker||(e._valueTracker=Sz(e))}function VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function NT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=el(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function BI(e,t){t=t.checked,t!=null&&l$(e,"checked",t,!1)}function dw(e,t){BI(e,t);var n=el(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fw(e,t.type,n):t.hasOwnProperty("defaultValue")&&fw(e,t.type,el(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fw(e,t,n){(t!=="number"||Zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function up(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_z=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){_z.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function GI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function qI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=GI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ez=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mw(e,t){if(t){if(Ez[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gw=null;function f$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yw=null,Eu=null,Pu=null;function zT(e){if(e=Zp(e)){if(typeof yw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=uy(t),yw(e.stateNode,e.type,t))}}function YI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function KI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,zT(e),t)for(e=0;e>>=0,e===0?32:31-(jz(e)/Lz|0)|0}var Tm=64,km=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Kp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function Bz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),KT=String.fromCharCode(32),JT=!1;function mA(e,t){switch(e){case"keyup":return vV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function yV(e,t){switch(e){case"compositionend":return vA(t);case"keypress":return t.which!==32?null:(JT=!0,KT);case"textInput":return e=t.data,e===KT&&JT?null:e;default:return null}}function bV(e,t){if(du)return e==="compositionend"||!x$&&mA(e,t)?(e=pA(),Sv=g$=Ls=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ek(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wA(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zv(e.document)}return t}function w$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TV(e){var t=wA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&w$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=tk(n,a);var i=tk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Sw=null,Vf=null,_w=!1;function nk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_w||fu==null||fu!==Zv(r)||(r=fu,"selectionStart"in r&&w$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&vp(Vf,r)||(Vf=r,r=og(Sw,"onSelect"),0mu||(e.current=Rw[mu],Rw[mu]=null,mu--)}function Dn(e,t){mu++,Rw[mu]=e.current,e.current=t}var tl={},qr=sl(tl),Co=sl(!1),Jl=tl;function zu(e,t){var n=e.type.contextTypes;if(!n)return tl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function ig(){Ln(Co),Ln(qr)}function ck(e,t,n){if(qr.current!==tl)throw Error(at(168));Dn(qr,t),Dn(Co,n)}function OA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,$z(e)||"Unknown",o));return Kn({},n,r)}function sg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tl,Jl=qr.current,Dn(qr,e),Dn(Co,Co.current),!0}function uk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=OA(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(qr),Dn(qr,e)):Ln(Co),Dn(Co,n)}var Wi=null,dy=!1,Rb=!1;function RA(e){Wi===null?Wi=[e]:Wi.push(e)}function zV(e){dy=!0,RA(e)}function ll(){if(!Rb&&Wi!==null){Rb=!0;var e=0,t=Cn;try{var n=Wi;for(Cn=1;e>=i,o-=i,qi=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R,E=I}if(k===w.length)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(R.done)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return zn&&Rl(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return e&&E.forEach(function(U){return t(g,U)}),zn&&Rl(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _m:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&gk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Dv(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Fb(w,g.mode,C),y.return=g,g=y}return i(g);case Ms:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Zd(w))return v(g,y,w,C);Nm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Lb(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=FA(!0),zA=FA(!1),Xp={},yi=sl(Xp),xp=sl(Xp),wp=sl(Xp);function Bl(e){if(e===Xp)throw Error(at(174));return e}function O$(e,t){switch(Dn(wp,t),Dn(xp,e),Dn(yi,Xp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hw(t,e)}Ln(yi),Dn(yi,t)}function Uu(){Ln(yi),Ln(xp),Ln(wp)}function VA(e){Bl(wp.current);var t=Bl(yi.current),n=hw(t,e.type);t!==n&&(Dn(xp,e),Dn(yi,n))}function R$(e){xp.current===e&&(Ln(yi),Ln(xp))}var qn=sl(0);function pg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Db=[];function D$(){for(var e=0;en?n:4,e(!0);var r=Mb.transition;Mb.transition={};try{e(!1),t()}finally{Cn=n,Mb.transition=r}}function r3(){return wa().memoizedState}function WV(e,t,n){var r=Zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o3(e))a3(t,n);else if(n=AA(e,t,n,r),n!==null){var o=oo();Ha(n,e,r,o),i3(n,t,r)}}function HV(e,t,n){var r=Zs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o3(e))a3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,qa(s,i)){var l=t.interleaved;l===null?(o.next=o,T$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=AA(e,t,o,r),n!==null&&(o=oo(),Ha(n,e,r,o),i3(n,t,r))}}function o3(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function a3(e,t){Bf=hg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h$(e,n)}}var mg={readContext:xa,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},GV={readContext:xa,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tv(4194308,4,XA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tv(4,2,e,t)},useMemo:function(e,t){var n=si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=WV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:yk,useDebugValue:j$,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=yk(!1),t=e[0];return e=UV.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=si();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),kr===null)throw Error(at(349));Xl&30||WA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,bk(GA.bind(null,r,a,e),[e]),r.flags|=2048,Sp(9,HA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=si(),t=kr.identifierPrefix;if(zn){var n=Yi,r=qi;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[di]=t,e[bp]=r,m3(e,t,!1,!1),t.stateNode=e;e:{switch(i=vw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=pg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Vr(t),null}else 2*lr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=lr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return U$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function eB(e,t){switch($$(t),t.tag){case 1:return $o(t.type)&&ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(qr),D$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return P$(t.type._context),null;case 22:case 23:return U$(),null;case 24:return null;default:return null}}var Lm=!1,Hr=!1,tB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function Uw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Tk=!1;function nB(e,t){if(Ew=ng,e=wA(),w$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pw={focusedElem:e,selectionRange:n},ng=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Tk,Tk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Uw(t,n,a)}o=o.next}while(o!==r)}}function hy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ww(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y3(e){var t=e.alternate;t!==null&&(e.alternate=null,y3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[di],delete t[bp],delete t[Ow],delete t[LV],delete t[FV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b3(e){return e.tag===5||e.tag===3||e.tag===4}function kk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ag));else if(r!==4&&(e=e.child,e!==null))for(Hw(e,t,n),e=e.sibling;e!==null;)Hw(e,t,n),e=e.sibling}function Gw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gw(e,t,n),e=e.sibling;e!==null;)Gw(e,t,n),e=e.sibling}var Mr=null,Na=!1;function _s(e,t,n){for(n=n.child;n!==null;)x3(e,t,n),n=n.sibling}function x3(e,t,n){if(gi&&typeof gi.onCommitFiberUnmount=="function")try{gi.onCommitFiberUnmount(iy,n)}catch{}switch(n.tag){case 5:Hr||bu(n,t);case 6:var r=Mr,o=Na;Mr=null,_s(e,t,n),Mr=r,Na=o,Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mr.removeChild(n.stateNode));break;case 18:Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?Ob(e.parentNode,n):e.nodeType===1&&Ob(e,n),hp(e)):Ob(Mr,n.stateNode));break;case 4:r=Mr,o=Na,Mr=n.stateNode.containerInfo,Na=!0,_s(e,t,n),Mr=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Uw(n,t,i),o=o.next}while(o!==r)}_s(e,t,n);break;case 1:if(!Hr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:n.mode&1?(Hr=(r=Hr)||n.memoizedState!==null,_s(e,t,n),Hr=r):_s(e,t,n);break;default:_s(e,t,n)}}function Ok(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tB),t.forEach(function(r){var o=dB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=lr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oB(r/1960))-r,10e?16:e,Fs===null)var r=!1;else{if(e=Fs,Fs=null,yg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;llr()-V$?Hl(e,0):z$|=n),So(e,t)}function T3(e,t){t===0&&(e.mode&1?(t=km,km<<=1,!(km&130023424)&&(km=4194304)):t=1);var n=oo();e=rs(e,t),e!==null&&(Kp(e,t,n),So(e,n))}function uB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T3(e,n)}function dB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),T3(e,n)}var k3;k3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,XV(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&DA(t,cg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kv(e,t),e=t.pendingProps;var o=zu(t,qr.current);ku(t,n),o=I$(null,t,r,e,o,n);var a=A$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,sg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,k$(t),o.updater=fy,t.stateNode=o,o._reactInternals=t,Nw(t,r,e,n),t=Fw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&C$(t),no(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pB(r),e=Aa(r,e),o){case 0:t=Lw(null,t,r,e,n);break e;case 1:t=_k(null,t,r,e,n);break e;case 11:t=$k(null,t,r,e,n);break e;case 14:t=Sk(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Lw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 3:e:{if(f3(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,NA(e,t),fg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Ek(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Ek(e,t,r,n,o);break e}else for(Wo=Ys(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=zA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=os(e,t,n);break e}no(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Mw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Tw(r,o)?i=null:a!==null&&Tw(r,a)&&(t.flags|=32),d3(e,t),no(e,t,i,n),t.child;case 6:return e===null&&Mw(t),null;case 13:return p3(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):no(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),$k(e,t,r,o,n);case 7:return no(e,t,t.pendingProps,n),t.child;case 8:return no(e,t,t.pendingProps.children,n),t.child;case 12:return no(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(ug,r._currentValue),r._currentValue=i,a!==null)if(qa(a.value,i)){if(a.children===o.children&&!Co.current){t=os(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ji(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Iw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Iw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}no(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,no(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Sk(e,t,r,o,n);case 15:return c3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),kv(e,t),t.tag=1,$o(r)?(e=!0,sg(t)):e=!1,ku(t,n),LA(t,r,o),Nw(t,r,o,n),Fw(null,t,r,!0,e,n);case 19:return h3(e,t,n);case 22:return u3(e,t,n)}throw Error(at(156,t.tag))};function O3(e,t){return nA(e,t)}function fB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new fB(e,t,n,r)}function H$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pB(e){if(typeof e=="function")return H$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===u$)return 11;if(e===d$)return 14}return 2}function Xs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")H$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case c$:i=8,o|=8;break;case iw:return e=va(12,n,t,o|2),e.elementType=iw,e.lanes=a,e;case sw:return e=va(13,n,t,o),e.elementType=sw,e.lanes=a,e;case lw:return e=va(19,n,t,o),e.elementType=lw,e.lanes=a,e;case FI:return vy(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jI:i=10;break e;case LI:i=9;break e;case u$:i=11;break e;case d$:i=14;break e;case Ms:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function vy(e,t,n,r){return e=va(22,e,r,t),e.elementType=FI,e.lanes=n,e.stateNode={isHidden:!1},e}function Lb(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Fb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bb(0),this.expirationTimes=bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G$(e,t,n,r,o,a,i,s,l){return e=new hB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},k$(a),e}function mB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I3)}catch(e){console.error(e)}}I3(),DI.exports=Xo;var cd=DI.exports;const Of=Vt(cd);var Lk=cd;ow.createRoot=Lk.createRoot,ow.hydrateRoot=Lk.hydrateRoot;const xB=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var J$={exports:{}};J$.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(J$);var Z$=J$.exports;function X$(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(Z$.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Q$(e){const{basePath:t}=X$(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const wB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:R(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,Z){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,Z){Z(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function R(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,Z,re){var ce=!0;function xe(me,ue){Z.push(ue),D(N,me,Z,re),Z.pop()}o.isFunction(re)&&(ce=re(N,B,Z)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,Z=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],Z.push(B))})),Z}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var Z,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,B)),K.filter(Z,B)&&(re=J(B),q[re]=Z),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function J(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,Z,re){var ce,xe,me=Promise.resolve(),ue=J(Z.subDocPath),se=k(Z.location),Ce=i.dirname(Z.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,Z),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(Z.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):Z.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],Z=[],re=new a.Graph,ce=k(K.location),xe=ce+J(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){Z.indexOf(se)===-1&&Z.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);Z.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+J(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return J(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[R]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[R]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Ri=Un&&Un.isDate,Qa=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ei=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function z2(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function F8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var z8=p1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),V8=p1({"&":"&","<":"<",">":">",'"':""","'":"'"});function B8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function g1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function V2(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function ms(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),vs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:vs.defaults(ut.Object(),Ke,vs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ti=Ke.Math,Mn=Ke.Object,y1=Ke.RegExp,H8=Ke.String,aa=Ke.TypeError,Nh=ht.prototype,G8=mr.prototype,Rc=Mn.prototype,jh=Ke["__core-js_shared__"],Lh=G8.toString,wn=Rc.hasOwnProperty,q8=0,B2=(qe=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Fh=Rc.toString,Y8=Lh.call(Mn),K8=ut._,J8=y1("^"+Lh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zh=Pn?Ke.Buffer:void 0,gs=Ke.Symbol,Vh=Ke.Uint8Array,U2=zh?zh.allocUnsafe:void 0,Bh=V2(Mn.getPrototypeOf,Mn),W2=Mn.create,H2=Rc.propertyIsEnumerable,Uh=Nh.splice,G2=gs?gs.isConcatSpreadable:void 0,Ad=gs?gs.iterator:void 0,bl=gs?gs.toStringTag:void 0,Wh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),Z8=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,X8=Ft&&Ft.now!==ut.Date.now&&Ft.now,Q8=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Hh=ti.ceil,Gh=ti.floor,b1=Mn.getOwnPropertySymbols,eF=zh?zh.isBuffer:void 0,q2=Ke.isFinite,tF=Nh.join,nF=V2(Mn.keys,Mn),vr=ti.max,Lr=ti.min,rF=Ft.now,oF=Ke.parseInt,Y2=ti.random,aF=Nh.reverse,x1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),w1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),qh=jd&&new jd,Mc={},iF=Sl(x1),sF=Sl(Nd),lF=Sl(w1),cF=Sl(Dc),uF=Sl(jd),Yh=gs?gs.prototype:void 0,Fd=Yh?Yh.valueOf:void 0,K2=Yh?Yh.toString:void 0;function ee(d){if(Zn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return JP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(W2)return W2(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Kh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Re=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Ze){var st=Ze.length,It=new Ze.constructor(st);return st&&typeof Ze[0]=="string"&&wn.call(Ze,"index")&&(It.index=Ze.index,It.input=Ze.input),It}(d),!be)return fo(d,de)}else{var ot=Fr(d),Ct=ot==v||ot==x;if(Cs(d))return CP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Re||Ct?{}:VP(d),!be)return Re?function(Ze,st){return ri(Ze,FP(Ze),st)}(d,function(Ze,st){return Ze&&ri(st,ho(st),Ze)}(de,d)):function(Ze,st){return ri(Ze,G1(Ze),st)}(d,X2(de,d))}else{if(!ve[ot])return H?d:{};de=function(Ze,st,It){var wt=Ze.constructor;switch(st){case I:return F1(Ze);case p:case m:return new wt(+Ze);case R:return function(jt,Xt){var Pt=Xt?F1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Ze,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return $P(Ze,It);case g:return new wt;case y:case S:return new wt(Ze);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Ze);case _:return new wt;case E:return At=Ze,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),hT(d)?d.forEach(function(Ze){de.add(sa(Ze,h,P,Ze,d,ae))}):fT(d)&&d.forEach(function(Ze,st){de.set(st,sa(Ze,h,P,st,d,ae))});var Rt=We?void 0:(Ge?Re?U1:B1:Re?ho:Pr)(d);return Zr(Rt||d,function(Ze,st){Rt&&(Ze=d[st=Ze]),zd(de,st,sa(Ze,h,P,st,d,ae))}),de}function Q2(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function eP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Di,de=!0,be=d.length,Re=[],Ge=h.length;if(!be)return Re;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Mi.prototype.set=function(d,h){var P=this.__data__,A=Jh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ii.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Mi),string:new xl}},Ii.prototype.delete=function(d){var h=lm(this,d).delete(d);return this.size-=h?1:0,h},Ii.prototype.get=function(d){return lm(this,d).get(d)},Ii.prototype.has=function(d){return lm(this,d).has(d)},Ii.prototype.set=function(d,h){var P=lm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Mi,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Mi){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ii(A)}return P.set(d,h),this.size=P.size,this};var ys=PP(ni),tP=PP(_1,!0);function hF(d,h){var P=!0;return ys(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function Zh(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Rr(be,h-1,P,A,H):uo(H,be):A||(H[H.length]=be)}return H}var S1=TP(),rP=TP(!0);function ni(d,h){return d&&S1(d,h,Pr)}function _1(d,h){return d&&rP(d,h,Pr)}function Xh(d,h){return Ao(h,function(P){return Fi(d[P])})}function Ac(d,h){for(var P=0,A=(h=xs(h,d)).length;d!=null&&Ph}function mF(d,h){return d!=null&&wn.call(d,h)}function vF(d,h){return d!=null&&h in Mn(d)}function P1(d,h,P){for(var A=P?Pc:Di,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Re=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Re=Lr(We.length,Re),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Rt;var Ze=Re[Ge];return Rt*(Ze=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function pP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Uh.call(be,Re,1),Uh.call(d,Re,1);return d}function hP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;Li(H)?Uh.call(d,H,1):A1(d,H)}}return d}function D1(d,h){return d+Gh(Y2()*(h-d+1))}function M1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Gh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return J1(WP(d,h,mo),d+"")}function yF(d){return Z2(zc(d))}function bF(d,h){var P=zc(d);return cm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=xs(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:SF(d);if(Ge)return Ah(Ge);de=!1,H=Id,Re=new wl}else Re=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var wP=Z8||function(d){return ut.clearTimeout(d)};function CP(d,h){if(h)return d.slice();var P=d.length,A=U2?U2(P):new d.constructor(P);return d.copy(A),A}function F1(d){var h=new d.constructor(d.byteLength);return new Vh(h).set(new Vh(d)),h}function $P(d,h){var P=h?F1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function SP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Re=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Re&&!be&&!Ge||A&&de&&Re||!P&&Re||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&Qr(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function RP(d){return ji(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&sm(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Rebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ -/* [wrapped with `+ae+`] */ -`)}(A,function(H,ae){return Zr(c,function(de){var be="_."+de[0];ae&de[1]&&!Di(H,be)&&H.push(be)}),H.sort()}(function(H){var ae=H.match(De);return ae?ae[1].split(Be):[]}(A),P)))}function YP(d){var h=0,P=0;return function(){var A=rF(),H=16-(A-P);if(P=A,H>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function cm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,nT(d,P)});function rT(d){var h=ee(d);return h.__chain__=!0,h}function um(d,h){return h(d)}var GF=ji(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return $1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Li(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:um,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),qF=nm(function(d,h,P){wn.call(d,P)?++d[P]:Ai(d,P,1)}),YF=OP(ZP),KF=OP(XP);function oT(d,h){return(Ht(d)?Zr:ys)(d,Ot(h,3))}function aT(d,h){return(Ht(d)?Mh:tP)(d,Ot(h,3))}var JF=nm(function(d,h,P){wn.call(d,P)?d[P].push(h):Ai(d,P,[h])}),ZF=Zt(function(d,h,P){var A=-1,H=typeof h=="function",ae=po(d)?ht(d.length):[];return ys(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),XF=nm(function(d,h,P){Ai(d,P,h)});function dm(d,h){return(Ht(d)?kn:lP)(d,Ot(h,3))}var QF=nm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),e7=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Qr(d,h[0],h[1])?h=[]:P>2&&Qr(h[0],h[1],h[2])&&(h=[h[0]]),fP(d,Rr(h,1),[])}),fm=X8||function(){return ut.Date.now()};function iT(d,h,P){return h=P?void 0:h,Ni(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function sT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var Q1=Zt(function(d,h,P){var A=1;if(P.length){var H=ms(P,Lc(Q1));A|=32}return Ni(d,A,h,P,H)}),lT=Zt(function(d,h,P){var A=3;if(P.length){var H=ms(P,Lc(lT));A|=32}return Ni(h,A,d,P,H)});function cT(d,h,P){var A,H,ae,de,be,Re,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Rt(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Ze(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=fm();if(Ze(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Re);return ot?Lr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=fm(),jt=Ze(At);if(A=arguments,H=this,Re=At,jt){if(be===void 0)return Rt(Re);if(ot)return wP(be),be=qd(st,h),$t(Re)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&wP(be),Ge=0,A=Re=H=be=void 0},wt.flush=function(){return be===void 0?de:It(fm())},wt}var t7=Zt(function(d,h){return eP(d,1,h)}),n7=Zt(function(d,h,P){return eP(d,ua(h)||0,P)});function pm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(pm.Cache||Ii),P}function hm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}pm.Cache=Ii;var r7=$F(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Ot())):kn(Rr(h,1),No(Ot()))).length;return Zt(function(A){for(var H=-1,ae=Lr(A.length,P);++H=h}),_l=aP(function(){return arguments}())?aP:function(d){return Zn(d)&&wn.call(d,"callee")&&!H2.call(d,"callee")},Ht=ht.isArray,s7=Mo?No(Mo):function(d){return Zn(d)&&Xr(d)==I};function po(d){return d!=null&&mm(d.length)&&!Fi(d)}function ar(d){return Zn(d)&&po(d)}var Cs=eF||db,l7=Ri?No(Ri):function(d){return Zn(d)&&Xr(d)==m};function tb(d){if(!Zn(d))return!1;var h=Xr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Fi(d){if(!Hn(d))return!1;var h=Xr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function dT(d){return typeof d=="number"&&d==Gt(d)}function mm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Zn(d){return d!=null&&i(d)=="object"}var fT=Qa?No(Qa):function(d){return Zn(d)&&Fr(d)==g};function pT(d){return typeof d=="number"||Zn(d)&&Xr(d)==y}function Yd(d){if(!Zn(d)||Xr(d)!=w)return!1;var h=Bh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Lh.call(P)==Y8}var nb=Jr?No(Jr):function(d){return Zn(d)&&Xr(d)==C},hT=Io?No(Io):function(d){return Zn(d)&&Fr(d)==_};function vm(d){return typeof d=="string"||!Ht(d)&&Zn(d)&&Xr(d)==S}function Lo(d){return i(d)=="symbol"||Zn(d)&&Xr(d)==E}var Fc=ei?No(ei):function(d){return Zn(d)&&mm(d.length)&&!!ye[Xr(d)]},c7=im(O1),u7=im(function(d,h){return d<=h});function mT(d){if(!d)return[];if(po(d))return vm(d)?Ta(d):fo(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=Fr(d);return(h==g?g1:h==_?Ah:zc)(d)}function zi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=zi(d),P=h%1;return h==h?P?h-P:h:0}function vT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function gT(d){return ri(d,ho(d))}function gn(d){return d==null?"":jo(d)}var d7=Nc(function(d,h){if(Gd(h)||po(h))ri(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),yT=Nc(function(d,h){ri(h,ho(h),d)}),gm=Nc(function(d,h,P,A){ri(h,ho(h),d,A)}),f7=Nc(function(d,h,P,A){ri(h,Pr(h),d,A)}),p7=ji($1),h7=Zt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&Qr(h[0],h[1],H)&&(A=1);++P1),ae}),ri(d,U1(d),P),A&&(P=sa(P,7,_F));for(var H=h.length;H--;)A1(P,h[H]);return P}),w7=ji(function(d,h){return d==null?{}:function(P,A){return pP(P,A,function(H,ae){return ob(P,ae)})}(d,h)});function xT(d,h){if(d==null)return{};var P=kn(U1(d),function(A){return[A]});return h=Ot(h),pP(d,P,function(A,H){return h(A,H[0])})}var wT=AP(Pr),CT=AP(ho);function zc(d){return d==null?[]:v1(d,Pr(d))}var C7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?$T(h):h)});function $T(d){return ab(gn(d).toLowerCase())}function ST(d){return(d=gn(d))&&d.replace(Te,z8).replace(Bn,"")}var $7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),S7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),_7=kP("toLowerCase"),E7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),P7=jc(function(d,h,P){return d+(P?" ":"")+ab(h)}),T7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ab=kP("toUpperCase");function _T(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var ET=Zt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return tb(P)?P:new cn(P)}}),k7=ji(function(d,h){return Zr(h,function(P){P=oi(P),Ai(d,P,Q1(d[P],d))}),d});function ib(d){return function(){return d}}var O7=RP(),R7=RP(!0);function mo(d){return d}function sb(d){return sP(typeof d=="function"?d:sa(d,1))}var D7=Zt(function(d,h){return function(P){return Bd(P,d,h)}}),M7=Zt(function(d,h){return function(P){return Bd(d,P,h)}});function lb(d,h,P){var A=Pr(h),H=Xh(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=Xh(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Fi(d);return Zr(H,function(be){var Re=h[be];d[be]=Re,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=fo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Re.apply(d,uo([this.value()],arguments))})}),d}function cb(){}var I7=z1(kn),A7=z1(yl),N7=z1(d1);function PT(d){return q1(d)?f1(oi(d)):function(h){return function(P){return Ac(P,h)}}(d)}var j7=MP(),L7=MP(!0);function ub(){return[]}function db(){return!1}var F7=om(function(d,h){return d+h},0),z7=V1("ceil"),V7=om(function(d,h){return d/h},1),B7=V1("floor"),fb,U7=om(function(d,h){return d*h},1),W7=V1("round"),H7=om(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=iT,ee.assign=d7,ee.assignIn=yT,ee.assignInWith=gm,ee.assignWith=f7,ee.at=p7,ee.before=sT,ee.bind=Q1,ee.bindAll=k7,ee.bindKey=lT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=rT,ee.chunk=function(d,h,P){h=(P?Qr(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Hh(A/h));HGe?0:Ge+be),(Re=Re===void 0||Re>Ge?Ge:Gt(Re))<0&&(Re+=Ge),Re=be>Re?0:vT(Re);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!nb(h))&&!(h=jo(h))&&kc(d)?ws(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Zt(function(P){var A=P[h],H=ws(P,0,h);return A&&uo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),cT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=um,ee.toArray=mT,ee.toPairs=wT,ee.toPairsIn=CT,ee.toPath=function(d){return Ht(d)?kn(d,oi):Lo(d)?[d]:fo(KP(gn(d)))},ee.toPlainObject=gT,ee.transform=function(d,h,P){var A=Ht(d),H=A||Cs(d)||Fc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Fi(ae)?Ic(Bh(d)):{}}return(H?Zr:ni)(d,function(de,be,Re){return h(P,de,be,Re)}),P},ee.unary=function(d){return iT(d,1)},ee.union=jF,ee.unionBy=LF,ee.unionWith=FF,ee.uniq=function(d){return d&&d.length?bs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?bs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?bs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||A1(d,h)},ee.unzip=X1,ee.unzipWith=nT,ee.update=function(d,h,P){return d==null?d:yP(d,h,L1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:yP(d,h,L1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:v1(d,ho(d))},ee.without=zF,ee.words=_T,ee.wrap=function(d,h){return eb(L1(h),d)},ee.xor=VF,ee.xorBy=BF,ee.xorWith=UF,ee.zip=WF,ee.zipObject=function(d,h){return xP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return xP(d||[],h||[],Wd)},ee.zipWith=HF,ee.entries=wT,ee.entriesIn=CT,ee.extend=yT,ee.extendWith=gm,lb(ee,ee),ee.add=F7,ee.attempt=ET,ee.camelCase=C7,ee.capitalize=$T,ee.ceil=z7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||Q2(d,h,Pr(h))},ee.deburr=ST,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=V7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Oa,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,V8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:hF;return P&&Qr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=YF,ee.findIndex=ZP,ee.findKey=function(d,h){return A2(d,Ot(h,3),ni)},ee.findLast=KF,ee.findLastIndex=XP,ee.findLastKey=function(d,h){return A2(d,Ot(h,3),_1)},ee.floor=B7,ee.forEach=oT,ee.forEachRight=aT,ee.forIn=function(d,h){return d==null?d:S1(d,Ot(h,3),ho)},ee.forInRight=function(d,h){return d==null?d:rP(d,Ot(h,3),ho)},ee.forOwn=function(d,h){return d&&ni(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&_1(d,Ot(h,3))},ee.get=rb,ee.gt=a7,ee.gte=i7,ee.has=function(d,h){return d!=null&&zP(d,h,mF)},ee.hasIn=ob,ee.head=eT,ee.identity=mo,ee.includes=function(d,h,P,A){d=po(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),vm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=zi(h),P===void 0?(P=h,h=0):P=zi(P),function(A,H,ae){return A>=Lr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=hT,ee.isString=vm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Zn(d)&&Fr(d)==k},ee.isWeakSet=function(d){return Zn(d)&&Xr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":tF.call(d,h)},ee.kebabCase=$7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Lr(H,A-1)),h==h?function(ae,de,be){for(var Re=be+1;Re--;)if(ae[Re]===de)return Re;return Re}(d,h,H):Ih(d,N2,H,!0)},ee.lowerCase=S7,ee.lowerFirst=_7,ee.lt=c7,ee.lte=u7,ee.max=function(d){return d&&d.length?Zh(d,mo,E1):void 0},ee.maxBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),E1):void 0},ee.mean=function(d){return j2(d,mo)},ee.meanBy=function(d,h){return j2(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Zh(d,mo,O1):void 0},ee.minBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),O1):void 0},ee.stubArray=ub,ee.stubFalse=db,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=U7,ee.nth=function(d,h){return d&&d.length?dP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=K8),this},ee.noop=cb,ee.now=fm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return am(Gh(H),P)+d+am(Hh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=Y2();return Lr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return D1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?u1:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,ys)},ee.reduceRight=function(d,h,P){var A=Ht(d)?N8:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,tP)},ee.repeat=function(d,h,P){return h=(P?Qr(d,h,P):h===void 0)?1:Gt(h),M1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=xs(h,d)).length;for(H||(H=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=Lr(d,4294967295);d-=4294967295;for(var H=m1(A,h=Ot(h));++P=ae)return d;var be=P-Oc(A);if(be<1)return A;var Re=de?ws(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Re+A;if(de&&(be+=Re.length-be),nb(H)){if(d.slice(be).search(H)){var Ge,We=Re;for(H.global||(H=y1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Re=Re.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Re.lastIndexOf(H);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,W8):d},ee.uniqueId=function(d){var h=++q8;return gn(d)+h},ee.upperCase=T7,ee.upperFirst=ab,ee.each=oT,ee.eachRight=aT,ee.first=eT,lb(ee,(fb={},ni(ee,function(d,h){wn.call(ee.prototype,h)||(fb[h]=d)}),fb),{chain:!1}),ee.VERSION="4.17.15",Zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Zr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Lr(P,A.__takeCount__):A.__views__.push({size:Lr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Zr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Zr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Zr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(mo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(hm(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ni(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Re=de instanceof rn,Ge=be[0],We=Re||Ht(de),ot=function(It){var wt=H.apply(ee,uo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Re=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Ze=Re&&!$t;if(!ae&&We){de=Ze?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:um,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Rt&&Ze?d.apply(this,be):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Zr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Nh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),ni(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[rm(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=fo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=fo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=fo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,eo=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Kh;){var A=JP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:um,args:[Z1],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(Z1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return bP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=vs,(a=(function(){return vs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=vs)._=vs,yt._=vs):ut._=vs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,z,V){var Y,Q=1&F,W=2&F,J=4&F;if(U&&(Y=z?U(R,G,z,V):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var j=b(R),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(R),!Q)return W?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[j])return z?R:{};Y=x(R,j,Q)}}V||(V=new r);var q=V.get(R);if(q)return q;V.set(R,Y),S(R)?R.forEach(function(B){Y.add(I(B,F,U,B,R,V))}):C(R)&&R.forEach(function(B,Z){Y.set(Z,I(B,F,U,Z,R,V))});var D=J?W?m:p:W?keysIn:E,N=X?void 0:D(R);return o(N||R,function(B,Z){N&&(B=R[Z=B]),a(Y,Z,I(B,F,U,Z,R,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function R(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=R(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=J(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,J).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=Z(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=J(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var A3={exports:{}},N3={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gu=$;function CB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $B=typeof Object.is=="function"?Object.is:CB,SB=Gu.useState,_B=Gu.useEffect,EB=Gu.useLayoutEffect,PB=Gu.useDebugValue;function TB(e,t){var n=t(),r=SB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return EB(function(){o.value=n,o.getSnapshot=t,zb(o)&&a({inst:o})},[e,n,t]),_B(function(){return zb(o)&&a({inst:o}),e(function(){zb(o)&&a({inst:o})})},[e]),PB(n),n}function zb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$B(e,n)}catch{return!0}}function kB(e,t){return t()}var OB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kB:TB;N3.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:OB;A3.exports=N3;var RB=A3.exports;const zs=()=>{},yo=zs(),Vb=Object,pn=e=>e===yo,Ki=e=>typeof e=="function",nl=(e,t)=>({...e,...t}),DB=e=>Ki(e.then),Vm=new WeakMap;let MB=0;const Ep=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Vb(e)===e&&!r&&n!=RegExp){if(o=Vm.get(e),o)return o;if(o=++MB+"~",Vm.set(e,o),n==Array){for(o="@",a=0;awy&&typeof window.requestAnimationFrame!=eS,j3=(e,t)=>{const n=Hi.get(e);return[()=>!pn(t)&&e.get(t)||Bb,r=>{if(!pn(t)){const o=e.get(t);t in Bm||(Bm[t]=o),n[5](t,nl(o,r),o||Bb)}},n[6],()=>!pn(t)&&t in Bm?Bm[t]:!pn(t)&&e.get(t)||Bb]};let Xw=!0;const AB=()=>Xw,[Qw,eC]=wy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zs,zs],NB=()=>{const e=Zw&&document.visibilityState;return pn(e)||e!=="hidden"},jB=e=>(Zw&&document.addEventListener("visibilitychange",e),Qw("focus",e),()=>{Zw&&document.removeEventListener("visibilitychange",e),eC("focus",e)}),LB=e=>{const t=()=>{Xw=!0,e()},n=()=>{Xw=!1};return Qw("online",t),Qw("offline",n),()=>{eC("online",t),eC("offline",n)}},FB={isOnline:AB,isVisible:NB},zB={initFocus:jB,initReconnect:LB},Fk=!M.useId,Pp=!wy||"Deno"in window,VB=e=>IB()?window.requestAnimationFrame(e):setTimeout(e,1),Ub=Pp?$.useEffect:$.useLayoutEffect,Wb=typeof navigator<"u"&&navigator.connection,zk=!Pp&&Wb&&(["slow-2g","2g"].includes(Wb.effectiveType)||Wb.saveData),tS=e=>{if(Ki(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ep(e):"",[e,t]};let BB=0;const tC=()=>++BB,L3=0,F3=1,z3=2,UB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:UB,FOCUS_EVENT:L3,MUTATE_EVENT:z3,RECONNECT_EVENT:F3};async function V3(...e){const[t,n,r,o]=e,a=nl({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ki(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=tS(m);if(!b)return;const[v,x]=j3(t,b),[g,y,w,C]=Hi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](z3).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=tC();y[b]=[k,0];const I=!pn(l),R=v(),F=R.data,U=R._c,G=pn(U)?F:U;if(I&&(l=Ki(l)?l(G,F):l,x({data:l,_c:G})),Ki(S))try{S=S(G)}catch(z){E=z}if(S&&DB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:yo}));if(i&&!E)if(Ki(i)){const z=i(S,G);x({data:z,error:yo,_c:yo})}else x({data:S,error:yo,_c:yo});if(y[b][1]=tC(),Promise.resolve(_()).then(()=>{x({_c:yo})}),E){if(f)throw E;return}return S}}const Vk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},WB=(e,t)=>{if(!Hi.has(e)){const n=nl(zB,t),r={},o=V3.bind(yo,e);let a=zs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!Hi.has(e)&&(Hi.set(e,[r,{},{},{},o,l,s]),!Pp)){const u=n.initFocus(setTimeout.bind(yo,Vk.bind(yo,r,L3))),f=n.initReconnect(setTimeout.bind(yo,Vk.bind(yo,r,F3)));a=()=>{u&&u(),f&&f(),Hi.delete(e)}}};return c(),[e,o,c,a]}return[e,Hi.get(e)[4]]},HB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},GB=(e,t)=>Ep(e)==Ep(t),[B3,qB]=WB(new Map),YB=nl({onLoadingSlow:zs,onSuccess:zs,onError:zs,onErrorRetry:HB,onDiscarded:zs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:zk?5e3:3e3,compare:GB,isPaused:()=>!1,cache:B3,mutate:qB,fallback:{}},FB),KB=(e,t)=>{const n=nl(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=nl(o,i))}return n},JB=$.createContext({}),ZB="$inf$",U3=wy&&window.__SWR_DEVTOOLS_USE__,XB=U3?window.__SWR_DEVTOOLS_USE__:[],QB=()=>{U3&&(window.__SWR_DEVTOOLS_REACT__=M)},eU=e=>Ki(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],tU=()=>nl(YB,$.useContext(JB)),nU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=tS(t),[,,,s]=Hi.get(B3);if(i.startsWith(ZB))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),rU=XB.concat(nU),oU=e=>function(...n){const r=tU(),[o,a,i]=eU(n),s=KB(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(rU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},aU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};QB();const Bk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hb={dedupe:!0},iU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=Hi.get(r),[g,y]=tS(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[R,F,U,G]=j3(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=nl(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=R(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(R());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=RB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),J=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:J&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),Z=!!(g&&t&&J&&B),re=pn(W.isValidating)?Z:W.isValidating,ce=pn(W.isLoading)?Z:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>Fk?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(R().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(R().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),tC()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=yo;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=R().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ki(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>V3(r,_.current,...ue),[]);if(Ub(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Ub(()=>{if(!g)return;const ue=xe.bind(yo,Hb);let se=0;const fe=aU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Pp?ue():VB(ue)),()=>{C.current=!0,fe()}},[g]),Ub(()=>{let ue;function se(){const fe=Ki(c)?c(R().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!R().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Hb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!Fk&&Pp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Bk(se)}if(pn(q)){const se=xe(Hb);pn(N)||(se.status="fulfilled",se.value=!0),Bk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},W3=oU(iU),Cg=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Cy=e=>JSON.parse(JSON.stringify(e)),nS=(e,t)=>{e=Cy(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];Cg(r)&&Cg(o)?e[n]=nS(o,r):e[n]=r}return e},H3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return Cg(o)?Cy(o):o},sU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=sU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=H3(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:Cg(e.definitions)&&(t=nS(t,e.definitions)),ru(Cy(e),t)}function lU(){return W3(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await wg(window.CONFIG_SCHEMA);else{const t=await fetch(Q$("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await wg(n)}return e==null?null:{schema:e,defaults:$g(e)}})}function cU(e){return W3(["/input_schema",e],async([,t])=>{const n=t?`/c/${Z$.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await wg(window.INPUT_SCHEMA);else{const o=await fetch(Q$(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await wg(a)}return r==null?null:{schema:r,defaults:$g(r)}},{keepPreviousData:!0})}/*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2022 Joachim Wester - * MIT licensed - */var uU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dU=Object.prototype.hasOwnProperty;function nC(e,t){return dU.call(e,t)}function rC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function G3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function aC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!oC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);oC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=pU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&aC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=Y3([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Y3(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)$y(Ho(t),Ho(e),n||!0);else{n=n||_g;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function oS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=rC(t),i=rC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(nC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(dW,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Iv,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Av,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Iv," .").concat(Iv,` { - right: 0 `).concat(r,`; - } - - .`).concat(Av," .").concat(Av,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(fW,": ").concat(s,`px; - } -`)},RW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return TW(o)},[o]);return $.createElement(kW,{styles:OW(a,!t,o,n?"":"!important")})},dC=!1;if(typeof window<"u")try{var Wm=Object.defineProperty({},"passive",{get:function(){return dC=!0,!0}});window.addEventListener("test",Wm,Wm),window.removeEventListener("test",Wm,Wm)}catch{dC=!1}var Uc=dC?{passive:!1}:!1,DW=function(e){return e.tagName==="TEXTAREA"},oN=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DW(e)&&n[t]==="visible")},MW=function(e){return oN(e,"overflowY")},IW=function(e){return oN(e,"overflowX")},eO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=aN(e,n);if(r){var o=iN(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},AW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aN=function(e,t){return e==="v"?MW(t):IW(t)},iN=function(e,t){return e==="v"?AW(t):NW(t)},jW=function(e,t){return e==="h"&&t==="rtl"?-1:1},LW=function(e,t,n,r,o){var a=jW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=iN(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&aN(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Hm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tO=function(e){return[e.deltaX,e.deltaY]},nO=function(e){return e&&"current"in e?e.current:e},FW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zW=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},VW=0,Wc=[];function BW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(VW++)[0],a=$.useState(function(){return rN()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=uW([e.lockRef.current],(e.shards||[]).map(nO),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Hm(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=eO(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=eO(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return LW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?tO(x):Hm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&FW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(nO).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Hm(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,tO(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Hm(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:zW(o)}):null,m?$.createElement(RW,{gapMode:"margin"}):null)}const UW=bW(nN,BW);var sN=$.forwardRef(function(e,t){return $.createElement(Ey,fi({},e,{ref:t,sideCar:UW}))});sN.classNames=Ey.classNames;const WW=sN;var HW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Gm=new WeakMap,qm={},Zb=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},GW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lN(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qW=function(e,t,n,r){var o=GW(t,Array.isArray(e)?e:[e]);qm[n]||(qm[n]=new WeakMap);var a=qm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Gm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),Zb++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Gm.has(f)||f.removeAttribute(r),Gm.delete(f)),m||f.removeAttribute(n)}),Zb--,Zb||(Hc=new WeakMap,Hc=new WeakMap,Gm=new WeakMap,qm={})}},YW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||HW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qW(r,o,n,"aria-hidden")):function(){return null}};const cN="Dialog",[uN,BFe]=Sy(cN),[KW,Ja]=uN(cN),JW=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=Qp({prop:r,defaultProp:o,onChange:a});return $.createElement(KW,{scope:t,triggerRef:s,contentRef:l,contentId:Mv(),titleId:Mv(),descriptionId:Mv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},ZW="DialogTrigger",XW=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(ZW,n),a=as(t,o.triggerRef);return $.createElement(Jo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":aS(o.open)},r,{ref:a,onClick:ao(e.onClick,o.onOpenToggle)}))}),dN="DialogPortal",[QW,fN]=uN(dN,{forceMount:void 0}),eH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(dN,t);return $.createElement(QW,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(_y,{present:n||a.open},$.createElement(iW,{asChild:!0,container:o},i))))},fC="DialogOverlay",tH=$.forwardRef((e,t)=>{const n=fN(fC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(fC,e.__scopeDialog);return a.modal?$.createElement(_y,{present:r||a.open},$.createElement(nH,T({},o,{ref:t}))):null}),nH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(fC,n);return $.createElement(WW,{as:kp,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Jo.div,T({"data-state":aS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Op="DialogContent",rH=$.forwardRef((e,t)=>{const n=fN(Op,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(Op,e.__scopeDialog);return $.createElement(_y,{present:r||a.open},a.modal?$.createElement(oH,T({},o,{ref:t})):$.createElement(aH,T({},o,{ref:t})))}),oH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(null),o=as(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return YW(a)},[]),$.createElement(pN,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ao(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:ao(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:ao(e.onFocusOutside,a=>a.preventDefault())}))}),aH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(pN,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),pN=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(Op,n),l=$.useRef(null),c=as(t,l);return cW(),$.createElement($.Fragment,null,$.createElement(QU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(JU,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),iH="DialogTitle",sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(iH,n);return $.createElement(Jo.h2,T({id:o.titleId},r,{ref:t}))}),lH="DialogDescription",cH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(lH,n);return $.createElement(Jo.p,T({id:o.descriptionId},r,{ref:t}))}),uH="DialogClose",dH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(uH,n);return $.createElement(Jo.button,T({type:"button"},r,{ref:t,onClick:ao(e.onClick,()=>o.onOpenChange(!1))}))});function aS(e){return e?"open":"closed"}const fH=JW,pH=XW,hH=eH,mH=tH,vH=rH,gH=sH,yH=cH,bH=dH;var hN=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),iS=()=>M.useContext(hN);function xH(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}xH(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var wH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function pC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function CH(){return sS(/^Mac/)}function $H(){return sS(/^iPhone/)}function SH(){return sS(/^iPad/)||CH()&&navigator.maxTouchPoints>1}function mN(){return $H()||SH()}function sS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Xb=typeof document<"u"&&window.visualViewport;function rO(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vN(e){for(rO(e)&&(e=e.parentElement);e&&!rO(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var _H=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ym=0,Qb;function EH(e={}){let{isDisabled:t}=e;wH(()=>{if(!t)return Ym++,Ym===1&&(mN()?Qb=TH():Qb=PH()),()=>{Ym--,Ym===0&&Qb()}},[t])}function PH(){return pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"))}function TH(){let e,t=0,n=f=>{e=vN(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Pg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Pg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Xb&&(Xb.height{oO(p)}):Xb.addEventListener("resize",()=>oO(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=pC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Eg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oO(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vN(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Pg(e){return e instanceof HTMLInputElement&&!_H.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function kH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OH(...e){return t=>e.forEach(n=>kH(n,t))}function gN(...e){return $.useCallback(OH(...e),e)}var Es=null;function RH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Es===null&&e){Es={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Es!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Es.position,document.body.style.top=Es.top,document.body.style.left=Es.left,document.body.style.height=Es.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Es=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var yN=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&yN.set(e,r)}function Km(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yN.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Jm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function DH(e){return 8*(Math.log(e+1)-2)}var Rn={DURATION:.5,EASE:[.32,.72,0,1]},bN=.4;function xN(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=xN(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function IH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=MH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=xN(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function AH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=IH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)bN&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var NH=.25,jH=500,aO=8,El=16,iO=26;function wN({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=NH,scrollLockTimeout:c=jH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=AH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});EH({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Ve}=RH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-iO)/window.innerWidth}function De(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,mN()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Jm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(R){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!J.current&&!Be(Pe.target,it))return;if(J.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=DH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Pg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-iO),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Km(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Jm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`},!0)}function He(Pe){if(!R||!D.current)return;J.current&&Pg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=Jm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>bN){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})):(Km(Te,"overflow"),Km(Te,"transform"),Km(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Jm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(fH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(hN.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var CN=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=iS(),c=gN(n,r),u=o&&o.length>0;return M.createElement(mH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});CN.displayName="Drawer.Overlay";var $N=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=iS(),y=gN(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(vH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});$N.displayName="Drawer.Content";function LH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=iS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(wN,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:wN,NestedRoot:LH,Content:$N,Overlay:CN,Trigger:pH,Portal:hH,Close:bH,Title:gH,Description:yH};const SN=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),FH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),zH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),VH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ex=2e3;function tx(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(VH,{}):O.jsx(zH,{})})}function BH(e){const t=$.useMemo(()=>Z$.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${X$(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` -from langserve import RemoteRunnable - -chain = RemoteRunnable("${r}") -chain.invoke({ ... }) -`,s=` -import { RemoteRunnable } from "langchain/runnables/remote"; - -const chain = new RemoteRunnable({ url: \`${a}\` }); -const result = await chain.invoke({ ... }); -`;return O.jsxs(lf.Root,{children:[O.jsx(lf.Trigger,{asChild:!0,children:e.children}),O.jsxs(lf.Portal,{children:[O.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},R=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return R(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,J=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=R(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return R(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function EN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var kN="!";function XH(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function QH(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function eG(e){return{cache:ZH(e.cacheSize),splitModifiers:XH(e),...GH(e)}}var tG=/\s+/;function nG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(tG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=QH(l).join(":"),v=c?b+kN:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function rG(){for(var e=arguments.length,t=new Array(e),n=0;nn(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(WH,{className:Zi("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:DN(a.final_output)??"..."})]},a.id))})]})}class Tg{constructor(t){Jd(this,"content");Jd(this,"name");Jd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Tg({content:this.content+t.content,additional_kwargs:Tg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function xG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function wG(e){return e.length>0&&e.every(t=>xG(t))}function CG(e){var t;if(wG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Tg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(DN).join("")||"..."}var $G=typeof xo=="object"&&xo&&xo.Object===Object&&xo,MN=$G,SG=MN,_G=typeof self=="object"&&self&&self.Object===Object&&self,EG=SG||_G||Function("return this")(),lo=EG,PG=lo,TG=PG.Symbol,ud=TG,uO=ud,IN=Object.prototype,kG=IN.hasOwnProperty,OG=IN.toString,df=uO?uO.toStringTag:void 0;function RG(e){var t=kG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=OG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var DG=RG,MG=Object.prototype,IG=MG.toString;function AG(e){return IG.call(e)}var NG=AG,dO=ud,jG=DG,LG=NG,FG="[object Null]",zG="[object Undefined]",fO=dO?dO.toStringTag:void 0;function VG(e){return e==null?e===void 0?zG:FG:fO&&fO in Object(e)?jG(e):LG(e)}var cl=VG;function BG(e){return e!=null&&typeof e=="object"}var ea=BG,UG=cl,WG=ea,HG="[object Symbol]";function GG(e){return typeof e=="symbol"||WG(e)&&UG(e)==HG}var dd=GG,qG=dd;function YG(e,t,n){for(var r=-1,o=e.length;++rt}var ZG=JG;function XG(){this.__data__=[],this.size=0}var QG=XG;function eq(e,t){return e===t||e!==e&&t!==t}var eh=eq,tq=eh;function nq(e,t){for(var n=e.length;n--;)if(tq(e[n][0],t))return n;return-1}var Py=nq,rq=Py,oq=Array.prototype,aq=oq.splice;function iq(e){var t=this.__data__,n=rq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aq.call(t,n,1),--this.size,!0}var sq=iq,lq=Py;function cq(e){var t=this.__data__,n=lq(t,e);return n<0?void 0:t[n][1]}var uq=cq,dq=Py;function fq(e){return dq(this.__data__,e)>-1}var pq=fq,hq=Py;function mq(e,t){var n=this.__data__,r=hq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var vq=mq,gq=QG,yq=sq,bq=uq,xq=pq,wq=vq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&zK?new NK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=FJ}var hS=zJ,VJ=cl,BJ=hS,UJ=ea,WJ="[object Arguments]",HJ="[object Array]",GJ="[object Boolean]",qJ="[object Date]",YJ="[object Error]",KJ="[object Function]",JJ="[object Map]",ZJ="[object Number]",XJ="[object Object]",QJ="[object RegExp]",eZ="[object Set]",tZ="[object String]",nZ="[object WeakMap]",rZ="[object ArrayBuffer]",oZ="[object DataView]",aZ="[object Float32Array]",iZ="[object Float64Array]",sZ="[object Int8Array]",lZ="[object Int16Array]",cZ="[object Int32Array]",uZ="[object Uint8Array]",dZ="[object Uint8ClampedArray]",fZ="[object Uint16Array]",pZ="[object Uint32Array]",Nn={};Nn[aZ]=Nn[iZ]=Nn[sZ]=Nn[lZ]=Nn[cZ]=Nn[uZ]=Nn[dZ]=Nn[fZ]=Nn[pZ]=!0;Nn[WJ]=Nn[HJ]=Nn[rZ]=Nn[GJ]=Nn[oZ]=Nn[qJ]=Nn[YJ]=Nn[KJ]=Nn[JJ]=Nn[ZJ]=Nn[XJ]=Nn[QJ]=Nn[eZ]=Nn[tZ]=Nn[nZ]=!1;function hZ(e){return UJ(e)&&BJ(e.length)&&!!Nn[VJ(e)]}var mZ=hZ;function vZ(e){return function(t){return e(t)}}var mS=vZ,Rg={exports:{}};Rg.exports;(function(e,t){var n=MN,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Rg,Rg.exports);var vS=Rg.exports,gZ=mZ,yZ=mS,wO=vS,CO=wO&&wO.isTypedArray,bZ=CO?yZ(CO):gZ,Dy=bZ,xZ=SJ,wZ=nh,CZ=cr,$Z=rh,SZ=oh,_Z=Dy,EZ=Object.prototype,PZ=EZ.hasOwnProperty;function TZ(e,t){var n=CZ(e),r=!n&&wZ(e),o=!n&&!r&&$Z(e),a=!n&&!r&&!o&&_Z(e),i=n||r||o||a,s=i?xZ(e.length,String):[],l=s.length;for(var c in e)(t||PZ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||SZ(c,l)))&&s.push(c);return s}var GN=TZ,kZ=Object.prototype;function OZ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kZ;return e===n}var My=OZ;function RZ(e,t){return function(n){return e(t(n))}}var qN=RZ,DZ=qN,MZ=DZ(Object.keys,Object),IZ=MZ,AZ=My,NZ=IZ,jZ=Object.prototype,LZ=jZ.hasOwnProperty;function FZ(e){if(!AZ(e))return NZ(e);var t=[];for(var n in Object(e))LZ.call(e,n)&&n!="constructor"&&t.push(n);return t}var gS=FZ,zZ=th,VZ=hS;function BZ(e){return e!=null&&VZ(e.length)&&!zZ(e)}var cs=BZ,UZ=GN,WZ=gS,HZ=cs;function GZ(e){return HZ(e)?UZ(e):WZ(e)}var Pi=GZ;const qZ=Vt(Pi);var YZ=BN,KZ=pS,JZ=Pi;function ZZ(e){return YZ(e,JZ,KZ)}var YN=ZZ,$O=YN,XZ=1,QZ=Object.prototype,eX=QZ.hasOwnProperty;function tX(e,t,n,r,o,a){var i=n&XZ,s=$O(e),l=s.length,c=$O(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:eX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:Gte(e,t,n)}var Yte=qte,Kte="\\ud800-\\udfff",Jte="\\u0300-\\u036f",Zte="\\ufe20-\\ufe2f",Xte="\\u20d0-\\u20ff",Qte=Jte+Zte+Xte,ene="\\ufe0e\\ufe0f",tne="\\u200d",nne=RegExp("["+tne+Kte+Qte+ene+"]");function rne(e){return nne.test(e)}var C4=rne;function one(e){return e.split("")}var ane=one,$4="\\ud800-\\udfff",ine="\\u0300-\\u036f",sne="\\ufe20-\\ufe2f",lne="\\u20d0-\\u20ff",cne=ine+sne+lne,une="\\ufe0e\\ufe0f",dne="["+$4+"]",wC="["+cne+"]",CC="\\ud83c[\\udffb-\\udfff]",fne="(?:"+wC+"|"+CC+")",S4="[^"+$4+"]",_4="(?:\\ud83c[\\udde6-\\uddff]){2}",E4="[\\ud800-\\udbff][\\udc00-\\udfff]",pne="\\u200d",P4=fne+"?",T4="["+une+"]?",hne="(?:"+pne+"(?:"+[S4,_4,E4].join("|")+")"+T4+P4+")*",mne=T4+P4+hne,vne="(?:"+[S4+wC+"?",wC,_4,E4,dne].join("|")+")",gne=RegExp(CC+"(?="+CC+")|"+vne+mne,"g");function yne(e){return e.match(gne)||[]}var bne=yne,xne=ane,wne=C4,Cne=bne;function $ne(e){return wne(e)?Cne(e):xne(e)}var Sne=$ne,_ne=Yte,Ene=C4,Pne=Sne,Tne=yd;function kne(e){return function(t){t=Tne(t);var n=Ene(t)?Pne(t):void 0,r=n?n[0]:t.charAt(0),o=n?_ne(n,1).join(""):t.slice(1);return r[e]()+o}}var One=kne,Rne=One,Dne=Rne("toUpperCase"),Mne=Dne,Ine=Wte,Ane=Mne,Nne=Ine(function(e,t,n){return e+(n?" ":"")+Ane(t)}),k4=Nne;const Ny=Vt(k4);var jne=pc,Lne=function(){try{var e=jne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O4=Lne,UO=O4;function Fne(e,t,n){t=="__proto__"&&UO?UO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CS=Fne,zne=CS,Vne=eh;function Bne(e,t,n){(n!==void 0&&!Vne(e[t],n)||n===void 0&&!(t in e))&&zne(e,t,n)}var R4=Bne;function Une(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Wne=Une,Hne=Wne,Gne=Hne(),D4=Gne,Dg={exports:{}};Dg.exports;(function(e,t){var n=lo,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Dg,Dg.exports);var M4=Dg.exports,WO=FN;function qne(e){var t=new e.constructor(e.byteLength);return new WO(t).set(new WO(e)),t}var $S=qne,Yne=$S;function Kne(e,t){var n=t?Yne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var I4=Kne;function Jne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=boe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V4=Coe,$oe=yoe,Soe=V4,_oe=Soe($oe),TS=_oe,Eoe=Iy,Poe=z4,Toe=TS;function koe(e,t){return Toe(Poe(e,t,Eoe),e+"")}var B4=koe,Ooe=eh,Roe=cs,Doe=oh,Moe=ta;function Ioe(e,t,n){if(!Moe(n))return!1;var r=typeof t;return(r=="number"?Roe(n)&&Doe(t,n.length):r=="string"&&t in n)?Ooe(n[t],e):!1}var U4=Ioe,Aoe=B4,Noe=U4;function joe(e){return Aoe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Noe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,ce&&ce<=Z?re:ix(re,Z)):re}},mixin:function(N){return function(B){var Z=this;if(!C(Z))return N(Z,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,Z.prototype[ce]])}),N(Z,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?Z.prototype[ce[0]]=xe:delete Z.prototype[ce[0]]}),Z}},nthArg:function(N){return function(B){var Z=B<0?1:k(B)+1;return x(N(B),Z)}},rearg:function(N){return function(B,Z){var re=Z?Z.length:0;return x(N(B,Z),re)}},runInContext:function(N){return function(B){return $C(e,N(B),r)}}};function U(N,B){if(i.cap){var Z=br.iterateeRearg[N];if(Z)return X(B,Z);var re=!o&&br.iterateeAry[N];if(re)return J(B,re)}return B}function G(N,B,Z){return l||i.curry&&Z>1?x(B,Z):B}function z(N,B,Z){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,Z):bse(B,ce)}return B}function V(N,B,Z){return i.rearg&&Z>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[Z]):B}function Y(N,B){B=I(B);for(var Z=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Yse,`{ -/* [wrapped with `+t+`] */ -`)}var Jse=Kse;function Zse(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var s5=sle,lle=kS,cle=s5,ule=1,dle=2,fle=8,ple=16,hle=32,mle=64,vle=128,gle=256,yle=512,ble=[["ary",vle],["bind",ule],["bindKey",dle],["curry",fle],["curryRight",ple],["flip",yle],["partial",hle],["partialRight",mle],["rearg",gle]];function xle(e,t){return lle(ble,function(n){var r="_."+n[0];t&n[1]&&!cle(e,r)&&e.push(r)}),e.sort()}var wle=xle,Cle=qse,$le=Jse,Sle=TS,_le=wle;function Ele(e,t,n){var r=t+"";return Sle(e,$le(r,_le(Cle(r),n)))}var l5=Ele,Ple=r5(),Tle=o5,kle=l5,Ole=1,Rle=2,Dle=4,Mle=8,xR=32,wR=64;function Ile(e,t,n,r,o,a,i,s,l,c){var u=t&Mle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?xR:wR,t&=~(u?wR:xR),t&Dle||(t&=~(Ole|Rle));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Ple(e)&&Tle(x,v),x.placeholder=r,kle(x,e,t)}var c5=Ile;function Ale(e){var t=e;return t.placeholder}var u5=Ale,Nle=ih,jle=oh,Lle=Math.min;function Fle(e,t){for(var n=e.length,r=Lle(t.length,n),o=Nle(e);r--;){var a=t[r];e[r]=jle(a,n)?o[a]:void 0}return e}var zle=Fle,CR="__lodash_placeholder__";function Vle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?m5(s,t-1,n,r,o):Mue(o,s):r||(o[o.length]=s)}return o}var v5=m5,Aue=v5;function Nue(e){var t=e==null?0:e.length;return t?Aue(e,1):[]}var jue=Nue,Lue=jue,Fue=z4,zue=TS;function Vue(e){return zue(Fue(e,void 0,Lue),e+"")}var jS=Vue,Bue=AS,Uue=jS,Wue=256,Hue=Uue(function(e,t){return Bue(e,Wue,void 0,void 0,void 0,t)}),Gue=Hue,que=gd,Yue=ih,Kue=cr,Jue=dd,Zue=n4,Xue=mc,Que=yd;function ede(e){return Kue(e)?que(e,Xue):Jue(e)?[e]:Yue(Zue(Que(e)))}var tde=ede,nde={ary:oue,assign:W4,clone:lue,curry:due,forEach:kS,isArray:cr,isError:yue,isFunction:th,isWeakMap:$ue,iteratee:Tue,keys:gS,rearg:Gue,toInteger:lh,toPath:tde},rde=xse,ode=nde;function ade(e,t,n){return rde(ode,e,t,n)}var xd=ade,Cx,jR;function ide(){if(jR)return Cx;jR=1;var e=ES,t=ah,n=oh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Hde=Wde,Gde=Hde,qde=o4,Yde=lh,Kde=yd;function Jde(e,t,n){e=Kde(e),t=qde(t);var r=e.length;n=n===void 0?r:Gde(Yde(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var Zde=Jde;const Xde=Vt(Zde);function Qde(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var efe=Qde,tfe=s4,nfe=LS,rfe=vc,ofe=efe,afe=cr;function ife(e,t,n){var r=afe(e)?tfe:ofe,o=arguments.length<3;return r(e,rfe(t),n,o,nfe)}var sfe=ife;const SC=Vt(sfe);var lfe=gd;function cfe(e,t){return lfe(t,function(n){return[n,e[n]]})}var ufe=cfe;function dfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ffe=dfe,pfe=ufe,hfe=hc,mfe=zN,vfe=ffe,gfe="[object Map]",yfe="[object Set]";function bfe(e){return function(t){var n=hfe(t);return n==gfe?mfe(t):n==yfe?vfe(t):pfe(t,e(t))}}var xfe=bfe,wfe=xfe,Cfe=Pi,$fe=wfe(Cfe),Sfe=$fe;const _fe=Vt(Sfe);var Efe=cl,Pfe=cr,Tfe=ea,kfe="[object String]";function Ofe(e){return typeof e=="string"||!Pfe(e)&&Tfe(e)&&Efe(e)==kfe}var Rfe=Ofe,Dfe=gd;function Mfe(e,t){return Dfe(t,function(n){return e[n]})}var Ife=Mfe,Afe=Ife,Nfe=Pi;function jfe(e){return e==null?[]:Afe(e,Nfe(e))}var Lfe=jfe,Ffe=i5,zfe=cs,Vfe=Rfe,Bfe=lh,Ufe=Lfe,Wfe=Math.max;function Hfe(e,t,n,r){e=zfe(e)?e:Ufe(e),n=n&&!r?Bfe(n):0;var o=e.length;return n<0&&(n=Wfe(o+n,0)),Vfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ffe(e,t,n)>-1}var Gfe=Hfe;const w5=Vt(Gfe);var qfe=vc,Yfe=cs,Kfe=Pi;function Jfe(e){return function(t,n,r){var o=Object(t);if(!Yfe(t)){var a=qfe(n);t=Kfe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var Zfe=Jfe,Xfe=a5,Qfe=vc,epe=lh,tpe=Math.max;function npe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:epe(n);return o<0&&(o=tpe(r+o,0)),Xfe(e,Qfe(t),o)}var rpe=npe,ope=Zfe,ape=rpe,ipe=ope(ape),spe=ipe;const FS=Vt(spe);var lpe=Math.ceil,cpe=Math.max;function upe(e,t,n,r){for(var o=-1,a=cpe(lpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var dpe=upe,fpe=dpe,ppe=U4,Sx=h5;function hpe(e){return function(t,n,r){return r&&typeof r!="number"&&ppe(t,n,r)&&(n=r=void 0),t=Sx(t),n===void 0?(n=t,t=0):n=Sx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(EC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rp,n=EC;var r=Rp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=EC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,Z){super(D,B,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let Z=B.length;for(;Z--;){const re=B[Z];re.optimizeNames(D,N)||(V(D,re.names),B.splice(Z,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,Z){super(),this.varKind=D,this.name=N,this.from=B,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:Z,to:re}=this;return`for(${N} ${B}=${Z}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,Z){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,Z;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,Z){const re=this._scope.toName(N);return B!==void 0&&Z&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,Z]of D)N.length>1&&N.push(","),N.push(B),(B!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>Z(ce))}forOf(D,N,B,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",Z,re,N),()=>B(re))}forIn(D,N,B,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return B&&(this._currNode=Z.finally=new R,this.code(B)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,Z){return this._blockNode(new S(D,N,B)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function Z(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const J=j(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=Rp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(R,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Br=Jt,Tpe={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ti.default=Tpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ti;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(ch);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const kpe=ch,Ope=Jt,Rpe=Ti,Dpe={message:"boolean schema is false"};function Mpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?$5(e,!1):typeof n=="object"&&n.$async===!0?t.return(Rpe.default.data):(t.assign((0,Ope._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Mpe;function Ipe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),$5(e)):n.var(t,!0)}qu.boolOrEmptySchema=Ipe;function $5(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,kpe.reportError)(o,Dpe,void 0,t)}var uh={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Ape=["string","number","integer","boolean","null","object","array"],Npe=new Set(Ape);function jpe(e){return typeof e=="string"&&Npe.has(e)}tc.isJSONType=jpe;function Lpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Lpe;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.shouldUseRule=Xi.shouldUseGroup=Xi.schemaHasRulesForType=void 0;function Fpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&S5(e,r)}Xi.schemaHasRulesForType=Fpe;function S5(e,t){return t.rules.some(n=>_5(e,n))}Xi.shouldUseGroup=S5;function _5(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Xi.shouldUseRule=_5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Xi,r=ch,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,S,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),R=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(R,E))),S.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${R} !== undefined`,()=>{S.assign(E,R),m(w,R)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null - || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null - || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(R,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(uh);var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.assignDefaults=void 0;const Gc=Jt,zpe=dn;function Vpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)FR(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>FR(e,a,o.default))}zy.assignDefaults=Vpe;function FR(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,zpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var vi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Jt,zS=dn,Ts=Ti,Bpe=dn;function Upe(e,t){const{gen:n,data:r,it:o}=e;n.if(BS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Upe;function Wpe({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(BS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=Wpe;function Hpe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Hpe;function E5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=E5;function VS(e,t,n){return(0,jn._)`${E5(e)}.call(${t}, ${n})`}Qt.isOwnProperty=VS;function Gpe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${VS(e,t,n)}`:o}Qt.propertyInData=Gpe;function BS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(VS(e,t,n))):o}Qt.noPropertyInData=BS;function P5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=P5;function qpe(e,t){return P5(t).filter(n=>!(0,zS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=qpe;function Ype({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[Ts.default.instancePath,(0,jn.strConcat)(Ts.default.instancePath,a)],[Ts.default.parentData,i.parentData],[Ts.default.parentDataProperty,i.parentDataProperty],[Ts.default.rootData,Ts.default.rootData]];i.opts.dynamicRef&&f.push([Ts.default.dynamicAnchors,Ts.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=Ype;const Kpe=(0,jn._)`new RegExp`;function Jpe({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?Kpe:(0,Bpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=Jpe;function Zpe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:zS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=Zpe;function Xpe(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,zS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=Xpe;Object.defineProperty(vi,"__esModule",{value:!0});vi.validateKeywordUsage=vi.validSchemaType=vi.funcKeywordCode=vi.macroKeywordCode=void 0;const ro=Jt,jl=Ti,Qpe=Qt,ehe=ch;function the(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=T5(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:ro.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}vi.macroKeywordCode=the;function nhe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;ohe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=T5(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&zR(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&zR(e),x(()=>rhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,ro._)`await `),y=>r.assign(f,!1).if((0,ro._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,ro._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,ro._)`${u}.errors`;return r.assign(g,null),v(ro.nil),g}function v(g=t.async?(0,ro._)`await `:ro.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,ro._)`${g}${(0,Qpe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,ro.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}vi.funcKeywordCode=nhe;function zR(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,ro._)`${r.parentData}[${r.parentDataProperty}]`))}function rhe(e,t){const{gen:n}=e;n.if((0,ro._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,ro._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,ro._)`${jl.default.vErrors}.length`),(0,ehe.extendErrors)(e)},()=>e.error())}function ohe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function T5(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ro.stringify)(n)})}function ahe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}vi.validSchemaType=ahe;function ihe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}vi.validateKeywordUsage=ihe;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.extendSubschemaMode=Qs.extendSubschemaData=Qs.getSubschema=void 0;const pi=Jt,k5=dn;function she(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}${(0,pi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,k5.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Qs.getSubschema=she;function lhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,pi._)`${t.data}${(0,pi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,pi.str)`${c}${(0,k5.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,pi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof pi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Qs.extendSubschemaData=lhe;function che(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}Qs.extendSubschemaMode=che;var Ar={},O5=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},R5={exports:{}},Vs=R5.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};jv(t,r,o,e,"",e)};Vs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function jv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Vs.arrayKeywords)for(var p=0;pt+=D5(r)),t===1/0))return 1/0}return t}function M5(e,t="",n){n!==!1&&(t=Ru(t));const r=e.parse(t);return I5(e,r)}Ar.getFullPath=M5;function I5(e,t){return e.serialize(t).split("#")[0]+"#"}Ar._getFullPath=I5;const yhe=/#\/?$/;function Ru(e){return e?e.replace(yhe,""):""}Ar.normalizeId=Ru;function bhe(e,t,n){return n=Ru(n),e.resolve(t,n)}Ar.resolveUrl=bhe;const xhe=/^[a-z_][-a-z0-9._]*$/i;function whe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ru(e[n]||t),a={"":o},i=M5(r,o,!1),s={},l=new Set;return hhe(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ru(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ru(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!xhe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!phe(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ar.getSchemaRefs=whe;Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getData=Ga.KeywordCxt=Ga.validateFunctionCode=void 0;const A5=qu,VR=uh,US=Xi,Ig=uh,Che=zy,Gf=vi,_x=Qs,St=Jt,Lt=Ti,$he=Ar,Qi=dn,pf=ch;function She(e){if(L5(e)&&(F5(e),j5(e))){Phe(e);return}N5(e,()=>(0,A5.topBoolOrEmptySchema)(e))}Ga.validateFunctionCode=She;function N5({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${BR(n,o)}`),Ehe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${_he(o)}`,r.$async,()=>e.code(BR(n,o)).code(a))}function _he(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Ehe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Phe(e){const{schema:t,opts:n,gen:r}=e;N5(e,()=>{n.$comment&&t.$comment&&V5(e),Dhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&The(e),z5(e),Ahe(e)})}function The(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function BR(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function khe(e,t){if(L5(e)&&(F5(e),j5(e))){Ohe(e,t);return}(0,A5.boolOrEmptySchema)(e,t)}function j5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function L5(e){return typeof e.schema!="boolean"}function Ohe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&V5(e),Mhe(e),Ihe(e);const a=r.const("_errs",Lt.default.errors);z5(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function F5(e){(0,Qi.checkUnknownRules)(e),Rhe(e)}function z5(e,t){if(e.opts.jtd)return UR(e,[],!1,t);const n=(0,VR.getSchemaTypes)(e.schema),r=(0,VR.coerceAndCheckDataType)(e,n);UR(e,n,!r,t)}function Rhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Qi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Dhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Qi.checkStrictMode)(e,"default is ignored in the schema root")}function Mhe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,$he.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ihe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ahe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Nhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Nhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function UR(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Qi.schemaHasRulesButRef)(a,u))){o.block(()=>W5(e,"$ref",u.all.$ref.definition));return}l.jtd||jhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,US.shouldUseGroup)(a,p)&&(p.type?(o.if((0,Ig.checkDataType)(p.type,i,l.strictNumbers)),WR(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,Ig.reportTypeError)(e)),o.endIf()):WR(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function WR(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Che.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,US.shouldUseRule)(r,a)&&W5(e,a.keyword,a.definition,t.type)})}function jhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Lhe(e,t),e.opts.allowUnionTypes||Fhe(e,t),zhe(e,e.dataTypes))}function Lhe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{B5(e.dataTypes,n)||WS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Bhe(e,t)}}function Fhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&WS(e,"use allowUnionTypes to allow union type keyword")}function zhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,US.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Vhe(t,i))&&WS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Vhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function B5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Bhe(e,t){const n=[];for(const r of e.dataTypes)B5(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function WS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Qi.checkStrictMode)(e,t,e.opts.strictTypes)}class U5{constructor(t,n,r){if((0,Gf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",H5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Gf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,Ig.checkDataTypes)(l,n,a.opts.strictNumbers,Ig.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,_x.getSubschema)(this.it,t);(0,_x.extendSubschemaData)(r,this.it,t),(0,_x.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return khe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Qi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Qi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ga.KeywordCxt=U5;function W5(e,t,n,r){const o=new U5(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Gf.funcKeywordCode)(o,n):"macro"in n?(0,Gf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Gf.funcKeywordCode)(o,n)}const Uhe=/^\/(?:[^~]|~0|~1)*$/,Whe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function H5(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Uhe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Whe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Qi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ga.getData=H5;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});class Hhe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}dh.default=Hhe;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});const Ex=Ar;class Ghe extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Ex.resolveUrl)(t,n,r),this.missingSchema=(0,Ex.normalizeId)((0,Ex.getFullPath)(t,this.missingRef))}}fh.default=Ghe;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Jt,qhe=dh,Pl=Ti,Fa=Ar,HR=dn,Yhe=Ga;class Vy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Vy;function HS(e){const t=G5.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:qhe.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Yhe.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=HS;function Khe(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=Xhe.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Vy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Jhe.call(this,a)}bo.resolveRef=Khe;function Jhe(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:HS.call(this,e)}function G5(e){for(const t of this._compilations)if(Zhe(t,e))return t}bo.getCompilingSchema=G5;function Zhe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Xhe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||By.call(this,e,t)}function By(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Px.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=By.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Px.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||HS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Vy({schema:s,schemaId:l,root:e,baseId:o})}return Px.call(this,n,i)}}bo.resolveSchema=By;const Qhe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Px(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,HR.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Qhe.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,HR.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=By.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Vy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const eme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",tme="Meta-schema for $data reference (JSON AnySchema extension proposal)",nme="object",rme=["$data"],ome={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ame=!1,ime={$id:eme,description:tme,type:nme,required:rme,properties:ome,additionalProperties:ame};var GS={},TC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(R[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(uo){Ie=!0,rt=uo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&QaU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ei=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Zr;!(Io=(Zr=gl.next()).done);Io=!0){var Mh=Zr.value;if(Mhb&&z("overflow"),Mh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Di=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Ri=Wt.slice(0,Un.index),Qa=Wt.slice(Un.index+Un.length);Mo=Ri.join(":")+"::"+Qa.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,Z,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=R.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return Z.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function Z({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const Z of N)B=B[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[Z];ce&&xe&&(B[Z]=J(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:Z}=this.opts;if(typeof j=="object")B=j[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:Z,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function R(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const Z={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,Z,j.before):B.rules.push(Z),N.all[X]=Z,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=J(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,W]}}})(C5);var qS={},YS={},KS={};Object.defineProperty(KS,"__esModule",{value:!0});const lme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};KS.default=lme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const cme=fh,GR=Qt,vo=Jt,qc=Ti,qR=bo,Qm=dn,ume={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=qR.resolveRef.call(l,c,o,n);if(u===void 0)throw new cme.default(r.opts.uriResolver,o,n);if(u instanceof qR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Lv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Lv(e,(0,vo._)`${b}.validate`,c,c.$async)}function p(b){const v=Y5(e,b);Lv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,vo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:vo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function Y5(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,vo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=Y5;function Lv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:vo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,vo._)`await ${(0,GR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,vo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,GR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,vo._)`${b}.errors`;o.assign(qc.default.vErrors,(0,vo._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,vo._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Qm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,vo._)`${b}.evaluated.props`);a.props=Qm.mergeEvaluated.props(o,g,a.props,vo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Qm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,vo._)`${b}.evaluated.items`);a.items=Qm.mergeEvaluated.items(o,g,a.items,vo.Name)}}}nc.callRef=Lv;nc.default=ume;Object.defineProperty(YS,"__esModule",{value:!0});const dme=KS,fme=nc,pme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",dme.default,fme.default];YS.default=pme;var JS={},ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const Ag=Jt,ks=Ag.operators,Ng={maximum:{okStr:"<=",ok:ks.LTE,fail:ks.GT},minimum:{okStr:">=",ok:ks.GTE,fail:ks.LT},exclusiveMaximum:{okStr:"<",ok:ks.LT,fail:ks.GTE},exclusiveMinimum:{okStr:">",ok:ks.GT,fail:ks.LTE}},hme={message:({keyword:e,schemaCode:t})=>(0,Ag.str)`must be ${Ng[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ag._)`{comparison: ${Ng[e].okStr}, limit: ${t}}`},mme={keyword:Object.keys(Ng),type:"number",schemaType:"number",$data:!0,error:hme,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Ag._)`${n} ${Ng[t].fail} ${r} || isNaN(${n})`)}};ZS.default=mme;var XS={};Object.defineProperty(XS,"__esModule",{value:!0});const qf=Jt,vme={message:({schemaCode:e})=>(0,qf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qf._)`{multipleOf: ${e}}`},gme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,qf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,qf._)`${i} !== parseInt(${i})`;e.fail$data((0,qf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};XS.default=gme;var QS={},e_={};Object.defineProperty(e_,"__esModule",{value:!0});function K5(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},wme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xme,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,yme.useFunc)(e.gen,bme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};QS.default=wme;var t_={};Object.defineProperty(t_,"__esModule",{value:!0});const Cme=Qt,jg=Jt,$me={message:({schemaCode:e})=>(0,jg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,jg._)`{pattern: ${e}}`},Sme={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$me,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,jg._)`(new RegExp(${o}, ${i}))`:(0,Cme.usePattern)(e,r);e.fail$data((0,jg._)`!${s}.test(${t})`)}};t_.default=Sme;var n_={};Object.defineProperty(n_,"__esModule",{value:!0});const Yf=Jt,_me={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Yf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Yf._)`{limit: ${e}}`},Eme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Yf.operators.GT:Yf.operators.LT;e.fail$data((0,Yf._)`Object.keys(${n}).length ${o} ${r}`)}};n_.default=Eme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const hf=Qt,Kf=Jt,Pme=dn,Tme={message:({params:{missingProperty:e}})=>(0,Kf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Kf._)`{missingProperty: ${e}}`},kme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Tme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Pme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Kf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Kf.not)(b),()=>{e.error(),t.break()})},Kf.nil)}}};r_.default=kme;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Jf=Jt,Ome={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Rme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};o_.default=Rme;var a_={},ph={};Object.defineProperty(ph,"__esModule",{value:!0});const J5=O5;J5.code='require("ajv/dist/runtime/equal").default';ph.default=J5;Object.defineProperty(a_,"__esModule",{value:!0});const Tx=uh,Dr=Jt,Dme=dn,Mme=ph,Ime={message:({params:{i:e,j:t}})=>(0,Dr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Dr._)`{i: ${e}, j: ${t}}`},Ame={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ime,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Tx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Dr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Dr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Dr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Tx.checkDataTypes)(c,x,s.opts.strictNumbers,Tx.DataType.Wrong),y=t.const("indices",(0,Dr._)`{}`);t.for((0,Dr._)`;${b}--;`,()=>{t.let(x,(0,Dr._)`${n}[${b}]`),t.if(g,(0,Dr._)`continue`),c.length>1&&t.if((0,Dr._)`typeof ${x} == "string"`,(0,Dr._)`${x} += "_"`),t.if((0,Dr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Dr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Dr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Dme.useFunc)(t,Mme.default),g=t.name("outer");t.label(g).for((0,Dr._)`;${b}--;`,()=>t.for((0,Dr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Dr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};a_.default=Ame;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const kC=Jt,Nme=dn,jme=ph,Lme={message:"must be equal to constant",params:({schemaCode:e})=>(0,kC._)`{allowedValue: ${e}}`},Fme={keyword:"const",$data:!0,error:Lme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,kC._)`!${(0,Nme.useFunc)(t,jme.default)}(${n}, ${o})`):e.fail((0,kC._)`${a} !== ${n}`)}};i_.default=Fme;var s_={};Object.defineProperty(s_,"__esModule",{value:!0});const Rf=Jt,zme=dn,Vme=ph,Bme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Rf._)`{allowedValues: ${e}}`},Ume={keyword:"enum",schemaType:"array",$data:!0,error:Bme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,zme.useFunc)(t,Vme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Rf.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Rf._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Rf._)`${c()}(${n}, ${m}[${b}])`:(0,Rf._)`${n} === ${v}`}}};s_.default=Ume;Object.defineProperty(JS,"__esModule",{value:!0});const Wme=ZS,Hme=XS,Gme=QS,qme=t_,Yme=n_,Kme=r_,Jme=o_,Zme=a_,Xme=i_,Qme=s_,eve=[Wme.default,Hme.default,Gme.default,qme.default,Yme.default,Kme.default,Jme.default,Zme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xme.default,Qme.default];JS.default=eve;var l_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Jt,OC=dn,tve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},nve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,OC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Z5(e,r)}};function Z5(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,OC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:OC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=Z5;Cd.default=nve;var c_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const YR=Jt,Fv=dn,rve=Qt,ove={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return X5(e,"additionalItems",t);n.items=!0,!(0,Fv.alwaysValidSchema)(n,t)&&e.ok((0,rve.validateArray)(e))}};function X5(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Fv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,YR._)`${a}.length`);n.forEach((f,p)=>{(0,Fv.alwaysValidSchema)(s,f)||(r.if((0,YR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Fv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=X5;$d.default=ove;Object.defineProperty(c_,"__esModule",{value:!0});const ave=$d,ive={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ave.validateTuple)(e,"items")};c_.default=ive;var u_={};Object.defineProperty(u_,"__esModule",{value:!0});const KR=Jt,sve=dn,lve=Qt,cve=Cd,uve={message:({params:{len:e}})=>(0,KR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KR._)`{limit: ${e}}`},dve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:uve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,sve.alwaysValidSchema)(r,t)&&(o?(0,cve.validateAdditionalItems)(e,o):e.ok((0,lve.validateArray)(e)))}};u_.default=dve;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});const fa=Jt,ev=dn,fve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},pve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,ev.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,ev.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ev.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:ev.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};d_.default=pve;var Q5={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, - missingProperty: ${f}, - depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(Q5);var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const ej=Jt,hve=dn,mve={message:"property name must be valid",params:({params:e})=>(0,ej._)`{propertyName: ${e.propertyName}}`},vve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,hve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,ej.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};f_.default=vve;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});const tv=Qt,Ia=Jt,gve=Ti,nv=dn,yve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},bve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,nv.alwaysValidSchema)(i,n))return;const c=(0,tv.allSchemaProperties)(r.properties),u=(0,tv.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${gve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,nv.schemaRefOrVal)(i,r.properties,"properties");g=(0,tv.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,tv.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,nv.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:nv.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Uy.default=bve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const xve=Ga,JR=Qt,kx=dn,ZR=Uy,wve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&ZR.default.code(new xve.KeywordCxt(a,ZR.default,"additionalProperties"));const i=(0,JR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=kx.mergeEvaluated.props(t,(0,kx.toHash)(i),a.props));const s=i.filter(f=>!(0,kx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,JR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};p_.default=wve;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const XR=Qt,rv=Jt,QR=dn,eD=dn,Cve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,XR.allSchemaProperties)(n),l=s.filter(v=>(0,QR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof rv.Name)&&(a.props=(0,eD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,QR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,rv._)`${(0,XR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:eD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,rv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,rv.not)(u),()=>t.break())})})}}};h_.default=Cve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const $ve=dn,Sve={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,$ve.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};m_.default=Sve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const _ve=Qt,Eve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_ve.validateUnion,error:{message:"must match a schema in anyOf"}};v_.default=Eve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const zv=Jt,Pve=dn,Tve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,zv._)`{passingSchemas: ${e.passing}}`},kve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Tve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Pve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,zv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,zv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,zv.Name)})})}}};g_.default=kve;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Ove=dn,Rve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ove.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};y_.default=Rve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Lg=Jt,tj=dn,Dve={message:({params:e})=>(0,Lg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lg._)`{failingKeyword: ${e.ifClause}}`},Mve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,tj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=tD(r,"then"),a=tD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Lg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Lg._)`${u}`):e.setParams({ifClause:u})}}}};function tD(e,t){const n=e.schema[t];return n!==void 0&&!(0,tj.alwaysValidSchema)(e,n)}b_.default=Mve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Ive.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};x_.default=Ave;Object.defineProperty(l_,"__esModule",{value:!0});const Nve=Cd,jve=c_,Lve=$d,Fve=u_,zve=d_,Vve=Q5,Bve=f_,Uve=Uy,Wve=p_,Hve=h_,Gve=m_,qve=v_,Yve=g_,Kve=y_,Jve=b_,Zve=x_;function Xve(e=!1){const t=[Gve.default,qve.default,Yve.default,Kve.default,Jve.default,Zve.default,Bve.default,Uve.default,Vve.default,Wve.default,Hve.default];return e?t.push(jve.default,Fve.default):t.push(Nve.default,Lve.default),t.push(zve.default),t}l_.default=Xve;var w_={},C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ir=Jt,Qve={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},ege={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Qve,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};C_.default=ege;Object.defineProperty(w_,"__esModule",{value:!0});const tge=C_,nge=[tge.default];w_.default=nge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(qS,"__esModule",{value:!0});const rge=YS,oge=JS,age=l_,ige=w_,nD=Yu,sge=[rge.default,oge.default,(0,age.default)(),ige.default,nD.metadataVocabulary,nD.contentVocabulary];qS.default=sge;var $_={},nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(nj);Object.defineProperty($_,"__esModule",{value:!0});const au=Jt,RC=nj,rD=bo,lge=dn,cge={message:({params:{discrError:e,tagName:t}})=>e===RC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},uge={keyword:"discriminator",type:"object",schemaType:"object",error:cge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:RC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:RC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ga;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=dh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=fh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(_C,_C.exports);var rj=_C.exports;const yge=Vt(rj);var DC={exports:{}},oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(oj);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rj,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(aj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=oj,r=aj,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(DC,DC.exports);var bge=DC.exports;const xge=Vt(bge),Vv="additionalProperties",Bv="required",wge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Cge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Vv)},a=this.findOption(r)(Bv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=wge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const ij=(e,t={})=>{const n=o=>a=>{switch(a){case Vv:return Object.prototype.hasOwnProperty.call(t,Vv)?t[Vv]:!0;case Bv:return Object.prototype.hasOwnProperty.call(t,Bv)?t[Bv](o):Object.keys(o);default:return}};return new Cge(n).schemaObject(e)};var $i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})($i||($i={}));const sj=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",$ge=e=>e.type==="Group",lj=e=>e.elements!==void 0,Sge=e=>!!e&&typeof e=="object",_ge=e=>Sge(e)&&typeof e.scope=="string",Ege=e=>!!e&&typeof e=="object",cj=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},uj=(e,t)=>{cj(e,t,-1)},dj=(e,t)=>{cj(e,t,1)},Pge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},oD=(e={})=>tn({},Pge,e),aD=(e=oD(),t)=>{switch(t.type){case K_:return oD(t.config);default:return e}},Bi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Tge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},MC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),iD=(e,t)=>{if(t){if(kge(t.options))return t.options.ajv;if(t.options!==void 0&&Fq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?MC(e.ajv,t.schema):e.ajv:Aye()},kge=e=>e?e.ajv!==void 0:!1,sD=(e,t)=>t&&Oge(t.options)?t.options.validationMode:e.validationMode,Oge=e=>e?e.validationMode!==void 0:!1,Rge=e=>e?e.additionalErrors!==void 0:!1,lD=(e,t)=>t&&Rge(t.options)?t.options.additionalErrors:e.additionalErrors,cD=(e=Tge,t)=>{switch(t.type){case W_:{const n=iD(e,t),r=sD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data),i=lD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case H_:{const n=iD(e,t),r=sD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data)):e.data!==t.data&&(a=Bi(o,t.data));const i=lD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:b5(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case G_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Bi(r,e.data);return{...e,validator:r,errors:o}}case J_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?MC(e.ajv,t.schema).compile(t.schema):e.validator,o=Bi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Z_:return{...e,uischema:t.uischema};case q_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(aR(e.data)),r=Bi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(aR(n)),o=ude(t.path,r,e.data===void 0?{}:e.data),a=Bi(e.validator,o);return{...e,data:o,errors:a}}}case Y_:return{...e,errors:t.errors};case X_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Bi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=MC(e.ajv,e.schema).compile(e.schema),r=Bi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Dge=e=>fr(e,"data"),Mge=e=>fr(e,"schema"),Ige=e=>fr(e,"uischema"),Age=e=>fr(e,"ajv"),Nge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Fg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Nge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Gy(t),t},S_=(e,t,n)=>r=>{const o=Mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Fg(a));return Mg(r,a=>{if(Lge.indexOf(a.keyword)!==-1&&!Bg(a.parentSchema))return!1;const i=Fg(a);let s=n(i);const l=a.parentSchema;return s&&!jge(l)&&!Bg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&b5(l,t)),s})},jge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Lge=["additionalProperties","allOf","anyOf","oneOf"],fj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return S_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Fge=(e,t)=>fj(e,t,n=>n===e),zge=(e,t)=>fj(e,t,n=>n.startsWith(e+".")),__=(e,t)=>sj(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Vge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Si=(e,t,n)=>__(e,t)??Vge(n),zg=(e,t,n,r)=>`${Si(e,t,n)}.${r}`,Bge=(e,t)=>`${e}.${t}`,E_=(e,t)=>t,P_=(e,t,n)=>{var s;const r=zg(e.parentSchema,n,Fg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},T_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=zg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return F_(e.map(i=>t(i,n,o)))},Wy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!sj(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=__(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},pj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Bge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Wr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Wr||(Wr={}));const hj=[{key:Wr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Wr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Wr.removeTooltip,default:()=>"Delete"},{key:Wr.removeAriaLabel,default:()=>"Delete button"},{key:Wr.upAriaLabel,default:()=>"Move item up"},{key:Wr.up,default:()=>"Up"},{key:Wr.down,default:()=>"Down"},{key:Wr.downAriaLabel,default:()=>"Move item down"},{key:Wr.noDataMessage,default:()=>"No data"},{key:Wr.noSelection,default:()=>"No selection"},{key:Wr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Wr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Wr.deleteDialogAccept,default:()=>"Yes"},{key:Wr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:E_,translateError:P_},uD=(e=Cu,t)=>{switch(t.type){case tE:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case eE:return{...e,translate:t.translator??E_,translateError:t.errorTranslator??P_};case Q_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Uge=e=>e===void 0?E_:e.translate,Wge=e=>e===void 0?P_:e.translateError,Ku=-1,Ya=e=>!Mt(e)&&e.scope!==void 0,Yr=e=>(t,n,r)=>{if(Mt(t)||!Ya(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},k_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ya(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ka=e=>Yr(t=>!Mt(t)&&ol(t,e)),Hy=e=>Yr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,us=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Hge=e=>t=>Mt(e)||!Ya(t)?!1:Xde(t.scope,e),Gge=e=>t=>{if(Mt(e)||!Ya(t))return!1;const n=t.scope;return!Mt(n)&&Mde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,qge=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},mj=$n(_n("Control"),Ka("boolean")),Yge=$n(_n("Control"),Ka("object")),vj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),gj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),yj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),O_=$n(_n("Control"),yc(Yr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),bj=$n(_n("Control"),Yr(e=>Bg(e))),xj=$n(_n("Control"),Ka("integer")),wj=$n(_n("Control"),Ka("number")),Cj=$n(_n("Control"),Ka("string")),$j=$n(_n("Control"),us("multi",!0)),Sj=$n(_n("Control"),yc(Hy("date"),us("format","date"))),_j=$n(_n("Control"),yc(Hy("time"),us("format","time"))),Ej=$n(_n("Control"),yc(Hy("date-time"),us("format","date-time"))),Pj=$n(Yr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),R_=$n(_n("Control"),Pj),Df=(e,t,n)=>{if(VN(e))return SC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?SC(_fe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},D_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Bg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},Kge=R_,Tj=$n(_n("Control"),Yr((e,t)=>Ju(e).length!==0&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Ju(n);return r.length===1&&w5(["integer","number","boolean","string"],r[0])})),kj=$n(_n("Control"),yc(Ka("number"),Ka("integer")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),us("slider",!0)),Jge=$n(_n("Control"),Ka("integer"),us("format",!0)),Oj=e=>e.type==="Categorization",Rj=e=>e.type==="Category",M_=e=>Mt(e.elements)?!1:e.elements.map(t=>Oj(t)?M_(t):Rj(t)).reduce((t,n)=>t&&n,!0),Zge=e=>M_(e),Xge=e=>(t,n,r)=>!e(t,n,r);var Qge=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Ya,schemaMatches:Yr,schemaSubPathMatches:k_,schemaTypeIs:Ka,formatIs:Hy,uiTypeIs:_n,optionIs:us,scopeEndsWith:Hge,scopeEndIs:Gge,and:$n,or:yc,rankWith:vn,withIncreasedRank:qge,isBooleanControl:mj,isObjectControl:Yge,isAllOfControl:vj,isAnyOfControl:gj,isOneOfControl:yj,isEnumControl:O_,isOneOfEnumControl:bj,isIntegerControl:xj,isNumberControl:wj,isStringControl:Cj,isMultiLineControl:$j,isDateControl:Sj,isTimeControl:_j,isDateTimeControl:Ej,isObjectArray:Pj,isObjectArrayControl:R_,isObjectArrayWithNesting:D_,isArrayObjectControl:Kge,isPrimitiveArrayControl:Tj,isRangeControl:kj,isNumberFormatControl:Jge,isCategorization:Oj,isCategory:Rj,hasCategory:M_,categorizationHasCategory:Zge,not:Xge});const Dj=e=>(t,n,r)=>{const o=Ay(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},hh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=Dj(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},Mj=(e,t)=>n=>Fge(e,t)(n.jsonforms.core),Ij=(e,t)=>n=>zge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>Uge(fr(e,"jsonforms.i18n")),I_=()=>e=>Wge(fr(e,"jsonforms.i18n")),mh=e=>Dge(fr(e,"jsonforms.core")),Vg=e=>Mge(fr(e,"jsonforms.core")),eye=e=>Ige(fr(e,"jsonforms.core")),Sd=e=>Age(fr(e,"jsonforms.core")),A_=e=>fr(e,"jsonforms.renderers"),N_=e=>fr(e,"jsonforms.cells"),tye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},Aj=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Gy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},Nj=(e,t)=>{if(!_ge(e))return t??"";const n=Aj(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Gy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),IC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),nye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Gy);return Uv(e,r,n)},Uv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(nye(r))return Uv(e,o,n);const a=fr(e,r),i=Uv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Uv(c,[r,...o],n),s)break;return s}},rye=e=>e.type==="OR",oye=e=>e.type==="AND",aye=e=>e.type==="LEAF",iye=e=>Ppe(e,"schema"),dD=(e,t)=>Nj(e,t),AC=(e,t,n,r)=>{if(oye(t))return t.conditions.reduce((o,a)=>o&&AC(e,a,n,r),!0);if(rye(t))return t.conditions.reduce((o,a)=>o||AC(e,a,n,r),!1);if(aye(t))return IC(e,dD(t,n))===t.expectedValue;if(iye(t)){const o=IC(e,dD(t,n));return r.validate(t.schema,o)}else return!0},jj=(e,t,n,r)=>{const o=e.rule.condition;return AC(t,o,n,r)},sye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.HIDE:return!o;case $i.SHOW:return o;default:return!0}},lye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.DISABLE:return!o;case $i.ENABLE:return o;default:return!0}},j_=e=>!!(e.rule&&(e.rule.effect===$i.SHOW||e.rule.effect===$i.HIDE)),cye=e=>!!(e.rule&&(e.rule.effect===$i.ENABLE||e.rule.effect===$i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?sye(e,t,n,r):!0,uye=(e,t,n=void 0,r)=>e.rule?lye(e,t,n,r):!0,L_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&cye(n)?uye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},Lj=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),F_=e=>e==null?"":e.join(` -`),ol=(e,t)=>w5(Ju(e),t),Ju=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(VN(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=FS(e.allOf,n=>Ju(n).length!==0);if(t)return Ju(t)}return[]},Po={schema:$a,data:IC},dye=e=>Aj(e.scope).join("."),sr={compose:bc,fromScoped:dye},Ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Gy(n.substr(n.lastIndexOf("/")+1));return Ny(r)}return""},Fj=(e,t)=>{const n=e.label;if(typeof n=="boolean")return ov(Ox(e,t),n);if(typeof n=="string")return ov(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return ov(r,o)}return ov(Ox(e,t),!0)},ov=(e,t)=>({text:e,show:t}),fye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},qy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Yy=(e,t)=>e&&!t,is=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Dp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},z_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=mh(e),o=Nj(n,t.path),a=t.visible===void 0||j_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Vg(e),c=i.scope!==void 0&&fye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=Mj(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=Fj(n,u),v=b.show?b.text:"",x=rc(e),g=L_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=I_()(e),_=Si(y,n,o),S=w(zg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(zg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=T_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},pye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),hye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},mye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},vye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return z_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Dp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))}));return{...n,options:o}},gye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?FS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(mh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},V_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},yye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=V_(e,t),l=Po.schema(r,"items",s.rootSchema),c=Ij(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||A_(e),cells:t.cells||N_(e),translations:pj(u,hj,a,i)}},bye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(uj(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(dj(r,n),r)))}}),xye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),zj={visible:!0,enabled:!0,path:"",direction:"column"},wye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":zj.direction,Cye=(e,t)=>{const n=mh(e),{uischema:r}=t,o=t.visible===void 0||j_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=L_(e,t,r,void 0,n,i),l=Ca()(e),c=Ege(r)?Wy(r,l):void 0;return{...zj,renderers:t.renderers||A_(e),cells:t.cells||N_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??wye(r),config:i,label:c}},$ye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Vg(e),rootSchema:Vg(e),uischema:t.uischema||eye(e),path:t.path,enabled:t.enabled,config:rc(e)}),B_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:tye(e)}},Sye=(e,t)=>B_(e,t,"allOf"),_ye=(e,t)=>B_(e,t,"anyOf"),Eye=(e,t)=>B_(e,t,"oneOf"),Pye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=V_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=T_(Ij(n,c)(e),I_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:pj(u,hj,i,s)}},Tye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||j_(n)?_d(t.uischema,mh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=__(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||A_(e),cells:t.cells||N_(e)}},Ky=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=mh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Vg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=L_(e,t,a,r||u,l,f);const m=Ca()(e),b=I_()(e),v=T_(Mj(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},kye=(e,t)=>{const n=Ky(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Oye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},Rye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},Dye=(e,t,n)=>e.title?e.title:n+"-"+t,Jy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:hh(a,l,r.scope,o,void 0,r,t),label:Dye(i,s,n)}}),U_=new Set,Vj=(e,t)=>t<=1?e:e+t.toString(),Mye=(e,t)=>{const n=Vj(e,t);return!U_.has(n)},Bj=e=>{e===void 0&&(e="undefined");let t=0;for(;!Mye(e,t);)t++;const n=Vj(e,t);return U_.add(n),n},Uj=e=>U_.delete(e),Iye=e=>{if(e.properties)return FS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Bg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Aye=e=>{const t=new yge({allErrors:!0,verbose:!0,strict:!1,...e});return xge(t),t},Wj=e=>({type:e,elements:[]}),Wv=e=>({type:"Control",scope:e}),Nye=(e,t)=>{if(!Mt(e)&&!lj(e)){const n=Wj(t);return n.elements.push(e),n}return e},jye=(e,t)=>{if(!Mt(t)){const n=Ny(t);if($ge(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Lye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),NC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return NC($a(a,e.$ref,a),t,n,r,o,a);if(Lye(e)){const s=Wv(n);return t.push(s),s}const i=Ju(e);if(i.length===0)return null;if(i.length>1){const s=Wv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=Wj(o);if(t.push(s),e.properties&&qZ(e.properties).length>1&&jye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),NC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Wv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Hj=(e,t="VerticalLayout",n="#",r=e)=>Nye(NC(e,[],n,"",t,r),t),ac={jsonSchema:ij,uiSchema:Hj,controlElement:Wv},W_="jsonforms/INIT",H_="jsonforms/UPDATE_CORE",G_="jsonforms/SET_AJV",q_="jsonforms/UPDATE",Y_="jsonforms/UPDATE_ERRORS",Fye="jsonforms/VALIDATE",Gj="jsonforms/ADD_RENDERER",qj="jsonforms/REMOVE_RENDERER",Yj="jsonforms/ADD_CELL",Kj="jsonforms/REMOVE_CELL",K_="jsonforms/SET_CONFIG",Jj="jsonforms/ADD_UI_SCHEMA",Zj="jsonforms/REMOVE_UI_SCHEMA",J_="jsonforms/SET_SCHEMA",Z_="jsonforms/SET_UISCHEMA",X_="jsonforms/SET_VALIDATION_MODE",Q_="jsonforms/SET_LOCALE",eE="jsonforms/SET_TRANSLATOR",tE="jsonforms/UPDATE_I18N",Xj="jsonforms/ADD_DEFAULT_DATA",Qj="jsonforms/REMOVE_DEFAULT_DATA",zye=(e,t=ij(e),n,r)=>({type:W_,data:e,schema:t,uischema:typeof n=="object"?n:Hj(t),options:r}),Vye=(e,t,n,r)=>({type:H_,data:e,schema:t,uischema:n,options:r}),Bye=(e,t)=>({type:Xj,schemaPath:e,data:t}),Uye=e=>({type:Qj,schemaPath:e}),Wye=e=>({type:G_,ajv:e}),Va=(e,t)=>({type:q_,path:e,updater:t}),Hye=e=>({type:Y_,errors:e}),Gye=(e,t)=>({type:Gj,tester:e,renderer:t}),qye=(e,t)=>({type:Yj,tester:e,cell:t}),Yye=(e,t)=>({type:Kj,tester:e,cell:t}),Kye=(e,t)=>({type:qj,tester:e,renderer:t}),Jye=e=>({type:K_,config:e}),Zye=e=>({type:X_,validationMode:e}),Xye=(e,t)=>({type:Jj,tester:e,uischema:t}),Qye=e=>({type:Zj,tester:e}),e0e=e=>({type:Q_,locale:e}),t0e=e=>({type:J_,schema:e}),n0e=(e,t)=>({type:eE,translator:e,errorTranslator:t}),r0e=(e,t,n)=>({type:tE,locale:e,translator:t,errorTranslator:n}),o0e=e=>({type:Z_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:W_,UPDATE_CORE:H_,SET_AJV:G_,UPDATE_DATA:q_,UPDATE_ERRORS:Y_,VALIDATE:Fye,ADD_RENDERER:Gj,REMOVE_RENDERER:qj,ADD_CELL:Yj,REMOVE_CELL:Kj,SET_CONFIG:K_,ADD_UI_SCHEMA:Jj,REMOVE_UI_SCHEMA:Zj,SET_SCHEMA:J_,SET_UISCHEMA:Z_,SET_VALIDATION_MODE:X_,SET_LOCALE:Q_,SET_TRANSLATOR:eE,UPDATE_I18N:tE,ADD_DEFAULT_DATA:Xj,REMOVE_DEFAULT_DATA:Qj,init:zye,updateCore:Vye,registerDefaultData:Bye,unregisterDefaultData:Uye,setAjv:Wye,update:Va,updateErrors:Hye,registerRenderer:Gye,registerCell:qye,unregisterCell:Yye,unregisterRenderer:Kye,setConfig:Jye,setValidationMode:Zye,registerUISchema:Xye,unregisterUISchema:Qye,setLocale:e0e,setSchema:t0e,setTranslator:n0e,updateI18n:r0e,setUISchema:o0e});const Ug={createLabelDescriptionFrom:Fj,convertToValidClassName:Lj};var a0e=lo,i0e=function(){return a0e.Date.now()},s0e=i0e,l0e=ta,Rx=s0e,fD=p5,c0e="Expected a function",u0e=Math.max,d0e=Math.min;function f0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(c0e);t=fD(t)||0,l0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?u0e(fD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?d0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Rx();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Rx())}function _(){var S=Rx(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var p0e=f0e;const e6=Vt(p0e);class t6 extends M.Component{constructor(t){super(t)}}class n6 extends t6{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class r6 extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const h0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},o6=M.createContext({core:h0e,renderers:[]}),m0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},v0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(cD,void 0,()=>cD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(aD,void 0,()=>aD(void 0,Yc.setConfig(t.config)));m0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(uD,void 0,()=>{var _,S,E;return uD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(e6((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(o6.Provider,{value:v},e)},xc=()=>$.useContext(o6),g0e=(e,t)=>Pye({jsonforms:{...e}},t),y0e=(e,t)=>yye({jsonforms:{...e}},t),b0e=(e,t)=>Cye({jsonforms:{...e}},t),x0e=(e,t)=>Ed({jsonforms:{...e}},t),w0e=(e,t)=>{var o;const n=hye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},C0e=(e,t)=>{var o;const n=mye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},$0e=(e,t)=>{var o;const n=vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},S0e=(e,t)=>V_({jsonforms:{...e}},t),_0e=(e,t)=>({...Sye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>pye(e),[e]),E0e=(e,t)=>{const n=_ye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},P0e=(e,t)=>{const n=Eye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},T0e=(e,t)=>$ye({jsonforms:{...e}},t),a6=e=>({...Do(e),...$.useMemo(()=>bye(e),[e])}),k0e=(e,t)=>gye({jsonforms:{...e}},t),O0e=(e,t)=>Ky({jsonforms:{...e}},t),R0e=(e,t)=>{var o;const n=Oye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},D0e=(e,t)=>{var o;const n=Rye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>kye({jsonforms:{...e}},t),I0e=e=>({...Do(e),...$.useMemo(()=>xye(e),[e])}),A0e=(e,t)=>Tye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},N0e=e=>function({ctx:n,props:r}){const o=T0e(n,r);return M.createElement(e,Object.assign({},r,o))},j0e=e=>function({ctx:n,props:r}){const o=x0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},L0e=e=>function({ctx:n,props:r}){const o=b0e(n,r);return M.createElement(e,Object.assign({},r,o))},F0e=e=>function({ctx:n,props:r}){const o=P0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},z0e=e=>function({ctx:n,props:r}){const o=E0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},V0e=e=>function({ctx:n,props:r}){const o=_0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},B0e=e=>function({ctx:n,props:r}){const o=S0e(n,r);return M.createElement(e,Object.assign({},r,o))},U0e=e=>function({ctx:n,props:r}){const o=g0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},W0e=e=>function({ctx:n,props:r}){const o=y0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},H0e=e=>function({ctx:n,props:r}){const o=k0e(n,r);return M.createElement(e,Object.assign({},r,o))},G0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},q0e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Y0e=e=>function({ctx:n,props:r}){const o=R0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},K0e=e=>function({ctx:n,props:r}){const o=w0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},J0e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Z0e=e=>function({ctx:n,props:r}){const o=C0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},X0e=e=>function({ctx:n,props:r}){const o=$0e(n,r),a=I0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},i6=(e,t=!0)=>_r(N0e(t?M.memo(e):e)),co=(e,t=!0)=>_r(j0e(t?M.memo(e):e)),ds=(e,t=!0)=>_r(L0e(t?M.memo(e):e)),e1e=(e,t=!0)=>_r(F0e(t?M.memo(e):e)),s6=(e,t=!0)=>_r(z0e(t?M.memo(e):e)),t1e=(e,t=!0)=>_r(V0e(t?M.memo(e):e)),n1e=(e,t=!0)=>_r(B0e(t?M.memo(e):e)),Zy=(e,t=!0)=>_r(U0e(t?M.memo(e):e)),l6=(e,t=!0)=>_r(W0e(t?M.memo(e):e)),r1e=(e,t=!0)=>_r(H0e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(G0e(t?M.memo(e):e)),o1e=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),c6=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),nE=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),a1e=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),rE=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),i1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),u6=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class d6 extends M.Component{constructor(t){super(t),this.state={id:Ya(t.uischema)?Bj(t.uischema.scope):void 0}}componentWillUnmount(){Ya(this.props.uischema)&&Uj(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(s1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const s1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>Ay(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(r6,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class l1e extends d6{constructor(t){super(t)}}const ko=i6(d6);i6(l1e);const f6=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(v0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},c1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>Ay(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(r6,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=o1e(c1e),u1e={black:"#000",white:"#fff"},Mp=u1e,d1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=d1e,f1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jc=f1e,p1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zc=p1e,h1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=h1e,m1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=m1e,v1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=v1e,g1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y1e=g1e;function Gi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function p6(e){if(!Gi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=p6(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Gi(e)&&Gi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gi(t[o])&&o in e&&Gi(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Gi(t[o])?p6(t[o]):t[o]:r[o]=t[o])}),r}var h6={exports:{}},b1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x1e=b1e,w1e=x1e;function m6(){}function v6(){}v6.resetWarningCache=m6;var C1e=function(){function e(r,o,a,i,s,l){if(l!==w1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v6,resetWarningCache:m6};return n.PropTypes=n,n};h6.exports=C1e();var $1e=h6.exports;const L=Vt($1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function vh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function _1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function _i(e){return Vn(e).defaultView||window}function E1e(e,t){return()=>null}function Ip(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const P1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Jn=P1e;let pD=0;function T1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(pD+=1,n(`mui-${pD}`))},[t]),r}const hD=lp["useId".toString()];function Za(e){if(hD!==void 0){const t=hD();return e??t}return T1e(e)}function k1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Jn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ip(n,t)})},e)}let Xy=!0,jC=!1,mD;const O1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function R1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function D1e(e){e.metaKey||e.altKey||e.ctrlKey||(Xy=!0)}function Dx(){Xy=!1}function M1e(){this.visibilityState==="hidden"&&jC&&(Xy=!0)}function I1e(e){e.addEventListener("keydown",D1e,!0),e.addEventListener("mousedown",Dx,!0),e.addEventListener("pointerdown",Dx,!0),e.addEventListener("touchstart",Dx,!0),e.addEventListener("visibilitychange",M1e,!0)}function A1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xy||R1e(t)}function Qy(){const e=$.useCallback(o=>{o!=null&&I1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(jC=!0,window.clearTimeout(mD),mD=window.setTimeout(()=>{jC=!1},100),t.current=!1,!0):!1}function r(o){return A1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function g6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function y6(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function N1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(y6()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const j1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},oE=j1e,L1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},F1e=L1e;function aE(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=aE(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const vD=e=>e,z1e=()=>{let e=vD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vD}}},V1e=z1e(),b6=V1e,B1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=B1e[t];return r?`${n}-${r}`:`${b6.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const e0="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function x6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var U1e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W1e=x6(function(e){return U1e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function H1e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ir(Td,--Oo):0,Zu--,ur===10&&(Zu=1,n0--),ur}function Yo(){return ur=Oo2||Np(ur)>3?"":" "}function obe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gh(e,Hv()+(t<6&&bi()==32&&Yo()==32))}function FC(e){for(;Yo();)switch(ur){case e:return Oo;case 34:case 39:e!==34&&e!==39&&FC(ur);break;case 40:e===41&&FC(e);break;case 92:Yo();break}return Oo}function abe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&bi()===47)break;return"/*"+gh(t,Oo-1)+"*"+t0(e===47?e:Yo())}function ibe(e){for(;!Np(bi());)Yo();return gh(e,Oo)}function sbe(e){return E6(qv("",null,null,null,[""],e=_6(e),0,[0],e))}function qv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ir(E,f-1)==58){LC(E+=mn(Gv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Gv(y);break;case 9:case 10:case 13:case 32:E+=rbe(b);break;case 92:E+=obe(Hv()-1,7);continue;case 47:switch(bi()){case 42:case 47:av(lbe(abe(Yo(),Hv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=ci(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&ci(E)-f&&av(m>32?yD(E+";",r,n,f-1):yD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(av(S=gD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)qv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ir(E,3)===110?100:p){case 100:case 108:case 109:case 115:qv(e,S,S,r&&av(gD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:qv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+ci(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&nbe()==125)continue}switch(E+=t0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ci(E)-1)*g,g=1;break;case 64:bi()===45&&(E+=Gv(Yo())),p=bi(),u=f=ci(w=E+=ibe(Hv())),y++;break;case 45:b===45&&ci(E)==2&&(v=0)}}return a}function gD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=lE(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return r0(e,t,n,o===0?iE:s,l,c,u)}function lbe(e,t,n){return r0(e,t,n,w6,t0(tbe()),Ap(e,2,-2),0)}function yD(e,t,n,r){return r0(e,t,n,sE,Ap(e,0,r),Ap(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=lE(e),o=0;o6)switch(Ir(e,t+1)){case 109:if(Ir(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Hg+(Ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LC(e,"stretch")?P6(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ir(e,t+1)!==115)break;case 6444:switch(Ir(e,ci(e)-3-(~LC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ir(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(Ir(e,t+11)){case 114:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Ur+e+e}return e}var gbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sE:t.return=P6(t.value,t.length);break;case C6:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case iE:if(t.length)return ebe(t.props,function(a){switch(Q1e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Hg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Hg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Ur+"input-$1")]})],o)}return""})}},ybe=[gbe],bbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||ybe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dbe=/[A-Z]|^ms/g,Mbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I6=function(t){return t.charCodeAt(1)===45},xD=function(t){return t!=null&&typeof t!="boolean"},Mx=x6(function(e){return I6(e)?e:e.replace(Dbe,"-$&").toLowerCase()}),wD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mbe,function(r,o,a){return ui={name:o,styles:a,next:ui},o})}return Rbe[t]!==1&&!I6(t)&&typeof n=="number"&&n!==0?n+"px":n};function jp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ui={name:n.name,styles:n.styles,next:ui},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ui={name:r.name,styles:r.styles,next:ui},r=r.next;var o=n.styles+";";return o}return Ibe(e,t,n)}case"function":{if(e!==void 0){var a=ui,i=n(e);return ui=a,jp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Ibe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Fbe:zbe},_D=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Vbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return D6(n,r,o),Nbe(function(){return M6(n,r,o)}),null},Bbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=_D(t,n,r),l=s||SD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Wbe(o)?n:o):t;return O.jsx(jbe,{styles:r})}/** - * @mui/styled-engine v5.14.14 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Gbe(e,t){return zC(e,t)}const qbe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ybe=["values","unit","step"],Kbe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function Jbe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Ybe),a=Kbe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${mE[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ED;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ED;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mE).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function L6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function F6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Qbe(e,...t){const n=L6(e),r=[n,...t].reduce((o,a)=>Gr(o,a),{});return F6(Object.keys(n),r)}function exe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||exe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function h0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=h0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=h0(l,r)||{};return Ro(i,s,f=>{let p=Gg(c,o,f);return f===p&&typeof f=="string"&&(p=Gg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function txe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nxe={m:"margin",p:"padding"},rxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oxe=txe(e=>{if(e.length>2)if(PD[e])e=PD[e];else return[e];const[t,n]=e.split(""),r=nxe[t],o=rxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...gE];function yh(e,t,n,r){var o;const a=(o=h0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function yE(e){return yh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function axe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function ixe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=oxe(n),a=axe(o,r),i=e[n];return Ro(e,i,a)}function z6(e,t){const n=yE(e.theme);return Object.keys(e).map(r=>ixe(e,t,r,n)).reduce(Zf,{})}function Xn(e){return z6(e,vE)}Xn.propTypes={};Xn.filterProps=vE;function Qn(e){return z6(e,gE)}Qn.propTypes={};Qn.filterProps=gE;function sxe(e=8){if(e.mui)return e;const t=yE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function m0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Zf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function hi(e){return typeof e!="number"?e:`${e}px solid`}const lxe=bn({prop:"border",themeKey:"borders",transform:hi}),cxe=bn({prop:"borderTop",themeKey:"borders",transform:hi}),uxe=bn({prop:"borderRight",themeKey:"borders",transform:hi}),dxe=bn({prop:"borderBottom",themeKey:"borders",transform:hi}),fxe=bn({prop:"borderLeft",themeKey:"borders",transform:hi}),pxe=bn({prop:"borderColor",themeKey:"palette"}),hxe=bn({prop:"borderTopColor",themeKey:"palette"}),mxe=bn({prop:"borderRightColor",themeKey:"palette"}),vxe=bn({prop:"borderBottomColor",themeKey:"palette"}),gxe=bn({prop:"borderLeftColor",themeKey:"palette"}),v0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Ro(e,e.borderRadius,n)}return null};v0.propTypes={};v0.filterProps=["borderRadius"];m0(lxe,cxe,uxe,dxe,fxe,pxe,hxe,mxe,vxe,gxe,v0);const g0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Ro(e,e.gap,n)}return null};g0.propTypes={};g0.filterProps=["gap"];const y0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Ro(e,e.columnGap,n)}return null};y0.propTypes={};y0.filterProps=["columnGap"];const b0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Ro(e,e.rowGap,n)}return null};b0.propTypes={};b0.filterProps=["rowGap"];const yxe=bn({prop:"gridColumn"}),bxe=bn({prop:"gridRow"}),xxe=bn({prop:"gridAutoFlow"}),wxe=bn({prop:"gridAutoColumns"}),Cxe=bn({prop:"gridAutoRows"}),$xe=bn({prop:"gridTemplateColumns"}),Sxe=bn({prop:"gridTemplateRows"}),_xe=bn({prop:"gridTemplateAreas"}),Exe=bn({prop:"gridArea"});m0(g0,y0,b0,yxe,bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe);function Iu(e,t){return t==="grey"?t:e}const Pxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Txe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),kxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});m0(Pxe,Txe,kxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Oxe=bn({prop:"width",transform:Uo}),bE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||mE[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Ro(e,e.maxWidth,t)}return null};bE.filterProps=["maxWidth"];const Rxe=bn({prop:"minWidth",transform:Uo}),Dxe=bn({prop:"height",transform:Uo}),Mxe=bn({prop:"maxHeight",transform:Uo}),Ixe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Axe=bn({prop:"boxSizing"});m0(Oxe,bE,Rxe,Dxe,Mxe,Ixe,Axe);const Nxe={border:{themeKey:"borders",transform:hi},borderTop:{themeKey:"borders",transform:hi},borderRight:{themeKey:"borders",transform:hi},borderBottom:{themeKey:"borders",transform:hi},borderLeft:{themeKey:"borders",transform:hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:g0},rowGap:{style:b0},columnGap:{style:y0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:bE},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},x0=Nxe;function jxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Lxe(e,t){return typeof e=="function"?e(t):e}function Fxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=h0(o,c)||{};return f?f(i):Ro(i,r,b=>{let v=Gg(p,u,b);return b===v&&typeof b=="string"&&(v=Gg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:x0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=L6(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Lxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Zf(p,e(m,b,a,i));else{const v=Ro({theme:a},b,x=>({[m]:x}));jxe(v,b)?p[m]=t({sx:b,theme:a}):p=Zf(p,v)}else p=Zf(p,e(m,b,a,i))}),F6(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const V6=Fxe();V6.filterProps=["sx"];const xE=V6,zxe=["breakpoints","palette","spacing","shape"];function w0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,zxe),s=Jbe(n),l=sxe(o);let c=Gr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},Xbe,a)},i);return c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}function Vxe(e){return Object.keys(e).length===0}function wE(e=null){const t=$.useContext(pE);return!t||Vxe(t)?e:t}const Bxe=w0();function bh(e=Bxe){return wE(e)}function Uxe({styles:e,themeId:t,defaultTheme:n={}}){const r=bh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Hbe,{styles:o})}const Wxe=["sx"],Hxe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:x0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function CE(e){const{sx:t}=e,n=Oe(e,Wxe),{systemProps:r,otherProps:o}=Hxe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Gi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const Gxe=["variant"];function TD(e){return e.length===0}function B6(e){const{variant:t}=e,n=Oe(e,Gxe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=TD(r)?e[o]:Fe(e[o]):r+=`${TD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const qxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yxe(e){return Object.keys(e).length===0}function Kxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Jxe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qg=e=>{const t={};return e&&e.forEach(n=>{const r=B6(n.props);t[r]=n.style}),t},Zxe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),qg(n)},Yg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[B6(a.props)])}),o},Xxe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Yg(e,t,a)};function Xf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qxe=w0(),ewe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yv({defaultTheme:e,theme:t,themeId:n}){return Yxe(t)?e:t[n]||t}function twe(e){return e?(t,n)=>n[e]:null}const kD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Yv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Yg(t,qg(a),a);return[o,...i]}return o};function U6(e={}){const{themeId:t,defaultTheme:n=Qxe,rootShouldForwardProp:r=Xf,slotShouldForwardProp:o=Xf}=e,a=i=>xE(T({},i,{theme:Yv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{qbe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=twe(ewe(c))}=s,m=Oe(s,qxe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Xf;c==="Root"||c==="root"?g=r:c?g=o:Kxe(i)&&(g=void 0);const y=Gbe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>kD({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Gi(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let z=R;return Yg(G,qg(U),U).forEach(Y=>{z=Gr(z,Y)}),z}),F}return R}):[];let E=C;if(Gi(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Yg(F,qg(R),R).forEach(z=>{U=Gr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>kD({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t})),U=Jxe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},R,{theme:F})):V}),p(R,G)}return null}),l&&!b&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t}));return Xxe(R,Zxe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const nwe=U6(),rwe=nwe;function $E(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:aE(t.components[n].defaultProps,r)}function W6({props:e,name:t,defaultTheme:n,themeId:r}){let o=bh(n);return r&&(o=o[r]||o),$E({theme:o,name:t,props:e})}function SE(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function owe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(owe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function C0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function awe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),C0({type:s,values:l})}function OD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(awe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iwe(e,t){const n=OD(e),r=OD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=SE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,C0(e)}function $0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return C0(e)}function S0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return C0(e)}const swe=["component","direction","spacing","divider","children","className","useFlexGap"],lwe=w0(),cwe=rwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function uwe(e){return W6({props:e,name:"MuiStack",defaultTheme:lwe})}function dwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pwe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Ro({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=yE(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Gr(n,Ro({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fwe(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=Qbe(t.breakpoints,n),n};function hwe(e={}){const{createStyledComponent:t=cwe,useThemeProps:n=uwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(pwe);return $.forwardRef(function(l,c){const u=n(l),f=CE(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,swe),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?dwe(x,v):x}))})}function mwe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vwe=["mode","contrastThreshold","tonalOffset"],RD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mp.white,default:Mp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ix={text:{primary:Mp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S0(e.main,o):t==="dark"&&(e.dark=$0(e.main,a)))}function gwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function ywe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[500],light:Jc[300],dark:Jc[700]}}function bwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function xwe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function wwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Cwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function $we(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,vwe),a=e.primary||gwe(t),i=e.secondary||ywe(t),s=e.error||bwe(t),l=e.info||xwe(t),c=e.success||wwe(t),u=e.warning||Cwe(t);function f(v){return iwe(v,Ix.text.primary)>=n?Ix.text.primary:RD.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return DD(v,"light",y,r),DD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Ix,light:RD};return Gr(T({common:T({},Mp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:y1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Swe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _we(e){return Math.round(e*1e5)/1e5}const MD={textTransform:"uppercase"},ID='"Roboto", "Helvetica", "Arial", sans-serif';function Ewe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ID,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,Swe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===ID?{letterSpacing:`${_we(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,MD),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,MD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Pwe=.2,Twe=.14,kwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Pwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Twe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kwe})`].join(",")}const Owe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Rwe=Owe,Dwe=["duration","easing","delay"],Mwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AD(e){return`${Math.round(e)}ms`}function Iwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Awe(e){const t=T({},Mwe,e.easing),n=T({},H6,e.duration);return T({getAutoHeightDuration:Iwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,Dwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:AD(i)} ${s} ${typeof l=="string"?l:AD(l)}`).join(",")}},e,{easing:t,duration:n})}const Nwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jwe=Nwe,Lwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Lwe);if(e.vars)throw new Error(al(18));const s=$we(r),l=w0(e);let c=Gr(l,{mixins:mwe(l.breakpoints,n),palette:s,shadows:Rwe.slice(),typography:Ewe(s,a),transitions:Awe(o),zIndex:T({},jwe)});return c=Gr(c,i),c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}const zwe=Fwe(),_0=zwe;function rr(){const e=bh(_0);return e[e0]||e}function Je({props:e,name:t}){return W6({props:e,name:t,defaultTheme:_0,themeId:e0})}const ra=e=>Xf(e)&&e!=="classes",_E=Xf,Vwe=U6({themeId:e0,defaultTheme:_0,rootShouldForwardProp:ra}),he=Vwe,Bwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ND=Bwe;function Uwe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wwe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hwe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,Uwe,r)},Gwe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),G6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Wwe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Hwe(v);return O.jsxs(Gwe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});G6.muiName="SvgIcon";const VC=G6;function or(e,t){function n(r,o){return O.jsx(VC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=VC.muiName,$.memo($.forwardRef(n))}const qwe={configure:e=>{b6.configure(e)}},Ywe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:Wg,createSvgIcon:or,debounce:vh,deprecatedPropType:_1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:_i,requirePropFactory:E1e,setRef:Ip,unstable_ClassNameGenerator:qwe,unstable_useEnhancedEffect:Jn,unstable_useId:Za,unsupportedProp:k1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Qy},Symbol.toStringTag,{value:"Module"}));var En={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var EE=Symbol.for("react.element"),PE=Symbol.for("react.portal"),E0=Symbol.for("react.fragment"),P0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),O0=Symbol.for("react.context"),Kwe=Symbol.for("react.server_context"),R0=Symbol.for("react.forward_ref"),D0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),I0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Jwe=Symbol.for("react.offscreen"),q6;q6=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EE:switch(e=e.type,e){case E0:case T0:case P0:case D0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case Kwe:case O0:case R0:case A0:case I0:case k0:return e;default:return t}}case PE:return t}}}En.ContextConsumer=O0;En.ContextProvider=k0;En.Element=EE;En.ForwardRef=R0;En.Fragment=E0;En.Lazy=A0;En.Memo=I0;En.Portal=PE;En.Profiler=T0;En.StrictMode=P0;En.Suspense=D0;En.SuspenseList=M0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===O0};En.isContextProvider=function(e){return Pa(e)===k0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EE};En.isForwardRef=function(e){return Pa(e)===R0};En.isFragment=function(e){return Pa(e)===E0};En.isLazy=function(e){return Pa(e)===A0};En.isMemo=function(e){return Pa(e)===I0};En.isPortal=function(e){return Pa(e)===PE};En.isProfiler=function(e){return Pa(e)===T0};En.isStrictMode=function(e){return Pa(e)===P0};En.isSuspense=function(e){return Pa(e)===D0};En.isSuspenseList=function(e){return Pa(e)===M0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===E0||e===T0||e===P0||e===D0||e===M0||e===Jwe||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===I0||e.$$typeof===k0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===q6||e.getModuleId!==void 0)};En.typeOf=Pa;function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BC(e,t)}function TE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BC(e,t)}function Zwe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Xwe(e,t){e.classList?e.classList.add(t):Zwe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Qwe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jD(e.className,t):e.setAttribute("class",jD(e.className&&e.className.baseVal||"",t))}const LD={disabled:!1},Kg=M.createContext(null);var Y6=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",UC="exiting",fs=function(e){TE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=UC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this);i&&Y6(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Of.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||LD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Of.findDOMNode(this);if(!a||LD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:UC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Kg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);fs.contextType=Kg;fs.propTypes={};function tu(){}fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};fs.UNMOUNTED=Mf;fs.EXITED=Al;fs.ENTERING=Nl;fs.ENTERED=iu;fs.EXITING=UC;const N0=fs;var eCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xwe(t,r)})},Ax=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Qwe(t,r)})},kE=function(e){TE(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function lCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const cCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],uCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,lCe,n)},dCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),fCe=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),J6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=H6.standard,TransitionComponent:C=N0}=r,_=Oe(r,cCe),S=T({},r,{orientation:g,collapsedSize:s}),E=uCe(S),k=rr(),I=$.useRef(),R=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>Z=>{if(B){const re=V.current;Z===void 0?B(re):B(re,Z)}},W=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((B,Z)=>{R.current&&G&&(R.current.style.position="absolute"),B.style[z]=U,f&&f(B,Z)}),X=Q((B,Z)=>{const re=W();R.current&&G&&(R.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,Z)}),j=Q((B,Z)=>{B.style[z]="auto",p&&p(B,Z)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const Z=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return O.jsx(C,T({in:u,onEnter:J,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,Z)=>O.jsx(dCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},Z,{children:O.jsx(fCe,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:R,children:O.jsx(pCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});J6.muiSupportAuto=!0;const hCe=J6;function mCe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const vCe=["className","component","elevation","square","variant"],gCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,mCe,o)},yCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",ND(t.elevation))}, ${Tt("#fff",ND(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),bCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,vCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=gCe(u);return O.jsx(yCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),ps=bCe,xCe=$.createContext({}),Z6=xCe;function wCe(e){return tt("MuiAccordion",e)}const CCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),iv=CCe,$Ce=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],SCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},wCe,t)},_Ce=he(ps,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${iv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${iv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${iv.expanded}`]:{margin:"16px 0"}})),ECe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=hCe,TransitionProps:m}=r,b=Oe(r,$Ce),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=SCe(_);return O.jsxs(_Ce,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Z6.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),PCe=ECe;function TCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const kCe=["className"],OCe=e=>{const{classes:t}=e;return Qe({root:["root"]},TCe,t)},RCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),DCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,kCe),i=r,s=OCe(i);return O.jsx(RCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),MCe=DCe;function ICe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const ACe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=ACe,NCe=["center","classes","className"];let j0=e=>e,FD,zD,VD,BD;const WC=550,jCe=80,LCe=hE(FD||(FD=j0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),FCe=hE(zD||(zD=j0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),zCe=hE(VD||(VD=j0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),VCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BCe=he(ICe,{name:"MuiTouchRipple",slot:"Ripple"})(BD||(BD=j0` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),pa.rippleVisible,LCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,FCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,zCe,({theme:e})=>e.transitions.easing.easeInOut),UCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,NCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(BCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:WC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},jCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(VCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:O.jsx(DE,{component:null,exit:!0,children:l})}))}),WCe=UCe;function HCe(e){return tt("MuiButtonBase",e)}const GCe=et("MuiButtonBase",["root","disabled","focusVisible"]),qCe=GCe,YCe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KCe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},HCe,o);return n&&r&&(i.root+=` ${r}`),i},JCe=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qCe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Oe(r,YCe),Q=$.useRef(null),W=$.useRef(null),J=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=Qy(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,Z]=$.useState(!1);$.useEffect(()=>{Z(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",R),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=KCe(ze);return O.jsxs(JCe,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?O.jsx(WCe,T({ref:J,center:a},G)):null]}))}),Sa=ZCe;function XCe(e){return tt("MuiAccordionSummary",e)}const QCe=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=QCe,e$e=["children","className","expandIcon","focusVisibleClassName","onClick"],t$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},XCe,t)},n$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),r$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),o$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),a$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,e$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(Z6),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=t$e(v);return O.jsxs(n$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(r$e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(o$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),i$e=a$e;function s$e(e){return tt("MuiIconButton",e)}const l$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c$e=l$e,u$e=["edge","children","className","color","disabled","disableFocusRipple","size"],d$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,s$e,t)},f$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),p$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,u$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=d$e(p);return O.jsx(f$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=p$e,h$e=or(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function m$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const v$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,m$e,i)},y$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x$e=e=>b$e[e]||e,w$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=x$e(r.color),a=CE(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=UD}=a,b=Oe(a,v$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||UD[p])||"span",g=g$e(v);return O.jsx(y$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=w$e;function C$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const $$e=["className","color","enableColorOnDark","position"],S$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,C$e,r)},sv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_$e=he(ps,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:sv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),E$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,$$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=S$e(c);return O.jsx(_$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),P$e=E$e;function xi(e){return typeof e=="string"}function If(e,t,n){return e===void 0||xi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function T$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const k$e={disableDefaultClasses:!1},O$e=$.createContext(k$e);function R$e(e){const{disableDefaultClasses:t}=$.useContext(O$e);return n=>t?"":e(n)}function Qf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function WD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Qf(T({},o,r)),s=WD(r),l=WD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const M$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,M$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=D$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function I$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=oE({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const A$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function N$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function L$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j$e(e))}function F$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(A$e)).forEach((r,o)=>{const a=N$e(r);a===-1||!L$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function z$e(){return!0}function X6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=F$e,isEnabled:i=z$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs($.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",ME="auto",xh=[_o,_a,Ea,Eo],Qu="start",Lp="end",V$e="clippingParents",Q6="viewport",gf="popper",B$e="reference",HD=xh.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+Lp])},[]),eL=[].concat(xh,[ME]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+Lp])},[]),U$e="beforeRead",W$e="read",H$e="afterRead",G$e="beforeMain",q$e="main",Y$e="afterMain",K$e="beforeWrite",J$e="write",Z$e="afterWrite",X$e=[U$e,W$e,H$e,G$e,q$e,Y$e,K$e,J$e,Z$e];function Ei(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IE(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ei(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function eSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ei(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const tSe={name:"applyStyles",enabled:!0,phase:"write",fn:Q$e,effect:eSe,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Kl=Math.max,Jg=Math.min,ed=Math.round;function HC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tL(){return!/^((?!chrome|android).)*safari/i.test(HC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Zo(e):window,s=i.visualViewport,l=!tL()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function AE(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ss(e){return Zo(e).getComputedStyle(e)}function nSe(e){return["table","td","th"].indexOf(Ei(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return Ei(e)==="html"?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||fl(e)}function GD(e){return!ya(e)||ss(e).position==="fixed"?null:e.offsetParent}function rSe(e){var t=/firefox/i.test(HC()),n=/Trident/i.test(HC());if(n&&ya(e)){var r=ss(e);if(r.position==="fixed")return null}var o=L0(e);for(IE(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ei(o))<0;){var a=ss(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function wh(e){for(var t=Zo(e),n=GD(e);n&&nSe(n)&&ss(n).position==="static";)n=GD(n);return n&&(Ei(n)==="html"||Ei(n)==="body"&&ss(n).position==="static")?t:n||rSe(e)||t}function NE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ep(e,t,n){return Kl(e,Jg(t,n))}function oSe(e,t,n){var r=ep(e,t,n);return r>n?n:r}function rL(){return{top:0,right:0,bottom:0,left:0}}function oL(e){return Object.assign({},rL(),e)}function aL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oL(typeof t!="number"?t:aL(t,xh))};function iSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=wi(n.placement),l=NE(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=aSe(o.padding,n),p=AE(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=wh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=ep(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function sSe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nL(t.elements.popper,o)&&(t.elements.arrow=o))}const lSe={name:"arrow",enabled:!0,phase:"main",fn:iSe,effect:sSe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var cSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function qD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=wh(n),E="clientHeight",k="clientWidth";if(S===Zo(n)&&(S=fl(n),ss(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===Lp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===Lp){w=Ea;var R=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&cSe),U=u===!0?uSe({x:m,y:v},Zo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function dSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:wi(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fSe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dSe,data:{}};var lv={passive:!0};function pSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lv)}),s&&l.addEventListener("resize",n.update,lv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lv)}),s&&l.removeEventListener("resize",n.update,lv)}}const hSe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pSe,data:{}};var mSe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(e){return e.replace(/left|right|bottom|top/g,function(t){return mSe[t]})}var vSe={start:"end",end:"start"};function YD(e){return e.replace(/start|end/g,function(t){return vSe[t]})}function jE(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LE(e){return td(fl(e)).left+jE(e).scrollLeft}function gSe(e,t){var n=Zo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=tL();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+LE(e),y:l}}function ySe(e){var t,n=fl(e),r=jE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+LE(e),l=-r.scrollTop;return ss(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function FE(e){var t=ss(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iL(e){return["html","body","#document"].indexOf(Ei(e))>=0?e.ownerDocument.body:ya(e)&&FE(e)?e:iL(L0(e))}function tp(e,t){var n;t===void 0&&(t=[]);var r=iL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Zo(r),i=o?[a].concat(a.visualViewport||[],FE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(tp(L0(i)))}function GC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KD(e,t,n){return t===Q6?GC(gSe(e,n)):cc(t)?bSe(t,n):GC(ySe(fl(e)))}function xSe(e){var t=tp(L0(e)),n=["absolute","fixed"].indexOf(ss(e).position)>=0,r=n&&ya(e)?wh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&nL(o,r)&&Ei(o)!=="body"}):[]}function wSe(e,t,n,r){var o=t==="clippingParents"?xSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=KD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Jg(u.right,l.right),l.bottom=Jg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},KD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sL(e){var t=e.reference,n=e.element,r=e.placement,o=r?wi(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?NE(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Lp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Fp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?V$e:s,c=n.rootBoundary,u=c===void 0?Q6:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=oL(typeof x!="number"?x:aL(x,xh)),y=p===gf?B$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=wSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=sL({reference:S,element:w,strategy:"absolute",placement:o}),k=GC(Object.assign({},w,E)),I=p===gf?k:S,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(R).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";R[G]+=U[V]*z})}return R}function CSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?eL:l,u=nd(r),f=u?s?HD:HD.filter(function(b){return nd(b)===u}):xh,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Fp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function $Se(e){if(wi(e)===ME)return[];var t=Kv(e);return[YD(e),t,YD(t)]}function SSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=wi(x),y=g===x,w=l||(y||!b?[Kv(x)]:$Se(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(wi(N)===ME?CSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,V=z?"width":"height",Y=Fp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Kv(Q));var W=Kv(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[W]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const _Se={name:"flip",enabled:!0,phase:"main",fn:SSe,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZD(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function ESe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Fp(t,{elementContext:"reference"}),s=Fp(t,{altBoundary:!0}),l=JD(i,r),c=JD(s,o,a),u=ZD(l),f=ZD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const PSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ESe};function TSe(e,t,n){var r=wi(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function kSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=eL.reduce(function(u,f){return u[f]=TSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const OSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kSe};function RSe(e){var t=e.state,n=e.name;t.modifiersData[n]=sL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DSe={name:"popperOffsets",enabled:!0,phase:"read",fn:RSe,data:{}};function MSe(e){return e==="x"?"y":"x"}function ISe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Fp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=wi(t.placement),y=nd(t.placement),w=!y,C=NE(g),_=MSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],J=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?AE(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rL(),B=N[z],Z=N[V],re=ep(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-R.mainAxis:j-re-B-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,me=t.elements.arrow&&wh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=ep(m?Jg(W,Ce):W,Q,m?Kl(J,fe):J);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+R.altAxis,ze=Ye?ge+E[we]+k[we]-Me-R.altAxis:He,Pe=m&&Ye?oSe(je,ge,ze):ep(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const ASe={name:"preventOverflow",enabled:!0,phase:"main",fn:ISe,requiresIfExists:["offset"]};function NSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jSe(e){return e===Zo(e)||!ya(e)?jE(e):NSe(e)}function LSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&LSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ei(t)!=="body"||FE(a))&&(s=jSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=LE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function zSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function VSe(e){var t=zSe(e);return X$e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function USe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XD={placement:"bottom",modifiers:[],strategy:"absolute"};function QD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(qSe(o)||document.body)},[o,a]),Jn(()=>{if(i&&!a)return Ip(n,i),()=>{Ip(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return O.jsx($.Fragment,{children:r})}return O.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function YSe(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const KSe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JSe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZSe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function qC(e){return typeof e=="function"?e():e}function XSe(e){return e.nodeType!==void 0}const QSe=()=>Qe({root:["root"]},R$e(YSe)),e_e={},t_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,KSe),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Jn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=ZSe(u,i),[E,k]=$.useState(S),[I,R]=$.useState(qC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&R(qC(o))},[o]),Jn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=GSe(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=QSe(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),n_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=e_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,JSe),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=qC(r);E=R&&XSe(R)?Vn(R).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return O.jsx(lL,{disablePortal:s,container:E,children:O.jsx(t_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function r_e(e){const t=Vn(e);return t.body===e?_i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eM(e){return parseInt(_i(e).getComputedStyle(e).paddingRight,10)||0}function o_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!o_e(i);s&&l&&np(i,o)})}function Nx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r_e(r)){const i=g6(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${eM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=_i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function i_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&np(t.modalRef,!1);const o=i_e(n);tM(n,t.mount,t.modalRef,o,!0);const a=Nx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Nx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=a_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,n),tM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l_e(e){return typeof e=="function"?e():e}function c_e(e){return e?e.props.hasOwnProperty("in"):!1}const u_e=new s_e;function d_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=u_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=c_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=l_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&np(b.current,w))}),R=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{R()},[R]),$.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Qf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Wg(Y,l==null?void 0:l.props.onEnter),onExited:Wg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const f_e=2;function cL(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function nM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},g_e=e=>e;let fv;function jx(){return fv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fv=CSS.supports("touch-action","none"):fv=!0),fv}function y_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=g_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[R,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(R);let z=G?R.slice().sort(cL):[R];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:X}=Qy(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));J(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},Z=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Jn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=p_e(gt,l,s),v)Le=m_e(Le,v,l);else{const te=nM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=nM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=rM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=cv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});uv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>f_e&&k(!0),U&&!dv(ze,R)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=cv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;jx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=cv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});uv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!dv(Te,R)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:jx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:jx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=cv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});uv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!dv(it,R)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=Zg(G?z[0]:l,l,s),De=Zg(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=Qf(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:v_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=Qf(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:Z(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},F1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=Qf(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const b_e=["onChange","maxRows","minRows","style","value"];function pv(e){return parseInt(e,10)||0}const x_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const w_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,b_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=_i(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=S.boxSizing,I=pv(S.paddingBottom)+pv(S.paddingTop),R=pv(S.borderBottomWidth)+pv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+R:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();oM(C)||v(_=>g(_,C))},[x]);Jn(()=>{const C=()=>{const F=x();oM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=vh(_),k=u.current,I=_i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Jn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs($.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},x_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function aM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function C_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=aM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=aM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Lx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function __e(e){const{unstable_isActiveElementInListbox:t=S_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=$_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:J,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Za(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),Z=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&R(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=oE({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?Z.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Lx(fe,rt=>R(ve,rt))!==-1)return;const Ie=Lx(Pe,rt=>R(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Ip(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Lx(xt,ut=>R(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-iM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:iM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){Z.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(Z.current.focus(),j&&B.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&R(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const E_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],P_e=he(n_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T_e=$.forwardRef(function(t,n){var r;const o=wE(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,E_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(P_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),Ch=T_e;function k_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const O_e=["className","color","component","disableGutters","disableSticky","inset"],R_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,k_e,t)},D_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),uL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,O_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=R_e(f);return O.jsx(D_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});uL.muiSkipListHighlight=!0;const M_e=uL,I_e=or(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function A_e(e){return tt("MuiChip",e)}const N_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=N_e,j_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,A_e,t)},F_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),z_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sM(e){return e.key==="Backspace"||e.key==="Delete"}const V_e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,j_e),S=$.useRef(null),E=sn(S,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&sM(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&sM(J)?b(J):J.key==="Escape"&&S.current&&S.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=L_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):O.jsx(I_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),O.jsxs(F_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,O.jsx(z_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),dL=V_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const B_e=$.createContext(void 0),F0=B_e;function ki(){return $.useContext(F0)}function U_e(e){return O.jsx(Uxe,T({},e,{defaultTheme:_0,themeId:e0}))}function lM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(lM(e.value)&&e.value!==""||t&&lM(e.defaultValue)&&e.defaultValue!=="")}function W_e(e){return e.startAdornment}function H_e(e){return tt("MuiInputBase",e)}const G_e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=G_e,q_e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],z0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},V0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Y_e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,H_e,t)},B0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),U0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_e=O.jsx(U_e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),J_e=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:J={},startAdornment:X,type:j="text",value:K}=o,q=Oe(o,q_e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),Z=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,Z),[ce,xe]=$.useState(!1),me=ki(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{Xg(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Jn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),R&&R(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=w_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=Y_e(He),Me=J.root||c.Root||B0,je=W.root||u.root||{},ze=J.input||c.Input||U0;return we=T({},we,(r=W.input)!=null?r:u.input),O.jsxs($.Fragment,{children:[!m&&K_e,O.jsxs(Me,T({},je,!xi(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,O.jsx(F0.Provider,{value:null,children:O.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!xi(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),zE=J_e;function Z_e(e){return tt("MuiInput",e)}const X_e=T({},Vo,et("MuiInput",["root","underline","input"])),js=X_e;function Q_e(e){return tt("MuiOutlinedInput",e)}const eEe=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),li=eEe;function tEe(e){return tt("MuiFilledInput",e)}const nEe=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=nEe,fL=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rEe(e){return tt("MuiAutocomplete",e)}const oEe=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=oEe;var cM,uM;const aEe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iEe=["ref"],sEe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,rEe,t)},lEe=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${js.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${js.root}.${Vo.sizeSmall}`]:{[`& .${js.input}`]:{padding:"2px 4px 3px 0"}},[`& .${li.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${li.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),cEe=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uEe=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dEe=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),fEe=he(Ch,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),pEe=he(ps,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),hEe=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mEe=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vEe=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gEe=he(M_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yEe=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),bEe=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=cM||(cM=O.jsx(h$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:ce=ps,PopperComponent:xe=Ch,popupIcon:me=uM||(uM=O.jsx(fL,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Oe(s,aEe),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=__e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Oe(dt,iEe),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=sEe(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>O.jsx(dL,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(O.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>O.jsxs("li",{children:[O.jsx(gEe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),O.jsx(yEe,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>O.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs($.Fragment,{children:[O.jsx(lEe,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:O.jsxs(cEe,{className:Kt.endAdornment,ownerState:Ut,children:[nt?O.jsx(uEe,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(dEe,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?O.jsx(fEe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:O.jsxs(pEe,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?O.jsx(hEe,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?O.jsx(mEe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?O.jsx(vEe,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),xEe=bEe,wEe=or(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CEe(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $Ee=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],SEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CEe,t)},_Ee=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),EEe=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),PEe=he(wEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TEe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const kEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,$Ee);let b=null;const v=TEe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=SEe(y);return g?b=O.jsx(EEe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(PEe,{ownerState:y,className:w.fallback}),O.jsx(_Ee,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),pL=kEe,OEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],REe={entering:{opacity:1},entered:{opacity:1}},DEe=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=N0}=t,w=Oe(t,OEe),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{K6(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),R=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},REe[z],x,s.props.style),ref:_},V))}))}),kd=DEe;function MEe(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const IEe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AEe=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},MEe,t)},NEe=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),jEe=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Oe(i,IEe),w=T({},i,{component:c,invisible:p}),C=AEe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(NEe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),hL=jEe;function LEe(e){return tt("MuiBadge",e)}const FEe=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=FEe,zEe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fx=10,zx=4,VEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,LEe,i)},BEe=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),UEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fx*2,lineHeight:1,padding:"0 6px",height:Fx*2,borderRadius:Fx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:zx,height:zx*2,minWidth:zx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),WEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,zEe),{badgeContent:R,invisible:F,max:U,displayValue:G}=I$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=oE({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=V?z:c,X=J!=="dot"?G:void 0,j=T({},c,{badgeContent:R,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:J}),K=VEe(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:BEe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:UEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),mL=WEe;function HEe(e){return tt("MuiButton",e)}const GEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hv=GEe,qEe=$.createContext({}),YEe=qEe,KEe=$.createContext(void 0),JEe=KEe,ZEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],XEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,HEe,i);return T({},i,l)},vL=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),QEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hv.disabled}`]:{boxShadow:"none"}}),e2e=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},vL(e))),t2e=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},vL(e))),n2e=$.forwardRef(function(t,n){const r=$.useContext(YEe),o=$.useContext(JEe),a=aE(r,t),i=Je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,ZEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=XEe(S),k=y&&O.jsx(e2e,{className:E.startIcon,ownerState:S,children:y}),I=b&&O.jsx(t2e,{className:E.endIcon,ownerState:S,children:b}),R=o||"";return O.jsxs(QEe,T({ownerState:S,className:Ne(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=n2e;function r2e(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const o2e=["className","raised"],a2e=e=>{const{classes:t}=e;return Qe({root:["root"]},r2e,t)},i2e=he(ps,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),s2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,o2e),s=T({},r,{raised:a}),l=a2e(s);return O.jsx(i2e,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),l2e=s2e;function c2e(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const u2e=["className","component"],d2e=e=>{const{classes:t}=e;return Qe({root:["root"]},c2e,t)},f2e=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),p2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,u2e),s=T({},r,{component:a}),l=d2e(s);return O.jsx(f2e,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),h2e=p2e;function m2e(e){return tt("MuiCardHeader",e)}const v2e=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dM=v2e,g2e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],y2e=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m2e,t)},b2e=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${dM.title}`]:t.title,[`& .${dM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),x2e=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),w2e=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),C2e=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),$2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,g2e),b=T({},r,{component:s,disableTypography:l}),v=y2e(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=O.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=O.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(b2e,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(x2e,{className:v.avatar,ownerState:b,children:a}),O.jsxs(C2e,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(w2e,{className:v.action,ownerState:b,children:o})]}))}),S2e=$2e;function _2e(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E2e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],P2e=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,_2e,t)},T2e=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),k2e=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O2e=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Oe(t,E2e),[I,R]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=ki(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=P2e(Q);return O.jsxs(T2e,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(k2e,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),VE=O2e,R2e=or(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),D2e=or(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M2e=or(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I2e(e){return tt("MuiCheckbox",e)}const A2e=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vx=A2e,N2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],j2e=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,I2e,t);return T({},t,i)},L2e=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vx.checked}, &.${Vx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),F2e=O.jsx(D2e,{}),z2e=O.jsx(R2e,{}),V2e=O.jsx(M2e,{}),B2e=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=F2e,color:s="primary",icon:l=z2e,indeterminate:c=!1,indeterminateIcon:u=V2e,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,N2e),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=j2e(g);return O.jsx(L2e,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),U2e=B2e;function W2e(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const H2e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],G2e=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W2e,r)},q2e=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Y2e=he(hL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),K2e=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({name:"MuiModal",props:t}),{BackdropComponent:u=Y2e,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Oe(c,H2e),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=d_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=G2e(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=J();B.onEnter=se,B.onExited=Ce}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:q2e,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:Z,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(lL,{ref:X,container:v,disablePortal:S,children:O.jsxs(Z,T({},me,{children:[!I&&u?O.jsx(re,T({},ue)):null,O.jsx(X6,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),gL=K2e;function J2e(e){return tt("MuiDialog",e)}const Z2e=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rp=Z2e,X2e=$.createContext({}),yL=X2e,Q2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ePe=he(hL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,J2e,t)},nPe=he(gL,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),rPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),oPe=he(ps,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),aPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ps,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,Q2e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=tPe(R),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Za(s),Y=$.useMemo(()=>({titleId:V}),[V]);return O.jsx(nPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:ePe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:R},I,{children:O.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(rPe,{className:Ne(F.container),onMouseDown:G,ownerState:R,children:O.jsx(oPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:R,children:O.jsx(yL.Provider,{value:Y,children:u})}))})}))}))}),W0=aPe;function iPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const sPe=["className","disableSpacing"],lPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},iPe,t)},cPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),uPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,sPe),s=T({},r,{disableSpacing:a}),l=lPe(s);return O.jsx(cPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),H0=uPe;function dPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function fPe(e){return tt("MuiDialogTitle",e)}const pPe=et("MuiDialogTitle",["root"]),hPe=pPe,mPe=["className","dividers"],vPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},dPe,t)},gPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${hPe.root} + &`]:{paddingTop:0}})),yPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,mPe),s=T({},r,{dividers:a}),l=vPe(s);return O.jsx(gPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),G0=yPe;function bPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const xPe=["children","className"],wPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},bPe,t);return T({},t,r)},CPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Pe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,xPe),i=wPe(a);return O.jsx(CPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),BE=$Pe,SPe=["className","id"],_Pe=e=>{const{classes:t}=e;return Qe({root:["root"]},fPe,t)},EPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,SPe),s=r,l=_Pe(s),{titleId:c=a}=$.useContext(yL);return O.jsx(EPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),UE=PPe;function TPe(e){return tt("MuiDivider",e)}const kPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fM=kPe,OPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},TPe,r)},DPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,OPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=RPe(v);return O.jsx(DPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(MPe,{className:x.wrapper,ownerState:v,children:a}):null}))});bL.muiSkipListHighlight=!0;const pM=bL,IPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],APe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},tEe,t);return T({},t,o)},NPe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),jPe=he(U0,{name:"MuiFilledInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,IPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=APe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Gr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:NPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:jPe;return O.jsx(zE,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});xL.muiName="Input";const wL=xL;function LPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,LPe,t)},VPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),BPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,FPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=zPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&W_e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(Xg(z.props,!0)||Xg(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,R,f,p,F,b,v,x]);return O.jsx(F0.Provider,{value:U,children:O.jsx(VPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),$h=BPe,UPe=hwe({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Je({props:e,name:"MuiStack"})}),WPe=UPe;function HPe(e){return tt("MuiFormControlLabel",e)}const GPe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=GPe,qPe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YPe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,HPe,t)},KPe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JPe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),ZPe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,qPe),x=ki(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=YPe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=O.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),O.jsxs(KPe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?O.jsxs(WPe,{direction:"row",alignItems:"center",children:[k,O.jsxs(JPe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),q0=ZPe;function XPe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const QPe=["className","row"],eTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},XPe,t)},tTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,QPe),s=ki(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=eTe(c);return O.jsx(tTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),CL=nTe;function rTe(e){return tt("MuiFormHelperText",e)}const oTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hM=oTe;var mM;const aTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,rTe,t)},sTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,aTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iTe(u);return O.jsx(sTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?mM||(mM=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=lTe;function cTe(e){return tt("MuiFormLabel",e)}const uTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),op=uTe,dTe=["children","className","color","component","disabled","error","filled","focused","required"],fTe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,cTe,t)},pTe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${op.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),hTe=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),mTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,dTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fTe(u);return O.jsxs(pTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(hTe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),WE=mTe,vTe=$.createContext(),vM=vTe;function gTe(e){return tt("MuiGrid",e)}const yTe=[0,1,2,3,4,5,6,7,8,9,10],bTe=["column-reverse","column","row-reverse","row"],xTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zp=et("MuiGrid",["root","container","item","zeroMinWidth",...yTe.map(e=>`spacing-xs-${e}`),...bTe.map(e=>`direction-xs-${e}`),...xTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),wTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function CTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function $Te({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${zp.item}`]={maxWidth:"none"}),o})}function $L({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function STe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${zp.item}`]:{paddingTop:0}}})}return o}function _Te({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zp.item}`]:{paddingLeft:0}}})}return o}function ETe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const PTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=ETe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),$Te,STe,_Te,CTe);function TTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const kTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,gTe,t)},OTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=CE(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,wTe),y=m||b,w=l||b,C=$.useContext(vM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&(S[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=kTe(k);return O.jsx(vM.Provider,{value:_,children:O.jsx(PTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=OTe,RTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function YC(e){return`scale(${e}, ${e**2})`}const DTe={entering:{opacity:1,transform:YC(1)},entered:{opacity:1,transform:"none"}},Bx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SL=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=N0}=t,g=Oe(t,RTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{K6(V);const{duration:Q,delay:W,easing:J}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Bx?X:X*.666,delay:W,easing:J})].join(","),l&&l(V,Y)}),R=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=J):J=Y,V.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:Bx?J:J*.666,delay:Bx?Q:Q||J*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=YC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:YC(.75),visibility:V==="exited"&&!s?"hidden":void 0},DTe[V],b,a.props.style),ref:S},Y))}))});SL.muiSupportAuto=!0;const Qg=SL;function MTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Jn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const _L=lp["useSyncExternalStore"];function ITe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return _L(l,s,i)}function Sh(e,t={}){const n=wE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=$E({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(_L!==void 0?ITe:MTe)(l,o,a,i,s)}const ATe=["initialWidth","width"],Bs=["xs","sm","md","lg","xl"],NTe=(e,t,n=!0)=>n?Bs.indexOf(e)<=Bs.indexOf(t):Bs.indexOf(e)n?Bs.indexOf(t)<=Bs.indexOf(e):Bs.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=$E({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,ATe),[m,b]=$.useState(!1);Jn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Sh(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},FTe=LTe;function zTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,BTe,t)},HTe=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function GTe(e){const{children:t,className:n,only:r}=e,o=Oe(e,UTe),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=WTe(s);return O.jsx(HTe,{className:Ne(l.root,n),ownerState:s,children:t})}const qTe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,qTe);return t==="js"?O.jsx(VTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(GTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const YTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KTe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},Z_e,t);return T({},t,o)},JTe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${js.disabled}, .${js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${js.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZTe=he(U0,{name:"MuiInput",slot:"Input",overridesResolver:V0})({}),EL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,YTe),y=KTe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Gr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:JTe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:ZTe;return O.jsx(zE,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});EL.muiName="Input";const hs=EL;function XTe(e){return tt("MuiInputAdornment",e)}const QTe=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gM=QTe;var yM;const eke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,XTe,t)},rke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gM.positionStart}&:not(.${gM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,eke),p=ki()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=nke(b);return O.jsx(F0.Provider,{value:null,children:O.jsx(rke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(yn,{color:"text.secondary",children:o}):O.jsxs($.Fragment,{children:[c==="start"?yM||(yM=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),HE=oke;function ake(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ike=["disableAnimation","margin","shrink","variant","className"],ske=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,ake,t);return T({},t,c)},lke=he(WE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cke=$.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,ike),l=ki();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=ske(f);return O.jsx(lke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),PL=cke,uke=$.createContext({}),es=uke;function dke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const fke=["children","className","component","dense","disablePadding","subheader"],pke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dke,t)},hke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),mke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,fke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=pke(p);return O.jsx(es.Provider,{value:f,children:O.jsxs(hke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),GE=mke;function vke(e){return tt("MuiListItem",e)}const gke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=gke,yke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bke=yke;function xke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const wke=["className"],Cke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},xke,n)},$ke=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,wke),i=$.useContext(es),s=T({},r,{disableGutters:i.disableGutters}),l=Cke(s);return O.jsx($ke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});TL.muiName="ListItemSecondaryAction";const kL=TL,Ske=["className"],_ke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Eke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Pke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},vke,r)},Tke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:Eke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),kke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Oe(r.ContainerProps,Ske),I=Oe(r,_ke),R=$.useContext(es),F=$.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=$.useRef(null);Jn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Pke(V),Q=sn(U,n),W=E.root||u.Root||Tke,J=S.root||f.root||{},X=T({className:Ne(Y.root,J.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),O.jsx(es.Provider,{value:F,children:O.jsxs(kke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[O.jsx(W,T({},J,!xi(W)&&{as:j,ownerState:T({},V,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(es.Provider,{value:F,children:O.jsxs(W,T({},J,{as:j,ref:Q},!xi(W)&&{ownerState:T({},V,J.ownerState)},X,{children:[G,C&&O.jsx(kL,{children:C})]}))})}),OL=Oke;function Rke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Dke=["className"],Mke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rke,n)},Ike=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ake=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,Dke),i=$.useContext(es),s=T({},r,{alignItems:i.alignItems}),l=Mke(s);return O.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),Nke=Ake,jke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),bM=jke;function Lke(e){return tt("MuiListItemText",e)}const Fke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ey=Fke,zke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Lke,t)},Bke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.primary}`]:t.primary},{[`& .${ey.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Uke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,zke),{dense:m}=$.useContext(es);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Vke(x);return b!=null&&b.type!==yn&&!i&&(b=O.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=O.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(Bke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),Wke=Uke,Hke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ux(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RL(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Gke=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,Hke),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,Ux);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,xM);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,Ux);else if(_==="End")w.preventDefault(),xf(C,null,c,l,xM);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=S&&!E.repeating&&RL(S,E);E.previousKeyMatched&&(R||xf(C,S,!1,l,Ux,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return O.jsx(GE,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),qE=Gke;function qke(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const Yke=["onEntering"],Kke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jke=["slotProps"];function wM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $M(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Wx(e){return typeof e=="function"?e():e}const Zke=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},qke,t)},Xke=he(gL,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=he(ps,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qke=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=Qg,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Yke),F=Oe(i,Kke),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),Y=Zke(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Wx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+wM(fe,c.vertical),left:fe.left+CM(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:wM(se,_.vertical),horizontal:CM(se,_.horizontal)}),[_.horizontal,_.vertical]),J=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:$M(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=_i(Wx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:$M(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=J(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[J]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=vh(()=>{K()}),Ce=_i(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Wx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:Xke,re=(a=w==null?void 0:w.paper)!=null?a:DL,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Oe(xe,Jke);return O.jsx(Z,T({},ue,!xi(Z)&&{slotProps:me,disableScrollLock:I},{children:O.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},ce,{children:p}))}))}))}),eOe=Qke;function tOe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const nOe=["onEntering"],rOe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],oOe={vertical:"top",horizontal:"right"},aOe={vertical:"top",horizontal:"left"},iOe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},tOe,t)},sOe=he(eOe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lOe=he(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cOe=he(qE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),uOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,nOe),_=Oe(a,rOe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=iOe(k),R=i&&!c&&p,F=$.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,S),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;$.Children.map(s,(J,X)=>{$.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:lOe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(sOe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?oOe:aOe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(cOe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:R,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),dOe=uOe;function fOe(e){return tt("MuiMenuItem",e)}const pOe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=pOe,hOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},fOe,i);return T({},i,l)},gOe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mOe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fM.inset}`]:{marginLeft:52},[`& .${ey.root}`]:{marginTop:0,marginBottom:0},[`& .${ey.inset}`]:{paddingLeft:36},[`& .${bM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bM.root} svg`]:{fontSize:"1.25rem"}}))),yOe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,hOe),b=$.useContext(es),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Jn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=vOe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(es.Provider,{value:v,children:O.jsx(gOe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),ty=yOe;function bOe(e){return tt("MuiNativeSelect",e)}const xOe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=xOe,wOe=["className","disabled","error","IconComponent","inputRef","variant"],COe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,bOe,t)},ML=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${YE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$Oe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${YE.multiple}`]:t.multiple}]}})(ML),IL=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${YE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),SOe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),_Oe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,wOe),u=T({},t,{disabled:o,variant:l,error:a}),f=COe(u);return O.jsxs($.Fragment,{children:[O.jsx($Oe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(SOe,{as:i,ownerState:u,className:f.icon})]})}),EOe=_Oe;var SM;const POe=["children","classes","className","label","notched"],TOe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kOe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function OOe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,POe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(TOe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(kOe,{ownerState:i,children:a?O.jsx("span",{children:n}):SM||(SM=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const ROe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],DOe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Q_e,t);return T({},t,r)},MOe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${li.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${li.focused} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${li.error} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${li.disabled} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),IOe=he(OOe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),AOe=he(U0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,ROe),y=DOe(l),w=ki(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:MOe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:AOe;return O.jsx(zE,T({slots:{root:S,input:E},renderSuffix:k=>O.jsx(IOe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});AL.muiName="Input";const NL=AL,NOe=or(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jOe=or(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),LOe=he("span")({position:"relative",display:"flex"}),FOe=he(NOe)({transform:"scale(1)"}),zOe=he(jOe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function jL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(LOe,{className:n.root,ownerState:o,children:[O.jsx(FOe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(zOe,{fontSize:r,className:n.dot,ownerState:o})]})}const VOe=$.createContext(void 0),LL=VOe;function BOe(){return $.useContext(LL)}function UOe(e){return tt("MuiRadio",e)}const WOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_M=WOe,HOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],GOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,UOe,t))},qOe=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_M.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_M.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function YOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const EM=O.jsx(jL,{checked:!0}),PM=O.jsx(jL,{}),KOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=EM,color:l="primary",icon:c=PM,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,HOe),v=T({},a,{color:l,size:p}),x=GOe(v),g=BOe();let y=i;const w=Wg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=YOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(qOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=PM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=EM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),JOe=KOe,ZOe=["actions","children","defaultValue","name","onChange","value"],XOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,ZOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Za(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(LL.Provider,{value:v,children:O.jsx(CL,T({role:"radiogroup",ref:m},c,{children:o}))})}),QOe=XOe;function eRe(e){return tt("MuiSelect",e)}const tRe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=tRe;var TM;const nRe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rRe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(ML,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oRe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),aRe=he("input",{shouldForwardProp:e=>_E(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iRe(e){return e==null||typeof e=="string"&&!e.trim()}const sRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,eRe,t)},lRe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Oe(t,nRe),[W,J]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:R,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(R!=null),[Z,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(J(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(J(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(Xg({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>kM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=kM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},KE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},pRe=he(hs,KE)(""),hRe=he(NL,KE)(""),mRe=he(wL,KE)(""),FL=$.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fL,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,uRe),R=y?EOe:cRe,F=ki(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=fRe(z),Y=Oe(V,dRe),Q=p||{standard:O.jsx(pRe,{ownerState:z}),outlined:O.jsx(hRe,{label:b,ownerState:z}),filled:O.jsx(mRe,{ownerState:z})}[G],W=sn(n,Q.ref);return O.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?Gr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});FL.muiName="Select";const zL=FL,vRe=e=>!e||!xi(e),gRe=vRe;function yRe(e){return tt("MuiSlider",e)}const bRe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=bRe,xRe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function wRe(e){const{children:t,className:n,value:r}=e,o=xRe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},O.jsxs($.Fragment,{children:[t.props.children,O.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const CRe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function OM(e){return e}const $Re=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),SRe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),_Re=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),ERe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),PRe=he(wRe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),TRe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_E(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),kRe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_E(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ORe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,yRe,i)},RRe=({children:e})=>e,DRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,R;const F=Je({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:J={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:Z=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=OM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=OM}=F,Be=Oe(F,CRe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=y_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=ORe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:$Re,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:SRe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:_Re,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:ERe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:PRe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:TRe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:kRe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:J.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:J.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:J.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:J.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:J.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:J.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:J.markLabel,xn=(R=Ce==null?void 0:Ce.input)!=null?R:J.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},gRe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return O.jsxs(Se,T({},Bn,{children:[O.jsx(_e,T({},le)),O.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=Zg(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),O.jsxs($.Fragment,{children:[O.jsx(_t,T({"data-index":Ie},Ee,!xi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!xi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=Zg(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?RRe:ft;return O.jsx(xt,T({},!xi(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:O.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:O.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),MRe=DRe;function IRe(e){return tt("MuiTooltip",e)}const ARe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Us=ARe,NRe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function jRe(e){return Math.round(e*1e5)/1e5}const LRe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,IRe,t)},FRe=he(Ch,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Us.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Us.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Us.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Us.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),zRe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jRe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Us.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Us.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Us.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Us.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),VRe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mv=!1,Hx=null,$f={x:0,y:0};function vv(e,t){return n=>{t&&t(n),e(n)}}const BRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:Z,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=Qg,TransitionProps:se}=S,Ce=Oe(S,NRe),fe=$.isValidElement(k)?k:O.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||J,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Za(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Hx),mv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Hx),Hx=setTimeout(()=>{mv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||mv&&Q?Me.current=setTimeout(()=>{ne(yt)},mv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=Qy(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=vv(Yt,oe.onMouseOver),oe.onMouseLeave=vv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=vv(dt,oe.onFocus),oe.onBlur=vv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:Z,touch:$e.current}),pt=LRe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:FRe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:Qg,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:zRe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:VRe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:R.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:R.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:R.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:R.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),O.jsx(ye,T({as:Z??Ch,placement:B,anchorEl:J?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:O.jsxs(Ie,T({},Nt,{children:[me,E?O.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=BRe,URe=$.createContext({}),_h=URe,WRe=$.createContext({}),Y0=WRe;function HRe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const GRe=["active","children","className","component","completed","disabled","expanded","index","last"],qRe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},HRe,t)},YRe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),KRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,GRe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(_h);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=qRe(E),I=O.jsxs(YRe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(Y0.Provider,{value:S,children:v&&!x&&f!==0?O.jsxs($.Fragment,{children:[v,I]}):I})}),JRe=KRe,ZRe=or(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),XRe=or(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function QRe(e){return tt("MuiStepIcon",e)}const eDe=et("MuiStepIcon",["root","active","completed","error","text"]),Gx=eDe;var RM;const tDe=["active","className","completed","error","icon"],nDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},QRe,t)},qx=he(VC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Gx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.error}`]:{color:(e.vars||e).palette.error.main}})),rDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),oDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,tDe),u=T({},r,{active:o,completed:i,error:s}),f=nDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?O.jsx(qx,T({as:XRe,className:p,ref:n,ownerState:u},c)):i?O.jsx(qx,T({as:ZRe,className:p,ref:n,ownerState:u},c)):O.jsxs(qx,T({className:p,ref:n,ownerState:u},c,{children:[RM||(RM=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(rDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),aDe=oDe;function iDe(e){return tt("MuiStepLabel",e)}const sDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ws=sDe,lDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],cDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},iDe,t)},uDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ws.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ws.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),dDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ws.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.alternativeLabel}`]:{marginTop:16},[`&.${Ws.error}`]:{color:(e.vars||e).palette.error.main}})),fDe=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ws.alternativeLabel}`]:{paddingRight:0}})),pDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ws.alternativeLabel}`]:{textAlign:"center"}})),VL=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,lDe),{alternativeLabel:v,orientation:x}=$.useContext(_h),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Y0),_=c||C;let S=p;_&&!S&&(S=aDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=cDe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(uDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?O.jsx(fDe,{className:k.iconContainer,ownerState:E,children:O.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(pDe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(dDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});VL.muiName="StepLabel";const hDe=VL;function mDe(e){return tt("MuiStepButton",e)}const vDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),DM=vDe,gDe=["children","className","icon","optional"],yDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},mDe,t)},bDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${DM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),xDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,gDe),{disabled:c,active:u}=$.useContext(Y0),{orientation:f}=$.useContext(_h),p=T({},r,{orientation:f}),m=yDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):O.jsx(hDe,T({},b,{children:o}));return O.jsx(bDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),wDe=xDe;function CDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const $De=["className"],SDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,CDe,t)},_De=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),EDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),PDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,$De),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(_h),{active:l,disabled:c,completed:u}=$.useContext(Y0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=SDe(f);return O.jsx(_De,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(EDe,{className:p.line,ownerState:f})}))}),TDe=PDe;function kDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const ODe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],RDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},kDe,r)},DDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),MDe=O.jsx(TDe,{}),IDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=MDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,ODe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=RDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(_h.Provider,{value:g,children:O.jsx(DDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),ADe=IDe;function NDe(e){return tt("MuiSwitch",e)}const jDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),to=jDe,LDe=["className","color","edge","size","sx"],FDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,NDe,t);return T({},t,l)},zDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${to.thumb}`]:{width:16,height:16},[`& .${to.switchBase}`]:{padding:4,[`&.${to.checked}`]:{transform:"translateX(16px)"}}})),VDe=he(VE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${to.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${to.checked}`]:{transform:"translateX(20px)"},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${to.checked} + .${to.track}`]:{opacity:.5},[`&.${to.disabled} + .${to.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${to.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${to.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.55)}`}},[`&.${to.checked} + .${to.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),BDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),UDe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),WDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,LDe),u=T({},r,{color:a,edge:i,size:s}),f=FDe(u),p=O.jsx(UDe,{className:f.thumb,ownerState:u});return O.jsxs(zDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[O.jsx(VDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(BDe,{className:f.track,ownerState:u})]})}),HDe=WDe;function GDe(e){return tt("MuiTab",e)}const qDe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=qDe,YDe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],KDe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,GDe,t)},JDe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ZDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,YDe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=KDe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(JDe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs($.Fragment,{children:[E,f]}):O.jsxs($.Fragment,{children:[f,E]}),u]}))}),Vp=ZDe,XDe=$.createContext(),BL=XDe;function QDe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const eMe=["className","component","padding","size","stickyHeader"],tMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},QDe,t)},nMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),MM="table",rMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTable"}),{className:o,component:a=MM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,eMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=tMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(BL.Provider,{value:p,children:O.jsx(nMe,T({as:a,role:a===MM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),UL=rMe,oMe=$.createContext(),K0=oMe;function aMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const iMe=["className","component"],sMe=e=>{const{classes:t}=e;return Qe({root:["root"]},aMe,t)},lMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),cMe={variant:"body"},IM="tbody",uMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableBody"}),{className:o,component:a=IM}=r,i=Oe(r,iMe),s=T({},r,{component:a}),l=sMe(s);return O.jsx(K0.Provider,{value:cMe,children:O.jsx(lMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===IM?null:"rowgroup",ownerState:s},i))})}),WL=uMe;function dMe(e){return tt("MuiTableCell",e)}const fMe=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pMe=fMe,hMe=["align","className","component","padding","scope","size","sortDirection","variant"],mMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,dMe,t)},vMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?S0(Tt(e.palette.divider,1),.88):$0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),gMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,hMe),m=$.useContext(BL),b=$.useContext(K0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=mMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(vMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Od=gMe;function yMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const bMe=["className","component"],xMe=e=>{const{classes:t}=e;return Qe({root:["root"]},yMe,t)},wMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CMe={variant:"head"},AM="thead",$Me=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableHead"}),{className:o,component:a=AM}=r,i=Oe(r,bMe),s=T({},r,{component:a}),l=xMe(s);return O.jsx(K0.Provider,{value:CMe,children:O.jsx(wMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===AM?null:"rowgroup",ownerState:s},i))})}),HL=$Me;function SMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const _Me=["className","component","disableGutters","variant"],EMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},SMe,t)},PMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),TMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,_Me),c=T({},r,{component:a,disableGutters:i,variant:s}),u=EMe(c);return O.jsx(PMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),kMe=TMe,OMe=or(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),RMe=or(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function DMe(e){return tt("MuiTableRow",e)}const MMe=et("MuiTableRow",["root","selected","hover","head","footer"]),NM=MMe,IMe=["className","component","hover","selected"],AMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},DMe,t)},NMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jM="tr",jMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableRow"}),{className:o,component:a=jM,hover:i=!1,selected:s=!1}=r,l=Oe(r,IMe),c=$.useContext(K0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=AMe(u);return O.jsx(NMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===jM?null:"row",ownerState:u},l))}),hl=jMe;function LMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function FMe(e,t,n,r={},o=()=>{}){const{ease:a=LMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const zMe=["onChange"],VMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BMe(e){const{onChange:t}=e,n=Oe(e,zMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Jn(()=>{const i=vh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=_i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:VMe,ref:o},n))}function UMe(e){return tt("MuiTabScrollButton",e)}const WMe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),HMe=WMe,GMe=["className","slots","slotProps","direction","orientation","disabled"],qMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},UMe,t)},YMe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${HMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),KMe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,GMe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=qMe(m),v=(r=s.StartScrollButtonIcon)!=null?r:OMe,x=(o=s.EndScrollButtonIcon)!=null?o:RMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(YMe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),JMe=KMe;function ZMe(e){return tt("MuiTabs",e)}const XMe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Jv=XMe,QMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],LM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,FM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},eIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},ZMe,l)},tIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jv.scrollButtons}`]:t.scrollButtons},{[`& .${Jv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Jv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),nIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),rIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),oIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),aIe=he(BMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zM={},iIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=JMe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,QMe),G=R==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=eIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,Z]=$.useState(zM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:N1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[J]:ie?ie[J]:0};if(isNaN(B[_e])||isNaN(B[J]))Z(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[J]-Xe[J]);(nt>=1||ft>=1)&&Z(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?FMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&y6()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(aIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=vh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=_i(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(zM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=O.jsx(oIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),gv(ie,Se,FM);break;case nt:te.preventDefault(),gv(ie,Se,LM);break;case"Home":te.preventDefault(),gv(ie,null,LM);break;case"End":te.preventDefault(),gv(ie,null,FM);break}},ne=ze();return O.jsxs(tIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(nIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[O.jsx(rIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),J0=iIe;function sIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const lIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cIe={standard:hs,filled:wL,outlined:NL},uIe=e=>{const{classes:t}=e;return Qe({root:["root"]},sIe,t)},dIe=he($h,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:J="outlined"}=r,X=Oe(r,lIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:J}),K=uIe(j),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Za(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,Z=cIe[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(dIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:j},X,{children:[C!=null&&C!==""&&O.jsx(PL,T({htmlFor:D,id:B},x,{children:C})),V?O.jsx(zL,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&O.jsx(pr,T({id:N},p,{children:b}))]}))}),Eh=fIe;var pIe=_S;function hIe(e){return pIe(e)?void 0:e}var mIe=hIe,vIe=gd,gIe=Ly,yIe=Ude,bIe=ah,xIe=bd,wIe=mIe,CIe=jS,$Ie=G4,SIe=1,_Ie=2,EIe=4,PIe=CIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=vIe(t,function(a){return a=bIe(a,e),r||(r=a.length>1),a}),xIe(e,$Ie(e),n),r&&(n=gIe(n,SIe|_Ie|EIe,wIe));for(var o=t.length;o--;)yIe(n,t[o]);return n}),TIe=PIe;const kIe=Vt(TIe);function OIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=UIe){var c=t?null:VIe(e);if(c)return BIe(c);i=!1,o=zIe,l=new jIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(KL);var xAe=KL.exports;const wAe=Vt(xAe);var o2={},CAe=Cc;Object.defineProperty(o2,"__esModule",{value:!0});var JL=o2.default=void 0,$Ae=CAe($c()),SAe=O,_Ae=(0,$Ae.default)((0,SAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");JL=o2.default=_Ae;var EAe=LS,PAe=cs;function TAe(e,t){var n=-1,r=PAe(e)?Array(e.length):[];return EAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var kAe=TAe,OAe=gd,RAe=vc,DAe=kAe,MAe=cr;function IAe(e,t){var n=MAe(e)?OAe:DAe;return n(e,RAe(t))}var ZL=IAe;const XL=Vt(ZL),AAe=["localeText"],KC=$.createContext(null),Ph=function(t){var n;const{localeText:r}=t,o=Oe(t,AAe),{utils:a,localeText:i}=(n=$.useContext(KC))!=null?n:{utils:void 0,localeText:void 0},s=Je({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(KC.Provider,{value:g,children:l})},NAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),QL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},jAe=QL;NAe(QL);const Sc=()=>{const e=$.useContext(KC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` -`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=$.useMemo(()=>T({},jAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},LAe=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FAe=or(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),zAe=or(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),e9=or(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),VAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),BAe=or(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),UAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),WAe=or(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function HAe(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const GAe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],qAe=["ownerState"],YAe=["ownerState"],KAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),BM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),ZAe=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},HAe,t)},t9=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Je({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Oe(c,GAe),E=c,k=ZAe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:BM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:BM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:FAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,qAe),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:zAe,J=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,YAe);return O.jsxs(KAe,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[O.jsx(F,T({},U,{children:l?O.jsx(W,T({},X)):O.jsx(V,T({},Q))})),u?O.jsx(yn,{variant:"subtitle1",component:"span",children:u}):O.jsx(JAe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},z,{children:l?O.jsx(V,T({},Q)):O.jsx(W,T({},X))}))]}))}),mi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),a2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},n9=["hours","minutes","seconds"],rd=e=>n9.includes(e),Ds=e=>n9.includes(e)||e==="meridiem",XAe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Bp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,QAe=(e,t,n,r)=>{const o=Bp(r.getHours(e),t,n);return r.setHours(e,o)},UM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Th=(e,t)=>(n,r)=>e?t.isAfter(n,r):UM(n,t)>UM(r,t),ny=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return mi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:mi(n,["minutes"])?o.minutes:mi(n,["seconds"])?o.seconds:mi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:mi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function kh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),S=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function e3e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function t3e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function e1(e,t,n,r){const o=qt(),a=XAe(e,o),i=$.useCallback(s=>{const l=e==null?null:QAe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Up=36,t1=2,n1=320,n3e=280,r1=334,r9=232,Nf=48,o1=he("div")({overflow:"hidden",width:n1,maxHeight:r1,display:"flex",flexDirection:"column",margin:"0 auto"});function r3e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Ci=36,Wp={x:od/2,y:od/2},o9={x:Wp.x,y:0},o3e=o9.x-Wp.x,a3e=o9.y-Wp.y,i3e=e=>e*(180/Math.PI),a9=(e,t,n)=>{const r=t-Wp.x,o=n-Wp.y,a=Math.atan2(o3e,a3e)-Math.atan2(r,o);let i=i3e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},s3e=(e,t,n=1)=>{const r=n*6;let{value:o}=a9(r,e,t);return o=o*n%60,o},l3e=(e,t,n)=>{const{value:r,distance:o}=a9(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},c3e,t)},f3e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),p3e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ci/2}px)`,border:`${(Ci-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function h3e(e){const t=Je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,u3e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=d3e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return O.jsx(f3e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:O.jsx(p3e,{ownerState:l,className:c.thumb})}))}function m3e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ap=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},v3e=(e,t)=>t==null||!e.isValid(t)?null:t,Kr=(e,t,n)=>t==null||!e.isValid(t)?n:t,g3e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),i2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},JC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},s2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},y3e=["year","month","day"],Nu=e=>y3e.includes(e),Hp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return mi(n,["year"])?o.year:mi(n,["month"])?o.month:mi(n,["day"])?o.dayOfMonth:mi(n,["month","year"])?`${o.month} ${o.year}`:mi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},b3e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},x3e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},m3e,t)},w3e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),C3e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$3e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S3e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),_3e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),E3e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),P3e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),WM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function T3e(e){const t=Je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=x3e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:j,offsetY:K}=J;if(j===void 0){const D=J.target.getBoundingClientRect();j=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?s3e(j,K,u):l3e(j,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Jn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(w3e,{className:Ne(g,S.root),children:[O.jsxs(C3e,{className:S.clock,children:[O.jsx(S3e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&O.jsxs($.Fragment,{children:[O.jsx(_3e,{className:S.pin}),i!=null&&O.jsx(h3e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),O.jsx($3e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&O.jsxs($.Fragment,{children:[O.jsx(E3e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),O.jsx(P3e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function k3e(e){return tt("MuiClockNumber",e)}const yv=et("MuiClockNumber",["root","selected","disabled"]),O3e=["className","disabled","index","inner","label","selected"],R3e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},k3e,t)},D3e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yv.disabled}`]:t.disabled},{[`&.${yv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Ci,width:Ci,position:"absolute",left:`calc((100% - ${Ci}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${yv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${yv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function i9(e){const t=Je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,O3e),c=t,u=R3e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Ci-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(D3e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Ci)/2}px`},ownerState:c},l,{children:i}))}const M3e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(i9,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(i9,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},l2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Rd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return l2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},I3e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,s2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Th((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:JC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:JC(t,i,e.maxTime))),i},s9=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},N3e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},a1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},l9=(e,t,n,r)=>{switch(n){case"month":return i2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return a1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},c9=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?c9(e,a,o.maxLength):a},j3e=(e,t,n,r,o,a,i)=>{const s=N3e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>u9(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=l9(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},c2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),d9=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},GM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),f9=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,p9=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return f9(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},F3e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},qM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=s9(e,w),_=p9(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=c9(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:L3e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=F3e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},z3e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=c2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},B3e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=i2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:f9(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=a1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},U3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=a1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},YM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>YM[i.type]-YM[s.type]).reduce((i,s)=>!a||s.modified?U3e(e,t,s,n,i):i,o),W3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,H3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},G3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:s2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,G3e);return t!=null&&r.utils.isValid(t)?t:n??A3e(r)},cleanValue:v3e,areValuesEqual:g3e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},u2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:d9(o(t),r),getValueStrFromSections:V3e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Oh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},d2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>s2(n,o,"date")}),[]);return e??a},q3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Y3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},r3e,t)},K3e=he(o1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),J3e=he(t9,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Z3e=["hours","minutes"],X3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:R=Z3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,J=Oe(o,q3e),X=u??Oh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Rd({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=d2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),Z=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=kh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Th(v,r),He=we==="hours"||we==="minutes"&&R.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,Z)||w&&$e(Z,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Bp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,Z,R]),Ve=Za(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Bp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:M3e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=Y3e(De);return O.jsxs(K3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},J,{children:[O.jsx(T3e,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(J3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function Q3e(e){return tt("MuiDigitalClock",e)}const eNe=et("MuiDigitalClock",["root","list","item"]),tNe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],nNe=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},Q3e,t)},rNe=he(o1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:r9})),oNe=he(qE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),aNe=he(ty,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),iNe=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Je({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:J,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,tNe),{value:N,handleValueChange:B,timezone:Z}=Rd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(Z),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=nNe(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:aNe,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=d2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=kh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Th(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||R!=null&&R(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,R,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return O.jsx(rNe,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:O.jsx(oNe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return O.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:J||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function sNe(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function lNe(e){return tt("MuiMultiSectionDigitalClock",e)}const cNe=et("MuiMultiSectionDigitalClock",["root","item"]),uNe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],dNe=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},lNe,t)},fNe=he(qE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:r9,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),pNe=he(ty,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),hNe=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,uNe),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=dNe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:pNe;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),O.jsx(fNe,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return O.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),mNe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},JM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},vNe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],gNe=e=>{const{classes:t}=e;return Qe({root:["root"]},sNe,t)},yNe=he(o1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),bNe=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,J=Oe(o,vNe),{value:X,handleValueChange:j,timezone:K}=Rd({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=d2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=kh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Th(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Bp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Bp($e,se,a);Ve("hours",r.setHours(B,He))},items:mNe({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:JM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:JM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=gNe(Be);return O.jsx(yNe,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},J,{children:Object.entries(De).map(([we,$e])=>O.jsx(hNe,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function xNe(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wNe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],CNe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xNe,l)},h9=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Up,height:Up,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${t1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),m9=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},$Ne=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(h9),SNe=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(({theme:e,ownerState:t})=>T({},h9({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},_Ne=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Oe(r,wNe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=CNe(k),R=qt(),F=$.useRef(null),U=sn(F,n);Jn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?O.jsx(SNe,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx($Ne,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),ENe=$.memo(_Ne);function v9(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const PNe=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=l2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>B3e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>qM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),R=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=I3e(D),Z=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),d9(B,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=qM(t,_,n,v,xe,x,w,a);return KM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:Z,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},TNe=5e3,nu=e=>e.saveQuery!=null,kNe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),TNe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>l9(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&s9(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>GM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:u9(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=p9(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=GM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=a1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ONe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ry=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ry(t.shadowRoot):t:null},f2="@media (pointer: fine)",RNe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],p2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=PNe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Oe(e.forwardedProps,RNe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=kNe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),J=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>H3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),Z=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(W3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=j3e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Jn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===ry(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=v9(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===ry(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),R==null||R(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},Rh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Kr(n.utils,e.minDate,n.defaultDates.minDate),f=Kr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},ZC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],g9=["minDateTime","maxDateTime"],DNe=[...ZC,...XC,...g9],Dd=e=>DNe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),MNe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],h2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return MNe.forEach(o),t==="date"?ZC.forEach(o):t==="time"?XC.forEach(o):t==="date-time"&&(ZC.forEach(o),XC.forEach(o),g9.forEach(o)),{forwardedProps:n,internalProps:r}},INe=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Kr(o,e.minDate,a.minDate),maxDate:Kr(o,e.maxDate,a.maxDate)})},ANe=({props:e,inputRef:t})=>{const n=INe(e),{forwardedProps:r,internalProps:o}=h2(n,"date");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:Rh,valueType:"date"})},NNe=he(W0)({[`& .${rp.container}`]:{outline:0},[`& .${rp.paper}`]:{outline:0,minWidth:n1}}),jNe=he(G0)({"&:first-of-type":{padding:0}});function LNe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:NNe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(jNe,{children:r})}))}function FNe(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const zNe="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ZM=ju&&ju[1]?parseInt(ju[1],10):null,XM=ju&&ju[2]?parseInt(ju[2],10):null,VNe=ZM&&ZM<10||XM&&XM<13||!1,y9=()=>Sh(zNe,{defaultMatches:!1})||VNe,BNe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],UNe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},FNe,t)},WNe=he(Ch,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HNe=he(ps,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function GNe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&GNe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const YNe=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,BNe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function KNe(e){var t,n,r,o;const a=Je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=ry(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=qNe(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,R=UNe(I),F=y9(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:Qg,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:X6,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:HNe,Q=(o=v==null?void 0:v.popper)!=null?o:WNe,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},W,{children:({TransitionProps:J,placement:X})=>O.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(z,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(YNe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function b9(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const JNe=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},b9,t)},ZNe=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),XNe=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),m2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=JNe(c);return s?null:O.jsxs(ZNe,{ref:n,className:Ne(u.root,a),ownerState:c,children:[O.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(XNe,{className:u.content,ownerState:c,children:o})]})});function QNe(e){return tt("MuiPickersToolbarText",e)}const QM=et("MuiPickersToolbarText",["root","selected"]),e4e=["className","selected","value"],t4e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},QNe,t)},n4e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${QM.selected}`]:{color:(e.vars||e).palette.text.primary}})),v2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,e4e),s=t4e(r);return O.jsx(n4e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),r4e=["align","className","selected","typographyClassName","value","variant","width"],o4e=e=>{const{classes:t}=e;return Qe({root:["root"]},b9,t)},a4e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,r4e),p=o4e(r);return O.jsx(a4e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(v2,{align:o,className:s,variant:c,value:l,selected:i})}))}),i4e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},s4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},l4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},c4e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},u4e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=i4e(e),[_,S]=$.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=l2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});v9(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,Z.value,ue),isControlled:b,closeOnSelect:c},ce=s4e(re),xe=l4e(re),me=c4e(re);if(S(ue=>T({},ue,{draft:Z.value,lastPublishedValue:ce?Z.value:ue.lastPublishedValue,lastCommittedValue:xe?Z.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(se.shortcut=Z.shortcut),k(Z.value,se)}xe&&a&&a(Z.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),W=mt((Z,re,ce)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:ce})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),j={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},d4e=["className","sx"],f4e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,d4e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=kh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Jn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Jn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function eI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const p4e=(e,t)=>{const[n,r]=$.useState(eI);return Jn(()=>{const a=()=>{r(eI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},h4e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=p4e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},x9=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};x9(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const w9=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=u4e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=f4e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=h4e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function C9(e){return tt("MuiPickersLayout",e)}const Jx=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),m4e=["onAccept","onClear","onCancel","onSetToday","actions"];function v4e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,m4e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(H0,T({},i,{children:l}))}const g4e=["items","changeImportance","isLandscape","onChange","isValid"],y4e=["getValue"];function b4e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,g4e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,y4e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(GE,T({dense:!0,sx:[{maxHeight:r1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(OL,{children:O.jsx(dL,T({},s))},s.label))}))}function x4e(e){return e.view!==null}const w4e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},C9,t)},C4e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Oh(w),k=S??C,I=w4e(e),R=(t=E==null?void 0:E.actionBar)!=null?t:v4e,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=x4e(z)&&G?O.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:b4e,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&J?O.jsx(J,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},$4e=C4e,S4e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},C9,n)},$9=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Jx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Jx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Jx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));$9.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const _4e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),S9=function(t){const n=Je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=$4e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=S4e(m);return O.jsxs($9,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(_4e,{className:b.contentWrapper,children:p==="desktop"?O.jsxs($.Fragment,{children:[o,a]}):O.jsxs($.Fragment,{children:[a,o]})}),i]})},i1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Th(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},g2=({props:e,value:t,adapter:n})=>{const r=Rh({adapter:n,value:t,props:e});return r!==null?r:i1({adapter:n,value:t,props:e})},E4e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P4e=["children","className","reduceAnimations","slideDirection","transKey","classes"],T4e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,E4e,t)},k4e=he(DE,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function O4e(e){const t=Je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,P4e),s=T4e(t),l=rr();if(o)return O.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(k4e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(tCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const _9=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Rh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},R4e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D4e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M4e=["ownerState"],I4e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},R4e,t)},E9=(Up+t1*2)*6,A4e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),j4e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),L4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),F4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Up,height:Up,padding:0,margin:`0 ${t1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),z4e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:E9}),V4e=he(O4e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:E9}),B4e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),U4e=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${t1}px 0`,display:"flex",justifyContent:"center"});function W4e(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,D4e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:ENe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,M4e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function H4e(e){const t=Je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=I4e(t),W=rr().direction==="rtl",J=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=_9({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),Z=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":Z(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":Z(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ap({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ap({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"Home":Z(V.startOfWeek(Be)),De.preventDefault();break;case"End":Z(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":Z(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":Z(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>Z(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ap({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return O.jsx(j4e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=J==null?void 0:J(we,De))!=null?ge:we},we+Be.toString())})]}),s?O.jsx(z4e,{className:Y.loadingContainer,children:p()}):O.jsx(V4e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:O.jsx(B4e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>O.jsxs(U4e,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[R&&O.jsx(F4e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>O.jsx(W4e,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const G4e=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},q4e=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(G4e(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=_9({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},Y4e=["ownerState"],y2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,Y4e),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:WAe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs($.Fragment,{children:[O.jsx(HE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},K4e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],J4e=["inputRef"],Z4e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,K4e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,J4e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=ANe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,Z4e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),X4e=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},Q4e=({props:e,inputRef:t})=>{const n=X4e(e),{forwardedProps:r,internalProps:o}=h2(n,"time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:i1,valueType:"time"})},e5e=["slots","slotProps","components","componentsProps","InputProps","inputProps"],t5e=["inputRef"],n5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],T9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,e5e),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,t5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=Q4e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,n5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),r5e=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Kr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Kr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},o5e=({props:e,inputRef:t})=>{const n=r5e(e),{forwardedProps:r,internalProps:o}=h2(n,"date-time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:g2,valueType:"date-time"})},a5e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],i5e=["inputRef"],s5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],k9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,a5e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,i5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=o5e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,s5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),l5e=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const c5e=e=>{const{classes:t}=e;return Qe({root:["root"]},l5e,t)},u5e=he(DE,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function O9(e){const t=Je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=c5e(t),s=rr();return o?n:O.jsx(u5e,{className:Ne(i.root,r),children:O.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function d5e(e){return tt("MuiPickersMonth",e)}const bv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),f5e=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],p5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},d5e,r)},h5e=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),m5e=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${bv.disabled}`]:t.disabled},{[`&.${bv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),v5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,f5e),x=$.useRef(null),g=p5e(n);return Jn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(h5e,T({className:g.root,ownerState:n},v,{children:O.jsx(m5e,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function g5e(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const y5e=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],b5e=e=>{const{classes:t}=e;return Qe({root:["root"]},g5e,t)};function x5e(e,t){const n=qt(),r=_c(),o=Je({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Kr(n,o.minDate,r.minDate),maxDate:Kr(n,o.maxDate,r.maxDate)})}const w5e=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:n1,boxSizing:"border-box"}),C5e=$.forwardRef(function(t,n){const r=x5e(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Oe(r,y5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=b5e(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),J=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);R(se)}),Z=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>J!==null&&me!==J?J:me)},[J]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":Z((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":Z((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":Z((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":Z((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{Z(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return O.jsx(w5e,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:i2(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===J,Ve=l||N(me);return O.jsx(v5e,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function $5e(e){return tt("MuiPickersYear",e)}const xv=et("MuiPickersYear",["root","yearButton","selected","disabled"]),S5e=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],_5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},$5e,r)},E5e=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),P5e=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xv.disabled}`]:t.disabled},{[`&.${xv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),T5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,S5e),x=$.useRef(null),g=_5e(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(E5e,T({className:Ne(g.root,o),ownerState:n},v,{children:O.jsx(P5e,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function k5e(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const O5e=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],R5e=e=>{const{classes:t}=e;return Qe({root:["root"]},k5e,t)};function D5e(e,t){var n;const r=qt(),o=_c(),a=Je({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Kr(r,a.minDate,o.minDate),maxDate:Kr(r,a.maxDate,o.maxDate)})}const M5e=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:n1,maxHeight:n3e,boxSizing:"border-box",position:"relative"}),I5e=$.forwardRef(function(t,n){const r=D5e(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Oe(r,O5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=R5e(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),J=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);R(fe)}),Z=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>J!==null&&se!==J?J:se)},[J]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":Z(Ce-_),se.preventDefault();break;case"ArrowDown":Z(Ce+_),se.preventDefault();break;case"ArrowLeft":Z(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":Z(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{Z(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===J,Ve=c||N(se);return O.jsx(T5e,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),A5e=e=>tt("MuiPickersCalendarHeader",e),N5e=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),j5e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],L5e=["ownerState"],F5e=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},A5e,t)},z5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),V5e=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),B5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),U5e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${N5e.switchViewIcon}`]:{transform:"rotate(180deg)"}})),W5e=he(LAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),H5e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Je({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Oe(s,j5e),I=s,R=F5e(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:U5e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:W5e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),V=Oe(z,L5e),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=e3e(u,{disableFuture:p,maxDate:b,timezone:E}),J=t3e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:O.jsxs(z5e,T({},k,{ownerState:I,className:Ne(S,R.root),ref:n,children:[O.jsxs(V5e,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(O9,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(B5e,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},V))}))]}),O.jsx(kd,{in:y==="day",children:O.jsx(t9,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),G5e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const q5e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Y5e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},G5e,t)};function K5e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=y9(),p=Je({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Kr(c,p.minDate,u.minDate),maxDate:Kr(c,p.maxDate,u.maxDate)})}const J5e=he(o1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:r1}),Z5e=he(O9,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),R9=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Za(),l=K5e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Oe(l,q5e),{value:se,handleValueChange:Ce,timezone:fe}=Rd({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=kh({view:k,views:I,openTo:R,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=q4e({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:H5e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&JC(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=Y5e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return O.jsxs(J5e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[O.jsx(Le,T({},ne)),O.jsx(Z5e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:O.jsxs("div",{children:[Ve==="year"&&O.jsx(I5e,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&O.jsx(C5e,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&O.jsx(H4e,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z}))]})})]}))});function X5e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const Q5e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],eje=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},X5e,t)},tje=he(m2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nje=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),rje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,Q5e),u=qt(),f=Er(),p=eje(r),m=$.useMemo(()=>{if(!o)return s;const v=Hp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(tje,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(nje,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function D9(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Je({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Oh(l.components);return T({},l,{localeText:c},a2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Kr(i,l.minDate,s.minDate),maxDate:Kr(i,l.maxDate,s.maxDate),slots:T({toolbar:rje},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const oje=["props","getOpenDialogAriaText"],aje=["ownerState"],ije=["ownerState"],b2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,oje);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),R=Za(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=w9(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:HE,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Oe(X,aje),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Oe(q,ije),N=c.openPickerIcon,B=c.field,Z=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${j.position}Adornment`]:O.jsx(J,T({},j,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ce=(a=c.layout)!=null?a:S9,xe=sn(k,Z.inputRef,g);let me=R;F&&(x?me=`${R}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:_,children:[O.jsx(B,T({},Z,{slots:re,slotProps:ue,inputRef:xe})),O.jsx(KNe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:O.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>O.jsx(R9,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),M9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=D9(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Hp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:e9,field:P9},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=b2({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Rh});return p()});M9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const sje=["props","getOpenDialogAriaText"],x2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,sje);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Za(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=w9(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ONe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:S9,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:y,children:[O.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),O.jsx(LNe,T({},k,{open:E,slots:s,slotProps:W,children:O.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:R()}))}))]})}},I9=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=D9(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Hp(s,l,!1),slots:T({field:P9},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=x2({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Rh});return f()});I9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const lje=["desktopModeMediaQuery"],cje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,lje);return Sh(o,{defaultMatches:!0})?O.jsx(M9,T({ref:n},a)):O.jsx(I9,T({ref:n},a))});function uje(e){return tt("MuiTimePickerToolbar",e)}const ip=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),dje=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fje=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,uje,r)},pje=he(m2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hje=he(v2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),A9=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ip.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ip.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));A9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N9=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ip.ampmLabel}`]:t.ampmLabel},{[`&.${ip.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ip.ampmLabel}`]:{fontSize:17}}));N9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function mje(e){const t=Je({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,dje),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=e1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=fje(T({},C,{theme:v})),S=O.jsx(hje,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(pje,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(A9,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&O.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(N9,{className:_.ampmSelection,ownerState:C,children:[O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function j9(e,t){var n,r,o,a,i;const s=qt(),l=Je({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Oh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},a2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:mje},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>O.jsx(X3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),L9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(iNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),QC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(bNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),vje=["views","format"],F9=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,vje);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return Hp(e,T({views:a},o),!1);if(a.length===0)return ny(e,T({views:i},o));const s=ny(e,T({views:i},o));return`${Hp(e,T({views:a},o),!1)} ${s}`},gje=(e,t,n)=>n?t.filter(r=>!Ds(r)||r==="hours"):e?[...t,"meridiem"]:t,yje=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function z9({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=yje(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:gje(t,r,i)}}const V9=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=j9(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=z9(f),v=p?L9:QC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===QC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ny(u,f),views:p?["hours"]:C,slots:T({field:T9,openPickerIcon:VAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:i1});return S()});V9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const B9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=j9(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ny(l,c),slots:T({field:T9},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=x2({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:i1});return m()});B9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const bje=["desktopModeMediaQuery"],xje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,bje);return Sh(o,{defaultMatches:!0})?O.jsx(V9,T({ref:n},a)):O.jsx(B9,T({ref:n},a))});function wje(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const Cje=e=>Nu(e)?"date":"time",$je=e=>e==="date"?"day":"hours",Sje=e=>{const{classes:t}=e;return Qe({root:["root"]},wje,t)},_je=he(J0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Jv.indicator}`]:{bottom:"auto",top:0}}})),Eje=function(t){const n=Je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(BAe,{}),onViewChange:o,timeIcon:a=O.jsx(UAe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=Sje(n),u=(f,p)=>{o($je(p))};return s?null:O.jsxs(_je,{ownerState:n,variant:"fullWidth",value:Cje(i),onChange:u,className:c.root,children:[O.jsx(Vp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx($.Fragment,{children:r})}),O.jsx(Vp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx($.Fragment,{children:a})})]})};function Pje(e){return tt("MuiDateTimePickerToolbar",e)}const Zx=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Tje=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],kje=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,Pje,t)},U9=he(m2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));U9.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const Oje=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),W9=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Rje=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));W9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const tI=he(v2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Dje=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zx.ampmLabel}`]:t.ampmLabel},{[`&.${Zx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Zx.ampmLabel}`]:{fontSize:17}}));function Mje(e){const t=Je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,Tje),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=e1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=kje(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(U9,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(Oje,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs(W9,{className:k.timeContainer,ownerState:x,children:[O.jsxs(Rje,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(Dje,{className:k.ampmSelection,ownerState:x,children:[O.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function H9(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Je({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Oh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,a2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Kr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Kr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:Mje,tabs:Eje},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const Ije=he("div")({display:"flex",margin:"0 auto"}),Ol=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ds(e)?e:"hours",onViewChange:t,focusedView:r&&Ds(r)?r:null,onFocusedViewChange:o,views:n.filter(Ds),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return O.jsxs($.Fragment,{children:[O.jsxs(Ije,{children:[O.jsx(R9,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce}),se>0&&O.jsxs($.Fragment,{children:[O.jsx(pM,{orientation:"vertical"}),Ce?L9(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ds(r)?"hours":null,sx:T({width:"auto",[`&.${eNe.root}`]:{maxHeight:r1}},Array.isArray(N)?N:[N])})):QC(T({},De,{view:Ds(e)?e:"hours",views:n.filter(Ds),focusedView:r&&Ds(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${cNe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(pM,{})]})},G9=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=H9(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=z9(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Ol,month:Ol,year:Ol,hours:Ol,minutes:Ol,seconds:Ol,meridiem:Ol}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:F9(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:k9,openPickerIcon:e9},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:g2});return S()});G9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const q9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=H9(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:F9(c,u),ampmInClock:p,slots:T({field:k9},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=x2({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:g2});return b()});q9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const Aje=["desktopModeMediaQuery"],Nje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,Aje);return Sh(o,{defaultMatches:!0})?O.jsx(G9,T({ref:n},a)):O.jsx(q9,T({ref:n},a))});var Y9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Y9);var jje=Y9.exports;const Lje=Vt(jje);var K9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(K9);var Fje=K9.exports;const zje=Vt(Fje);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(J9);var Vje=J9.exports;const Bje=Vt(Vje);var Z9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Z9);var Uje=Z9.exports;const Wje=Vt(Uje);xr.extend(zje);xr.extend(Bje);xr.extend(Wje);const Hje=x9(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),Gje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},qje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Xx=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),nI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),Yje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class w2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Gje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Xx);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Xx);if(!this.hasTimezonePlugin())throw new Error(nI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(Hje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Xx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(nI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=Yje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},qje,n),xr.extend(Lje)}}var C2={},Kje=Cc;Object.defineProperty(C2,"__esModule",{value:!0});var X9=C2.default=void 0,Jje=Kje($c()),Zje=O,Xje=(0,Jje.default)((0,Zje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");X9=C2.default=Xje;const Qje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Dj(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Jy(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},e6e=vn(3,vj);var t6e=t1e(Qje);class Q9 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=kIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&lj(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const n6e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Jy(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(Q9,{schema:e,combinatorKeyword:p,path:o}),M.createElement(J0,{value:c,onChange:f},m.map(b=>M.createElement(Vp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};s6(n6e);const r6e=he(Od)({borderBottom:"none"}),Gp=({children:e,...t})=>M.createElement(r6e,Object.assign({},t),e),o6e=he(mL)(({theme:e})=>({color:e.palette.error.main})),e8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(o6e,{badgeContent:e.split(` -`).length},M.createElement(n2,{color:"inherit"}))),a6e={paddingLeft:0,paddingRight:0},i6e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Gp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Gp,{align:"right",style:a6e},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large"},M.createElement(e2,null)))):null)}),rI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},t8=(e,t,n,r,o)=>{if(t.type==="object")return n8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},n8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],s6e=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Gp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),l6e=M.memo(function({title:t}){return M.createElement(Od,null,t)}),c6e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},oI=e=>({type:"Control",scope:e,label:!1}),u6e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Gp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:oI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:oI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),d6e=e=>{const t=xc(),n=c6e(t,e),r=Mt(n.errors);return M.createElement(u6e,Object.assign({},n,{isValid:r}))},f6e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},t8(d6e,t,e,c,u),c?M.createElement(Gp,{style:l?rI.fixedCell:rI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(X0,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(Z0,null))))):null)},p6e=M.memo(f6e),h6e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(s6e,{numColumns:n8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=sr.compose(t,`${m}`);return M.createElement(p6e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let m6e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?t8(l6e,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(UL,null,M.createElement(HL,null,M.createElement(i6e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Od,null):null)),M.createElement(WL,null,M.createElement(h6e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const v6e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(UE,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(H0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),g6e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(m6e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(v6e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};Zy(g6e);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},r8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,R=!To(r,t,S,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(xEe,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(Eh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!R},F),M.createElement(pr,{error:!y},U))},$2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(U2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});r2.extend(wAe);const S2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=r2(r).format(n);t(e,o)},_2=(e,t)=>{if(!e)return null;const n=r2(e,t);return n.toString()==="Invalid Date"?null:n},y6e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),b6e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},y6e(t,n,r,o,i,s))),Dh=M.memo(b6e),o8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},x6e=e=>e.target.value,Ec=(e,t,n,r,o=x6e,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(e6(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},w6e={"enum.none":"None"},C6e=e=>e===""?void 0:parseInt(e,10),$6e=e=>C6e(e.target.value),a8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,$6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),S6e=e=>e===""?void 0:parseFloat(e),_6e=e=>S6e(e.target.value),i8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,_6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),E6e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(hs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),P6e=e=>e.target.value===""?void 0:e.target.value,s8=M.memo(function(t){var R,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,P6e),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(hs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(HE,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(JL,{style:I}))),inputComponent:v})}),T6e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(hs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),s1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",w6e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(zL,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(ty,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(ty,{value:v.value,key:v.value},v.label))))}),l8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(HDe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),k6e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement($h,{component:"fieldset"},M.createElement(CL,{row:!0},o.map((u,f)=>{const p=sr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(q0,{id:u.value,key:u.value,control:M.createElement($2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));i1e(k6e);const O6e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>hh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var R6e=n1e(O6e);const D6e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=Jy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,is(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,is,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(Q9,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(J0,{value:b,onChange:E},C.map(k=>M.createElement(Vp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(W0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(UE,{id:"alert-dialog-title"},"Clear form?"),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(H0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},M6e=vn(3,yj);var I6e=e1e(D6e);const A6e=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));u6(A6e);const c8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(kMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(e2,null))))))))}),N6e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(OL,{button:!0,selected:n,onClick:o(e)},M.createElement(Nke,null,M.createElement(pL,{"aria-label":"Index"},e+1)),M.createElement(Wke,{primary:t}),r&&M.createElement(kL,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(Z0,null))));var j6e=r1e(N6e);const L6e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>is(t),[is]),S=$.useMemo(()=>hh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(c8,{translations:x,label:qy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(GE,null,f>0?XL(wd(f),k=>M.createElement(j6e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};Zy(L6e);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement($h,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(PL,{htmlFor:o+"-input",error:!m,required:Yy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},F6e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),z6e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),V6e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=F6e(u.anyOf),m=z6e(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(hs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class B6e extends n6{render(){return M.createElement(Md,Object.assign({},this.props,{input:V6e}))}}co(B6e);const U6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement($2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(U6e);const W6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement(l8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(W6e);const H6e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(cje,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};co(H6e);const G6e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(Nje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(G6e);const q6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};nE(ul(M.memo(q6e)),!1);const Y6e=e=>M.createElement(Md,Object.assign({},e,{input:a8}));co(Y6e);const K6e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(Eh,{required:Yy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};co(K6e);const J6e=e=>M.createElement(Md,Object.assign({},e,{input:i8}));co(J6e);const Z6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};rE(ul(M.memo(Z6e)),!1);const u8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement($h,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(WE,{htmlFor:a,error:!x,component:"legend",required:Yy(s,g.hideRequiredAsterisk)},i),M.createElement(QOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(q0,{value:C.value,key:C.label,control:M.createElement(JOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},X6e=e=>M.createElement(u8,Object.assign({},e));rE(X6e);const Q6e=e=>M.createElement(u8,Object.assign({},e));nE(Q6e);const eLe=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement($h,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(WE,{htmlFor:o,error:!x,component:"legend",required:Yy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(MRe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};co(eLe);const tLe=e=>M.createElement(Md,Object.assign({},e,{input:s8}));co(tLe);const nLe=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(xje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(nLe);const Qx={float:"right"},rLe=e=>{const[t]=$.useState(Bj("expand-panel"));$.useEffect(()=>()=>{Uj(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>hh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(PCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(i$e,{expandIcon:M.createElement(X9,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(pL,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:Qx,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:Qx,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(X0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:Qx,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(Z0,null))))))))),M.createElement(MCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},oLe=M.memo(rLe),aLe=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(uj(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(dj(o,n),o)))},[e])}),iLe=e=>function({ctx:n,props:r}){const o=aLe(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Iye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},sLe=e=>_r(iLe(e));var lLe=sLe(oLe);const cLe={marginBottom:"10px"},uLe=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(l2e,{style:cLe},!Mt(o)&&M.createElement(S2e,{title:o}),M.createElement(h2e,null,M.createElement(Dh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),dLe=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(uLe,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};ds(dLe);const fLe=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Dh,Object.assign({},l,{renderers:t,cells:n}))};ds(fLe);const pLe=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Dh,Object.assign({},l,{renderers:a,cells:i}))};ds(pLe);const hLe=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Wy(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(P$e,{position:"static"},M.createElement(J0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Vp,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Dh,Object.assign({},C,{key:w}))))};o8(ul(ds(hLe)));const mLe=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>is(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(c8,{translations:C,label:qy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?XL(wd(s),S=>M.createElement(lLe,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(vLe,Object.assign({visible:e,addItem:r},n)))};Zy(gLe);const yLe=e=>M.createElement($2,Object.assign({},e));hr(yLe);const bLe=e=>M.createElement(l8,Object.assign({},e));hr(bLe);const xLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(hs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(xLe);const wLe=e=>M.createElement(s1,Object.assign({},e));c6(ul(M.memo(wLe)),!1);const CLe=e=>M.createElement(a8,Object.assign({},e));hr(CLe);const $Le=e=>M.createElement(i8,Object.assign({},e));hr($Le);const SLe=e=>M.createElement(E6e,Object.assign({},e));hr(SLe);const _Le=e=>M.createElement(s1,Object.assign({},e));a1e(ul(M.memo(_Le)),!1);const ELe=e=>M.createElement(s8,Object.assign({},e));hr(ELe);const PLe=e=>M.createElement(T6e,Object.assign({},e));hr(PLe);const TLe=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Wy(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(ADe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(JRe,{key:_[E]},M.createElement(wDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Dh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};o8(ul(ds(TLe)));var kLe=Array.prototype,OLe=kLe.join;function RLe(e,t){return e==null?"":OLe.call(e,t)}var DLe=RLe;const d8=Vt(DLe);var MLe=xd,f8=MLe("filter",y5);f8.placeholder=gc();var ILe=f8;const aI=Vt(ILe);var ALe=xd,p8=ALe("map",ZL);p8.placeholder=gc();var NLe=p8;const iI=Vt(NLe);var ew,sI;function jLe(){if(sI)return ew;sI=1;var e=MS(),t=jS,n=DS(),r=n5(),o=cr,a=r5(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Mg(e,o=>o.name===t);return SC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>d8(sp(e)(t,n)," "),qLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],YLe={styles:qLe},KLe=M.createContext(YLe),JLe=()=>$.useContext(KLe),E2=()=>{const{styles:e}=JLe();return e},Oi=e=>function(n){const r=xc(),o=E2(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>sp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${Lj(a.scope)}`]);s&&(c=c.concat(sp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>sp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},P2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=E2(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:sp(a),className:o.join(" ")}))},Xa=P2("control.input"),ZLe=P2("control.select"),XLe=P2("control.checkbox"),QLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},e9e=vn(2,mj);var t9e=hr(XLe(QLe));const n9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},r9e=vn(2,Sj);var o9e=hr(Xa(n9e));const a9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},i9e=vn(2,Ej);var s9e=hr(Xa(a9e));const l9e=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",GLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},c9e=vn(2,O_);var u9e=c6(ul(ZLe(l9e)));const d9e=e=>e===""?void 0:parseInt(e,10),f9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,d9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},p9e=vn(2,xj);var h9e=hr(Xa(f9e));const m9e=e=>e===""?void 0:Number(e),v9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,m9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},g9e=vn(2,wj);var y9e=hr(Xa(v9e));const b9e=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(Xa(b9e));const x9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},w9e=vn(4,kj);var C9e=hr(Xa(x9e));const $9e=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},S9e=vn(1,Cj);hr(Xa($9e));const _9e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},E9e=vn(2,$j);hr(Xa(_9e));const P9e=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},T9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,P9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},k9e=vn(2,_j);var O9e=hr(Xa(T9e));class R9e extends n6{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Ay(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},qy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const D9e=vn(1,Ya);var y8=Oi(co(R9e));const b8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=E2(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},qy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},M9e=e=>M.createElement(b8,Object.assign({},e)),I9e=vn(3,$n(O_,us("format","radio")));var A9e=Oi(nE(M9e));const N9e=e=>M.createElement(b8,Object.assign({},e)),j9e=vn(3,$n(bj,us("format","radio")));var L9e=Oi(rE(N9e));const{convertToValidClassName:F9e}=Ug,z9e=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>hh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),F9e(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,is(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},V9e=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Ug.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Ug.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(z9e,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var B9e=Oi(l6(V9e));const U9e=vn(4,D_),T2=e=>e.type==="Categorization",W9e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>T2(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),H9e=(e,t)=>t===e?"selected":"",x8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Wy(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>T2(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(x8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:H9e(l,t)},M.createElement("span",null,s[c]))))},G9e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class q9e extends t6{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(x8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(G9e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:T2(n)?this.findCategory(n):n}}var Y9e=Oi(ul(ds(q9e)));const K9e=vn(1,_n("Label")),J9e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var Z9e=Oi(u6(J9e));const{convertToValidClassName:X9e}=Ug,{or:Q9e,isObjectArrayControl:e8e,isPrimitiveArrayControl:t8e,rankWith:n8e}=Qge,r8e=n8e(3,Q9e(e8e,t8e));class o8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),X9e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,is(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?cI(dI,aI(S=>r.properties[S].type!=="array"),iI(S=>M.createElement("th",{key:S},r.properties[S].title??HLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=sr.compose(a,`${E}`),I=Mg(f,G=>Fg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?cI(dI,aI(G=>r.properties[G].type!=="array"),iI(G=>{const z=sr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:sr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},d8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var a8e=Oi(l6(o8e));const k2=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},i8e=vn(1,_n("Group")),s8e=e=>{const{data:t,...n}=e;return M.createElement(l8e,Object.assign({},n))},l8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),k2(c,t,p,r,o))});var c8e=Oi(ds(s8e));const w8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),u8e=vn(1,_n("HorizontalLayout")),d8e=e=>{const{data:t,...n}=e;return M.createElement(f8e,Object.assign({},n))},f8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(w8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},k2(l,t,f,s,a))});var p8e=Oi(ds(d8e,!1));const h8e=vn(1,_n("VerticalLayout")),m8e=e=>{const{data:t,...n}=e;return M.createElement(v8e,Object.assign({},n))},v8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(w8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},k2(l,t,f,r,a))});var g8e=Oi(ds(m8e,!1));const y8e=[{tester:D9e,renderer:y8},{tester:I9e,renderer:A9e},{tester:j9e,renderer:L9e},{tester:U9e,renderer:B9e},{tester:K9e,renderer:Z9e},{tester:W9e,renderer:Y9e},{tester:r8e,renderer:a8e},{tester:i8e,renderer:c8e},{tester:h8e,renderer:g8e},{tester:u8e,renderer:p8e}],O2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),b8e=he(Od)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),qp=({children:e,...t})=>O.jsx(b8e,{...t,children:e}),R2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),x8e=he(mL)(({theme:e})=>({color:e.palette.error.main})),w8e=({errorMessages:e,id:t})=>O.jsx(wc,{id:t,title:e,children:O.jsx(x8e,{badgeContent:e.split(` -`).length,children:O.jsx(n2,{color:"inherit"})})}),C8e={paddingLeft:0,paddingRight:0},$8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(hl,{children:[O.jsx(qp,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(w8e,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(qp,{align:"right",style:C8e,children:O.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large",sx:{p:1},children:O.jsx(R2,{className:"text-ls-black"})})})}):null]})}),fI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},C8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return $8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},$8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],S8e=({numColumns:e,translations:t})=>O.jsx(hl,{children:O.jsx(qp,{colSpan:e,children:O.jsx(yn,{align:"center",children:t.noDataMessage})})}),_8e=M.memo(function({title:t}){return O.jsx(Od,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),E8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pI=e=>({type:"Control",scope:e,label:!1}),P8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(qp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:pI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ic,{schema:r,uischema:pI("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(pr,{error:!c,children:!c&&a})]})}),T8e=e=>{const t=xc(),n=E8e(t,e),r=Mt(n.errors);return O.jsx(P8e,{...n,isValid:r})},k8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(hl,{hover:!0,children:[C8(T8e,t,e,c,u),c?O.jsx(qp,{style:l?fI.fixedCell:fI.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs($.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(Q0,{})})}),O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(X0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(O2,{className:"text-ls-black"})})})]})}):null]},e)},O8e=M.memo(k8e),R8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(S8e,{numColumns:$8(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:wd(e).map(m=>{const b=sr.compose(t,`${m}`);return O.jsx(O8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class D8e extends M.Component{constructor(){super(...arguments);Jd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?C8(_8e,o,r,u,f):void 0;return O.jsx(Tn,{xsUp:!c,children:O.jsxs(UL,{children:[O.jsxs(HL,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx($8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(hl,{children:[v,u?O.jsx(Od,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx(WL,{children:O.jsx(R8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const M8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(UE,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(G0,{children:O.jsx(BE,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(H0,{children:[O.jsx(Go,{onClick:o,color:"primary",children:l}),O.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),I8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Tn,{xsUp:!l,children:[O.jsx(D8e,{...e,openDeleteDialog:c}),O.jsx(M8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},A8e=vn(11,yc(R_,Tj,D_)),S8=Zy(I8e),hI=Zi("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return O.jsxs("div",{className:Zi("grid w-full",e.className),children:[O.jsx("textarea",{id:e.id,className:Zi(hI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Zi(hI,"pointer-events-none select-none"),children:[e.value," "]})]})}const N8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},mI=hr(Xa(N8e));function j8e(e){try{return JSON.parse(e)}catch{return e}}function L8e(e){try{return JSON.stringify(e)}catch{return e}}const F8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:typeof t=="object"?L8e(t):t??"",onChange:u=>l(s,u===""?void 0:j8e(u)),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},z8e=hr(Xa(F8e)),V8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function B8e(e){return typeof e=="object"&&e!=null}function oy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(B8e(r))r=r[o];else return}return r}function l1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function U8e(e){const t=e+"CollectionProvider",[n,r]=Sy(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=as(b,g.collectionRef);return M.createElement(kp,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=as(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(kp,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const W8e=$.createContext(void 0);function _8(e){const t=$.useContext(W8e);return e||t||"ltr"}const rw="rovingFocusGroup.onEntryFocus",H8e={bubbles:!1,cancelable:!0},D2="RovingFocusGroup",[e$,E8,G8e]=U8e(D2),[q8e,P8]=Sy(D2,[G8e]),[Y8e,K8e]=q8e(D2),J8e=$.forwardRef((e,t)=>$.createElement(e$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(e$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(Z8e,T({},e,{ref:t}))))),Z8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=as(t,f),m=_8(a),[b=null,v]=Qp({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=E8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(rw,y),()=>E.removeEventListener(rw,y)},[y]),$.createElement(Y8e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Jo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:ao(e.onMouseDown,()=>{C.current=!0}),onFocus:ao(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(rw,H8e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(V=>V.focusable),F=R.find(V=>V.active),U=R.find(V=>V.id===b),z=[F,U,...R].filter(Boolean).map(V=>V.ref.current);T8(z)}}C.current=!1}),onBlur:ao(e.onBlur,()=>g(!1))})))}),X8e="RovingFocusGroupItem",Q8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Mv(),l=a||s,c=K8e(X8e,n),u=c.currentTabStopId===l,f=E8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(e$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Jo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:ao(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:ao(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ao(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=nFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?rFe(g,y+1):g.slice(y+1)}setTimeout(()=>T8(g))}})})))}),eFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nFe(e,t,n){const r=tFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return eFe[r]}function T8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const oFe=J8e,aFe=Q8e,iFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Qp({prop:n,onChange:o,defaultProp:r});return $.createElement(Jo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:ao(e.onClick,()=>{e.disabled||s(!i)})}))}),c1="ToggleGroup",[k8,WFe]=Sy(c1,[P8]),O8=P8(),sFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(lFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(cFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${c1}\``)}),[R8,D8]=k8(c1),lFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Qp({prop:n,defaultProp:r,onChange:o});return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(M8,T({},a,{ref:t})))}),cFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qp({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(M8,T({},a,{ref:t})))}),[uFe,dFe]=k8(c1),M8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=O8(n),u=_8(i),f={role:"group",dir:u,...l};return M.createElement(uFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(oFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Jo.div,T({},f,{ref:t}))):M.createElement(Jo.div,T({},f,{ref:t})))}),t$="ToggleGroupItem",fFe=M.forwardRef((e,t)=>{const n=D8(t$,e.__scopeToggleGroup),r=dFe(t$,e.__scopeToggleGroup),o=O8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(aFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(vI,T({},s,{ref:t}))):M.createElement(vI,T({},s,{ref:t}))}),vI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=D8(t$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(iFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),pFe=sFe,gI=fFe,hFe=vn(12,$n(Ya,Yr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function yI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function bI(e,t){return typeof e=="string"?[{content:e,type:t}]:yI(e)?[e]:Array.isArray(e)&&e.every(yI)?e:null}function xI(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const mFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??""),i=bI(o,"human"),s=bI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=sr.compose(e.path,`${r}`),a=n.type??"chat",i=xI((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(sr.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(pFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(sr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(sr.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(gI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(V8e,{className:"w-4 h-4"})}),O.jsx(gI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(SN,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(O2,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(sr.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(sr.compose(o,"name"),p.target.value)}}),a==="ai"&&xI((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(sr.compose(o,"additional_kwargs.function_call.name")),e.handleChange(sr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(sr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(sr.compose(o,"content"),p)}})]},r)})})]})}),vFe=vn(12,$n(Ya,Yr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!l1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),gFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=sr.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(ad,{value:n,onChange:i=>{e.handleChange(sr.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(ad,{value:r,onChange:i=>{e.handleChange(sr.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(O2,{className:"w-4 h-4"})})]},o)})})]})}),yFe=vn(12,$n(Ya,Yr(e=>l1(e)?e.extra.widget.type==="base64file":!1))),bFe=co(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),xFe=s6(e=>{const t=Jy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:M2,cells:I2})}),wFe=vn(3,gj),CFe=vn(2,$n(_n("Control"),Ka("object"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),$Fe=vn(1,$n(_n("Control"),Ka("object"))),SFe=vn(1,$n(_n("Control"))),M2=[...y8e,{tester:CFe,renderer:R6e},{tester:e6e,renderer:t6e},{tester:M6e,renderer:I6e},{tester:wFe,renderer:xFe},{tester:A8e,renderer:S8},{tester:$Fe,renderer:y8},{tester:hFe,renderer:mFe},{tester:vFe,renderer:gFe},{tester:yFe,renderer:bFe}],_Fe=vn(1,(e,t)=>t.type==="array"),I2=[{tester:e9e,cell:t9e},{tester:r9e,cell:o9e},{tester:i9e,cell:s9e},{tester:c9e,cell:u9e},{tester:p9e,cell:h9e},{tester:g9e,cell:y9e},{tester:w9e,cell:C9e},{tester:E9e,cell:mI},{tester:S9e,cell:mI},{tester:k9e,cell:O9e},{tester:_Fe,cell:S8},{tester:SFe,cell:z8e}];function EFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(f6,{schema:e.config,data:e.value.data,renderers:M2,cells:I2,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>O.jsx("li",{children:r.message},o))})]})})]})]})}function PFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify($g(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:$g(e.input),errors:[]}),children:"Reset"})]}),O.jsx(f6,{schema:e.input,data:e.value.data,renderers:M2,cells:I2,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>O.jsx("li",{children:o.message},a))})]})]})]})}const TFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function kFe(e){return O.jsx("button",{type:"button",className:Zi("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(TFe,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})}function OFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function RFe(e,t){return e===t}function wI(e){return typeof e=="function"?function(){return e}:e}function DFe(e,t,n){var r,o,a=n&&n.equalityFn||RFe,i=(r=$.useState(wI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(wI(f))},[])]),s=i[0],l=i[1],c=OFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function MFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return O.jsxs(O.Fragment,{children:[O.jsx(PFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),O.jsx(BH,{config:e.configData.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(xB,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx(kFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function IFe(e){const t=X$(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),[o,a]=DFe(n.data,500),i=cU(o!==e.configSchema.defaults?o:void 0),{context:s,callbacks:l}=AU(),{startStream:c,stopStream:u,latest:f}=IU(l);return O.jsxs(K3.Provider,{value:s,children:[O.jsx(EFe,{config:e.configSchema.schema,value:n,onChange:r}),O.jsx("div",{className:Zi("flex flex-col flex-grow gap-4 w-full transition-opacity",(i.isLoading||a.isPending())&&"opacity-50 pointer-events-none"),children:i.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:i.error.toString()})}):O.jsx(O.Fragment,{children:i.data!=null?O.jsx(MFe,{configSchema:e.configSchema,inputSchema:i.data,configData:n,startStream:c,stopStream:u,children:f&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(CG,{streamed:f.streamed_output})}),O.jsx(bG,{latest:f})]})}):null})})]})}function AFe(){const e=lU();return e.isLoading?null:e.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":O.jsx(IFe,{configSchema:e.data})}function NFe(){return O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),O.jsx(AFe,{})]})})}var I8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(I8);var jFe=I8.exports;const LFe=Vt(jFe);var A8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(A8);var FFe=A8.exports;const zFe=Vt(FFe);xr.extend(zFe);xr.extend(LFe);ow.createRoot(document.getElementById("root")).render(O.jsx(NFe,{})); diff --git a/langserve/playground/dist/assets/index-8968db79.css b/langserve/playground/dist/assets/index-c6cde0dd.css similarity index 76% rename from langserve/playground/dist/assets/index-8968db79.css rename to langserve/playground/dist/assets/index-c6cde0dd.css index 2c7ecf92..b9bff76e 100644 --- a/langserve/playground/dist/assets/index-8968db79.css +++ b/langserve/playground/dist/assets/index-c6cde0dd.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index 96a696b1..ed88a6ec 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,8 +5,8 @@ Playground - - + +
From d4e7f3679cd22a8083be037ba870af742cf5b069 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 21 Nov 2023 01:51:16 +0100 Subject: [PATCH 08/23] Revert "Refactor schema loading to deal with race conditions, get rid of embedding for now" This reverts commit 099fc666e53f8bc562acce7accfbad591ba0113f. --- examples/configurable_chain/server.py | 23 +- langserve/playground/package.json | 1 - langserve/playground/src/App.tsx | 581 +++++++++++++----- .../src/components/CustomAnyOfRenderer.tsx | 2 +- .../playground/src/components/ShareDialog.tsx | 31 +- .../src/components/SubmitButton.tsx | 50 -- langserve/playground/src/main.tsx | 7 - langserve/playground/src/renderers.tsx | 111 ---- .../src/sections/SectionConfigure.tsx | 50 -- .../playground/src/sections/SectionInputs.tsx | 64 -- langserve/playground/src/useSchemas.tsx | 104 ++-- .../playground/src/useStreamCallback.tsx | 29 - langserve/playground/src/utils/url.ts | 32 +- langserve/playground/yarn.lock | 18 - 14 files changed, 512 insertions(+), 591 deletions(-) delete mode 100644 langserve/playground/src/components/SubmitButton.tsx delete mode 100644 langserve/playground/src/renderers.tsx delete mode 100644 langserve/playground/src/sections/SectionConfigure.tsx delete mode 100644 langserve/playground/src/sections/SectionInputs.tsx diff --git a/examples/configurable_chain/server.py b/examples/configurable_chain/server.py index a2fe2af8..1050fff1 100755 --- a/examples/configurable_chain/server.py +++ b/examples/configurable_chain/server.py @@ -63,28 +63,7 @@ ############################################################################### -# EXAMPLE 2: Configure prompt based on RunnableConfig # -############################################################################### -configurable_prompt = PromptTemplate.from_template( - "tell me a joke about {topic}." -).configurable_alternatives( - ConfigurableField( - id="prompt", - name="Prompt", - description="The prompt to use. Must contain {topic}.", - ), - default_key="joke", - fact=PromptTemplate.from_template( - "tell me a fact about {topic} in {language} language." - ), -) -prompt_chain = configurable_prompt | model | StrOutputParser() - -add_routes(app, prompt_chain, path="/configurable_prompt") - - -############################################################################### -# EXAMPLE 3: Configure fields based on Request metadata # +# EXAMPLE 2: Configure fields based on Request metadata # ############################################################################### diff --git a/langserve/playground/package.json b/langserve/playground/package.json index dc374164..30cf5485 100644 --- a/langserve/playground/package.json +++ b/langserve/playground/package.json @@ -28,7 +28,6 @@ "lz-string": "^1.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "swr": "^2.2.4", "tailwind-merge": "^1.14.0", "use-debounce": "^9.0.4", "vaul": "^0.7.3" diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx index 5693d975..f78d03c8 100644 --- a/langserve/playground/src/App.tsx +++ b/langserve/playground/src/App.tsx @@ -1,54 +1,260 @@ import "./App.css"; -import { useEffect, useRef, useState } from "react"; - +import { useEffect, useMemo, useRef, useState } from "react"; +import defaults from "./utils/defaults"; +import { JsonForms } from "@jsonforms/react"; +import { + materialAllOfControlTester, + MaterialAllOfRenderer, + MaterialObjectRenderer, + materialOneOfControlTester, + MaterialOneOfRenderer, +} from "@jsonforms/material-renderers"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; +import relativeDate from "dayjs/plugin/relativeTime"; +import SendIcon from "./assets/SendIcon.svg?react"; import ShareIcon from "./assets/ShareIcon.svg?react"; +import { compressToEncodedURIComponent } from "lz-string"; -import { useConfigSchema, useInputSchema } from "./useSchemas"; +import { + BooleanCell, + DateCell, + DateTimeCell, + EnumCell, + IntegerCell, + NumberCell, + SliderCell, + TimeCell, + booleanCellTester, + dateCellTester, + dateTimeCellTester, + enumCellTester, + integerCellTester, + numberCellTester, + sliderCellTester, + textAreaCellTester, + textCellTester, + timeCellTester, + vanillaRenderers, + InputControl, +} from "@jsonforms/vanilla-renderers"; +import { useSchemas } from "./useSchemas"; import { useStreamLog } from "./useStreamLog"; -import { AppCallbackContext, useAppStreamCallbacks } from "./useStreamCallback"; -import { JsonSchema } from "@jsonforms/core"; -import { ShareDialog } from "./components/ShareDialog"; +import { StreamCallback } from "./types"; +import { AppCallbackContext } from "./useStreamCallback"; +import { + JsonFormsCore, + RankedTester, + rankWith, + and, + uiTypeIs, + schemaMatches, + schemaTypeIs, +} from "@jsonforms/core"; +import CustomArrayControlRenderer, { + materialArrayControlTester, +} from "./components/CustomArrayControlRenderer"; +import CustomTextAreaCell from "./components/CustomTextAreaCell"; +import JsonTextAreaCell from "./components/JsonTextAreaCell"; +import { getStateFromUrl, ShareDialog } from "./components/ShareDialog"; +import { + chatMessagesTester, + ChatMessagesControlRenderer, +} from "./components/ChatMessagesControlRenderer"; +import { + ChatMessageTuplesControlRenderer, + chatMessagesTupleTester, +} from "./components/ChatMessageTuplesControlRenderer"; +import { + fileBase64Tester, + FileBase64ControlRenderer, +} from "./components/FileBase64Tester"; import { IntermediateSteps } from "./components/IntermediateSteps"; import { StreamOutput } from "./components/StreamOutput"; -import { ConfigValue, SectionConfigure } from "./sections/SectionConfigure"; -import { InputValue, SectionInputs } from "./sections/SectionInputs"; -import { SubmitButton } from "./components/SubmitButton"; -import { useDebounce } from "use-debounce"; +import { + customAnyOfTester, + CustomAnyOfRenderer, +} from "./components/CustomAnyOfRenderer"; import { cn } from "./utils/cn"; -import { getStateFromUrl } from "./utils/url"; -function InputPlayground(props: { - configSchema: { schema: JsonSchema; defaults: unknown }; - inputSchema: { schema: JsonSchema; defaults: unknown }; +dayjs.extend(relativeDate); +dayjs.extend(utc); + +const isObjectWithPropertiesControl = rankWith( + 2, + and( + uiTypeIs("Control"), + schemaTypeIs("object"), + schemaMatches((schema) => + Object.prototype.hasOwnProperty.call(schema, "properties") + ) + ) +); + +const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); +const isElse = rankWith(1, and(uiTypeIs("Control"))); + +export const renderers = [ + ...vanillaRenderers, + + // use material renderers to handle objects and json schema references + // they should yield the rendering to simpler cells + { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, + { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, + { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, + + { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, + + // custom renderers + { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, + { tester: isObject, renderer: InputControl }, + { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, + { + tester: chatMessagesTupleTester, + renderer: ChatMessageTuplesControlRenderer, + }, + { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, +]; + +const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { + return jsonSchema.type === "array"; +}); + +export const cells = [ + { tester: booleanCellTester, cell: BooleanCell }, + { tester: dateCellTester, cell: DateCell }, + { tester: dateTimeCellTester, cell: DateTimeCell }, + { tester: enumCellTester, cell: EnumCell }, + { tester: integerCellTester, cell: IntegerCell }, + { tester: numberCellTester, cell: NumberCell }, + { tester: sliderCellTester, cell: SliderCell }, + { tester: textAreaCellTester, cell: CustomTextAreaCell }, + { tester: textCellTester, cell: CustomTextAreaCell }, + { tester: timeCellTester, cell: TimeCell }, + { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, + { tester: isElse, cell: JsonTextAreaCell }, +]; - configData: ConfigValue; +function App() { + const [isEmbedded] = useState(() => + window.location.search.includes("embeded=true") + ); + + // it is possible that defaults are being applied _after_ + // the initial update message has been sent from the parent window + // so we store the initial config data in a ref + const initConfigData = useRef(null); - startStream: (input: unknown, config: unknown) => void; - stopStream: (() => void) | undefined; + // store form state + const [configData, setConfigData] = useState< + Pick & { defaults: boolean } + >({ data: {}, errors: [], defaults: true }); - children?: React.ReactNode; -}) { - const [inputData, setInputData] = useState({ - data: props.inputSchema.defaults, - errors: [], + const [inputData, setInputData] = useState< + Pick + >({ data: null, errors: [] }); + // fetch input and config schemas from the server + const schemas = useSchemas(configData); + // apply defaults defined in each schema + useEffect(() => { + if (schemas.config) { + const state = getStateFromUrl(window.location.href); + setConfigData({ + data: + state.configFromUrl ?? + initConfigData.current ?? + defaults(schemas.config), + errors: [], + defaults: true, + }); + + setInputData({ data: defaults(schemas.input), errors: [] }); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [schemas.config]); + + // callbacks handling + const callbacks = useRef<{ + onStart: Exclude[]; + onSuccess: Exclude[]; + onError: Exclude[]; + }>({ onStart: [], onSuccess: [], onError: [] }); + + // the runner + const { startStream, stopStream, latest } = useStreamLog({ + onStart(...args) { + for (const callback of callbacks.current.onStart) { + callback(...args); + } + }, + onSuccess(...args) { + for (const callback of callbacks.current.onSuccess) { + callback(...args); + } + }, + onError(...args) { + for (const callback of callbacks.current.onError) { + callback(...args); + } + }, }); - const submitRef = useRef<(() => void) | null>(null); - submitRef.current = () => { + useEffect(() => { + window.parent?.postMessage({ type: "init" }, "*"); + }, []); + + useEffect(() => { + function listener(event: MessageEvent) { + if (event.source === window.parent) { + const message = event.data; + if (typeof message === "object" && message != null) { + switch (message.type) { + case "update": { + const value: { config: JsonFormsCore["data"] } = message.value; + if (Object.keys(value.config).length > 0) { + initConfigData.current = value.config; + setConfigData({ + data: value.config, + errors: [], + defaults: false, + }); + break; + } + } + } + } + } + } + + window.addEventListener("message", listener); + return () => window.removeEventListener("message", listener); + }, []); + + const isInputResetable = useMemo(() => { + if (!schemas.input) return false; + return ( + JSON.stringify(defaults(schemas.input)) !== JSON.stringify(inputData.data) + ); + }, [schemas.input, inputData.data]); + + function onSubmit() { if ( - !props.stopStream && - (!!inputData.errors?.length || !!props.configData.errors?.length) + !stopStream && + (!!inputData.errors?.length || !!configData.errors?.length) ) { return; } - if (props.stopStream) { - props.stopStream(); + if (stopStream) { + stopStream(); } else { - props.startStream(inputData.data, props.configData.data); + startStream(inputData.data, configData.data); } - }; + } + + const submitRef = useRef<(() => void) | null>(null); + submitRef.current = onSubmit; useEffect(() => { window.addEventListener("keydown", (e) => { @@ -60,147 +266,206 @@ function InputPlayground(props: { }, []); const isSendDisabled = - !props.stopStream && - (!!inputData.errors?.length || !!props.configData.errors?.length); + !stopStream && (!!inputData.errors?.length || !!configData.errors?.length); + + if (!schemas.config || !schemas.input) { + return <>; + } return ( - <> - setInputData(input)} - /> - - {props.children} - -
- -
-
- - - - - - -
- - ); -} + +
+
+

+ 🦜 LangServe Playground +

-function ConfigPlayground(props: { - configSchema: { - schema: JsonSchema; - defaults: unknown; - }; -}) { - const urlState = getStateFromUrl(window.location.href); - const [configData, setConfigData] = useState({ - data: urlState.configFromUrl ?? props.configSchema.defaults, - errors: [], - defaults: true, - }); + {Object.keys(schemas.config).length > 0 && ( +
+ {!isEmbedded && ( +

Configure

+ )} - // input schema is derived from config data - const [debouncedConfigData, debounceState] = useDebounce( - configData.data, - 500 - ); +
+ + data + ? setConfigData({ data, errors, defaults: false }) + : undefined + } + /> - const inputSchema = useInputSchema( - debouncedConfigData !== props.configSchema.defaults - ? debouncedConfigData - : undefined - ); + {!!configData.errors?.length && configData.data && ( +
+
+ Validation Errors +
    + {configData.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+
+ )} +
+
+ )} - const { context, callbacks } = useAppStreamCallbacks(); - const { startStream, stopStream, latest } = useStreamLog(callbacks); + {!isEmbedded && ( +
+

Try it

- return ( - - - -
- {inputSchema.error != null ? ( -
-
- {inputSchema.error.toString()} -
-
- ) : ( - <> - {inputSchema.data != null ? ( - - {latest && ( -
-

Output

-
- -
- +
+
+

Inputs

+ {isInputResetable && ( + + )} +
+ + + setInputData({ data, errors }) + } + /> + {!!inputData.errors?.length && inputData.data && ( +
+ Validation Errors +
    + {inputData.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
)} - - ) : null} - - )} -
- - ); -} +
-function Playground() { - const configSchema = useConfigSchema(); - if (configSchema.isLoading) return null; + {latest && ( +
+

Output

+
+ +
+ +
+ )} +
+ )} - if (configSchema.error != null) { - return ( -
-
- {configSchema.error.toString()} -
-
- ); - } - if (configSchema.data == null) return "No config schema found"; - return ; -} +
-export function App() { - return ( -
-
-

- 🦜 LangServe Playground -

- +
+
+ + {isEmbedded ? ( + <> + + + + ) : ( + <> + + + + + + )} +
+
-
+ ); } diff --git a/langserve/playground/src/components/CustomAnyOfRenderer.tsx b/langserve/playground/src/components/CustomAnyOfRenderer.tsx index 52da90b9..8dcbb657 100644 --- a/langserve/playground/src/components/CustomAnyOfRenderer.tsx +++ b/langserve/playground/src/components/CustomAnyOfRenderer.tsx @@ -5,7 +5,7 @@ import { JsonSchema, isAnyOfControl, } from "@jsonforms/core"; -import { renderers, cells } from "../renderers"; +import { renderers, cells } from "../App"; export const CustomAnyOfRenderer = withJsonFormsAnyOfProps((props) => { const anyOfRenderInfos = createCombinatorRenderInfos( diff --git a/langserve/playground/src/components/ShareDialog.tsx b/langserve/playground/src/components/ShareDialog.tsx index dcc6debb..494581d3 100644 --- a/langserve/playground/src/components/ShareDialog.tsx +++ b/langserve/playground/src/components/ShareDialog.tsx @@ -4,11 +4,37 @@ import CodeIcon from "../assets/CodeIcon.svg?react"; import PadlockIcon from "../assets/PadlockIcon.svg?react"; import CopyIcon from "../assets/CopyIcon.svg?react"; import CheckCircleIcon from "../assets/CheckCircleIcon.svg?react"; -import { compressToEncodedURIComponent } from "lz-string"; -import { getStateFromUrl } from "../utils/url"; +import { + compressToEncodedURIComponent, + decompressFromEncodedURIComponent, +} from "lz-string"; const URL_LENGTH_LIMIT = 2000; +export function getStateFromUrl(path: string) { + let configFromUrl = null; + let basePath = path; + if (basePath.endsWith("/")) { + basePath = basePath.slice(0, -1); + } + + if (basePath.endsWith("/playground")) { + basePath = basePath.slice(0, -"/playground".length); + } + + // check if we can omit the last segment + const [configHash, c, ...rest] = basePath.split("/").reverse(); + if (c === "c") { + basePath = rest.reverse().join("/"); + try { + configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); + } catch (error) { + console.error(error); + } + } + return { basePath, configFromUrl }; +} + function CopyButton(props: { value: string }) { const [copied, setCopied] = useState(false); const cbRef = useRef(null); @@ -95,6 +121,7 @@ const result = await chain.invoke({ ... });
{playgroundUrl.split("://")[1]} + PadlockIcon
diff --git a/langserve/playground/src/components/SubmitButton.tsx b/langserve/playground/src/components/SubmitButton.tsx deleted file mode 100644 index 2dce60ea..00000000 --- a/langserve/playground/src/components/SubmitButton.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import SendIcon from "../assets/SendIcon.svg?react"; -import { cn } from "../utils/cn"; - -export function SubmitButton(props: { - disabled: boolean; - isLoading?: boolean; - onSubmit: () => void; -}) { - return ( - - ); -} diff --git a/langserve/playground/src/main.tsx b/langserve/playground/src/main.tsx index 7c3050b2..164cb889 100644 --- a/langserve/playground/src/main.tsx +++ b/langserve/playground/src/main.tsx @@ -1,11 +1,4 @@ import ReactDOM from "react-dom/client"; import App from "./App.tsx"; -import dayjs from "dayjs"; -import utc from "dayjs/plugin/utc"; -import relativeDate from "dayjs/plugin/relativeTime"; - -dayjs.extend(relativeDate); -dayjs.extend(utc); - ReactDOM.createRoot(document.getElementById("root")!).render(); diff --git a/langserve/playground/src/renderers.tsx b/langserve/playground/src/renderers.tsx deleted file mode 100644 index 630244b2..00000000 --- a/langserve/playground/src/renderers.tsx +++ /dev/null @@ -1,111 +0,0 @@ -import { - materialAllOfControlTester, - MaterialAllOfRenderer, - MaterialObjectRenderer, - materialOneOfControlTester, - MaterialOneOfRenderer, -} from "@jsonforms/material-renderers"; -import { - BooleanCell, - DateCell, - DateTimeCell, - EnumCell, - IntegerCell, - NumberCell, - SliderCell, - TimeCell, - booleanCellTester, - dateCellTester, - dateTimeCellTester, - enumCellTester, - integerCellTester, - numberCellTester, - sliderCellTester, - textAreaCellTester, - textCellTester, - timeCellTester, - vanillaRenderers, - InputControl, -} from "@jsonforms/vanilla-renderers"; -import { - RankedTester, - rankWith, - and, - uiTypeIs, - schemaMatches, - schemaTypeIs, -} from "@jsonforms/core"; -import CustomArrayControlRenderer, { - materialArrayControlTester, -} from "./components/CustomArrayControlRenderer"; -import CustomTextAreaCell from "./components/CustomTextAreaCell"; -import JsonTextAreaCell from "./components/JsonTextAreaCell"; -import { - chatMessagesTester, - ChatMessagesControlRenderer, -} from "./components/ChatMessagesControlRenderer"; -import { - ChatMessageTuplesControlRenderer, - chatMessagesTupleTester, -} from "./components/ChatMessageTuplesControlRenderer"; -import { - fileBase64Tester, - FileBase64ControlRenderer, -} from "./components/FileBase64Tester"; -import { - customAnyOfTester, - CustomAnyOfRenderer, -} from "./components/CustomAnyOfRenderer"; - -const isObjectWithPropertiesControl = rankWith( - 2, - and( - uiTypeIs("Control"), - schemaTypeIs("object"), - schemaMatches((schema) => - Object.prototype.hasOwnProperty.call(schema, "properties") - ) - ) -); -const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); -const isElse = rankWith(1, and(uiTypeIs("Control"))); - -export const renderers = [ - ...vanillaRenderers, - - // use material renderers to handle objects and json schema references - // they should yield the rendering to simpler cells - { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, - { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, - { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, - - { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, - - // custom renderers - { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, - { tester: isObject, renderer: InputControl }, - { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, - { - tester: chatMessagesTupleTester, - renderer: ChatMessageTuplesControlRenderer, - }, - { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, -]; -const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { - return jsonSchema.type === "array"; -}); - -export const cells = [ - { tester: booleanCellTester, cell: BooleanCell }, - { tester: dateCellTester, cell: DateCell }, - { tester: dateTimeCellTester, cell: DateTimeCell }, - { tester: enumCellTester, cell: EnumCell }, - { tester: integerCellTester, cell: IntegerCell }, - { tester: numberCellTester, cell: NumberCell }, - { tester: sliderCellTester, cell: SliderCell }, - { tester: textAreaCellTester, cell: CustomTextAreaCell }, - { tester: textCellTester, cell: CustomTextAreaCell }, - { tester: timeCellTester, cell: TimeCell }, - { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, - { tester: isElse, cell: JsonTextAreaCell }, -]; diff --git a/langserve/playground/src/sections/SectionConfigure.tsx b/langserve/playground/src/sections/SectionConfigure.tsx deleted file mode 100644 index 2977bedb..00000000 --- a/langserve/playground/src/sections/SectionConfigure.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import { JsonForms } from "@jsonforms/react"; -import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; -import { renderers, cells } from "../renderers"; - -export type ConfigValue = Pick & { - defaults: boolean; -}; - -export function SectionConfigure(props: { - config: JsonSchema | undefined; - value: ConfigValue; - onChange: (value: ConfigValue) => void; -}) { - if (props.config == null || Object.keys(props.config).length === 0) { - return null; - } - - return ( -
-

Configure

- -
- { - if (data) { - props.onChange({ data, errors, defaults: false }); - } - }} - /> - - {!!props.value.errors?.length && props.value.data && ( -
-
- Validation Errors -
    - {props.value.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
-
-
- )} -
-
- ); -} diff --git a/langserve/playground/src/sections/SectionInputs.tsx b/langserve/playground/src/sections/SectionInputs.tsx deleted file mode 100644 index da4668da..00000000 --- a/langserve/playground/src/sections/SectionInputs.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import { useMemo } from "react"; -import defaults from "../utils/defaults"; -import { JsonForms } from "@jsonforms/react"; -import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; -import { renderers, cells } from "../renderers"; - -export type InputValue = Pick; - -export function SectionInputs(props: { - input: JsonSchema | undefined; - value: InputValue; - onChange: (value: InputValue) => void; -}) { - const isInputResetable = useMemo(() => { - if (!props.input) return false; - return ( - JSON.stringify(defaults(props.input)) !== JSON.stringify(props.value.data) - ); - }, [props.input, props.value.data]); - - return ( -
-

Try it

- -
-
-

Inputs

- {isInputResetable && ( - - )} -
- - props.onChange({ data, errors })} - /> - {!!props.value.errors?.length && props.value.data && ( -
- Validation Errors -
    - {props.value.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
-
- )} -
-
- ); -} diff --git a/langserve/playground/src/useSchemas.tsx b/langserve/playground/src/useSchemas.tsx index a63a9e6f..901e4fe5 100644 --- a/langserve/playground/src/useSchemas.tsx +++ b/langserve/playground/src/useSchemas.tsx @@ -1,10 +1,9 @@ +import { useEffect, useState } from "react"; import { resolveApiUrl } from "./utils/url"; import { simplifySchema } from "./utils/simplifySchema"; -import { JsonSchema } from "@jsonforms/core"; +import { JsonFormsCore } from "@jsonforms/core"; import { compressToEncodedURIComponent } from "lz-string"; - -import useSWR from "swr"; -import defaults from "./utils/defaults"; +import { useDebounce } from "use-debounce"; declare global { interface Window { @@ -15,54 +14,63 @@ declare global { } } -export function useConfigSchema() { - return useSWR(["/config_schema"], async () => { - let schema: JsonSchema | null = null; - if (!import.meta.env.DEV && window.CONFIG_SCHEMA) { - schema = await simplifySchema(window.CONFIG_SCHEMA); - } else { - const response = await fetch(resolveApiUrl(`/config_schema`)); - if (!response.ok) throw new Error(await response.text()); - - const json = await response.json(); - schema = await simplifySchema(json); - } - - if (schema == null) return null; - return { - schema, - defaults: defaults(schema), - }; +export function useSchemas( + configData: Pick & { defaults: boolean } +) { + const [schemas, setSchemas] = useState<{ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + config: null | any; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + input: null | any; + }>({ + config: null, + input: null, }); -} -export function useInputSchema(configData?: unknown) { - return useSWR( - ["/input_schema", configData], - async ([, configData]) => { - // TODO: this won't work if we're already seeing a prefixed URL - const prefix = configData - ? `/c/${compressToEncodedURIComponent(JSON.stringify(configData))}` - : ""; + useEffect(() => { + async function save() { + if (import.meta.env.DEV) { + const [config, input] = await Promise.all([ + fetch(resolveApiUrl("/config_schema")) + .then((r) => r.json()) + .then(simplifySchema), + fetch(resolveApiUrl("/input_schema")) + .then((r) => r.json()) + .then(simplifySchema), + ]); + setSchemas({ config, input }); + } else { + setSchemas({ + config: window.CONFIG_SCHEMA + ? await simplifySchema(window.CONFIG_SCHEMA) + : null, + input: window.INPUT_SCHEMA + ? await simplifySchema(window.INPUT_SCHEMA) + : null, + }); + } + } - let schema: JsonSchema | null = null; + save(); + }, []); - if (!prefix && !import.meta.env.DEV && window.INPUT_SCHEMA) { - schema = await simplifySchema(window.INPUT_SCHEMA); - } else { - const response = await fetch(resolveApiUrl(`${prefix}/input_schema`)); - if (!response.ok) throw new Error(await response.text()); + const [debouncedConfigData] = useDebounce(configData, 500); - const json = await response.json(); - schema = await simplifySchema(json); - } + useEffect(() => { + if (!debouncedConfigData.defaults) { + fetch( + resolveApiUrl( + `/c/${compressToEncodedURIComponent( + JSON.stringify(debouncedConfigData.data) + )}/input_schema` + ) + ) + .then((r) => r.json()) + .then(simplifySchema) + .then((input) => setSchemas((current) => ({ ...current, input }))) + .catch(() => {}); // ignore errors, eg. due to incomplete config + } + }, [debouncedConfigData]); - if (schema == null) return null; - return { - schema, - defaults: defaults(schema), - }; - }, - { keepPreviousData: true } - ); + return schemas; } diff --git a/langserve/playground/src/useStreamCallback.tsx b/langserve/playground/src/useStreamCallback.tsx index 31a3ca8b..137bfe07 100644 --- a/langserve/playground/src/useStreamCallback.tsx +++ b/langserve/playground/src/useStreamCallback.tsx @@ -14,35 +14,6 @@ export const AppCallbackContext = createContext[]; }> | null>(null); -export function useAppStreamCallbacks() { - // callbacks handling - const context = useRef<{ - onStart: Exclude[]; - onSuccess: Exclude[]; - onError: Exclude[]; - }>({ onStart: [], onSuccess: [], onError: [] }); - - const callbacks: StreamCallback = { - onStart(...args) { - for (const callback of context.current.onStart) { - callback(...args); - } - }, - onSuccess(...args) { - for (const callback of context.current.onSuccess) { - callback(...args); - } - }, - onError(...args) { - for (const callback of context.current.onError) { - callback(...args); - } - }, - }; - - return { context, callbacks }; -} - export function useStreamCallback< Type extends "onStart" | "onSuccess" | "onError" >(type: Type, callback: Exclude) { diff --git a/langserve/playground/src/utils/url.ts b/langserve/playground/src/utils/url.ts index 88f40a4d..6f560db1 100644 --- a/langserve/playground/src/utils/url.ts +++ b/langserve/playground/src/utils/url.ts @@ -1,33 +1,5 @@ -import { decompressFromEncodedURIComponent } from "lz-string"; - -export function getStateFromUrl(path: string) { - let configFromUrl = null; - let basePath = path; - if (basePath.endsWith("/")) { - basePath = basePath.slice(0, -1); - } - - if (basePath.endsWith("/playground")) { - basePath = basePath.slice(0, -"/playground".length); - } - - // check if we can omit the last segment - const [configHash, c, ...rest] = basePath.split("/").reverse(); - if (c === "c") { - basePath = rest.reverse().join("/"); - try { - configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); - } catch (error) { - console.error(error); - } - } - return { basePath, configFromUrl }; -} - export function resolveApiUrl(path: string) { - const { basePath } = getStateFromUrl(window.location.href); - let prefix = new URL(basePath).pathname; + let prefix = window.location.pathname.split("/playground")[0]; if (prefix.endsWith("/")) prefix = prefix.slice(0, -1); - - return new URL(prefix + path, basePath); + return new URL(prefix + path, window.location.origin); } diff --git a/langserve/playground/yarn.lock b/langserve/playground/yarn.lock index b3f755da..39092cb6 100644 --- a/langserve/playground/yarn.lock +++ b/langserve/playground/yarn.lock @@ -1407,11 +1407,6 @@ chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" -client-only@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" - integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== - clsx@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b" @@ -2625,14 +2620,6 @@ svg-parser@^2.0.4: resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== -swr@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.4.tgz#03ec4c56019902fbdc904d78544bd7a9a6fa3f07" - integrity sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ== - dependencies: - client-only "^0.0.1" - use-sync-external-store "^1.2.0" - tailwind-merge@^1.14.0: version "1.14.0" resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.14.0.tgz#e677f55d864edc6794562c63f5001f45093cdb8b" @@ -2764,11 +2751,6 @@ use-sidecar@^1.1.2: detect-node-es "^1.1.0" tslib "^2.0.0" -use-sync-external-store@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" - integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== - util-deprecate@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" From abba59ea5573d0746e41ae81c63979cc70fbfe16 Mon Sep 17 00:00:00 2001 From: David Duong Date: Tue, 21 Nov 2023 17:14:34 +0100 Subject: [PATCH 09/23] Fix race conditions of defaults and schemas (#251) Closes #143 --- examples/configurable_chain/server.py | 23 +- .../playground/dist/assets/index-32c8d712.js | 247 -------- .../playground/dist/assets/index-849f2582.js | 255 ++++++++ ...{index-c6cde0dd.css => index-8968db79.css} | 2 +- langserve/playground/dist/index.html | 4 +- langserve/playground/package.json | 1 + langserve/playground/src/App.tsx | 581 +++++------------- .../src/components/CustomAnyOfRenderer.tsx | 2 +- .../playground/src/components/ShareDialog.tsx | 31 +- .../src/components/SubmitButton.tsx | 50 ++ langserve/playground/src/main.tsx | 7 + langserve/playground/src/renderers.tsx | 111 ++++ .../src/sections/SectionConfigure.tsx | 50 ++ .../playground/src/sections/SectionInputs.tsx | 64 ++ langserve/playground/src/useSchemas.tsx | 104 ++-- .../playground/src/useStreamCallback.tsx | 29 + langserve/playground/src/utils/url.ts | 32 +- langserve/playground/yarn.lock | 18 + 18 files changed, 849 insertions(+), 762 deletions(-) delete mode 100644 langserve/playground/dist/assets/index-32c8d712.js create mode 100644 langserve/playground/dist/assets/index-849f2582.js rename langserve/playground/dist/assets/{index-c6cde0dd.css => index-8968db79.css} (76%) create mode 100644 langserve/playground/src/components/SubmitButton.tsx create mode 100644 langserve/playground/src/renderers.tsx create mode 100644 langserve/playground/src/sections/SectionConfigure.tsx create mode 100644 langserve/playground/src/sections/SectionInputs.tsx diff --git a/examples/configurable_chain/server.py b/examples/configurable_chain/server.py index 1050fff1..a2fe2af8 100755 --- a/examples/configurable_chain/server.py +++ b/examples/configurable_chain/server.py @@ -63,7 +63,28 @@ ############################################################################### -# EXAMPLE 2: Configure fields based on Request metadata # +# EXAMPLE 2: Configure prompt based on RunnableConfig # +############################################################################### +configurable_prompt = PromptTemplate.from_template( + "tell me a joke about {topic}." +).configurable_alternatives( + ConfigurableField( + id="prompt", + name="Prompt", + description="The prompt to use. Must contain {topic}.", + ), + default_key="joke", + fact=PromptTemplate.from_template( + "tell me a fact about {topic} in {language} language." + ), +) +prompt_chain = configurable_prompt | model | StrOutputParser() + +add_routes(app, prompt_chain, path="/configurable_prompt") + + +############################################################################### +# EXAMPLE 3: Configure fields based on Request metadata # ############################################################################### diff --git a/langserve/playground/dist/assets/index-32c8d712.js b/langserve/playground/dist/assets/index-32c8d712.js deleted file mode 100644 index 523262b2..00000000 --- a/langserve/playground/dist/assets/index-32c8d712.js +++ /dev/null @@ -1,247 +0,0 @@ -var f7=Object.defineProperty;var p7=(e,t,n)=>t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ud=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n);function h7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XM={exports:{}},Gg={},QM={exports:{}},an={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Lp=Symbol.for("react.element"),v7=Symbol.for("react.portal"),g7=Symbol.for("react.fragment"),y7=Symbol.for("react.strict_mode"),b7=Symbol.for("react.profiler"),x7=Symbol.for("react.provider"),w7=Symbol.for("react.context"),C7=Symbol.for("react.forward_ref"),$7=Symbol.for("react.suspense"),S7=Symbol.for("react.memo"),_7=Symbol.for("react.lazy"),iT=Symbol.iterator;function E7(e){return e===null||typeof e!="object"?null:(e=iT&&e[iT]||e["@@iterator"],typeof e=="function"?e:null)}var eI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tI=Object.assign,nI={};function Qu(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}Qu.prototype.isReactComponent={};Qu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rI(){}rI.prototype=Qu.prototype;function FC(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}var zC=FC.prototype=new rI;zC.constructor=FC;tI(zC,Qu.prototype);zC.isPureReactComponent=!0;var sT=Array.isArray,oI=Object.prototype.hasOwnProperty,BC={current:null},aI={key:!0,ref:!0,__self:!0,__source:!0};function iI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)oI.call(t,r)&&!aI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=H[L];if(0>>1;Lo(N,X))Vo(Z,N)?(H[L]=Z,H[V]=X,L=V):(H[L]=N,H[D]=X,L=D);else if(Vo(Z,X))H[L]=Z,H[V]=X,L=V;else break e}}return J}function o(H,J){var X=H.sortIndex-J.sortIndex;return X!==0?X:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=H)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(H){if(v=!1,w(H),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-H)}}function _(H,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||H&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var K=L(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var $=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RH||125L?(H.sortIndex=X,t(c,H),n(l)===null&&H===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-L))):(H.sortIndex=K,t(l,H),b||m||(b=!0,Y(_))),H},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(H){var J=p;return function(){var X=p;p=J;try{return H.apply(this,arguments)}finally{p=X}}}})(uI);cI.exports=uI;var j7=cI.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dI=S,qo=j7;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wx=Object.prototype.hasOwnProperty,L7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cT={},uT={};function F7(e){return Wx.call(uT,e)?!0:Wx.call(cT,e)?!1:L7.test(e)?uT[e]=!0:(cT[e]=!0,!1)}function z7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B7(e,t,n,r){if(t===null||typeof t>"u"||z7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function io(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var UC=/[\-:]([a-z])/g;function WC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!0,!0)});function HC(e,t,n,r){var o=Nr.hasOwnProperty(t)?Nr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yf(e):""}function V7(e){switch(e.tag){case 5:return yf(e.type);case 16:return yf("Lazy");case 13:return yf("Suspense");case 19:return yf("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function Yx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ou:return"Fragment";case ru:return"Portal";case Hx:return"Profiler";case GC:return"StrictMode";case Gx:return"Suspense";case qx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hI:return(e.displayName||"Context")+".Consumer";case pI:return(e._context.displayName||"Context")+".Provider";case qC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YC:return t=e.displayName||null,t!==null?t:Yx(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return Yx(e(t))}catch{}}return null}function U7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yx(t);case 8:return t===GC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W7(e){var t=vI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){e._valueTracker||(e._valueTracker=W7(e))}function gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kx(e,t){var n=t.checked;return Yn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yI(e,t){t=t.checked,t!=null&&HC(e,"checked",t,!1)}function Jx(e,t){yI(e,t);var n=Ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zx(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zx(e,t,n){(t!=="number"||zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bf=Array.isArray;function bu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},H7=["Webkit","ms","Moz","O"];Object.keys(kf).forEach(function(e){H7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kf[t]=kf[e]})});function CI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kf.hasOwnProperty(e)&&kf[e]?(""+t).trim():t+"px"}function $I(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=CI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G7=Yn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,t){if(t){if(G7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function tw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nw=null;function KC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rw=null,xu=null,wu=null;function vT(e){if(e=Bp(e)){if(typeof rw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Zg(t),rw(e.stateNode,e.type,t))}}function SI(e){xu?wu?wu.push(e):wu=[e]:xu=e}function _I(){if(xu){var e=xu,t=wu;if(wu=xu=null,vT(e),t)for(e=0;e>>=0,e===0?32:31-(rz(e)/oz|0)|0}var ym=64,bm=4194304;function xf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=xf(s):(a&=i,a!==0&&(r=xf(a)))}else i=n&~o,i!==0?r=xf(i):a!==0&&(r=xf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Va(t),e[t]=n}function lz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rf),_T=String.fromCharCode(32),ET=!1;function HI(e,t){switch(e){case"keyup":return Nz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var au=!1;function Lz(e,t){switch(e){case"compositionend":return GI(t);case"keypress":return t.which!==32?null:(ET=!0,_T);case"textInput":return e=t.data,e===_T&&ET?null:e;default:return null}}function Fz(e,t){if(au)return e==="compositionend"||!r$&&HI(e,t)?(e=UI(),pv=e$=Ms=null,au=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=OT(n)}}function JI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ZI(){for(var e=window,t=zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zv(e.document)}return t}function o$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yz(e){var t=ZI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&JI(n.ownerDocument.documentElement,n)){if(r!==null&&o$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=RT(n,a);var i=RT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,iu=null,cw=null,Mf=null,uw=!1;function DT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uw||iu==null||iu!==zv(r)||(r=iu,"selectionStart"in r&&o$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mf&&lp(Mf,r)||(Mf=r,r=qv(cw,"onSelect"),0cu||(e.current=vw[cu],vw[cu]=null,cu--)}function Rn(e,t){cu++,vw[cu]=e.current,e.current=t}var Js={},Gr=tl(Js),xo=tl(!1),Wl=Js;function Iu(e,t){var n=e.type.contextTypes;if(!n)return Js;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wo(e){return e=e.childContextTypes,e!=null}function Kv(){jn(xo),jn(Gr)}function FT(e,t,n){if(Gr.current!==Js)throw Error(at(168));Rn(Gr,t),Rn(xo,n)}function iA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,U7(e)||"Unknown",o));return Yn({},n,r)}function Jv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Js,Wl=Gr.current,Rn(Gr,e),Rn(xo,xo.current),!0}function zT(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=iA(e,t,Wl),r.__reactInternalMemoizedMergedChildContext=e,jn(xo),jn(Gr),Rn(Gr,e)):jn(xo),Rn(xo,n)}var Vi=null,Xg=!1,yb=!1;function sA(e){Vi===null?Vi=[e]:Vi.push(e)}function iB(e){Xg=!0,sA(e)}function nl(){if(!yb&&Vi!==null){yb=!0;var e=0,t=wn;try{var n=Vi;for(wn=1;e>=i,o-=i,Wi=1<<32-Va(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R,E=I}if(k===w.length)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,E=I}if(R.done)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return Fn&&_l(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return e&&E.forEach(function(U){return t(g,U)}),Fn&&_l(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===ou&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mm:e:{for(var _=w.key,$=y;$!==null;){if($.key===_){if(_=w.type,_===ou){if($.tag===7){n(g,$.sibling),y=o($,w.props.children),y.return=g,g=y;break e}}else if($.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ts&&qT(_)===$.type){n(g,$.sibling),y=o($,w.props),y.ref=Kd(g,$,w),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}w.type===ou?(y=zl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=wv(w.type,w.key,w.props,null,g.mode,C),C.ref=Kd(g,y,w),C.return=g,g=C)}return i(g);case ru:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Eb(w,g.mode,C),y.return=g,g=y}return i(g);case Ts:return $=w._init,x(g,y,$(w._payload),C)}if(bf(w))return b(g,y,w,C);if(Wd(w))return v(g,y,w,C);Em(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=_b(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Nu=mA(!0),vA=mA(!1),Vp={},vi=tl(Vp),fp=tl(Vp),pp=tl(Vp);function Nl(e){if(e===Vp)throw Error(at(174));return e}function p$(e,t){switch(Rn(pp,t),Rn(fp,e),Rn(vi,Vp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qx(t,e)}jn(vi),Rn(vi,t)}function ju(){jn(vi),jn(fp),jn(pp)}function gA(e){Nl(pp.current);var t=Nl(vi.current),n=Qx(t,e.type);t!==n&&(Rn(fp,e),Rn(vi,n))}function h$(e){fp.current===e&&(jn(vi),jn(fp))}var Gn=tl(0);function ng(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bb=[];function m$(){for(var e=0;en?n:4,e(!0);var r=xb.transition;xb.transition={};try{e(!1),t()}finally{wn=n,xb.transition=r}}function MA(){return ba().memoizedState}function uB(e,t,n){var r=Hs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},IA(e))AA(t,n);else if(n=dA(e,t,n,r),n!==null){var o=ro();Ua(n,e,r,o),NA(n,t,r)}}function dB(e,t,n){var r=Hs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(IA(e))AA(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ha(s,i)){var l=t.interleaved;l===null?(o.next=o,d$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dA(e,t,o,r),n!==null&&(o=ro(),Ua(n,e,r,o),NA(n,t,r))}}function IA(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function AA(e,t){If=rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function NA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}var og={readContext:ya,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},fB={readContext:ya,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:KT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gv(4194308,4,TA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gv(4194308,4,e,t)},useInsertionEffect:function(e,t){return gv(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uB.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:YT,useDebugValue:x$,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=YT(!1),t=e[0];return e=cB.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,o=ai();if(Fn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Tr===null)throw Error(at(349));Gl&30||xA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,KT(CA.bind(null,r,a,e),[e]),r.flags|=2048,vp(9,wA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ai(),t=Tr.identifierPrefix;if(Fn){var n=Hi,r=Wi;n=(r&~(1<<32-Va(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ci]=t,e[dp]=r,HA(e,t,!1,!1),t.stateNode=e;e:{switch(i=tw(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;oFu&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304)}else{if(!r)if(e=ng(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Fn)return zr(t),null}else 2*sr()-a.renderingStartTime>Fu&&n!==1073741824&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,Rn(Gn,r?n&1|2:n&1),t):(zr(t),null);case 22:case 23:return E$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jo&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function xB(e,t){switch(i$(t),t.tag){case 1:return wo(t.type)&&Kv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ju(),jn(xo),jn(Gr),m$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h$(t),null;case 13:if(jn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Au()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Gn),null;case 4:return ju(),null;case 10:return u$(t.type._context),null;case 22:case 23:return E$(),null;case 24:return null;default:return null}}var Tm=!1,Wr=!1,wB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function Tw(e,t,n){try{n()}catch(r){er(e,t,r)}}var ok=!1;function CB(e,t){if(dw=Hv,e=ZI(),o$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fw={focusedElem:e,selectionRange:n},Hv=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ma(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){er(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=ok,ok=!1,b}function Af(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Tw(t,n,a)}o=o.next}while(o!==r)}}function ty(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function YA(e){var t=e.alternate;t!==null&&(e.alternate=null,YA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[dp],delete t[mw],delete t[oB],delete t[aB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function KA(e){return e.tag===5||e.tag===3||e.tag===4}function ak(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ow(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yv));else if(r!==4&&(e=e.child,e!==null))for(Ow(e,t,n),e=e.sibling;e!==null;)Ow(e,t,n),e=e.sibling}function Rw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rw(e,t,n),e=e.sibling;e!==null;)Rw(e,t,n),e=e.sibling}var Dr=null,Ia=!1;function xs(e,t,n){for(n=n.child;n!==null;)JA(e,t,n),n=n.sibling}function JA(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(qg,n)}catch{}switch(n.tag){case 5:Wr||pu(n,t);case 6:var r=Dr,o=Ia;Dr=null,xs(e,t,n),Dr=r,Ia=o,Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dr.removeChild(n.stateNode));break;case 18:Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?gb(e.parentNode,n):e.nodeType===1&&gb(e,n),ip(e)):gb(Dr,n.stateNode));break;case 4:r=Dr,o=Ia,Dr=n.stateNode.containerInfo,Ia=!0,xs(e,t,n),Dr=r,Ia=o;break;case 0:case 11:case 14:case 15:if(!Wr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Tw(n,t,i),o=o.next}while(o!==r)}xs(e,t,n);break;case 1:if(!Wr&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){er(n,t,s)}xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:n.mode&1?(Wr=(r=Wr)||n.memoizedState!==null,xs(e,t,n),Wr=r):xs(e,t,n);break;default:xs(e,t,n)}}function ik(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wB),t.forEach(function(r){var o=RB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ka(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SB(r/1960))-r,10e?16:e,Is===null)var r=!1;else{if(e=Is,Is=null,sg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-S$?Fl(e,0):$$|=n),Co(e,t)}function o3(e,t){t===0&&(e.mode&1?(t=bm,bm<<=1,!(bm&130023424)&&(bm=4194304)):t=1);var n=ro();e=Xi(e,t),e!==null&&(Fp(e,t,n),Co(e,n))}function OB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o3(e,n)}function RB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),o3(e,n)}var a3;a3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xo.current)bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bo=!1,yB(e,t,n);bo=!!(e.flags&131072)}else bo=!1,Fn&&t.flags&1048576&&lA(t,Xv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yv(e,t),e=t.pendingProps;var o=Iu(t,Gr.current);$u(t,n),o=g$(null,t,r,e,o,n);var a=y$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)?(a=!0,Jv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,f$(t),o.updater=Qg,t.stateNode=o,o._reactInternals=t,ww(t,r,e,n),t=Sw(null,t,r,!0,a,n)):(t.tag=0,Fn&&a&&a$(t),to(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MB(r),e=Ma(r,e),o){case 0:t=$w(null,t,r,e,n);break e;case 1:t=tk(null,t,r,e,n);break e;case 11:t=QT(null,t,r,e,n);break e;case 14:t=ek(null,t,r,Ma(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),$w(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),tk(e,t,r,o,n);case 3:e:{if(VA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,fA(e,t),tg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Lu(Error(at(423)),t),t=nk(e,t,r,n,o);break e}else if(r!==o){o=Lu(Error(at(424)),t),t=nk(e,t,r,n,o);break e}else for(Vo=Vs(t.stateNode.containerInfo.firstChild),Ho=t,Fn=!0,Aa=null,n=vA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Au(),r===o){t=Qi(e,t,n);break e}to(e,t,r,n)}t=t.child}return t;case 5:return gA(t),e===null&&yw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,pw(r,o)?i=null:a!==null&&pw(r,a)&&(t.flags|=32),BA(e,t),to(e,t,i,n),t.child;case 6:return e===null&&yw(t),null;case 13:return UA(e,t,n);case 4:return p$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nu(t,null,r,n):to(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),QT(e,t,r,o,n);case 7:return to(e,t,t.pendingProps,n),t.child;case 8:return to(e,t,t.pendingProps.children,n),t.child;case 12:return to(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Rn(Qv,r._currentValue),r._currentValue=i,a!==null)if(Ha(a.value,i)){if(a.children===o.children&&!xo.current){t=Qi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Gi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}to(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$u(t,n),o=ya(o),r=r(o),t.flags|=1,to(e,t,r,n),t.child;case 14:return r=t.type,o=Ma(r,t.pendingProps),o=Ma(r.type,o),ek(e,t,r,o,n);case 15:return FA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),yv(e,t),t.tag=1,wo(r)?(e=!0,Jv(t)):e=!1,$u(t,n),hA(t,r,o),ww(t,r,o,n),Sw(null,t,r,!0,e,n);case 19:return WA(e,t,n);case 22:return zA(e,t,n)}throw Error(at(156,t.tag))};function i3(e,t){return DI(e,t)}function DB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(e,t,n,r){return new DB(e,t,n,r)}function T$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MB(e){if(typeof e=="function")return T$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qC)return 11;if(e===YC)return 14}return 2}function Gs(e,t){var n=e.alternate;return n===null?(n=ha(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")T$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ou:return zl(n.children,o,a,t);case GC:i=8,o|=8;break;case Hx:return e=ha(12,n,t,o|2),e.elementType=Hx,e.lanes=a,e;case Gx:return e=ha(13,n,t,o),e.elementType=Gx,e.lanes=a,e;case qx:return e=ha(19,n,t,o),e.elementType=qx,e.lanes=a,e;case mI:return ry(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pI:i=10;break e;case hI:i=9;break e;case qC:i=11;break e;case YC:i=14;break e;case Ts:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=ha(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function zl(e,t,n,r){return e=ha(7,e,r,t),e.lanes=n,e}function ry(e,t,n,r){return e=ha(22,e,r,t),e.elementType=mI,e.lanes=n,e.stateNode={isHidden:!1},e}function _b(e,t,n){return e=ha(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=ha(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function k$(e,t,n,r,o,a,i,s,l){return e=new IB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ha(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},f$(a),e}function AB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u3)}catch(e){console.error(e)}}u3(),lI.exports=Jo;var nd=lI.exports;const Cf=Bt(nd);var hk=nd;Ux.createRoot=hk.createRoot,Ux.hydrateRoot=hk.hydrateRoot;const ug=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),ly=e=>JSON.parse(JSON.stringify(e)),M$=(e,t)=>{e=ly(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];ug(r)&&ug(o)?e[n]=M$(o,r):e[n]=r}return e},d3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return ug(o)?ly(o):o},zB=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=zB(e.allOf,t);return Zc(n,t)}else if(typeof e.$ref<"u"){const n=d3(e.$ref,t);return Zc(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=Zc(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>Zc(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=Zc(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:ug(e.definitions)&&(t=M$(t,e.definitions)),Zc(ly(e),t)}var BB=typeof yo=="object"&&yo&&yo.Object===Object&&yo,f3=BB,VB=f3,UB=typeof self=="object"&&self&&self.Object===Object&&self,WB=VB||UB||Function("return this")(),so=WB,HB=so,GB=HB.Symbol,rd=GB,mk=rd,p3=Object.prototype,qB=p3.hasOwnProperty,YB=p3.toString,Xd=mk?mk.toStringTag:void 0;function KB(e){var t=qB.call(e,Xd),n=e[Xd];try{e[Xd]=void 0;var r=!0}catch{}var o=YB.call(e);return r&&(t?e[Xd]=n:delete e[Xd]),o}var JB=KB,ZB=Object.prototype,XB=ZB.toString;function QB(e){return XB.call(e)}var eV=QB,vk=rd,tV=JB,nV=eV,rV="[object Null]",oV="[object Undefined]",gk=vk?vk.toStringTag:void 0;function aV(e){return e==null?e===void 0?oV:rV:gk&&gk in Object(e)?tV(e):nV(e)}var rl=aV;function iV(e){return e!=null&&typeof e=="object"}var Xo=iV,sV=rl,lV=Xo,cV="[object Symbol]";function uV(e){return typeof e=="symbol"||lV(e)&&sV(e)==cV}var od=uV,dV=od;function fV(e,t,n){for(var r=-1,o=e.length;++rt}var mV=hV;function vV(){this.__data__=[],this.size=0}var gV=vV;function yV(e,t){return e===t||e!==e&&t!==t}var Up=yV,bV=Up;function xV(e,t){for(var n=e.length;n--;)if(bV(e[n][0],t))return n;return-1}var cy=xV,wV=cy,CV=Array.prototype,$V=CV.splice;function SV(e){var t=this.__data__,n=wV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$V.call(t,n,1),--this.size,!0}var _V=SV,EV=cy;function PV(e){var t=this.__data__,n=EV(t,e);return n<0?void 0:t[n][1]}var TV=PV,kV=cy;function OV(e){return kV(this.__data__,e)>-1}var RV=OV,DV=cy;function MV(e,t){var n=this.__data__,r=DV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IV=MV,AV=gV,NV=_V,jV=TV,LV=RV,FV=IV;function ad(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&oH?new eH:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=nG}var F$=rG,oG=rl,aG=F$,iG=Xo,sG="[object Arguments]",lG="[object Array]",cG="[object Boolean]",uG="[object Date]",dG="[object Error]",fG="[object Function]",pG="[object Map]",hG="[object Number]",mG="[object Object]",vG="[object RegExp]",gG="[object Set]",yG="[object String]",bG="[object WeakMap]",xG="[object ArrayBuffer]",wG="[object DataView]",CG="[object Float32Array]",$G="[object Float64Array]",SG="[object Int8Array]",_G="[object Int16Array]",EG="[object Int32Array]",PG="[object Uint8Array]",TG="[object Uint8ClampedArray]",kG="[object Uint16Array]",OG="[object Uint32Array]",An={};An[CG]=An[$G]=An[SG]=An[_G]=An[EG]=An[PG]=An[TG]=An[kG]=An[OG]=!0;An[sG]=An[lG]=An[xG]=An[cG]=An[wG]=An[uG]=An[dG]=An[fG]=An[pG]=An[hG]=An[mG]=An[vG]=An[gG]=An[yG]=An[bG]=!1;function RG(e){return iG(e)&&aG(e.length)&&!!An[oG(e)]}var DG=RG;function MG(e){return function(t){return e(t)}}var z$=MG,pg={exports:{}};pg.exports;(function(e,t){var n=f3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(pg,pg.exports);var B$=pg.exports,IG=DG,AG=z$,Pk=B$,Tk=Pk&&Pk.isTypedArray,NG=Tk?AG(Tk):IG,hy=NG,Ob,kk;function _3(){if(kk)return Ob;kk=1;var e=BH(),t=Hp,n=lr,r=Gp,o=qp,a=hy,i=Object.prototype,s=i.hasOwnProperty;function l(c,u){var f=n(c),p=!f&&t(c),m=!f&&!p&&r(c),b=!f&&!p&&!m&&a(c),v=f||p||m||b,x=v?e(c.length,String):[],g=x.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||o(y,g)))&&x.push(y);return x}return Ob=l,Ob}var jG=Object.prototype;function LG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jG;return e===n}var my=LG;function FG(e,t){return function(n){return e(t(n))}}var E3=FG,zG=E3,BG=zG(Object.keys,Object),VG=BG,UG=my,WG=VG,HG=Object.prototype,GG=HG.hasOwnProperty;function qG(e){if(!UG(e))return WG(e);var t=[];for(var n in Object(e))GG.call(e,n)&&n!="constructor"&&t.push(n);return t}var V$=qG,YG=Wp,KG=F$;function JG(e){return e!=null&&KG(e.length)&&!YG(e)}var os=JG,Rb,Ok;function _i(){if(Ok)return Rb;Ok=1;var e=_3(),t=V$,n=os;function r(o){return n(o)?e(o):t(o)}return Rb=r,Rb}var ZG=w3,XG=L$,QG=_i();function eq(e){return ZG(e,QG,XG)}var P3=eq,Rk=P3,tq=1,nq=Object.prototype,rq=nq.hasOwnProperty;function oq(e,t,n,r,o,a){var i=n&tq,s=Rk(e),l=s.length,c=Rk(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:rq.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:KJ(e,t,n)}var ZJ=JJ,XJ="\\ud800-\\udfff",QJ="\\u0300-\\u036f",eZ="\\ufe20-\\ufe2f",tZ="\\u20d0-\\u20ff",nZ=QJ+eZ+tZ,rZ="\\ufe0e\\ufe0f",oZ="\\u200d",aZ=RegExp("["+oZ+XJ+nZ+rZ+"]");function iZ(e){return aZ.test(e)}var t4=iZ;function sZ(e){return e.split("")}var lZ=sZ,n4="\\ud800-\\udfff",cZ="\\u0300-\\u036f",uZ="\\ufe20-\\ufe2f",dZ="\\u20d0-\\u20ff",fZ=cZ+uZ+dZ,pZ="\\ufe0e\\ufe0f",hZ="["+n4+"]",Bw="["+fZ+"]",Vw="\\ud83c[\\udffb-\\udfff]",mZ="(?:"+Bw+"|"+Vw+")",r4="[^"+n4+"]",o4="(?:\\ud83c[\\udde6-\\uddff]){2}",a4="[\\ud800-\\udbff][\\udc00-\\udfff]",vZ="\\u200d",i4=mZ+"?",s4="["+pZ+"]?",gZ="(?:"+vZ+"(?:"+[r4,o4,a4].join("|")+")"+s4+i4+")*",yZ=s4+i4+gZ,bZ="(?:"+[r4+Bw+"?",Bw,o4,a4,hZ].join("|")+")",xZ=RegExp(Vw+"(?="+Vw+")|"+bZ+yZ,"g");function wZ(e){return e.match(xZ)||[]}var CZ=wZ,$Z=lZ,SZ=t4,_Z=CZ;function EZ(e){return SZ(e)?_Z(e):$Z(e)}var PZ=EZ,TZ=ZJ,kZ=t4,OZ=PZ,RZ=dd;function DZ(e){return function(t){t=RZ(t);var n=kZ(t)?OZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?TZ(n,1).join(""):t.slice(1);return r[e]()+o}}var MZ=DZ,IZ=MZ,AZ=IZ("toUpperCase"),NZ=AZ,jZ=qJ,LZ=NZ,FZ=jZ(function(e,t,n){return e+(n?" ":"")+LZ(t)}),l4=FZ;const yy=Bt(l4);var zZ=_i();const BZ=Bt(zZ);var VZ=ic,UZ=function(){try{var e=VZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),c4=UZ,Zk=c4;function WZ(e,t,n){t=="__proto__"&&Zk?Zk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var q$=WZ,HZ=q$,GZ=Up;function qZ(e,t,n){(n!==void 0&&!GZ(e[t],n)||n===void 0&&!(t in e))&&HZ(e,t,n)}var u4=qZ;function YZ(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var KZ=YZ,JZ=KZ,ZZ=JZ(),d4=ZZ,hg={exports:{}};hg.exports;(function(e,t){var n=so,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(hg,hg.exports);var f4=hg.exports,Xk=y3;function XZ(e){var t=new e.constructor(e.byteLength);return new Xk(t).set(new Xk(e)),t}var Y$=XZ,QZ=Y$;function eX(e,t){var n=t?QZ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var p4=eX;function tX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=SQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var x4=PQ,TQ=$Q,kQ=x4,OQ=kQ(TQ),Q$=OQ,RQ=vy,DQ=b4,MQ=Q$;function IQ(e,t){return MQ(DQ(e,t,RQ),e+"")}var w4=IQ,AQ=Up,NQ=os,jQ=qp,LQ=Qo;function FQ(e,t,n){if(!LQ(n))return!1;var r=typeof t;return(r=="number"?NQ(n)&&jQ(t,n.length):r=="string"&&t in n)?AQ(n[t],e):!1}var C4=FQ,zQ=w4,BQ=C4;function VQ(e){return zQ(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&BQ(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,le&&le<=Z?re:Ib(re,Z)):re}},mixin:function(N){return function(V){var Z=this;if(!C(Z))return N(Z,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,Z.prototype[le]])}),N(Z,Object(V)),g(re,function(le){var xe=le[1];C(xe)?Z.prototype[le[0]]=xe:delete Z.prototype[le[0]]}),Z}},nthArg:function(N){return function(V){var Z=V<0?1:k(V)+1;return x(N(V),Z)}},rearg:function(N){return function(V,Z){var re=Z?Z.length:0;return x(N(V,Z),re)}},runInContext:function(N){return function(V){return Uw(e,N(V),r)}}};function U(N,V){if(i.cap){var Z=yr.iterateeRearg[N];if(Z)return X(V,Z);var re=!o&&yr.iterateeAry[N];if(re)return J(V,re)}return V}function G(N,V,Z){return l||i.curry&&Z>1?x(V,Z):V}function B(N,V,Z){if(i.fixed&&(c||!yr.skipFixed[N])){var re=yr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,Z):Sne(V,le)}return V}function z(N,V,Z){return i.rearg&&Z>1&&(u||!yr.skipRearg[N])?E(V,yr.methodRearg[N]||yr.aryRearg[Z]):V}function Y(N,V){V=I(V);for(var Z=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Qne,`{ -/* [wrapped with `+t+`] */ -`)}var tre=ere;function nre(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var z4=fre,pre=eS,hre=z4,mre=1,vre=2,gre=8,yre=16,bre=32,xre=64,wre=128,Cre=256,$re=512,Sre=[["ary",wre],["bind",mre],["bindKey",vre],["curry",gre],["curryRight",yre],["flip",$re],["partial",bre],["partialRight",xre],["rearg",Cre]];function _re(e,t){return pre(Sre,function(n){var r="_."+n[0];t&n[1]&&!hre(e,r)&&e.push(r)}),e.sort()}var Ere=_re,Pre=Xne,Tre=tre,kre=Q$,Ore=Ere;function Rre(e,t,n){var r=t+"";return kre(e,Tre(r,Ore(Pre(r),n)))}var B4=Rre,Dre=N4(),Mre=j4,Ire=B4,Are=1,Nre=2,jre=4,Lre=8,TO=32,kO=64;function Fre(e,t,n,r,o,a,i,s,l,c){var u=t&Lre,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?TO:kO,t&=~(u?kO:TO),t&jre||(t&=~(Are|Nre));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Dre(e)&&Mre(x,v),x.placeholder=r,Ire(x,e,t)}var V4=Fre;function zre(e){var t=e;return t.placeholder}var U4=zre,Bre=Kp,Vre=qp,Ure=Math.min;function Wre(e,t){for(var n=e.length,r=Ure(t.length,n),o=Bre(e);r--;){var a=t[r];e[r]=Vre(a,n)?o[a]:void 0}return e}var Hre=Wre,OO="__lodash_placeholder__";function Gre(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?Y4(s,t-1,n,r,o):Lae(o,s):r||(o[o.length]=s)}return o}var K4=Y4,zae=K4;function Bae(e){var t=e==null?0:e.length;return t?zae(e,1):[]}var Vae=Bae,Uae=Vae,Wae=b4,Hae=Q$;function Gae(e){return Hae(Wae(e,void 0,Uae),e+"")}var lS=Gae,qae=iS,Yae=lS,Kae=256,Jae=Yae(function(e,t){return qae(e,Kae,void 0,void 0,void 0,t)}),Zae=Jae,Xae=ud,Qae=Kp,eie=lr,tie=od,nie=A3,rie=lc,oie=dd;function aie(e){return eie(e)?Xae(e,rie):tie(e)?[e]:Qae(nie(oie(e)))}var iie=aie,sie={ary:cae,assign:$4,clone:pae,curry:vae,forEach:eS,isArray:lr,isError:$ae,isFunction:Wp,isWeakMap:Tae,iteratee:Mae,keys:V$,rearg:Zae,toInteger:Zp,toPath:iie},lie=_ne,cie=sie;function uie(e,t,n){return lie(cie,e,t,n)}var pd=uie,Jb,HO;function die(){if(HO)return Jb;HO=1;var e=Z$,t=Yp,n=qp,r=Qo,o=lc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Jie=Kie,Zie=Jie,Xie=j3,Qie=Zp,ese=dd;function tse(e,t,n){e=ese(e),t=Xie(t);var r=e.length;n=n===void 0?r:Zie(Qie(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var nse=tse;const rse=Bt(nse);function ose(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var ase=ose,ise=z3,sse=cS,lse=cc,cse=ase,use=lr;function dse(e,t,n){var r=use(e)?ise:cse,o=arguments.length<3;return r(e,lse(t),n,o,sse)}var fse=dse;const Ww=Bt(fse);var pse=ud;function hse(e,t){return pse(t,function(n){return[n,e[n]]})}var mse=hse;function vse(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var gse=vse,yse=mse,bse=sc,xse=b3,wse=gse,Cse="[object Map]",$se="[object Set]";function Sse(e){return function(t){var n=bse(t);return n==Cse?xse(t):n==$se?wse(t):yse(t,e(t))}}var _se=Sse,Ese=_se,Pse=_i(),Tse=Ese(Pse),kse=Tse;const Ose=Bt(kse);var Rse=rl,Dse=lr,Mse=Xo,Ise="[object String]";function Ase(e){return typeof e=="string"||!Dse(e)&&Mse(e)&&Rse(e)==Ise}var Nse=Ase,jse=ud;function Lse(e,t){return jse(t,function(n){return e[n]})}var Fse=Lse,zse=Fse,Bse=_i();function Vse(e){return e==null?[]:zse(e,Bse(e))}var Use=Vse,Wse=F4,Hse=os,Gse=Nse,qse=Zp,Yse=Use,Kse=Math.max;function Jse(e,t,n,r){e=Hse(e)?e:Yse(e),n=n&&!r?qse(n):0;var o=e.length;return n<0&&(n=Kse(o+n,0)),Gse(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wse(e,t,n)>-1}var Zse=Jse;const eN=Bt(Zse);var Xse=cc,Qse=os,ele=_i();function tle(e){return function(t,n,r){var o=Object(t);if(!Qse(t)){var a=Xse(n);t=ele(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var nle=tle,rle=L4,ole=cc,ale=Zp,ile=Math.max;function sle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:ale(n);return o<0&&(o=ile(r+o,0)),rle(e,ole(t),o)}var lle=sle,cle=nle,ule=lle,dle=cle(ule),fle=dle;const uS=Bt(fle);var ple=Math.ceil,hle=Math.max;function mle(e,t,n,r){for(var o=-1,a=hle(ple((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var vle=mle,gle=vle,yle=C4,Xb=q4;function ble(e){return function(t,n,r){return r&&typeof r!="number"&&yle(t,n,r)&&(n=r=void 0),t=Xb(t),n===void 0?(n=t,t=0):n=Xb(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(Gw);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yp,n=Gw;var r=yp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=Gw;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,V){super(),this.varKind=D,this.name=N,this.rhs=V}render({es5:D,_n:N}){const V=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,V){super(),this.lhs=D,this.rhs=N,this.sideEffects=V}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,V,Z){super(D,V,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=B(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,V)=>N+V.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const V=D[N].optimizeNodes();Array.isArray(V)?D.splice(N,1,...V):V?D[N]=V:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:V}=this;let Z=V.length;for(;Z--;){const re=V[Z];re.optimizeNames(D,N)||(z(D,re.names),V.splice(Z,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const V=N.optimizeNodes();N=this.else=Array.isArray(V)?new x(V):V}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=B(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=B(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,V,Z){super(),this.varKind=D,this.name=N,this.from=V,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:V,from:Z,to:re}=this;return`for(${N} ${V}=${Z}; ${V}<${re}; ${V}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,V,Z){super(),this.loop=D,this.varKind=N,this.name=V,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=B(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class $ extends b{constructor(D,N,V){super(),this.name=D,this.args=N,this.async=V}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}$.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var V,Z;return super.optimizeNames(D,N),(V=this.catch)===null||V===void 0||V.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const V=this._extScope.value(D,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,V,Z){const re=this._scope.toName(N);return V!==void 0&&Z&&(this._constants[re.str]=V),this._leafNode(new i(D,re,V)),re}const(D,N,V){return this._def(n.varKinds.const,D,N,V)}let(D,N,V){return this._def(n.varKinds.let,D,N,V)}var(D,N,V){return this._def(n.varKinds.var,D,N,V)}assign(D,N,V){return this._leafNode(new s(D,N,V))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[V,Z]of D)N.length>1&&N.push(","),N.push(V),(V!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,V){if(this._blockNode(new g(D)),N&&V)this.code(N).else().code(V).endIf();else if(N)this.code(N).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,V,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(D);return this._for(new C(re,le,N,V),()=>Z(le))}forOf(D,N,V,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const le=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${le}.length`,xe=>{this.var(re,(0,t._)`${le}[${xe}]`),V(re)})}return this._for(new _("of",Z,re,N),()=>V(re))}forIn(D,N,V,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return V&&(this._currNode=Z.finally=new R,this.code(V)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-N;if(V<0||D!==void 0&&V!==D)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,V,Z){return this._blockNode(new $(D,N,V)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const V=this._currNode;if(V instanceof D||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function B(q,D,N){if(q instanceof t.Name)return V(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,le)=>(le instanceof t.Name&&(le=V(le)),le instanceof t._Code?re.push(...le._items):re.push(le),re),[]));function V(re){const le=N[re.str];return le===void 0||D[re.str]!==1?re:(delete D[re.str],le)}function Z(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&D[le.str]===1&&N[le.str]!==void 0)}}function z(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=L(e.operators.AND);function H(...q){return q.reduce(Q)}e.and=H;const J=L(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function L(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=yp;function r($){const E={};for(const k of $)E[k]=!0;return E}e.toHash=r;function o($,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a($,E),!i(E,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,E=$.schema){const{opts:k,self:I}=$;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,E){if(typeof $=="boolean")return!$;for(const k in $)if(E[k])return!0;return!1}e.schemaHasRules=i;function s($,E){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c($){return p(decodeURIComponent($))}e.unescapeFragment=c;function u($){return encodeURIComponent(f($))}e.escapeFragment=u;function f($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m($,E){if(Array.isArray($))for(const k of $)E(k);else E($)}e.eachItem=m;function b({mergeNames:$,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const B=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?$(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(B instanceof t.Name)?I(R,B):B}}e.mergeEvaluated={props:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{$.if((0,t._)`${E} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>{E===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),x($,k,E))}),mergeValues:($,E)=>$===!0?!0:{...$,...E},resultToName:v}),items:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>$.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:($,E)=>$===!0?!0:Math.max($,E),resultToName:($,E)=>$.var("items",E)})};function v($,E){if(E===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return E!==void 0&&x($,k,E),k}e.evaluatedPropsToName=v;function x($,E,k){Object.keys(k).forEach(I=>$.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y($,E){return $.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(w=e.Type||(e.Type={}));function C($,E,k){if($ instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,E,k=$.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);$.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});const Br=Jt,Mle={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ei.default=Mle;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ei;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:$,allErrors:E}=C,k=f(x,g,y);w??($||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:$}=w,E=f(x,g,y);l(C,E),_||$||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const $=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const($,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${$}.instancePath === undefined`,()=>x.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${$}.schema`,y),x.assign((0,t._)`${$}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:$,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,$],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(Xp);Object.defineProperty(zu,"__esModule",{value:!0});zu.boolOrEmptySchema=zu.topBoolOrEmptySchema=void 0;const Ile=Xp,Ale=Jt,Nle=Ei,jle={message:"boolean schema is false"};function Lle(e){const{gen:t,schema:n,validateName:r}=e;n===!1?nN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Nle.default.data):(t.assign((0,Ale._)`${r}.errors`,null),t.return(!0))}zu.topBoolOrEmptySchema=Lle;function Fle(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),nN(e)):n.var(t,!0)}zu.boolOrEmptySchema=Fle;function nN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Ile.reportError)(o,jle,void 0,t)}var Qp={},Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.getRules=Kl.isJSONType=void 0;const zle=["string","number","integer","boolean","null","object","array"],Ble=new Set(zle);function Vle(e){return typeof e=="string"&&Ble.has(e)}Kl.isJSONType=Vle;function Ule(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Kl.getRules=Ule;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.shouldUseRule=qi.shouldUseGroup=qi.schemaHasRulesForType=void 0;function Wle({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&rN(e,r)}qi.schemaHasRulesForType=Wle;function rN(e,t){return t.rules.some(n=>oN(e,n))}qi.shouldUseGroup=rN;function oN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}qi.shouldUseRule=oN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Kl,n=qi,r=Xp,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:$,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,$,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:$,data:E,opts:k}=w,I=$.let("dataType",(0,o._)`typeof ${E}`),R=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>$.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>$.assign(R,E))),$.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);$.else(),g(w),$.endIf(),$.if((0,o._)`${R} !== undefined`,()=>{$.assign(E,R),m(w,R)});function F(U){switch(U){case"string":$.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${I} == "boolean" || ${E} === null - || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":$.elseIf((0,o._)`${I} === "boolean" || ${E} === null - || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":$.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":$.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),$.assign(R,null);return;case"array":$.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},$){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,$))}function b(w,C,_,$=i.Correct){const E=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return $===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,$){if(w.length===1)return b(w[0],C,_,$);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,$));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:$}=w,E=(0,a.schemaRefOrVal)(w,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:E,schemaValue:E,parentSchema:$,params:{},it:w}}})(Qp);var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.assignDefaults=void 0;const jc=Jt,Hle=dn;function Gle(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)qO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>qO(e,a,o.default))}Cy.assignDefaults=Gle;function qO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,jc._)`${a}${(0,jc.getProperty)(t)}`;if(o){(0,Hle.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,jc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,jc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,jc._)`${s} = ${(0,jc.stringify)(n)}`)}var hi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const Nn=Jt,dS=dn,ws=Ei,qle=dn;function Yle(e,t){const{gen:n,data:r,it:o}=e;n.if(pS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Nn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Yle;function Kle({gen:e,data:t,it:{opts:n}},r,o){return(0,Nn.or)(...r.map(a=>(0,Nn.and)(pS(e,t,a,n.ownProperties),(0,Nn._)`${o} = ${a}`)))}Qt.checkMissingProp=Kle;function Jle(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Jle;function aN(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=aN;function fS(e,t,n){return(0,Nn._)`${aN(e)}.call(${t}, ${n})`}Qt.isOwnProperty=fS;function Zle(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} !== undefined`;return r?(0,Nn._)`${o} && ${fS(e,t,n)}`:o}Qt.propertyInData=Zle;function pS(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} === undefined`;return r?(0,Nn.or)(o,(0,Nn.not)(fS(e,t,n))):o}Qt.noPropertyInData=pS;function iN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=iN;function Xle(e,t){return iN(t).filter(n=>!(0,dS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=Xle;function Qle({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,Nn._)`${e}, ${t}, ${r}${o}`:t,f=[[ws.default.instancePath,(0,Nn.strConcat)(ws.default.instancePath,a)],[ws.default.parentData,i.parentData],[ws.default.parentDataProperty,i.parentDataProperty],[ws.default.rootData,ws.default.rootData]];i.opts.dynamicRef&&f.push([ws.default.dynamicAnchors,ws.default.dynamicAnchors]);const p=(0,Nn._)`${u}, ${n.object(...f)}`;return l!==Nn.nil?(0,Nn._)`${s}.call(${l}, ${p})`:(0,Nn._)`${s}(${p})`}Qt.callValidateCode=Qle;const ece=(0,Nn._)`new RegExp`;function tce({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Nn._)`${o.code==="new RegExp"?ece:(0,qle.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=tce;function nce(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,Nn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:dS.Type.Num},a),t.if((0,Nn.not)(a),s)})}}Qt.validateArray=nce;function rce(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,dS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,Nn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,Nn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=rce;Object.defineProperty(hi,"__esModule",{value:!0});hi.validateKeywordUsage=hi.validSchemaType=hi.funcKeywordCode=hi.macroKeywordCode=void 0;const no=Jt,Rl=Ei,oce=Qt,ace=Xp;function ice(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=sN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:no.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}hi.macroKeywordCode=ice;function sce(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;cce(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=sN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&YO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&YO(e),x(()=>lce(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,no._)`await `),y=>r.assign(f,!1).if((0,no._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,no._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,no._)`${u}.errors`;return r.assign(g,null),v(no.nil),g}function v(g=t.async?(0,no._)`await `:no.nil){const y=l.opts.passContext?Rl.default.this:Rl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,no._)`${g}${(0,oce.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,no.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}hi.funcKeywordCode=sce;function YO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,no._)`${r.parentData}[${r.parentDataProperty}]`))}function lce(e,t){const{gen:n}=e;n.if((0,no._)`Array.isArray(${t})`,()=>{n.assign(Rl.default.vErrors,(0,no._)`${Rl.default.vErrors} === null ? ${t} : ${Rl.default.vErrors}.concat(${t})`).assign(Rl.default.errors,(0,no._)`${Rl.default.vErrors}.length`),(0,ace.extendErrors)(e)},()=>e.error())}function cce({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function sN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,no.stringify)(n)})}function uce(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}hi.validSchemaType=uce;function dce({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}hi.validateKeywordUsage=dce;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.extendSubschemaMode=qs.extendSubschemaData=qs.getSubschema=void 0;const ui=Jt,lN=dn;function fce(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,lN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}qs.getSubschema=fce;function pce(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(n)}`,!0);l(p),e.errorPath=(0,ui.str)`${c}${(0,lN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof ui.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}qs.extendSubschemaData=pce;function hce(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}qs.extendSubschemaMode=hce;var Ir={},cN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},uN={exports:{}},As=uN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};$v(t,r,o,e,"",e)};As.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};As.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};As.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};As.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $v(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in As.arrayKeywords)for(var p=0;pt+=dN(r)),t===1/0))return 1/0}return t}function fN(e,t="",n){n!==!1&&(t=_u(t));const r=e.parse(t);return pN(e,r)}Ir.getFullPath=fN;function pN(e,t){return e.serialize(t).split("#")[0]+"#"}Ir._getFullPath=pN;const $ce=/#\/?$/;function _u(e){return e?e.replace($ce,""):""}Ir.normalizeId=_u;function Sce(e,t,n){return n=_u(n),e.resolve(t,n)}Ir.resolveUrl=Sce;const _ce=/^[a-z_][-a-z0-9._]*$/i;function Ece(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=_u(e[n]||t),a={"":o},i=fN(r,o,!1),s={},l=new Set;return bce(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=_u(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==_u(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!_ce.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!yce(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ir.getSchemaRefs=Ece;Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getData=Wa.KeywordCxt=Wa.validateFunctionCode=void 0;const hN=zu,KO=Qp,hS=qi,vg=Qp,Pce=Cy,Lf=hi,Qb=qs,St=Jt,Lt=Ei,Tce=Ir,Yi=dn,ef=Xp;function kce(e){if(gN(e)&&(yN(e),vN(e))){Dce(e);return}mN(e,()=>(0,hN.topBoolOrEmptySchema)(e))}Wa.validateFunctionCode=kce;function mN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${JO(n,o)}`),Rce(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Oce(o)}`,r.$async,()=>e.code(JO(n,o)).code(a))}function Oce(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Rce(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Dce(e){const{schema:t,opts:n,gen:r}=e;mN(e,()=>{n.$comment&&t.$comment&&xN(e),jce(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Mce(e),bN(e),zce(e)})}function Mce(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function JO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function Ice(e,t){if(gN(e)&&(yN(e),vN(e))){Ace(e,t);return}(0,hN.boolOrEmptySchema)(e,t)}function vN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function gN(e){return typeof e.schema!="boolean"}function Ace(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&xN(e),Lce(e),Fce(e);const a=r.const("_errs",Lt.default.errors);bN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function yN(e){(0,Yi.checkUnknownRules)(e),Nce(e)}function bN(e,t){if(e.opts.jtd)return ZO(e,[],!1,t);const n=(0,KO.getSchemaTypes)(e.schema),r=(0,KO.coerceAndCheckDataType)(e,n);ZO(e,n,!r,t)}function Nce(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Yi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function jce(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Yi.checkStrictMode)(e,"default is ignored in the schema root")}function Lce(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Tce.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Fce(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function xN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function zce(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Bce(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Bce({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function ZO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Yi.schemaHasRulesButRef)(a,u))){o.block(()=>$N(e,"$ref",u.all.$ref.definition));return}l.jtd||Vce(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,hS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,vg.checkDataType)(p.type,i,l.strictNumbers)),XO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,vg.reportTypeError)(e)),o.endIf()):XO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function XO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Pce.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,hS.shouldUseRule)(r,a)&&$N(e,a.keyword,a.definition,t.type)})}function Vce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Uce(e,t),e.opts.allowUnionTypes||Wce(e,t),Hce(e,e.dataTypes))}function Uce(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{wN(e.dataTypes,n)||mS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),qce(e,t)}}function Wce(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mS(e,"use allowUnionTypes to allow union type keyword")}function Hce(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,hS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Gce(t,i))&&mS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Gce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function wN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qce(e,t){const n=[];for(const r of e.dataTypes)wN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function mS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Yi.checkStrictMode)(e,t,e.opts.strictTypes)}class CN{constructor(t,n,r){if((0,Lf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",SN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Lf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?ef.reportExtraError:ef.reportError)(this,this.def.error,n)}$dataError(){(0,ef.reportError)(this,this.def.$dataError||ef.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ef.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,vg.checkDataTypes)(l,n,a.opts.strictNumbers,vg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Qb.getSubschema)(this.it,t);(0,Qb.extendSubschemaData)(r,this.it,t),(0,Qb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Ice(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Yi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Yi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Wa.KeywordCxt=CN;function $N(e,t,n,r){const o=new CN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Lf.funcKeywordCode)(o,n):"macro"in n?(0,Lf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Lf.funcKeywordCode)(o,n)}const Yce=/^\/(?:[^~]|~0|~1)*$/,Kce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function SN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Yce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Kce.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Yi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Wa.getData=SN;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});class Jce extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}eh.default=Jce;var th={};Object.defineProperty(th,"__esModule",{value:!0});const ex=Ir;class Zce extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,ex.resolveUrl)(t,n,r),this.missingSchema=(0,ex.normalizeId)((0,ex.getFullPath)(t,this.missingRef))}}th.default=Zce;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.resolveSchema=go.getCompilingSchema=go.resolveRef=go.compileSchema=go.SchemaEnv=void 0;const Oa=Jt,Xce=eh,xl=Ei,ja=Ir,QO=dn,Qce=Wa;class $y{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,ja.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}go.SchemaEnv=$y;function vS(e){const t=_N.call(this,e);if(t)return t;const n=(0,ja.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Oa.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:Xce.default,code:(0,Oa._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:xl.default.data,parentData:xl.default.parentData,parentDataProperty:xl.default.parentDataProperty,dataNames:[xl.default.data],dataPathArr:[Oa.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Oa.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Oa.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Oa._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Qce.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(xl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${xl.default.self}`,`${xl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Oa.Name?void 0:b,items:v instanceof Oa.Name?void 0:v,dynamicProps:b instanceof Oa.Name,dynamicItems:v instanceof Oa.Name},m.source&&(m.source.evaluated=(0,Oa.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}go.compileSchema=vS;function eue(e,t,n){var r;n=(0,ja.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=rue.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new $y({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=tue.call(this,a)}go.resolveRef=eue;function tue(e){return(0,ja.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vS.call(this,e)}function _N(e){for(const t of this._compilations)if(nue(t,e))return t}go.getCompilingSchema=_N;function nue(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function rue(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Sy.call(this,e,t)}function Sy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,ja._getFullPath)(this.opts.uriResolver,n);let o=(0,ja.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return tx.call(this,n,e);const a=(0,ja.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=Sy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:tx.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||vS.call(this,i),a===(0,ja.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,ja.resolveUrl)(this.opts.uriResolver,o,c)),new $y({schema:s,schemaId:l,root:e,baseId:o})}return tx.call(this,n,i)}}go.resolveSchema=Sy;const oue=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tx(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,QO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!oue.has(s)&&c&&(t=(0,ja.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,QO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,ja.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Sy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new $y({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const aue="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",iue="Meta-schema for $data reference (JSON AnySchema extension proposal)",sue="object",lue=["$data"],cue={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},uue=!1,due={$id:aue,description:iue,type:sue,required:lue,properties:cue,additionalProperties:uue};var gS={},Yw={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(yo,function(n){function r(){for(var se=arguments.length,oe=Array(se),ue=0;ue1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function B(se){throw new RangeError(R[se])}function z(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function Y(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(I,".");var Ee=se.split("."),pt=z(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=U(oe/ue);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var ue=[],ke=oe.length,Ee=0,pt=_,me=C,pe=oe.lastIndexOf($);pe<0&&(pe=0);for(var De=0;De=128&&B("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&B("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>U((b-Ee)/xt))&&B("overflow"),Ee+=ut*xt;var yt=Nt<=me?x:Nt>=me+g?g:Nt-me;if(utU(b/Wt)&&B("overflow"),xt*=Wt}var En=ue.length+1;me=L(Ee-lt,En,lt==0),U(Ee/En)>b-pt&&B("overflow"),pt+=U(Ee/En),Ee%=En,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},q=function(oe){var ue=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,me=C,pe=!0,De=!1,nt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(pe=(xt=lt.next()).done);pe=!0){var Nt=xt.value;Nt<128&&ue.push(G(Nt))}}catch(co){De=!0,nt=co}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&ZaU((b-pt)/Kr)&&B("overflow"),pt+=(Wt-Ee)*Kr,Ee=Wt;var Do=!0,Xa=!1,Un=void 0;try{for(var dl=oe[Symbol.iterator](),Jr;!(Do=(Jr=dl.next()).done);Do=!0){var $h=Jr.value;if($hb&&B("overflow"),$h==Ee){for(var fl=pt,Mo=v;;Mo+=v){var Oi=Mo<=me?x:Mo>=me+g?g:Mo-me;if(fl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():ue="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),ue}function le(se){for(var oe="",ue=0,ke=se.length;ue=194&&Ee<224){if(ke-ue>=6){var pt=parseInt(se.substr(ue+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=se.substr(ue,6);ue+=6}else if(Ee>=224){if(ke-ue>=9){var me=parseInt(se.substr(ue+4,2),16),pe=parseInt(se.substr(ue+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(me&63)<<6|pe&63)}else oe+=se.substr(ue,9);ue+=9}else oe+=se.substr(ue,3),ue+=3}return oe}function xe(se,oe){function ue(ke){var Ee=le(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return se.scheme&&(se.scheme=String(se.scheme).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),se.host!==void 0&&(se.host=String(se.host).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),se.path!==void 0&&(se.path=String(se.path).replace(oe.PCT_ENCODED,ue).replace(se.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),se.query!==void 0&&(se.query=String(se.query).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),se}function fe(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ge(se,oe){var ue=se.match(oe.IPV4ADDRESS)||[],ke=p(ue,2),Ee=ke[1];return Ee?Ee.split(".").map(fe).join("."):se}function he(se,oe){var ue=se.match(oe.IPV6ADDRESS)||[],ke=p(ue,3),Ee=ke[1],pt=ke[2];if(Ee){for(var me=Ee.toLowerCase().split("::").reverse(),pe=p(me,2),De=pe[0],nt=pe[1],lt=nt?nt.split(":").map(fe):[],xt=De.split(":").map(fe),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),En=0;En1){var ki=Wt.slice(0,Vn.index),Za=Wt.slice(Vn.index+Vn.length);Ro=ki.join(":")+"::"+Za.join(":")}else Ro=Wt.join(":");return pt&&(Ro+="%"+pt),Ro}else return se}var _e=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Be(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(se=(oe.scheme?oe.scheme+":":"")+"//"+se);var Ee=se.match(_e);if(Ee){ve?(ue.scheme=Ee[1],ue.userinfo=Ee[3],ue.host=Ee[4],ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=Ee[7],ue.fragment=Ee[8],isNaN(ue.port)&&(ue.port=Ee[5])):(ue.scheme=Ee[1]||void 0,ue.userinfo=se.indexOf("@")!==-1?Ee[3]:void 0,ue.host=se.indexOf("//")!==-1?Ee[4]:void 0,ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=se.indexOf("?")!==-1?Ee[7]:void 0,ue.fragment=se.indexOf("#")!==-1?Ee[8]:void 0,isNaN(ue.port)&&(ue.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),ue.host&&(ue.host=he(ge(ue.host,ke),ke)),ue.scheme===void 0&&ue.userinfo===void 0&&ue.host===void 0&&ue.port===void 0&&!ue.path&&ue.query===void 0?ue.reference="same-document":ue.scheme===void 0?ue.reference="relative":ue.fragment===void 0?ue.reference="absolute":ue.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==ue.reference&&(ue.error=ue.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||ue.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(ue.host&&(oe.domainHost||pt&&pt.domainHost))try{ue.host=V.toASCII(ue.host.replace(ke.PCT_ENCODED,le).toLowerCase())}catch(me){ue.error=ue.error||"Host's domain name can not be converted to ASCII via punycode: "+me}xe(ue,u)}else xe(ue,ke);pt&&pt.parse&&pt.parse(ue,oe)}else ue.error=ue.error||"URI can not be parsed.";return ue}function Ue(se,oe){var ue=oe.iri!==!1?f:u,ke=[];return se.userinfo!==void 0&&(ke.push(se.userinfo),ke.push("@")),se.host!==void 0&&ke.push(he(ge(String(se.host),ue),ue).replace(ue.IPV6ADDRESS,function(Ee,pt,me){return"["+pt+(me?"%25"+me:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(ke.push(":"),ke.push(String(se.port))),ke.length?ke.join(""):void 0}var ze=/^\.\.?\//,He=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function Ce(se){for(var oe=[];se.length;)if(se.match(ze))se=se.replace(ze,"");else if(se.match(He))se=se.replace(He,"/");else if(se.match(be))se=se.replace(be,"/"),oe.pop();else if(se==="."||se==="..")se="";else{var ue=se.match(we);if(ue){var ke=ue[0];se=se.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function qe(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||se.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(se,oe),se.host&&!ue.IPV6ADDRESS.test(se.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{se.host=oe.iri?V.toUnicode(se.host):V.toASCII(se.host.replace(ue.PCT_ENCODED,le).toLowerCase())}catch(pe){se.error=se.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+pe}}xe(se,ue),oe.reference!=="suffix"&&se.scheme&&(ke.push(se.scheme),ke.push(":"));var pt=Ue(se,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),se.path&&se.path.charAt(0)!=="/"&&ke.push("/")),se.path!==void 0){var me=se.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(me=Ce(me)),pt===void 0&&(me=me.replace(/^\/\//,"/%2F")),ke.push(me)}return se.query!==void 0&&(ke.push("?"),ke.push(se.query)),se.fragment!==void 0&&(ke.push("#"),ke.push(se.fragment)),ke.join("")}function rt(se,oe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(se=Be(qe(se,ue),ue),oe=Be(qe(oe,ue),ue)),ue=ue||{},!ue.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=Ce(oe.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?Ee.path="/"+oe.path:se.path?Ee.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=Ce(Ee.path)),Ee.query=oe.query):(Ee.path=se.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=se.query),Ee.userinfo=se.userinfo,Ee.host=se.host,Ee.port=se.port),Ee.scheme=se.scheme),Ee.fragment=oe.fragment,Ee}function Ae(se,oe,ue){var ke=l({scheme:"null"},ue);return qe(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=qe(Be(se,oe),oe):a(se)==="object"&&(se=Be(qe(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=qe(Be(se,ue),ue):a(se)==="object"&&(se=qe(se,ue)),typeof oe=="string"?oe=qe(Be(oe,ue),ue):a(oe)==="object"&&(oe=qe(oe,ue)),se===oe}function Pe(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,le)}var it={scheme:"http",domainHost:!0,parse:function(oe,ue){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,ue){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ne={scheme:"ws",domainHost:!0,parse:function(oe,ue){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,ue){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],me=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=me,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$e="[0-9A-Fa-f]",Se=o(o("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+o("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+o("%"+$e+$e)),Ze="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(tt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(Se,"g"),Et=new RegExp(r("[^]",Ze,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(se){var oe=le(se);return oe.match(vt)?oe:se}var Vt={scheme:"mailto",parse:function(oe,ue){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,me={},pe=ke.query.split("&"),De=0,nt=pe.length;Denew RegExp(X,L);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var L,K,q,D,N,V,Z,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,qe,rt,Ae;const Le=X.strict,Fe=(L=X.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(V=(N=X.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=X.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=X.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=X.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=X.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=X.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=X.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=X.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=X.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=X.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(qe=X.validateFormats)!==null&&qe!==void 0?qe:!0,unicodeRegExp:(rt=X.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=X.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:it}}class C{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...w(L)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(L.logger);const D=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=R.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&I.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),E.call(this),L.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&L&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:L,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[K]||L:void 0}validate(L,K){let q;if(typeof L=="string"){if(q=this.getSchema(L),!q)throw new Error(`no schema with key or ref "${L}"`)}else q=this.compile(L);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(L,K){const q=this._addSchema(L,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(L,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,L,K);async function D(xe,fe){await N.call(this,xe.$schema);const ge=this._addSchema(xe,fe);return ge.validate||V.call(this,ge)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return Z.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function Z({missingSchema:xe,missingRef:fe}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${fe} cannot be resolved`)}async function re(xe){const fe=await le.call(this,xe);this.refs[xe]||await N.call(this,fe.$schema),this.refs[xe]||this.addSchema(fe,xe,K)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(L,K,q,D=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,q,D);return this}let N;if(typeof L=="object"){const{schemaId:V}=this.opts;if(N=L[V],N!==void 0&&typeof N!="string")throw new Error(`schema ${V} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(L,q,K,D,!0),this}addMetaSchema(L,K,q=this.opts.validateSchema){return this.addSchema(L,K,!0,q),this}validateSchema(L,K){if(typeof L=="boolean")return!0;let q;if(q=L.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,L);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(L){let K;for(;typeof(K=$.call(this,L))=="string";)L=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,L),!K)return;this.refs[L]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=$.call(this,L);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const K=L;this._cache.delete(K);let q=L[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const K of L)this.addKeyword(K);return this}addKeyword(L,K){let q;if(typeof L=="string")q=L,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof L=="object"&&K===void 0){if(K=L,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,q,K),!K)return(0,u.eachItem)(q,N=>z.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>z.call(this,N,D):N=>D.type.forEach(V=>z.call(this,N,D,V))),this}getKeyword(L){const K=this.RULES.all[L];return typeof K=="object"?K.definition:!!K}removeKeyword(L){const{RULES:K}=this;delete K.keywords[L],delete K.all[L];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===L);D>=0&&q.rules.splice(D,1)}return this}addFormat(L,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[L]=K,this}errorsText(L=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!L||L.length===0?"No errors":L.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(L,K){const q=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const D of K){const N=D.split("/").slice(1);let V=L;for(const Z of N)V=V[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[Z];le&&xe&&(V[Z]=J(xe))}}return L}_removeAllSchemas(L,K){for(const q in L){const D=L[q];(!K||K.test(q))&&(typeof D=="string"?delete L[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete L[q]))}}_addSchema(L,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:Z}=this.opts;if(typeof L=="object")V=L[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(L);if(re!==void 0)return re;q=(0,l.normalizeId)(V||q);const le=l.getSchemaRefs.call(this,L,q);return re=new i.SchemaEnv({schema:L,schemaId:Z,meta:K,baseId:q,localRefs:le}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(L,!0),re}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):i.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,L,K,q="error"){for(const D in X){const N=D;N in L&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function $(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const L in X)this.addSchema(X[L],L)}function k(){for(const X in this.opts.formats){const L=this.opts.formats[X];L&&this.addFormat(X,L)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in X){const K=X[L];K.keyword||(K.keyword=L),this.addKeyword(K)}}function R(){const X={...this.opts};for(const L of b)delete X[L];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function B(X,L){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function z(X,L,K){var q;const D=L==null?void 0:L.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=D?N.post:N.rules.find(({type:re})=>re===K);if(V||(V={type:K,rules:[]},N.rules.push(V)),N.keywords[X]=!0,!L)return;const Z={keyword:X,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?Y.call(this,V,Z,L.before):V.rules.push(Z),N.all[X]=Z,(q=L.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,L,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,L):(X.rules.push(L),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:L}=X;L!==void 0&&(X.$data&&this.opts.$data&&(L=J(L)),X.validateSchema=this.compile(L,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,H]}}})(tN);var yS={},bS={},xS={};Object.defineProperty(xS,"__esModule",{value:!0});const pue={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xS.default=pue;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.callRef=Jl.getValidate=void 0;const hue=th,eR=Qt,mo=Jt,Lc=Ei,tR=go,Mm=dn,mue={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=tR.resolveRef.call(l,c,o,n);if(u===void 0)throw new hue.default(r.opts.uriResolver,o,n);if(u instanceof tR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Sv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Sv(e,(0,mo._)`${b}.validate`,c,c.$async)}function p(b){const v=PN(e,b);Sv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,mo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:mo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function PN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,mo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Jl.getValidate=PN;function Sv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Lc.default.this:mo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,mo._)`await ${(0,eR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,mo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,eR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,mo._)`${b}.errors`;o.assign(Lc.default.vErrors,(0,mo._)`${Lc.default.vErrors} === null ? ${v} : ${Lc.default.vErrors}.concat(${v})`),o.assign(Lc.default.errors,(0,mo._)`${Lc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Mm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,mo._)`${b}.evaluated.props`);a.props=Mm.mergeEvaluated.props(o,g,a.props,mo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Mm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,mo._)`${b}.evaluated.items`);a.items=Mm.mergeEvaluated.items(o,g,a.items,mo.Name)}}}Jl.callRef=Sv;Jl.default=mue;Object.defineProperty(bS,"__esModule",{value:!0});const vue=xS,gue=Jl,yue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",vue.default,gue.default];bS.default=yue;var wS={},CS={};Object.defineProperty(CS,"__esModule",{value:!0});const gg=Jt,Cs=gg.operators,yg={maximum:{okStr:"<=",ok:Cs.LTE,fail:Cs.GT},minimum:{okStr:">=",ok:Cs.GTE,fail:Cs.LT},exclusiveMaximum:{okStr:"<",ok:Cs.LT,fail:Cs.GTE},exclusiveMinimum:{okStr:">",ok:Cs.GT,fail:Cs.LTE}},bue={message:({keyword:e,schemaCode:t})=>(0,gg.str)`must be ${yg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,gg._)`{comparison: ${yg[e].okStr}, limit: ${t}}`},xue={keyword:Object.keys(yg),type:"number",schemaType:"number",$data:!0,error:bue,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,gg._)`${n} ${yg[t].fail} ${r} || isNaN(${n})`)}};CS.default=xue;var $S={};Object.defineProperty($S,"__esModule",{value:!0});const Ff=Jt,wue={message:({schemaCode:e})=>(0,Ff.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ff._)`{multipleOf: ${e}}`},Cue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:wue,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Ff._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Ff._)`${i} !== parseInt(${i})`;e.fail$data((0,Ff._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};$S.default=Cue;var SS={},_S={};Object.defineProperty(_S,"__esModule",{value:!0});function TN(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Dl._)`{limit: ${e}}`},Eue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_ue,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Dl.operators.GT:Dl.operators.LT,i=o.opts.unicode===!1?(0,Dl._)`${n}.length`:(0,Dl._)`${(0,$ue.useFunc)(e.gen,Sue.default)}(${n})`;e.fail$data((0,Dl._)`${i} ${a} ${r}`)}};SS.default=Eue;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Pue=Qt,bg=Jt,Tue={message:({schemaCode:e})=>(0,bg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bg._)`{pattern: ${e}}`},kue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Tue,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,bg._)`(new RegExp(${o}, ${i}))`:(0,Pue.usePattern)(e,r);e.fail$data((0,bg._)`!${s}.test(${t})`)}};ES.default=kue;var PS={};Object.defineProperty(PS,"__esModule",{value:!0});const zf=Jt,Oue={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,zf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,zf._)`{limit: ${e}}`},Rue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Oue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?zf.operators.GT:zf.operators.LT;e.fail$data((0,zf._)`Object.keys(${n}).length ${o} ${r}`)}};PS.default=Rue;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const tf=Qt,Bf=Jt,Due=dn,Mue={message:({params:{missingProperty:e}})=>(0,Bf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bf._)`{missingProperty: ${e}}`},Iue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Mue,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Due.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Bf.nil,f);else for(const m of n)(0,tf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,tf.checkMissingProp)(e,n,m)),(0,tf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,tf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,tf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Bf.not)(b),()=>{e.error(),t.break()})},Bf.nil)}}};TS.default=Iue;var kS={};Object.defineProperty(kS,"__esModule",{value:!0});const Vf=Jt,Aue={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Vf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Vf._)`{limit: ${e}}`},Nue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Aue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Vf.operators.GT:Vf.operators.LT;e.fail$data((0,Vf._)`${n}.length ${o} ${r}`)}};kS.default=Nue;var OS={},nh={};Object.defineProperty(nh,"__esModule",{value:!0});const kN=cN;kN.code='require("ajv/dist/runtime/equal").default';nh.default=kN;Object.defineProperty(OS,"__esModule",{value:!0});const nx=Qp,Rr=Jt,jue=dn,Lue=nh,Fue={message:({params:{i:e,j:t}})=>(0,Rr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Rr._)`{i: ${e}, j: ${t}}`},zue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Fue,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,nx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Rr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Rr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Rr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,nx.checkDataTypes)(c,x,s.opts.strictNumbers,nx.DataType.Wrong),y=t.const("indices",(0,Rr._)`{}`);t.for((0,Rr._)`;${b}--;`,()=>{t.let(x,(0,Rr._)`${n}[${b}]`),t.if(g,(0,Rr._)`continue`),c.length>1&&t.if((0,Rr._)`typeof ${x} == "string"`,(0,Rr._)`${x} += "_"`),t.if((0,Rr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Rr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Rr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,jue.useFunc)(t,Lue.default),g=t.name("outer");t.label(g).for((0,Rr._)`;${b}--;`,()=>t.for((0,Rr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Rr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};OS.default=zue;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});const Kw=Jt,Bue=dn,Vue=nh,Uue={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kw._)`{allowedValue: ${e}}`},Wue={keyword:"const",$data:!0,error:Uue,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Kw._)`!${(0,Bue.useFunc)(t,Vue.default)}(${n}, ${o})`):e.fail((0,Kw._)`${a} !== ${n}`)}};RS.default=Wue;var DS={};Object.defineProperty(DS,"__esModule",{value:!0});const $f=Jt,Hue=dn,Gue=nh,que={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,$f._)`{allowedValues: ${e}}`},Yue={keyword:"enum",schemaType:"array",$data:!0,error:que,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Hue.useFunc)(t,Gue.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,$f.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,$f._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,$f._)`${c()}(${n}, ${m}[${b}])`:(0,$f._)`${n} === ${v}`}}};DS.default=Yue;Object.defineProperty(wS,"__esModule",{value:!0});const Kue=CS,Jue=$S,Zue=SS,Xue=ES,Que=PS,ede=TS,tde=kS,nde=OS,rde=RS,ode=DS,ade=[Kue.default,Jue.default,Zue.default,Xue.default,Que.default,ede.default,tde.default,nde.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rde.default,ode.default];wS.default=ade;var MS={},md={};Object.defineProperty(md,"__esModule",{value:!0});md.validateAdditionalItems=void 0;const Ml=Jt,Jw=dn,ide={message:({params:{len:e}})=>(0,Ml.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ml._)`{limit: ${e}}`},sde={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ide,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Jw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}ON(e,r)}};function ON(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Ml._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Ml._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,Jw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Ml._)`${s} <= ${t.length}`);n.if((0,Ml.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:Jw.Type.Num},c),i.allErrors||n.if((0,Ml.not)(c),()=>n.break())})}}md.validateAdditionalItems=ON;md.default=sde;var IS={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.validateTuple=void 0;const nR=Jt,_v=dn,lde=Qt,cde={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return RN(e,"additionalItems",t);n.items=!0,!(0,_v.alwaysValidSchema)(n,t)&&e.ok((0,lde.validateArray)(e))}};function RN(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=_v.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,nR._)`${a}.length`);n.forEach((f,p)=>{(0,_v.alwaysValidSchema)(s,f)||(r.if((0,nR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,_v.checkStrictMode)(s,x,p.strictTuples)}}}vd.validateTuple=RN;vd.default=cde;Object.defineProperty(IS,"__esModule",{value:!0});const ude=vd,dde={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ude.validateTuple)(e,"items")};IS.default=dde;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});const rR=Jt,fde=dn,pde=Qt,hde=md,mde={message:({params:{len:e}})=>(0,rR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rR._)`{limit: ${e}}`},vde={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mde,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,fde.alwaysValidSchema)(r,t)&&(o?(0,hde.validateAdditionalItems)(e,o):e.ok((0,pde.validateArray)(e)))}};AS.default=vde;var NS={};Object.defineProperty(NS,"__esModule",{value:!0});const ua=Jt,Im=dn,gde={message:({params:{min:e,max:t}})=>t===void 0?(0,ua.str)`must contain at least ${e} valid item(s)`:(0,ua.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ua._)`{minContains: ${e}}`:(0,ua._)`{minContains: ${e}, maxContains: ${t}}`},yde={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:gde,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,ua._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Im.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Im.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Im.alwaysValidSchema)(a,n)){let v=(0,ua._)`${u} >= ${i}`;s!==void 0&&(v=(0,ua._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,ua._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Im.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,ua._)`${v}++`),s===void 0?t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,ua._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};NS.default=yde;var DN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, - missingProperty: ${f}, - depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(DN);var jS={};Object.defineProperty(jS,"__esModule",{value:!0});const MN=Jt,bde=dn,xde={message:"property name must be valid",params:({params:e})=>(0,MN._)`{propertyName: ${e.propertyName}}`},wde={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:xde,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,bde.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,MN.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};jS.default=wde;var _y={};Object.defineProperty(_y,"__esModule",{value:!0});const Am=Qt,Da=Jt,Cde=Ei,Nm=dn,$de={message:"must NOT have additional properties",params:({params:e})=>(0,Da._)`{additionalProperty: ${e.additionalProperty}}`},Sde={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$de,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Nm.alwaysValidSchema)(i,n))return;const c=(0,Am.allSchemaProperties)(r.properties),u=(0,Am.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Da._)`${a} === ${Cde.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,Nm.schemaRefOrVal)(i,r.properties,"properties");g=(0,Am.isOwnProperty)(t,y,x)}else c.length?g=(0,Da.or)(...c.map(y=>(0,Da._)`${x} === ${y}`)):g=Da.nil;return u.length&&(g=(0,Da.or)(g,...u.map(y=>(0,Da._)`${(0,Am.usePattern)(e,y)}.test(${x})`))),(0,Da.not)(g)}function m(x){t.code((0,Da._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,Nm.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Da.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Da.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:Nm.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};_y.default=Sde;var LS={};Object.defineProperty(LS,"__esModule",{value:!0});const _de=Wa,oR=Qt,rx=dn,aR=_y,Ede={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&aR.default.code(new _de.KeywordCxt(a,aR.default,"additionalProperties"));const i=(0,oR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=rx.mergeEvaluated.props(t,(0,rx.toHash)(i),a.props));const s=i.filter(f=>!(0,rx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,oR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};LS.default=Ede;var FS={};Object.defineProperty(FS,"__esModule",{value:!0});const iR=Qt,jm=Jt,sR=dn,lR=dn,Pde={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,iR.allSchemaProperties)(n),l=s.filter(v=>(0,sR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof jm.Name)&&(a.props=(0,lR.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,sR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,jm._)`${(0,iR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:lR.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,jm._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,jm.not)(u),()=>t.break())})})}}};FS.default=Pde;var zS={};Object.defineProperty(zS,"__esModule",{value:!0});const Tde=dn,kde={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Tde.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zS.default=kde;var BS={};Object.defineProperty(BS,"__esModule",{value:!0});const Ode=Qt,Rde={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ode.validateUnion,error:{message:"must match a schema in anyOf"}};BS.default=Rde;var VS={};Object.defineProperty(VS,"__esModule",{value:!0});const Ev=Jt,Dde=dn,Mde={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ev._)`{passingSchemas: ${e.passing}}`},Ide={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Mde,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Dde.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Ev._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Ev._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Ev.Name)})})}}};VS.default=Ide;var US={};Object.defineProperty(US,"__esModule",{value:!0});const Ade=dn,Nde={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ade.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};US.default=Nde;var WS={};Object.defineProperty(WS,"__esModule",{value:!0});const xg=Jt,IN=dn,jde={message:({params:e})=>(0,xg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xg._)`{failingKeyword: ${e.ifClause}}`},Lde={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jde,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,IN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=cR(r,"then"),a=cR(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,xg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,xg._)`${u}`):e.setParams({ifClause:u})}}}};function cR(e,t){const n=e.schema[t];return n!==void 0&&!(0,IN.alwaysValidSchema)(e,n)}WS.default=Lde;var HS={};Object.defineProperty(HS,"__esModule",{value:!0});const Fde=dn,zde={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Fde.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};HS.default=zde;Object.defineProperty(MS,"__esModule",{value:!0});const Bde=md,Vde=IS,Ude=vd,Wde=AS,Hde=NS,Gde=DN,qde=jS,Yde=_y,Kde=LS,Jde=FS,Zde=zS,Xde=BS,Qde=VS,efe=US,tfe=WS,nfe=HS;function rfe(e=!1){const t=[Zde.default,Xde.default,Qde.default,efe.default,tfe.default,nfe.default,qde.default,Yde.default,Gde.default,Kde.default,Jde.default];return e?t.push(Vde.default,Wde.default):t.push(Bde.default,Ude.default),t.push(Hde.default),t}MS.default=rfe;var GS={},qS={};Object.defineProperty(qS,"__esModule",{value:!0});const ar=Jt,ofe={message:({schemaCode:e})=>(0,ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ar._)`{format: ${e}}`},afe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ofe,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ar._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ar._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ar._)`${v}.type || "string"`).assign(g,(0,ar._)`${v}.validate`),()=>n.assign(x,(0,ar._)`"string"`).assign(g,v)),e.fail$data((0,ar.or)(y(),w()));function y(){return l.strictSchema===!1?ar.nil:(0,ar._)`${i} && !${g}`}function w(){const C=u.$async?(0,ar._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ar._)`${g}(${r})`,_=(0,ar._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ar._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const $=_ instanceof RegExp?(0,ar.regexpCode)(_):l.code.formats?(0,ar._)`${l.code.formats}${(0,ar.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ar._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${g}(${r})`}return typeof x=="function"?(0,ar._)`${g}(${r})`:(0,ar._)`${g}.test(${r})`}}}};qS.default=afe;Object.defineProperty(GS,"__esModule",{value:!0});const ife=qS,sfe=[ife.default];GS.default=sfe;var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.contentVocabulary=Bu.metadataVocabulary=void 0;Bu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(yS,"__esModule",{value:!0});const lfe=bS,cfe=wS,ufe=MS,dfe=GS,uR=Bu,ffe=[lfe.default,cfe.default,(0,ufe.default)(),dfe.default,uR.metadataVocabulary,uR.contentVocabulary];yS.default=ffe;var YS={},AN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(AN);Object.defineProperty(YS,"__esModule",{value:!0});const Qc=Jt,Zw=AN,dR=go,pfe=dn,hfe={message:({params:{discrError:e,tagName:t}})=>e===Zw.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Qc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},mfe={keyword:"discriminator",type:"object",schemaType:"object",error:hfe,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Qc._)`${n}${(0,Qc.getProperty)(s)}`);t.if((0,Qc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zw.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,Qc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Zw.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,Qc.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Wa;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=eh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=th;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Hw,Hw.exports);var NN=Hw.exports;const $fe=Bt(NN);var Xw={exports:{}},jN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function $(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(jN);var LN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=NN,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(LN);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jN,r=LN,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Xw,Xw.exports);var Sfe=Xw.exports;const _fe=Bt(Sfe),Pv="additionalProperties",Tv="required",Efe=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Pfe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Pv)},a=this.findOption(r)(Tv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Efe(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const FN=(e,t={})=>{const n=o=>a=>{switch(a){case Pv:return Object.prototype.hasOwnProperty.call(t,Pv)?t[Pv]:!0;case Tv:return Object.prototype.hasOwnProperty.call(t,Tv)?t[Tv](o):Object.keys(o);default:return}};return new Pfe(n).schemaObject(e)};var wi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(wi||(wi={}));const zN=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Tfe=e=>e.type==="Group",BN=e=>e.elements!==void 0,kfe=e=>!!e&&typeof e=="object",Ofe=e=>kfe(e)&&typeof e.scope=="string",Rfe=e=>!!e&&typeof e=="object",VN=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},UN=(e,t)=>{VN(e,t,-1)},WN=(e,t)=>{VN(e,t,1)},Dfe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},fR=(e={})=>tn({},Dfe,e),pR=(e=fR(),t)=>{switch(t.type){case x_:return fR(t.config);default:return e}},zi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Mfe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Qw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),hR=(e,t)=>{if(t){if(Ife(t.options))return t.options.ajv;if(t.options!==void 0&&rU(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Qw(e.ajv,t.schema):e.ajv:zpe()},Ife=e=>e?e.ajv!==void 0:!1,mR=(e,t)=>t&&Afe(t.options)?t.options.validationMode:e.validationMode,Afe=e=>e?e.validationMode!==void 0:!1,Nfe=e=>e?e.additionalErrors!==void 0:!1,vR=(e,t)=>t&&Nfe(t.options)?t.options.additionalErrors:e.additionalErrors,gR=(e=Mfe,t)=>{switch(t.type){case m_:{const n=hR(e,t),r=mR(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data),i=vR(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case v_:{const n=hR(e,t),r=mR(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data)):e.data!==t.data&&(a=zi(o,t.data));const i=vR(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:X4(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case g_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=zi(r,e.data);return{...e,validator:r,errors:o}}case w_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Qw(e.ajv,t.schema).compile(t.schema):e.validator,o=zi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case C_:return{...e,uischema:t.uischema};case y_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(pO(e.data)),r=zi(e.validator,n);return{...e,data:n,errors:r}}else{const n=dr(e.data,t.path),r=t.updater(pO(n)),o=mie(t.path,r,e.data===void 0?{}:e.data),a=zi(e.validator,o);return{...e,data:o,errors:a}}}case b_:return{...e,errors:t.errors};case $_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=zi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Qw(e.ajv,e.schema).compile(e.schema),r=zi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},jfe=e=>dr(e,"data"),Lfe=e=>dr(e,"schema"),Ffe=e=>dr(e,"uischema"),zfe=e=>dr(e,"ajv"),Bfe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},wg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Bfe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ty(t),t},KS=(e,t,n)=>r=>{const o=mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>wg(a));return mg(r,a=>{if(Ufe.indexOf(a.keyword)!==-1&&!Sg(a.parentSchema))return!1;const i=wg(a);let s=n(i);const l=a.parentSchema;return s&&!Vfe(l)&&!Sg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&X4(l,t)),s})},Vfe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Ufe=["additionalProperties","allOf","anyOf","oneOf"],HN=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return KS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Wfe=(e,t)=>HN(e,t,n=>n===e),Hfe=(e,t)=>HN(e,t,n=>n.startsWith(e+".")),JS=(e,t)=>zN(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Gfe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ci=(e,t,n)=>JS(e,t)??Gfe(n),Cg=(e,t,n,r)=>`${Ci(e,t,n)}.${r}`,qfe=(e,t)=>`${e}.${t}`,ZS=(e,t)=>t,XS=(e,t,n)=>{var s;const r=Cg(e.parentSchema,n,wg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},QS=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Cg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return u_(e.map(i=>t(i,n,o)))},Ey=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!zN(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=JS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},GN=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=qfe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Ur;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Ur||(Ur={}));const qN=[{key:Ur.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Ur.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Ur.removeTooltip,default:()=>"Delete"},{key:Ur.removeAriaLabel,default:()=>"Delete button"},{key:Ur.upAriaLabel,default:()=>"Move item up"},{key:Ur.up,default:()=>"Up"},{key:Ur.down,default:()=>"Down"},{key:Ur.downAriaLabel,default:()=>"Move item down"},{key:Ur.noDataMessage,default:()=>"No data"},{key:Ur.noSelection,default:()=>"No selection"},{key:Ur.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Ur.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Ur.deleteDialogAccept,default:()=>"Yes"},{key:Ur.deleteDialogDecline,default:()=>"No"}],mu={locale:"en",translate:ZS,translateError:XS},yR=(e=mu,t)=>{switch(t.type){case E_:{const n=t.locale??mu.locale,r=t.translator??mu.translate,o=t.errorTranslator??mu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case __:return{...e,translate:t.translator??ZS,translateError:t.errorTranslator??XS};case S_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Yfe=e=>e===void 0?ZS:e.translate,Kfe=e=>e===void 0?XS:e.translateError,Vu=-1,Ga=e=>!Mt(e)&&e.scope!==void 0,qr=e=>(t,n,r)=>{if(Mt(t)||!Ga(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Zs(n,"object")&&(a=wa(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},e_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ga(n))return!1;const a=n.scope;let i=r;return Zs(r,"object")&&(i=wa(r,a,o==null?void 0:o.rootSchema)),i=dr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},qa=e=>qr(t=>!Mt(t)&&Zs(t,e)),Py=e=>qr(t=>!Mt(t)&&t.format===e&&Zs(t,"string")),Sn=e=>t=>!Mt(t)&&t.type===e,as=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Jfe=e=>t=>Mt(e)||!Ga(t)?!1:rse(t.scope,e),Zfe=e=>t=>{if(Mt(e)||!Ga(t))return!1;const n=t.scope;return!Mt(n)&&Lie(n.split("/"))===e},Cn=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),dc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),mn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Vu,Xfe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Vu?Vu:a+e},YN=Cn(Sn("Control"),qa("boolean")),Qfe=Cn(Sn("Control"),qa("object")),KN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),JN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),ZN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),t_=Cn(Sn("Control"),dc(qr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),qr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),XN=Cn(Sn("Control"),qr(e=>Sg(e))),QN=Cn(Sn("Control"),qa("integer")),e5=Cn(Sn("Control"),qa("number")),t5=Cn(Sn("Control"),qa("string")),n5=Cn(Sn("Control"),as("multi",!0)),r5=Cn(Sn("Control"),dc(Py("date"),as("format","date"))),o5=Cn(Sn("Control"),dc(Py("time"),as("format","time"))),a5=Cn(Sn("Control"),dc(Py("date-time"),as("format","date-time"))),i5=Cn(qr((e,t)=>Zs(e,"array")&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e;return Zs(n,"object")})),n_=Cn(Sn("Control"),i5),Sf=(e,t,n)=>{if(x3(e))return Ww(e,(r,o)=>r||Sf(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=wa(n,e.$ref,n);if(r&&!r.$ref)return Sf(r,t,n)}return e.items?Sf(e.items,t,n):e.properties?Ww(Ose(e.properties),(r,[o,a])=>r||Sf(a,t,n),!1):!1},r_=(e,t,n)=>{if(!Sn("Control")(e,t,n))return!1;const r=e.scope,o=wa(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Sf(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Sg(i)||Zs(i,"object")&&(a++,a===2)||Zs(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},epe=n_,s5=Cn(Sn("Control"),qr((e,t)=>Uu(e).length!==0&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e,r=Uu(n);return r.length===1&&eN(["integer","number","boolean","string"],r[0])})),l5=Cn(Sn("Control"),dc(qa("number"),qa("integer")),qr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),as("slider",!0)),tpe=Cn(Sn("Control"),qa("integer"),as("format",!0)),c5=e=>e.type==="Categorization",u5=e=>e.type==="Category",o_=e=>Mt(e.elements)?!1:e.elements.map(t=>c5(t)?o_(t):u5(t)).reduce((t,n)=>t&&n,!0),npe=e=>o_(e),rpe=e=>(t,n,r)=>!e(t,n,r);var ope=Object.freeze({__proto__:null,NOT_APPLICABLE:Vu,isControl:Ga,schemaMatches:qr,schemaSubPathMatches:e_,schemaTypeIs:qa,formatIs:Py,uiTypeIs:Sn,optionIs:as,scopeEndsWith:Jfe,scopeEndIs:Zfe,and:Cn,or:dc,rankWith:mn,withIncreasedRank:Xfe,isBooleanControl:YN,isObjectControl:Qfe,isAllOfControl:KN,isAnyOfControl:JN,isOneOfControl:ZN,isEnumControl:t_,isOneOfEnumControl:XN,isIntegerControl:QN,isNumberControl:e5,isStringControl:t5,isMultiLineControl:n5,isDateControl:r5,isTimeControl:o5,isDateTimeControl:a5,isObjectArray:i5,isObjectArrayControl:n_,isObjectArrayWithNesting:r_,isArrayObjectControl:epe,isPrimitiveArrayControl:s5,isRangeControl:l5,isNumberFormatControl:tpe,isCategorization:c5,isCategory:u5,hasCategory:o_,categorizationHasCategory:npe,not:rpe});const d5=e=>(t,n,r)=>{const o=gy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Vu)return o.uischema},rh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():Ql.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=d5(e)(t,n,r);return s===void 0?typeof o=="function"?o():Ql.uiSchema(t,o,"#",i):s},f5=(e,t)=>n=>Wfe(e,t)(n.jsonforms.core),p5=(e,t)=>n=>Hfe(e,t)(n.jsonforms.core),Zl=e=>e.jsonforms.config,xa=()=>e=>Yfe(dr(e,"jsonforms.i18n")),a_=()=>e=>Kfe(dr(e,"jsonforms.i18n")),oh=e=>jfe(dr(e,"jsonforms.core")),$g=e=>Lfe(dr(e,"jsonforms.core")),ape=e=>Ffe(dr(e,"jsonforms.core")),gd=e=>zfe(dr(e,"jsonforms.core")),i_=e=>dr(e,"jsonforms.renderers"),s_=e=>dr(e,"jsonforms.cells"),ipe=e=>dr(e,"jsonforms.uischemas"),fc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},h5=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Ty),a=r[0]==="#"||r[0]===""?2:1;return hd(a,r.length,2).map(i=>r[i])},m5=(e,t)=>{if(!Ofe(e))return t??"";const n=h5(e.scope);return Mt(n)?t??"":fc(t,n.join("."))},Xl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ty=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),eC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),spe=e=>e==="#"||e===void 0||e==="",wa=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Ty);return kv(e,r,n)},kv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=wa(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(spe(r))return kv(e,o,n);const a=dr(e,r),i=kv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=kv(c,[r,...o],n),s)break;return s}},lpe=e=>e.type==="OR",cpe=e=>e.type==="AND",upe=e=>e.type==="LEAF",dpe=e=>Dle(e,"schema"),bR=(e,t)=>m5(e,t),tC=(e,t,n,r)=>{if(cpe(t))return t.conditions.reduce((o,a)=>o&&tC(e,a,n,r),!0);if(lpe(t))return t.conditions.reduce((o,a)=>o||tC(e,a,n,r),!1);if(upe(t))return eC(e,bR(t,n))===t.expectedValue;if(dpe(t)){const o=eC(e,bR(t,n));return r.validate(t.schema,o)}else return!0},v5=(e,t,n,r)=>{const o=e.rule.condition;return tC(t,o,n,r)},fpe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.HIDE:return!o;case wi.SHOW:return o;default:return!0}},ppe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.DISABLE:return!o;case wi.ENABLE:return o;default:return!0}},l_=e=>!!(e.rule&&(e.rule.effect===wi.SHOW||e.rule.effect===wi.HIDE)),hpe=e=>!!(e.rule&&(e.rule.effect===wi.ENABLE||e.rule.effect===wi.DISABLE)),yd=(e,t,n=void 0,r)=>e.rule?fpe(e,t,n,r):!0,mpe=(e,t,n=void 0,r)=>e.rule?ppe(e,t,n,r):!0,c_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&hpe(n)?mpe(n,o,t==null?void 0:t.path,gd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},g5=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),u_=e=>e==null?"":e.join(` -`),Zs=(e,t)=>eN(Uu(e),t),Uu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(x3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=uS(e.allOf,n=>Uu(n).length!==0);if(t)return Uu(t)}return[]},_o={schema:wa,data:eC},vpe=e=>h5(e.scope).join("."),ir={compose:fc,fromScoped:vpe},ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Ty(n.substr(n.lastIndexOf("/")+1));return yy(r)}return""},y5=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Lm(ox(e,t),n);if(typeof n=="string")return Lm(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return Lm(r,o)}return Lm(ox(e,t),!0)},Lm=(e,t)=>({text:e,show:t}),gpe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=_o.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},ky=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Oy=(e,t)=>e&&!t,es=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},Eo=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,bp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},d_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},bd=(e,t)=>{const{uischema:n}=t,r=oh(e),o=m5(n,t.path),a=t.visible===void 0||l_(n)?yd(n,r,t.path,gd(e)):t.visible,i=n,s=t.id,l=$g(e),c=i.scope!==void 0&&gpe(t.schema,i.scope,l),u=_o.schema(t.schema||l,i.scope,l),f=f5(o,u)(e),p=u!==void 0?u.description:"",m=_o.data(r,o),b=y5(n,u),v=b.show?b.text:"",x=Zl(e),g=c_(e,t,n,u||l,r,x),y=u??l,w=xa()(e),C=a_()(e),_=Ci(y,n,o),$=w(Cg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Cg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=QS(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Zl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},ype=e=>({handleChange(t,n){e(Fa(t,()=>n))}}),bpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},xpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},wpe=(e,t)=>{var a;const n=bd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return d_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return bp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))}));return{...n,options:o}},Cpe=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?uS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=fc(r,`${o}`),s=_o.data(oh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},f_=(e,t)=>{const{...n}=bd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},$pe=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=f_(e,t),l=_o.schema(r,"items",s.rootSchema),c=p5(n,l)(e),u=xa()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||i_(e),cells:t.cells||s_(e),translations:GN(u,qN,a,i)}},Spe=e=>({addItem:(t,n)=>()=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Fa(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Fa(t,r=>(UN(r,n),r)))},moveDown:(t,n)=>()=>{e(Fa(t,r=>(WN(r,n),r)))}}),_pe=e=>({addItem:(t,n)=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Fa(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),b5={visible:!0,enabled:!0,path:"",direction:"column"},Epe=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":b5.direction,Ppe=(e,t)=>{const n=oh(e),{uischema:r}=t,o=t.visible===void 0||l_(r)?yd(t.uischema,n,t.path,gd(e)):t.visible,a=_o.data(n,t.path),i=Zl(e),s=c_(e,t,r,void 0,n,i),l=xa()(e),c=Rfe(r)?Ey(r,l):void 0;return{...b5,renderers:t.renderers||i_(e),cells:t.cells||s_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Epe(r),config:i,label:c}},Tpe=(e,t)=>({renderers:t.renderers||dr(e.jsonforms,"renderers"),cells:t.cells||dr(e.jsonforms,"cells"),schema:t.schema||$g(e),rootSchema:$g(e),uischema:t.uischema||ape(e),path:t.path,enabled:t.enabled,config:Zl(e)}),p_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=bd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=_o.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:ipe(e)}},kpe=(e,t)=>p_(e,t,"allOf"),Ope=(e,t)=>p_(e,t,"anyOf"),Rpe=(e,t)=>p_(e,t,"oneOf"),Dpe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=f_(e,t),c=_o.schema(r,"items",l.rootSchema),u=xa()(e),f=QS(p5(n,c)(e),a_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:GN(u,qN,i,s)}},Mpe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||l_(n)?yd(t.uischema,oh(e),t.path,gd(e)):t.visible,o=n.text,a=xa()(e),i=JS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Zl(e),renderers:t.renderers||i_(e),cells:t.cells||s_(e)}},Ry=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=oh(e),c=t.visible!==void 0?t.visible:yd(a,l,void 0,gd(e)),u=$g(e),f=Zl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=c_(e,t,a,r||u,l,f);const m=xa()(e),b=a_()(e),v=QS(f5(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:_o.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:Zl(e),rootSchema:u,renderers:i,cells:s}},Ipe=(e,t)=>{const n=Ry(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Ape=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},Npe=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},jpe=(e,t,n)=>e.title?e.title:n+"-"+t,Dy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?_o.schema(t,i.$ref,t):i;return{schema:l,uischema:rh(a,l,r.scope,o,void 0,r,t),label:jpe(i,s,n)}}),h_=new Set,x5=(e,t)=>t<=1?e:e+t.toString(),Lpe=(e,t)=>{const n=x5(e,t);return!h_.has(n)},w5=e=>{e===void 0&&(e="undefined");let t=0;for(;!Lpe(e,t);)t++;const n=x5(e,t);return h_.add(n),n},C5=e=>h_.delete(e),Fpe=e=>{if(e.properties)return uS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Sg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),zpe=e=>{const t=new $fe({allErrors:!0,verbose:!0,strict:!1,...e});return _fe(t),t},$5=e=>({type:e,elements:[]}),Ov=e=>({type:"Control",scope:e}),Bpe=(e,t)=>{if(!Mt(e)&&!BN(e)){const n=$5(t);return n.elements.push(e),n}return e},Vpe=(e,t)=>{if(!Mt(t)){const n=yy(t);if(Tfe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Upe=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),nC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return nC(wa(a,e.$ref,a),t,n,r,o,a);if(Upe(e)){const s=Ov(n);return t.push(s),s}const i=Uu(e);if(i.length===0)return null;if(i.length>1){const s=Ov(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=$5(o);if(t.push(s),e.properties&&BZ(e.properties).length>1&&Vpe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Xl(c)}`;u.$ref!==void 0&&(u=wa(a,u.$ref,a)),nC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Ov(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},S5=(e,t="VerticalLayout",n="#",r=e)=>Bpe(nC(e,[],n,"",t,r),t),Ql={jsonSchema:FN,uiSchema:S5,controlElement:Ov},m_="jsonforms/INIT",v_="jsonforms/UPDATE_CORE",g_="jsonforms/SET_AJV",y_="jsonforms/UPDATE",b_="jsonforms/UPDATE_ERRORS",Wpe="jsonforms/VALIDATE",_5="jsonforms/ADD_RENDERER",E5="jsonforms/REMOVE_RENDERER",P5="jsonforms/ADD_CELL",T5="jsonforms/REMOVE_CELL",x_="jsonforms/SET_CONFIG",k5="jsonforms/ADD_UI_SCHEMA",O5="jsonforms/REMOVE_UI_SCHEMA",w_="jsonforms/SET_SCHEMA",C_="jsonforms/SET_UISCHEMA",$_="jsonforms/SET_VALIDATION_MODE",S_="jsonforms/SET_LOCALE",__="jsonforms/SET_TRANSLATOR",E_="jsonforms/UPDATE_I18N",R5="jsonforms/ADD_DEFAULT_DATA",D5="jsonforms/REMOVE_DEFAULT_DATA",Hpe=(e,t=FN(e),n,r)=>({type:m_,data:e,schema:t,uischema:typeof n=="object"?n:S5(t),options:r}),Gpe=(e,t,n,r)=>({type:v_,data:e,schema:t,uischema:n,options:r}),qpe=(e,t)=>({type:R5,schemaPath:e,data:t}),Ype=e=>({type:D5,schemaPath:e}),Kpe=e=>({type:g_,ajv:e}),Fa=(e,t)=>({type:y_,path:e,updater:t}),Jpe=e=>({type:b_,errors:e}),Zpe=(e,t)=>({type:_5,tester:e,renderer:t}),Xpe=(e,t)=>({type:P5,tester:e,cell:t}),Qpe=(e,t)=>({type:T5,tester:e,cell:t}),ehe=(e,t)=>({type:E5,tester:e,renderer:t}),the=e=>({type:x_,config:e}),nhe=e=>({type:$_,validationMode:e}),rhe=(e,t)=>({type:k5,tester:e,uischema:t}),ohe=e=>({type:O5,tester:e}),ahe=e=>({type:S_,locale:e}),ihe=e=>({type:w_,schema:e}),she=(e,t)=>({type:__,translator:e,errorTranslator:t}),lhe=(e,t,n)=>({type:E_,locale:e,translator:t,errorTranslator:n}),che=e=>({type:C_,uischema:e});var Fc=Object.freeze({__proto__:null,INIT:m_,UPDATE_CORE:v_,SET_AJV:g_,UPDATE_DATA:y_,UPDATE_ERRORS:b_,VALIDATE:Wpe,ADD_RENDERER:_5,REMOVE_RENDERER:E5,ADD_CELL:P5,REMOVE_CELL:T5,SET_CONFIG:x_,ADD_UI_SCHEMA:k5,REMOVE_UI_SCHEMA:O5,SET_SCHEMA:w_,SET_UISCHEMA:C_,SET_VALIDATION_MODE:$_,SET_LOCALE:S_,SET_TRANSLATOR:__,UPDATE_I18N:E_,ADD_DEFAULT_DATA:R5,REMOVE_DEFAULT_DATA:D5,init:Hpe,updateCore:Gpe,registerDefaultData:qpe,unregisterDefaultData:Ype,setAjv:Kpe,update:Fa,updateErrors:Jpe,registerRenderer:Zpe,registerCell:Xpe,unregisterCell:Qpe,unregisterRenderer:ehe,setConfig:the,setValidationMode:nhe,registerUISchema:rhe,unregisterUISchema:ohe,setLocale:ahe,setSchema:ihe,setTranslator:she,updateI18n:lhe,setUISchema:che});const _g={createLabelDescriptionFrom:y5,convertToValidClassName:g5};var uhe=so,dhe=function(){return uhe.Date.now()},fhe=dhe,phe=Qo,ax=fhe,xR=G4,hhe="Expected a function",mhe=Math.max,vhe=Math.min;function ghe(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(hhe);t=xR(t)||0,phe(n)&&(u=!!n.leading,f="maxWait"in n,a=f?mhe(xR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var E=r,k=o;return r=o=void 0,c=$,i=e.apply(k,E),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var E=$-l,k=$-c,I=t-E;return f?vhe(I,a-k):I}function x($){var E=$-l,k=$-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var $=ax();if(x($))return y($);s=setTimeout(g,v($))}function y($){return s=void 0,p&&r?m($):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(ax())}function _(){var $=ax(),E=x($);if(r=arguments,o=this,l=$,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var yhe=ghe;const M5=Bt(yhe);class I5 extends M.Component{constructor(t){super(t)}}class A5 extends I5{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class N5 extends S.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const bhe={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},j5=M.createContext({core:bhe,renderers:[]}),xhe=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},whe=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=S.useReducer(gR,void 0,()=>gR(t.core,Fc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Fc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(pR,void 0,()=>pR(void 0,Fc.setConfig(t.config)));xhe(()=>{p(Fc.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(yR,void 0,()=>{var _,$,E;return yR(t.i18n,Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))});S.useEffect(()=>{var _,$,E;b(Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=S.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=S.useRef(n);S.useEffect(()=>{x.current=n},[n]);const g=S.useCallback(M5((..._)=>{var $;return($=x.current)==null?void 0:$.call(x,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(j5.Provider,{value:v},e)},pc=()=>S.useContext(j5),Che=(e,t)=>Dpe({jsonforms:{...e}},t),$he=(e,t)=>$pe({jsonforms:{...e}},t),She=(e,t)=>Ppe({jsonforms:{...e}},t),_he=(e,t)=>bd({jsonforms:{...e}},t),Ehe=(e,t)=>{var o;const n=bpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Phe=(e,t)=>{var o;const n=xpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},The=(e,t)=>{var o;const n=wpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},khe=(e,t)=>f_({jsonforms:{...e}},t),Ohe=(e,t)=>({...kpe({jsonforms:{...e}},t)}),Oo=e=>S.useMemo(()=>ype(e),[e]),Rhe=(e,t)=>{const n=Ope({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Dhe=(e,t)=>{const n=Rpe({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Mhe=(e,t)=>Tpe({jsonforms:{...e}},t),L5=e=>({...Oo(e),...S.useMemo(()=>Spe(e),[e])}),Ihe=(e,t)=>Cpe({jsonforms:{...e}},t),Ahe=(e,t)=>Ry({jsonforms:{...e}},t),Nhe=(e,t)=>{var o;const n=Ape({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},jhe=(e,t)=>{var o;const n=Npe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Lhe=(e,t)=>Ipe({jsonforms:{...e}},t),Fhe=e=>({...Oo(e),...S.useMemo(()=>_pe(e),[e])}),zhe=(e,t)=>Mpe({jsonforms:{...e}},t),Sr=e=>function(n){const r=pc();return M.createElement(e,{ctx:r,props:n})},Bhe=e=>function({ctx:n,props:r}){const o=Mhe(n,r);return M.createElement(e,Object.assign({},r,o))},Vhe=e=>function({ctx:n,props:r}){const o=_he(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Uhe=e=>function({ctx:n,props:r}){const o=She(n,r);return M.createElement(e,Object.assign({},r,o))},Whe=e=>function({ctx:n,props:r}){const o=Dhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Hhe=e=>function({ctx:n,props:r}){const o=Rhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Ghe=e=>function({ctx:n,props:r}){const o=Ohe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},qhe=e=>function({ctx:n,props:r}){const o=khe(n,r);return M.createElement(e,Object.assign({},r,o))},Yhe=e=>function({ctx:n,props:r}){const o=Che(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Khe=e=>function({ctx:n,props:r}){const o=$he(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Jhe=e=>function({ctx:n,props:r}){const o=Ihe(n,r);return M.createElement(e,Object.assign({},r,o))},Zhe=e=>function({ctx:n,props:r}){const o=Ahe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Xhe=e=>function({ctx:n,props:r}){const o=Lhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Qhe=e=>function({ctx:n,props:r}){const o=Nhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},eme=e=>function({ctx:n,props:r}){const o=Ehe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},tme=e=>function({ctx:n,props:r}){const o=jhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},nme=e=>function({ctx:n,props:r}){const o=Phe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},rme=e=>function({ctx:n,props:r}){const o=The(n,r),a=Fhe(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},ome=e=>function({ctx:n,props:r}){const o=zhe(n,r);return M.createElement(e,Object.assign({},r,o))},F5=(e,t=!0)=>Sr(Bhe(t?M.memo(e):e)),lo=(e,t=!0)=>Sr(Vhe(t?M.memo(e):e)),is=(e,t=!0)=>Sr(Uhe(t?M.memo(e):e)),ame=(e,t=!0)=>Sr(Whe(t?M.memo(e):e)),z5=(e,t=!0)=>Sr(Hhe(t?M.memo(e):e)),ime=(e,t=!0)=>Sr(Ghe(t?M.memo(e):e)),sme=(e,t=!0)=>Sr(qhe(t?M.memo(e):e)),My=(e,t=!0)=>Sr(Yhe(t?M.memo(e):e)),B5=(e,t=!0)=>Sr(Khe(t?M.memo(e):e)),lme=(e,t=!0)=>Sr(Jhe(t?M.memo(e):e)),pr=(e,t=!0)=>Sr(Zhe(t?M.memo(e):e)),cme=(e,t=!0)=>Sr(Xhe(t?M.memo(e):e)),V5=(e,t=!0)=>Sr(Qhe(t?M.memo(e):e)),P_=(e,t=!0)=>Sr(eme(t?M.memo(e):e)),ume=(e,t=!0)=>Sr(tme(t?M.memo(e):e)),T_=(e,t=!0)=>Sr(nme(t?M.memo(e):e)),dme=(e,t=!0)=>Sr(rme(t?M.memo(e):e)),U5=(e,t=!0)=>Sr(ome(t?M.memo(e):e)),ol=e=>function(n){var i,s;const r=pc(),o=((i=r.i18n)==null?void 0:i.locale)??mu.locale,a=((s=r.i18n)==null?void 0:s.translate)??mu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class W5 extends M.Component{constructor(t){super(t),this.state={id:Ga(t.uischema)?w5(t.uischema.scope):void 0}}componentWillUnmount(){Ga(this.props.uischema)&&C5(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(fme,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const fme=M.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>gy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(N5,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class pme extends W5{constructor(t){super(t)}}const Po=F5(W5);F5(pme);const wR=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=S.useMemo(()=>r!==void 0?r:Ql.jsonSchema(n),[r,n]),v=S.useMemo(()=>typeof o=="object"?o:Ql.uiSchema(b),[o,b]);return M.createElement(whe,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(Po,null))},hme=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=S.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=S.useMemo(()=>gy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(N5,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ec=cme(hme),mme={black:"#000",white:"#fff"},xp=mme,vme={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},zc=vme,gme={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Bc=gme,yme={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Vc=yme,bme={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uc=bme,xme={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wc=xme,wme={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},nf=wme,Cme={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$me=Cme;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=H5(e[n])}),t}function Hr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ui(t[o])&&o in e&&Ui(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Ui(t[o])?H5(t[o]):t[o]:r[o]=t[o])}),r}var G5={exports:{}},Sme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_me=Sme,Eme=_me;function q5(){}function Y5(){}Y5.resetWarningCache=q5;var Pme=function(){function e(r,o,a,i,s,l){if(l!==Eme){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y5,resetWarningCache:q5};return n.PropTypes=n,n};G5.exports=Pme();var Tme=G5.exports;const j=Bt(Tme);function Xs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ah(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ome(e,t){return()=>null}function Eu(e,t){var n,r;return S.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zn(e){return e&&e.ownerDocument||document}function $i(e){return zn(e).defaultView||window}function Rme(e,t){return()=>null}function wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Dme=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kn=Dme;let CR=0;function Mme(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(CR+=1,n(`mui-${CR}`))},[t]),r}const $R=ep["useId".toString()];function Ya(e){if($R!==void 0){const t=$R();return e??t}return Mme(e)}function Ime(e,t,n,r,o){return null}function Cr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),s=o?e:a,l=S.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=S.useRef(e);return Kn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wp(n,t)})},e)}let Iy=!0,rC=!1,SR;const Ame={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Nme(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ame[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jme(e){e.metaKey||e.altKey||e.ctrlKey||(Iy=!0)}function ix(){Iy=!1}function Lme(){this.visibilityState==="hidden"&&rC&&(Iy=!0)}function Fme(e){e.addEventListener("keydown",jme,!0),e.addEventListener("mousedown",ix,!0),e.addEventListener("pointerdown",ix,!0),e.addEventListener("touchstart",ix,!0),e.addEventListener("visibilitychange",Lme,!0)}function zme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Iy||Nme(t)}function Ay(){const e=S.useCallback(o=>{o!=null&&Fme(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(rC=!0,window.clearTimeout(SR),SR=window.setTimeout(()=>{rC=!1},100),t.current=!1,!0):!1}function r(o){return zme(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function K5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Hc;function J5(){if(Hc)return Hc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Hc="reverse",e.scrollLeft>0?Hc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Hc="negative")),document.body.removeChild(e),Hc}function Bme(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(J5()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Vme=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},k_=Vme,Ume={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wme=Ume;function O_(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=O_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const _R=e=>e,Hme=()=>{let e=_R;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_R}}},Gme=Hme(),Z5=Gme,qme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function et(e,t,n="Mui"){const r=qme[t];return r?`${n}-${r}`:`${Z5.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const Ny="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function X5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yme=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kme=X5(function(e){return Yme.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jme(e){if(e.sheet)return e.sheet;for(var t=0;t0?Mr(wd,--To):0,Wu--,cr===10&&(Wu=1,Ly--),cr}function Go(){return cr=To2||$p(cr)>3?"":" "}function cve(e,t){for(;--t&&Go()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ih(e,Rv()+(t<6&&gi()==32&&Go()==32))}function aC(e){for(;Go();)switch(cr){case e:return To;case 34:case 39:e!==34&&e!==39&&aC(cr);break;case 40:e===41&&aC(e);break;case 92:Go();break}return To}function uve(e,t){for(;Go()&&e+cr!==47+10;)if(e+cr===42+42&&gi()===47)break;return"/*"+ih(t,To-1)+"*"+jy(e===47?e:Go())}function dve(e){for(;!$p(gi());)Go();return ih(e,To)}function fve(e){return oj(Mv("",null,null,null,[""],e=rj(e),0,[0],e))}function Mv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,$=r,E=w;x;)switch(b=y,y=Go()){case 40:if(b!=108&&Mr(E,f-1)==58){oC(E+=hn(Dv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Dv(y);break;case 9:case 10:case 13:case 32:E+=lve(b);break;case 92:E+=cve(Rv()-1,7);continue;case 47:switch(gi()){case 42:case 47:Fm(pve(uve(Go(),Rv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=si(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=hn(E,/\f/g,"")),m>0&&si(E)-f&&Fm(m>32?PR(E+";",r,n,f-1):PR(hn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Fm($=ER(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Mv(E,t,$,$,C,a,f,s,_);else switch(p===99&&Mr(E,3)===110?100:p){case 100:case 108:case 109:case 115:Mv(e,$,$,r&&Fm(ER(e,$,$,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Mv(E,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+si(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&sve()==125)continue}switch(E+=jy(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(si(E)-1)*g,g=1;break;case 64:gi()===45&&(E+=Dv(Go())),p=gi(),u=f=si(w=E+=dve(Rv())),y++;break;case 45:b===45&&si(E)==2&&(v=0)}}return a}function ER(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=M_(p),b=0,v=0,x=0;b0?p[g]+" "+y:hn(y,/&\f/g,p[g])))&&(l[x++]=w);return Fy(e,t,n,o===0?R_:s,l,c,u)}function pve(e,t,n){return Fy(e,t,n,Q5,jy(ive()),Cp(e,2,-2),0)}function PR(e,t,n,r){return Fy(e,t,n,D_,Cp(e,0,r),Cp(e,r+1,-1),r)}function Pu(e,t){for(var n="",r=M_(e),o=0;o6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+Pg+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oC(e,"stretch")?aj(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,si(e)-3-(~oC(e,"!important")&&10))){case 107:return hn(e,":",":"+pn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Mr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+Vr+e+e}return e}var Cve=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case D_:t.return=aj(t.value,t.length);break;case ej:return Pu([rf(t,{value:hn(t.value,"@","@"+pn)})],o);case R_:if(t.length)return ave(t.props,function(a){switch(ove(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pu([rf(t,{props:[hn(a,/:(read-\w+)/,":"+Pg+"$1")]})],o);case"::placeholder":return Pu([rf(t,{props:[hn(a,/:(plac\w+)/,":"+pn+"input-$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,":"+Pg+"$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,Vr+"input-$1")]})],o)}return""})}},$ve=[Cve],Sve=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||$ve,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nve={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jve=/[A-Z]|^ms/g,Lve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fj=function(t){return t.charCodeAt(1)===45},kR=function(t){return t!=null&&typeof t!="boolean"},sx=X5(function(e){return fj(e)?e:e.replace(jve,"-$&").toLowerCase()}),OR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lve,function(r,o,a){return li={name:o,styles:a,next:li},o})}return Nve[t]!==1&&!fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return li={name:n.name,styles:n.styles,next:li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)li={name:r.name,styles:r.styles,next:li},r=r.next;var o=n.styles+";";return o}return Fve(e,t,n)}case"function":{if(e!==void 0){var a=li,i=n(e);return li=a,Sp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Fve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Wve:Hve},IR=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Gve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return uj(n,r,o),Bve(function(){return dj(n,r,o)}),null},qve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=IR(t,n,r),l=s||MR(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Kve(o)?n:o):t;return O.jsx(Vve,{styles:r})}/** - * @mui/styled-engine v5.14.14 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Zve(e,t){return iC(e,t)}const Xve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qve=["values","unit","step"],ege=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function tge(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Qve),a=ege(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${z_[e]}px)`};function ko(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||AR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||AR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||z_).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function vj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function gj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function oge(e,...t){const n=vj(e),r=[n,...t].reduce((o,a)=>Hr(o,a),{});return gj(Object.keys(n),r)}function age(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Bl({values:e,breakpoints:t,base:n}){const r=n||age(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Jy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Tg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Jy(e,n)||r,t&&(o=t(o,r,e)),o}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Jy(l,r)||{};return ko(i,s,f=>{let p=Tg(c,o,f);return f===p&&typeof f=="string"&&(p=Tg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function ige(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sge={m:"margin",p:"padding"},lge={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cge=ige(e=>{if(e.length>2)if(NR[e])e=NR[e];else return[e];const[t,n]=e.split(""),r=sge[t],o=lge[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),B_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...B_,...V_];function sh(e,t,n,r){var o;const a=(o=Jy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function U_(e){return sh(e,"spacing",8)}function tc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function uge(e,t){return n=>e.reduce((r,o)=>(r[o]=tc(t,n),r),{})}function dge(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=cge(n),a=uge(o,r),i=e[n];return ko(e,i,a)}function yj(e,t){const n=U_(e.theme);return Object.keys(e).map(r=>dge(e,t,r,n)).reduce(Uf,{})}function Zn(e){return yj(e,B_)}Zn.propTypes={};Zn.filterProps=B_;function Xn(e){return yj(e,V_)}Xn.propTypes={};Xn.filterProps=V_;function fge(e=8){if(e.mui)return e;const t=U_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Zy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Uf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function di(e){return typeof e!="number"?e:`${e}px solid`}const pge=yn({prop:"border",themeKey:"borders",transform:di}),hge=yn({prop:"borderTop",themeKey:"borders",transform:di}),mge=yn({prop:"borderRight",themeKey:"borders",transform:di}),vge=yn({prop:"borderBottom",themeKey:"borders",transform:di}),gge=yn({prop:"borderLeft",themeKey:"borders",transform:di}),yge=yn({prop:"borderColor",themeKey:"palette"}),bge=yn({prop:"borderTopColor",themeKey:"palette"}),xge=yn({prop:"borderRightColor",themeKey:"palette"}),wge=yn({prop:"borderBottomColor",themeKey:"palette"}),Cge=yn({prop:"borderLeftColor",themeKey:"palette"}),Xy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tc(t,r)});return ko(e,e.borderRadius,n)}return null};Xy.propTypes={};Xy.filterProps=["borderRadius"];Zy(pge,hge,mge,vge,gge,yge,bge,xge,wge,Cge,Xy);const Qy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sh(e.theme,"spacing",8),n=r=>({gap:tc(t,r)});return ko(e,e.gap,n)}return null};Qy.propTypes={};Qy.filterProps=["gap"];const e0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({columnGap:tc(t,r)});return ko(e,e.columnGap,n)}return null};e0.propTypes={};e0.filterProps=["columnGap"];const t0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({rowGap:tc(t,r)});return ko(e,e.rowGap,n)}return null};t0.propTypes={};t0.filterProps=["rowGap"];const $ge=yn({prop:"gridColumn"}),Sge=yn({prop:"gridRow"}),_ge=yn({prop:"gridAutoFlow"}),Ege=yn({prop:"gridAutoColumns"}),Pge=yn({prop:"gridAutoRows"}),Tge=yn({prop:"gridTemplateColumns"}),kge=yn({prop:"gridTemplateRows"}),Oge=yn({prop:"gridTemplateAreas"}),Rge=yn({prop:"gridArea"});Zy(Qy,e0,t0,$ge,Sge,_ge,Ege,Pge,Tge,kge,Oge,Rge);function Tu(e,t){return t==="grey"?t:e}const Dge=yn({prop:"color",themeKey:"palette",transform:Tu}),Mge=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tu}),Ige=yn({prop:"backgroundColor",themeKey:"palette",transform:Tu});Zy(Dge,Mge,Ige);function Bo(e){return e<=1&&e!==0?`${e*100}%`:e}const Age=yn({prop:"width",transform:Bo}),W_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||z_[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bo(n)}};return ko(e,e.maxWidth,t)}return null};W_.filterProps=["maxWidth"];const Nge=yn({prop:"minWidth",transform:Bo}),jge=yn({prop:"height",transform:Bo}),Lge=yn({prop:"maxHeight",transform:Bo}),Fge=yn({prop:"minHeight",transform:Bo});yn({prop:"size",cssProperty:"width",transform:Bo});yn({prop:"size",cssProperty:"height",transform:Bo});const zge=yn({prop:"boxSizing"});Zy(Age,W_,Nge,jge,Lge,Fge,zge);const Bge={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xy},color:{themeKey:"palette",transform:Tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tu},backgroundColor:{themeKey:"palette",transform:Tu},p:{style:Xn},pt:{style:Xn},pr:{style:Xn},pb:{style:Xn},pl:{style:Xn},px:{style:Xn},py:{style:Xn},padding:{style:Xn},paddingTop:{style:Xn},paddingRight:{style:Xn},paddingBottom:{style:Xn},paddingLeft:{style:Xn},paddingX:{style:Xn},paddingY:{style:Xn},paddingInline:{style:Xn},paddingInlineStart:{style:Xn},paddingInlineEnd:{style:Xn},paddingBlock:{style:Xn},paddingBlockStart:{style:Xn},paddingBlockEnd:{style:Xn},m:{style:Zn},mt:{style:Zn},mr:{style:Zn},mb:{style:Zn},ml:{style:Zn},mx:{style:Zn},my:{style:Zn},margin:{style:Zn},marginTop:{style:Zn},marginRight:{style:Zn},marginBottom:{style:Zn},marginLeft:{style:Zn},marginX:{style:Zn},marginY:{style:Zn},marginInline:{style:Zn},marginInlineStart:{style:Zn},marginInlineEnd:{style:Zn},marginBlock:{style:Zn},marginBlockStart:{style:Zn},marginBlockEnd:{style:Zn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qy},rowGap:{style:t0},columnGap:{style:e0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:W_},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n0=Bge;function Vge(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Uge(e,t){return typeof e=="function"?e(t):e}function Wge(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Jy(o,c)||{};return f?f(i):ko(i,r,b=>{let v=Tg(p,u,b);return b===v&&typeof b=="string"&&(v=Tg(p,u,`${n}${b==="default"?"":je(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:n0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=vj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Uge(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Uf(p,e(m,b,a,i));else{const v=ko({theme:a},b,x=>({[m]:x}));Vge(v,b)?p[m]=t({sx:b,theme:a}):p=Uf(p,v)}else p=Uf(p,e(m,b,a,i))}),gj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const bj=Wge();bj.filterProps=["sx"];const H_=bj,Hge=["breakpoints","palette","spacing","shape"];function r0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,Hge),s=tge(n),l=fge(o);let c=Hr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},rge,a)},i);return c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}function Gge(e){return Object.keys(e).length===0}function G_(e=null){const t=S.useContext(L_);return!t||Gge(t)?e:t}const qge=r0();function lh(e=qge){return G_(e)}function Yge({styles:e,themeId:t,defaultTheme:n={}}){const r=lh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Jve,{styles:o})}const Kge=["sx"],Jge=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:n0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function q_(e){const{sx:t}=e,n=Oe(e,Kge),{systemProps:r,otherProps:o}=Jge(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ui(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function xj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=jR(r)?e[o]:je(e[o]):r+=`${jR(r)?o:je(o)}${je(e[o].toString())}`}),r}const Xge=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qge(e){return Object.keys(e).length===0}function eye(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tye=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,kg=e=>{const t={};return e&&e.forEach(n=>{const r=wj(n.props);t[r]=n.style}),t},nye=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),kg(n)},Og=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[wj(a.props)])}),o},rye=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Og(e,t,a)};function Wf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oye=r0(),aye=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Iv({defaultTheme:e,theme:t,themeId:n}){return Qge(t)?e:t[n]||t}function iye(e){return e?(t,n)=>n[e]:null}const LR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Iv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Og(t,kg(a),a);return[o,...i]}return o};function Cj(e={}){const{themeId:t,defaultTheme:n=oye,rootShouldForwardProp:r=Wf,slotShouldForwardProp:o=Wf}=e,a=i=>H_(T({},i,{theme:Iv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Xve(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=iye(aye(c))}=s,m=Oe(s,Xge),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Wf;c==="Root"||c==="root"?g=r:c?g=o:eye(i)&&(g=void 0);const y=Zve(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const $=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>LR({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Ui(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let B=R;return Og(G,kg(U),U).forEach(Y=>{B=Hr(B,Y)}),B}),F}return R}):[];let E=C;if(Ui(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Og(F,kg(R),R).forEach(B=>{U=Hr(U,B)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>LR({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t})),U=tye(l,F);if(U){const G={};return Object.entries(U).forEach(([B,z])=>{G[B]=typeof z=="function"?z(T({},R,{theme:F})):z}),p(R,G)}return null}),l&&!b&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t}));return rye(R,nye(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...$);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const sye=Cj(),lye=sye;function Y_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:O_(t.components[n].defaultProps,r)}function $j({props:e,name:t,defaultTheme:n,themeId:r}){let o=lh(n);return r&&(o=o[r]||o),Y_({theme:o,name:t,props:e})}function K_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cye(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function nc(e){if(e.type)return e;if(e.charAt(0)==="#")return nc(cye(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Xs(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Xs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function o0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function uye(e){e=nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),o0({type:s,values:l})}function FR(e){e=nc(e);let t=e.type==="hsl"||e.type==="hsla"?nc(uye(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dye(e,t){const n=FR(e),r=FR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=nc(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function a0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o0(e)}function i0(e,t){if(e=nc(e),t=K_(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o0(e)}const fye=["component","direction","spacing","divider","children","className","useFlexGap"],pye=r0(),hye=lye("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mye(e){return $j({props:e,name:"MuiStack",defaultTheme:pye})}function vye(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yye=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},ko({theme:t},Bl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U_(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Bl({values:e.direction,base:o}),i=Bl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Hr(n,ko({theme:t},i,(l,c)=>e.useFlexGap?{gap:tc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gye(c?a[c]:e.direction)}`]:tc(r,l)}}))}return n=oge(t.breakpoints,n),n};function bye(e={}){const{createStyledComponent:t=hye,useThemeProps:n=mye,componentName:r="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>et(r,l),{}),a=t(yye);return S.forwardRef(function(l,c){const u=n(l),f=q_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,fye),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ie(_.root,g)},w,{children:v?vye(x,v):x}))})}function xye(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wye=["mode","contrastThreshold","tonalOffset"],zR={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xp.white,default:xp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lx={text:{primary:xp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function BR(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function Cye(e="light"){return e==="dark"?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function $ye(e="light"){return e==="dark"?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[500],light:Bc[300],dark:Bc[700]}}function Sye(e="light"){return e==="dark"?{main:zc[500],light:zc[300],dark:zc[700]}:{main:zc[700],light:zc[400],dark:zc[800]}}function _ye(e="light"){return e==="dark"?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:Uc[700],light:Uc[500],dark:Uc[900]}}function Eye(e="light"){return e==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}function Pye(e="light"){return e==="dark"?{main:nf[400],light:nf[300],dark:nf[700]}:{main:"#ed6c02",light:nf[500],dark:nf[900]}}function Tye(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,wye),a=e.primary||Cye(t),i=e.secondary||$ye(t),s=e.error||Sye(t),l=e.info||_ye(t),c=e.success||Eye(t),u=e.warning||Pye(t);function f(v){return dye(v,lx.text.primary)>=n?lx.text.primary:zR.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Xs(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(Xs(12,x?` (${x})`:"",JSON.stringify(v.main)));return BR(v,"light",y,r),BR(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:lx,light:zR};return Hr(T({common:T({},xp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:$me,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const kye=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Oye(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},UR='"Roboto", "Helvetica", "Arial", sans-serif';function Rye(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=UR,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,kye),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===UR?{letterSpacing:`${Oye(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,VR),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Dye=.2,Mye=.14,Iye=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Dye})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mye})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Iye})`].join(",")}const Aye=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],Nye=Aye,jye=["duration","easing","delay"],Lye={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Sj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WR(e){return`${Math.round(e)}ms`}function Fye(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zye(e){const t=T({},Lye,e.easing),n=T({},Sj,e.duration);return T({getAutoHeightDuration:Fye,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,jye),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:WR(i)} ${s} ${typeof l=="string"?l:WR(l)}`).join(",")}},e,{easing:t,duration:n})}const Bye={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vye=Bye,Uye=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wye(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Uye);if(e.vars)throw new Error(Xs(18));const s=Tye(r),l=r0(e);let c=Hr(l,{mixins:xye(l.breakpoints,n),palette:s,shadows:Nye.slice(),typography:Rye(s,a),transitions:zye(o),zIndex:T({},Vye)});return c=Hr(c,i),c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}const Hye=Wye(),s0=Hye;function nr(){const e=lh(s0);return e[Ny]||e}function Ke({props:e,name:t}){return $j({props:e,name:t,defaultTheme:s0,themeId:Ny})}const ta=e=>Wf(e)&&e!=="classes",J_=Wf,Gye=Cj({themeId:Ny,defaultTheme:s0,rootShouldForwardProp:ta}),de=Gye,qye=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},HR=qye;function Yye(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kye=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Xe(o,Yye,r)},Zye=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),_j=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Kye),b=S.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Jye(v);return O.jsxs(Zye,T({as:s,className:Ie(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});_j.muiName="SvgIcon";const sC=_j;function rr(e,t){function n(r,o){return O.jsx(sC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sC.muiName,S.memo(S.forwardRef(n))}const Xye={configure:e=>{Z5.configure(e)}},Qye=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:Eg,createSvgIcon:rr,debounce:ah,deprecatedPropType:Ome,isMuiElement:Eu,ownerDocument:zn,ownerWindow:$i,requirePropFactory:Rme,setRef:wp,unstable_ClassNameGenerator:Xye,unstable_useEnhancedEffect:Kn,unstable_useId:Ya,unsupportedProp:Ime,useControlled:Cr,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Ay},Symbol.toStringTag,{value:"Module"}));var _n={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Z_=Symbol.for("react.element"),X_=Symbol.for("react.portal"),l0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),u0=Symbol.for("react.profiler"),d0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),e0e=Symbol.for("react.server_context"),p0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),m0=Symbol.for("react.suspense_list"),v0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),t0e=Symbol.for("react.offscreen"),Ej;Ej=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z_:switch(e=e.type,e){case l0:case u0:case c0:case h0:case m0:return e;default:switch(e=e&&e.$$typeof,e){case e0e:case f0:case p0:case g0:case v0:case d0:return e;default:return t}}case X_:return t}}}_n.ContextConsumer=f0;_n.ContextProvider=d0;_n.Element=Z_;_n.ForwardRef=p0;_n.Fragment=l0;_n.Lazy=g0;_n.Memo=v0;_n.Portal=X_;_n.Profiler=u0;_n.StrictMode=c0;_n.Suspense=h0;_n.SuspenseList=m0;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return _a(e)===f0};_n.isContextProvider=function(e){return _a(e)===d0};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z_};_n.isForwardRef=function(e){return _a(e)===p0};_n.isFragment=function(e){return _a(e)===l0};_n.isLazy=function(e){return _a(e)===g0};_n.isMemo=function(e){return _a(e)===v0};_n.isPortal=function(e){return _a(e)===X_};_n.isProfiler=function(e){return _a(e)===u0};_n.isStrictMode=function(e){return _a(e)===c0};_n.isSuspense=function(e){return _a(e)===h0};_n.isSuspenseList=function(e){return _a(e)===m0};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l0||e===u0||e===c0||e===h0||e===m0||e===t0e||typeof e=="object"&&e!==null&&(e.$$typeof===g0||e.$$typeof===v0||e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===p0||e.$$typeof===Ej||e.getModuleId!==void 0)};_n.typeOf=_a;function lC(e,t){return lC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lC(e,t)}function Q_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lC(e,t)}function n0e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function r0e(e,t){e.classList?e.classList.add(t):n0e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o0e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GR(e.className,t):e.setAttribute("class",GR(e.className&&e.className.baseVal||"",t))}const qR={disabled:!1},Rg=M.createContext(null);var Pj=function(t){return t.scrollTop},_f="unmounted",Tl="exited",kl="entering",eu="entered",cC="exiting",ss=function(e){Q_(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Tl,a.appearStatus=kl):l=eu:r.unmountOnExit||r.mountOnEnter?l=_f:l=Tl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===_f?{status:Tl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==kl&&i!==eu&&(a=kl):(i===kl||i===eu)&&(a=cC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this);i&&Pj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tl&&this.setState({status:_f})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Cf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||qR.disabled){this.safeSetState({status:eu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:kl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:eu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Cf.findDOMNode(this);if(!a||qR.disabled){this.safeSetState({status:Tl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Tl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===_f)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Rg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ss.contextType=Rg;ss.propTypes={};function Gc(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc};ss.UNMOUNTED=_f;ss.EXITED=Tl;ss.ENTERING=kl;ss.ENTERED=eu;ss.EXITING=cC;const y0=ss;var a0e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return r0e(t,r)})},cx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return o0e(t,r)})},e2=function(e){Q_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Hu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function p0e(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const h0e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],m0e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(r,p0e,n)},v0e=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g0e=de("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y0e=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Sj.standard,TransitionComponent:C=y0}=r,_=Oe(r,h0e),$=T({},r,{orientation:g,collapsedSize:s}),E=m0e($),k=nr(),I=S.useRef(),R=S.useRef(null),F=S.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",B=G?"width":"height";S.useEffect(()=>()=>{clearTimeout(I.current)},[]);const z=S.useRef(null),Y=sn(n,z),Q=V=>Z=>{if(V){const re=z.current;Z===void 0?V(re):V(re,Z)}},H=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((V,Z)=>{R.current&&G&&(R.current.style.position="absolute"),V.style[B]=U,f&&f(V,Z)}),X=Q((V,Z)=>{const re=H();R.current&&G&&(R.current.style.position="");const{duration:le,easing:xe}=Hu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const fe=k.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${fe}ms`,F.current=fe}else V.style.transitionDuration=typeof le=="string"?le:`${le}ms`;V.style[B]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,Z)}),L=Q((V,Z)=>{V.style[B]="auto",p&&p(V,Z)}),K=Q(V=>{V.style[B]=`${H()}px`,b&&b(V)}),q=Q(v),D=Q(V=>{const Z=H(),{duration:re,easing:le}=Hu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[B]=U,V.style.transitionTimingFunction=le,x&&x(V)}),N=V=>{w==="auto"&&(I.current=setTimeout(V,F.current||0)),o&&o(z.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:z,timeout:w==="auto"?null:w},_,{children:(V,Z)=>O.jsx(v0e,T({as:l,className:Ie(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[V]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},$,{state:V}),ref:Y},Z,{children:O.jsx(g0e,{ownerState:T({},$,{state:V}),className:E.wrapper,ref:R,children:O.jsx(y0e,{ownerState:T({},$,{state:V}),className:E.wrapperInner,children:a})})}))}))});kj.muiSupportAuto=!0;const b0e=kj;function x0e(e){return et("MuiPaper",e)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const w0e=["className","component","elevation","square","variant"],C0e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xe(a,x0e,o)},$0e=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",HR(t.elevation))}, ${Tt("#fff",HR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),S0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,w0e),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=C0e(u);return O.jsx($0e,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),ls=S0e,_0e=S.createContext({}),Oj=_0e;function E0e(e){return et("MuiAccordion",e)}const P0e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),zm=P0e,T0e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],k0e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},E0e,t)},O0e=de(ls,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${zm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${zm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${zm.expanded}`]:{margin:"16px 0"}})),R0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=b0e,TransitionProps:m}=r,b=Oe(r,T0e),[v,x]=Cr({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=S.Children.toArray(o),C=S.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),$=k0e(_);return O.jsxs(O0e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Oj.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:$.region,children:w})}))]}))}),D0e=R0e;function M0e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const I0e=["className"],A0e=e=>{const{classes:t}=e;return Xe({root:["root"]},M0e,t)},N0e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),j0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,I0e),i=r,s=A0e(i);return O.jsx(N0e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),L0e=j0e;function F0e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=S.useState(!1),p=Ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),S.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const z0e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=z0e,B0e=["center","classes","className"];let b0=e=>e,YR,KR,JR,ZR;const uC=550,V0e=80,U0e=F_(YR||(YR=b0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),W0e=F_(KR||(KR=b0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),H0e=F_(JR||(JR=b0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),G0e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),q0e=de(F0e,{name:"MuiTouchRipple",slot:"Ripple"})(ZR||(ZR=b0` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),da.rippleVisible,U0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,W0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,H0e,({theme:e})=>e.transitions.easing.easeInOut),Y0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,B0e),[l,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=S.useRef(!1),m=S.useRef(0),b=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=S.useCallback(C=>{const{pulsate:_,rippleX:$,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(q0e,{classes:{ripple:Ie(a.ripple,da.ripple),rippleVisible:Ie(a.rippleVisible,da.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,da.ripplePulsate),child:Ie(a.child,da.child),childLeaving:Ie(a.childLeaving,da.childLeaving),childPulsate:Ie(a.childPulsate,da.childPulsate)},timeout:uC,pulsate:_,rippleX:$,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,B;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:z,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(z-F.left),G=Math.round(Y-F.top)}if(k)B=Math.sqrt((2*F.width**2+F.height**2)/3),B%2===0&&(B+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;B=Math.sqrt(z**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},V0e)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},[o,x]),y=S.useCallback(()=>{g({},{pulsate:!0})},[g]),w=S.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c($=>$.length>0?$.slice(1):$),f.current=_},[]);return S.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(G0e,T({className:Ie(da.root,a.root,i),ref:v},s,{children:O.jsx(r2,{component:null,exit:!0,children:l})}))}),K0e=Y0e;function J0e(e){return et("MuiButtonBase",e)}const Z0e=Qe("MuiButtonBase",["root","disabled","focusVisible"]),X0e=Z0e,Q0e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],e1e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},J0e,o);return n&&r&&(i.root+=` ${r}`),i},t1e=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${X0e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),n1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:$,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:B,type:z}=r,Y=Oe(r,Q0e),Q=S.useRef(null),H=S.useRef(null),J=sn(H,B),{isFocusVisibleRef:X,onFocus:L,onBlur:K,ref:q}=Ay(),[D,N]=S.useState(!1);c&&D&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,Z]=S.useState(!1);S.useEffect(()=>{Z(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{D&&p&&!u&&V&&H.current.pulsate()},[u,p,D,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&H.current&&H.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",x),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),ve=le("start",F),Be=le("stop",I),Ue=le("stop",R),ze=le("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),be=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=S.useRef(!1),Ce=mt(Te=>{p&&!we.current&&D&&H.current&&Te.key===" "&&(we.current=!0,H.current.stop(Te,()=>{H.current.start(Te)})),Te.target===Te.currentTarget&&be()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&be()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),qe=mt(Te=>{p&&Te.key===" "&&H.current&&D&&!Te.defaultPrevented&&(we.current=!1,H.current.stop(Te,()=>{H.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(Y.href||Y.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=z===void 0?"button":z,Ae.disabled=c):(!Y.href&&!Y.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=sn(n,q,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=e1e(Fe);return O.jsxs(t1e,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:qe,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:U,type:z},Ae,Y,{children:[i,re?O.jsx(K0e,T({ref:J,center:a},G)):null]}))}),Ca=n1e;function r1e(e){return et("MuiAccordionSummary",e)}const o1e=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vu=o1e,a1e=["children","className","expandIcon","focusVisibleClassName","onClick"],i1e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},r1e,t)},s1e=de(Ca,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vu.expanded}`]:{minHeight:64}})}),l1e=de("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{margin:"20px 0"}})),c1e=de("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{transform:"rotate(180deg)"}})),u1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,a1e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(Oj),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=i1e(v);return O.jsxs(s1e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ie(x.root,a),focusVisibleClassName:Ie(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(l1e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(c1e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),d1e=u1e;function f1e(e){return et("MuiIconButton",e)}const p1e=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h1e=p1e,m1e=["edge","children","className","color","disabled","disableFocusRipple","size"],v1e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(a)}`]};return Xe(i,f1e,t)},g1e=de(Ca,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h1e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),y1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,m1e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=v1e(p);return O.jsx(g1e,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),tr=y1e,b1e=rr(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function x1e(e){return et("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const w1e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],C1e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xe(s,x1e,i)},$1e=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),XR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},S1e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_1e=e=>S1e[e]||e,E1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=_1e(r.color),a=q_(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=XR}=a,b=Oe(a,w1e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||XR[p])||"span",g=C1e(v);return O.jsx($1e,T({as:x,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),gn=E1e;function P1e(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1e=["className","color","enableColorOnDark","position"],k1e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Xe(o,P1e,r)},Bm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O1e=de(ls,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),R1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,T1e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=k1e(c);return O.jsx(O1e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),D1e=R1e;function yi(e){return typeof e=="string"}function Ef(e,t,n){return e===void 0||yi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function M1e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const I1e={disableDefaultClasses:!1},A1e=S.createContext(I1e);function N1e(e){const{disableDefaultClasses:t}=S.useContext(A1e);return n=>t?"":e(n)}function Hf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function al(e,t,n){return typeof e=="function"?e(t,n):e}function QR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function j1e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ie(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Hf(T({},o,r)),s=QR(r),l=QR(o),c=t(i),u=Ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const L1e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,L1e),s=a?{}:al(r,o),{props:l,internalRef:c}=j1e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ef(n,T({},l,{ref:u}),o)}function F1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=k_({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const z1e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B1e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V1e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function U1e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V1e(e))}function W1e(e){const t=[],n=[];return Array.from(e.querySelectorAll(z1e)).forEach((r,o)=>{const a=B1e(r);a===-1||!U1e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function H1e(){return!0}function Rj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=W1e,isEnabled:i=H1e,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(!1),b=S.useRef(null),v=sn(t.ref,b),x=S.useRef(null);S.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const $=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval($),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs(S.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var $o="top",$a="bottom",Sa="right",So="left",o2="auto",ch=[$o,$a,Sa,So],Gu="start",_p="end",G1e="clippingParents",Dj="viewport",of="popper",q1e="reference",eD=ch.reduce(function(e,t){return e.concat([t+"-"+Gu,t+"-"+_p])},[]),Mj=[].concat(ch,[o2]).reduce(function(e,t){return e.concat([t,t+"-"+Gu,t+"-"+_p])},[]),Y1e="beforeRead",K1e="read",J1e="afterRead",Z1e="beforeMain",X1e="main",Q1e="afterMain",ebe="beforeWrite",tbe="write",nbe="afterWrite",rbe=[Y1e,K1e,J1e,Z1e,X1e,Q1e,ebe,tbe,nbe];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rc(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function va(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a2(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function obe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!va(a)||!Si(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function abe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!va(o)||!Si(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const ibe={name:"applyStyles",enabled:!0,phase:"write",fn:obe,effect:abe,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Vl=Math.max,Dg=Math.min,qu=Math.round;function dC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ij(){return!/^((?!chrome|android).)*safari/i.test(dC())}function Yu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&va(e)&&(o=e.offsetWidth>0&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var i=rc(e)?Yo(e):window,s=i.visualViewport,l=!Ij()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function i2(e){var t=Yu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Aj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return Yo(e).getComputedStyle(e)}function sbe(e){return["table","td","th"].indexOf(Si(e))>=0}function il(e){return((rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function x0(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(a2(e)?e.host:null)||il(e)}function tD(e){return!va(e)||ts(e).position==="fixed"?null:e.offsetParent}function lbe(e){var t=/firefox/i.test(dC()),n=/Trident/i.test(dC());if(n&&va(e)){var r=ts(e);if(r.position==="fixed")return null}var o=x0(e);for(a2(o)&&(o=o.host);va(o)&&["html","body"].indexOf(Si(o))<0;){var a=ts(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function uh(e){for(var t=Yo(e),n=tD(e);n&&sbe(n)&&ts(n).position==="static";)n=tD(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||lbe(e)||t}function s2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gf(e,t,n){return Vl(e,Dg(t,n))}function cbe(e,t,n){var r=Gf(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function jj(e){return Object.assign({},Nj(),e)}function Lj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ube=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jj(typeof t!="number"?t:Lj(t,ch))};function dbe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=bi(n.placement),l=s2(s),c=[So,Sa].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=ube(o.padding,n),p=i2(a),m=l==="y"?$o:So,b=l==="y"?$a:Sa,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=uh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],$=y/2-p[u]/2+w,E=Gf(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function fbe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Aj(t.elements.popper,o)&&(t.elements.arrow=o))}const pbe={name:"arrow",enabled:!0,phase:"main",fn:dbe,effect:fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var hbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mbe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qu(n*o)/o||0,y:qu(r*o)/o||0}}function nD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=So,C=$o,_=window;if(c){var $=uh(n),E="clientHeight",k="clientWidth";if($===Yo(n)&&($=il(n),ts($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,o===$o||(o===So||o===Sa)&&a===_p){C=$a;var I=f&&$===_&&_.visualViewport?_.visualViewport.height:$[E];v-=I-r.height,v*=l?1:-1}if(o===So||(o===$o||o===$a)&&a===_p){w=Sa;var R=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&hbe),U=u===!0?mbe({x:m,y:v},Yo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function vbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:bi(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vbe,data:{}};var Vm={passive:!0};function ybe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Yo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Vm)}),s&&l.addEventListener("resize",n.update,Vm),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Vm)}),s&&l.removeEventListener("resize",n.update,Vm)}}const bbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ybe,data:{}};var xbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Av(e){return e.replace(/left|right|bottom|top/g,function(t){return xbe[t]})}var wbe={start:"end",end:"start"};function rD(e){return e.replace(/start|end/g,function(t){return wbe[t]})}function l2(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c2(e){return Yu(il(e)).left+l2(e).scrollLeft}function Cbe(e,t){var n=Yo(e),r=il(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ij();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+c2(e),y:l}}function $be(e){var t,n=il(e),r=l2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+c2(e),l=-r.scrollTop;return ts(o||n).direction==="rtl"&&(s+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function u2(e){var t=ts(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Fj(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:va(e)&&u2(e)?e:Fj(x0(e))}function qf(e,t){var n;t===void 0&&(t=[]);var r=Fj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),i=o?[a].concat(a.visualViewport||[],u2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qf(x0(i)))}function fC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sbe(e,t){var n=Yu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function oD(e,t,n){return t===Dj?fC(Cbe(e,n)):rc(t)?Sbe(t,n):fC($be(il(e)))}function _be(e){var t=qf(x0(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&va(e)?uh(e):e;return rc(r)?t.filter(function(o){return rc(o)&&Aj(o,r)&&Si(o)!=="body"}):[]}function Ebe(e,t,n,r){var o=t==="clippingParents"?_be(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=oD(e,c,r);return l.top=Vl(u.top,l.top),l.right=Dg(u.right,l.right),l.bottom=Dg(u.bottom,l.bottom),l.left=Vl(u.left,l.left),l},oD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zj(e){var t=e.reference,n=e.element,r=e.placement,o=r?bi(r):null,a=r?Ku(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case $o:l={x:i,y:t.y-n.height};break;case $a:l={x:i,y:t.y+t.height};break;case Sa:l={x:t.x+t.width,y:s};break;case So:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?s2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Gu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _p:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?G1e:s,c=n.rootBoundary,u=c===void 0?Dj:c,f=n.elementContext,p=f===void 0?of:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=jj(typeof x!="number"?x:Lj(x,ch)),y=p===of?q1e:of,w=e.rects.popper,C=e.elements[b?y:p],_=Ebe(rc(C)?C:C.contextElement||il(e.elements.popper),l,u,i),$=Yu(e.elements.reference),E=zj({reference:$,element:w,strategy:"absolute",placement:o}),k=fC(Object.assign({},w,E)),I=p===of?k:$,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===of&&F){var U=F[o];Object.keys(R).forEach(function(G){var B=[Sa,$a].indexOf(G)>=0?1:-1,z=[$o,$a].indexOf(G)>=0?"y":"x";R[G]+=U[z]*B})}return R}function Pbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Mj:l,u=Ku(r),f=u?s?eD:eD.filter(function(b){return Ku(b)===u}):ch,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Ep(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[bi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Tbe(e){if(bi(e)===o2)return[];var t=Av(e);return[rD(e),t,rD(t)]}function kbe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=bi(x),y=g===x,w=l||(y||!b?[Av(x)]:Tbe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(bi(N)===o2?Pbe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,z=B?"width":"height",Y=Ep(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=B?G?Sa:So:G?$a:$o;_[z]>$[z]&&(Q=Av(Q));var H=Av(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[H]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,L=function(N){var V=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return I=V,"break"},K=X;K>0;K--){var q=L(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Obe={name:"flip",enabled:!0,phase:"main",fn:kbe,requiresIfExists:["offset"],data:{_skip:!1}};function aD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iD(e){return[$o,Sa,$a,So].some(function(t){return e[t]>=0})}function Rbe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ep(t,{elementContext:"reference"}),s=Ep(t,{altBoundary:!0}),l=aD(i,r),c=aD(s,o,a),u=iD(l),f=iD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Dbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rbe};function Mbe(e,t,n){var r=bi(e),o=[So,$o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[So,Sa].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function Ibe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=Mj.reduce(function(u,f){return u[f]=Mbe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Abe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ibe};function Nbe(e){var t=e.state,n=e.name;t.modifiersData[n]=zj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jbe={name:"popperOffsets",enabled:!0,phase:"read",fn:Nbe,data:{}};function Lbe(e){return e==="x"?"y":"x"}function Fbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Ep(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=bi(t.placement),y=Ku(t.placement),w=!y,C=s2(g),_=Lbe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if($){if(a){var G,B=C==="y"?$o:So,z=C==="y"?$a:Sa,Y=C==="y"?"height":"width",Q=$[C],H=Q+x[B],J=Q-x[z],X=m?-k[Y]/2:0,L=y===Gu?E[Y]:k[Y],K=y===Gu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?i2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),V=N[B],Z=N[z],re=Gf(0,E[Y],D[Y]),le=w?E[Y]/2-X-re-V-R.mainAxis:L-re-V-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,fe=t.elements.arrow&&uh(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(G=F==null?void 0:F[C])!=null?G:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=Gf(m?Dg(H,_e):H,Q,m?Vl(J,ve):J);$[C]=Be,U[C]=Be-Q}if(s){var Ue,ze=C==="x"?$o:So,He=C==="x"?$a:Sa,be=$[_],we=_==="y"?"height":"width",Ce=be+x[ze],qe=be-x[He],rt=[$o,So].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-E[we]-k[we]-Ae+R.altAxis,Fe=rt?be+E[we]+k[we]-Ae-R.altAxis:qe,Pe=m&&rt?cbe(Le,be,Fe):Gf(m?Le:Ce,be,m?Fe:qe);$[_]=Pe,U[_]=Pe-be}t.modifiersData[r]=U}}const zbe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fbe,requiresIfExists:["offset"]};function Bbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vbe(e){return e===Yo(e)||!va(e)?l2(e):Bbe(e)}function Ube(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wbe(e,t,n){n===void 0&&(n=!1);var r=va(t),o=va(t)&&Ube(t),a=il(t),i=Yu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||u2(a))&&(s=Vbe(t)),va(t)?(l=Yu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=c2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Hbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Gbe(e){var t=Hbe(e);return rbe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ybe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sD={placement:"bottom",modifiers:[],strategy:"absolute"};function lD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(Xbe(o)||document.body)},[o,a]),Kn(()=>{if(i&&!a)return wp(n,i),()=>{wp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return O.jsx(S.Fragment,{children:r})}return O.jsx(S.Fragment,{children:i&&nd.createPortal(r,i)})});function Qbe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const exe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],txe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nxe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pC(e){return typeof e=="function"?e():e}function rxe(e){return e.nodeType!==void 0}const oxe=()=>Xe({root:["root"]},N1e(Qbe)),axe={},ixe=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,exe),g=S.useRef(null),y=sn(g,n),w=S.useRef(null),C=sn(w,p),_=S.useRef(C);Kn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>w.current,[]);const $=nxe(u,i),[E,k]=S.useState($),[I,R]=S.useState(pC(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&R(pC(o))},[o]),Kn(()=>{if(!I||!c)return;const z=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=Zbe(I,g.current,T({placement:$},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,$]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=oxe(),G=(r=b.root)!=null?r:"div",B=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},B,{children:typeof a=="function"?a(F):a}))}),sxe=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=axe,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,txe),[w,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=pC(r);E=R&&rxe(R)?zn(R).body:zn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(Bj,{disablePortal:s,container:E,children:O.jsx(ixe,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function lxe(e){const t=zn(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cD(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function uD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!cxe(i);s&&l&&Yf(i,o)})}function ux(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uxe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lxe(r)){const i=K5(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cD(r)+i}px`;const s=zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cD(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=zn(r).body;else{const i=r.parentElement,s=$i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function dxe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fxe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Yf(t.modalRef,!1);const o=dxe(n);uD(n,t.mount,t.modalRef,o,!0);const a=ux(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ux(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=uxe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ux(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Yf(t.modalRef,n),uD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Yf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pxe(e){return typeof e=="function"?e():e}function hxe(e){return e?e.props.hasOwnProperty("in"):!1}const mxe=new fxe;function vxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mxe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=S.useRef({}),m=S.useRef(null),b=S.useRef(null),v=sn(b,f),[x,g]=S.useState(!u),y=hxe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>zn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=pxe(t)||C().body;o.add(_(),Y),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?$():b.current&&Yf(b.current,w))}),R=S.useCallback(()=>{o.remove(_(),w)},[w,o]);S.useEffect(()=>()=>{R()},[R]),S.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var H;(H=Y.onKeyDown)==null||H.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var H;(H=Y.onClick)==null||H.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Hf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const H=T({},Q,Y);return T({role:"presentation"},H,{onKeyDown:F(H),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Eg(Y,l==null?void 0:l.props.onEnter),onExited:Eg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const gxe=2;function Vj(e,t){return e-t}function af(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function dD(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Cxe=e=>e;let Gm;function dx(){return Gm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Gm=CSS.supports("touch-action","none"):Gm=!0),Gm}function $xe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=Cxe,step:v=1,tabIndex:x,value:g}=e,y=S.useRef(),[w,C]=S.useState(-1),[_,$]=S.useState(-1),[E,k]=S.useState(!1),I=S.useRef(0),[R,F]=Cr({controlled:g,default:n??l,name:"Slider"}),U=u&&((Ae,Le,Fe)=>{const Pe=Ae.nativeEvent||Ae,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:Le,name:c}}),u(Te,Le,Fe)}),G=Array.isArray(R);let B=G?R.slice().sort(Vj):[R];B=B.map(Ae=>af(Ae,l,s));const z=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],Y=z.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:H,onFocus:J,ref:X}=Ay(),[L,K]=S.useState(-1),q=S.useRef(),D=sn(X,q),N=sn(m,D),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&K(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},Z=Ae=>Le=>{var Fe;H(Le),Q.current===!1&&K(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Kn(()=>{if(r&&q.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&w!==-1&&C(-1),r&&L!==-1&&K(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=B[Pe],it=Y.indexOf(Te);let ct=Le.target.valueAsNumber;if(z&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:Fe}=q,{width:Pe,height:Te,bottom:it,left:ct}=Fe.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Ae.y)/Te:gt=(Ae.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Ne;if(Ne=yxe(gt,l,s),v)Ne=xxe(Ne,v,l);else{const te=dD(Y,Ne);Ne=Y[te]}Ne=af(Ne,l,s);let ne=0;if(G){Le?ne=le.current:ne=dD(B,Ne),o&&(Ne=af(Ne,B[ne-1]||-1/0,B[ne+1]||1/0));const te=Ne;Ne=fD({values:B,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=Um(Ae,y);if(!Le)return;if(I.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});Wm({sliderRef:q,activeIndex:Pe,setActive:C}),F(Fe),!E&&I.current>gxe&&k(!0),U&&!Hm(Fe,R)&&U(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=Um(Ae,y);if(k(!1),!Le)return;const{newValue:Fe}=fe({finger:Le,move:!0});C(-1),Ae.type==="touchend"&&$(-1),f&&f(Ae,Fe),y.current=void 0,ve()}),_e=mt(Ae=>{if(r)return;dx()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=Um(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});Wm({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!Hm(Te,R)&&U(Ae,Te,it)}I.current=0;const Pe=zn(q.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=zn(q.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=q;return Ae.addEventListener("touchstart",_e,{passive:dx()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:dx()}),ve()}},[ve,_e]),S.useEffect(()=>{r&&ve()},[r,ve]);const Be=Ae=>Le=>{var Fe;if((Fe=Ae.onMouseDown)==null||Fe.call(Ae,Le),r||Le.defaultPrevented||Le.button!==0)return;Le.preventDefault();const Pe=Um(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});Wm({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!Hm(it,R)&&U(Le,it,ct)}I.current=0;const Te=zn(q.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=Mg(G?B[0]:l,l,s),ze=Mg(B[B.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Hf(Ae),Fe={onMouseDown:Be(Le||{})},Pe=T({},Le,Fe);return T({},Ae,{ref:N},Pe)},be=Ae=>Le=>{var Fe;(Fe=Ae.onMouseOver)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index"));$(Pe)},we=Ae=>Le=>{var Fe;(Fe=Ae.onMouseLeave)==null||Fe.call(Ae,Le),$(-1)};return{active:w,axis:xe,axisProps:wxe,dragging:E,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Hf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:Z(Fe||{})},Te=T({},Fe,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Le=e.step)!=null?Le:void 0,disabled:r},Ae,Te,{style:T({},Wme,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Hf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:z,open:_,range:G,rootRef:N,trackLeap:ze,trackOffset:Ue,values:B,getThumbStyle:Ae=>({pointerEvents:w!==-1&&w!==Ae?"none":void 0})}}const Sxe=["onChange","maxRows","minRows","style","value"];function qm(e){return parseInt(e,10)||0}const _xe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Exe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Sxe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=sn(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),x=S.useCallback(()=>{const C=u.current,$=$i(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=$.boxSizing,I=qm($.paddingBottom)+qm($.paddingTop),R=qm($.borderBottomWidth)+qm($.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const B=G+(k==="border-box"?I+R:0),z=Math.abs(G-F)<=1;return{outerHeightStyle:B,overflow:z}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:E}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=x();pD(C)||v(_=>g(_,C))},[x]);Kn(()=>{const C=()=>{const F=x();pD(F)||nd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let $;const E=ah(_),k=u.current,I=$i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame($),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Kn(()=>{y()}),S.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs(S.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},_xe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function hD(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pxe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=hD(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=hD(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function fx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Oxe(e){const{unstable_isActiveElementInListbox:t=kxe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=Txe,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=me=>{var pe;return(pe=me.label)!=null?pe:me},groupBy:_,handleHomeEndKeys:$=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(me,pe)=>me===pe,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:B,onInputChange:z,onOpen:Y,open:Q,openOnFocus:H=!1,options:J,readOnly:X=!1,selectOnFocus:L=!e.freeSolo,value:K}=e,q=Ya(E);let D=C;D=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),Z=S.useRef(null),re=S.useRef(null),[le,xe]=S.useState(null),[fe,ge]=S.useState(-1),he=o?0:-1,_e=S.useRef(he),[ve,Be]=Cr({controlled:K,default:u,name:c}),[Ue,ze]=Cr({controlled:I,default:"",name:c,state:"inputValue"}),[He,be]=S.useState(!1),we=S.useCallback((me,pe)=>{if(!(F?ve.length!(g&&(F?ve:[ve]).some(pe=>pe!==null&&R(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:D}):[],Te=k_({filteredOptions:Pe,value:ve,inputValue:Ue});S.useEffect(()=>{const me=ve!==Te.value;He&&!me||y&&!me||we(null,ve)},[ve,we,He,Te.value,y]);const it=Ce&&Pe.length>0&&!X,ct=mt(me=>{me===-1?Z.current.focus():le.querySelector(`[data-tag-index="${me}"]`).focus()});S.useEffect(()=>{F&&fe>ve.length-1&&(ge(-1),ct(-1))},[ve,F,fe,ct]);function gt(me,pe){if(!re.current||me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===Pe.length||pe==="previous"&&De===-1)return-1;const nt=re.current.querySelector(`[data-option-index="${De}"]`),lt=b?!1:!nt||nt.disabled||nt.getAttribute("aria-disabled")==="true";if(nt&&!nt.hasAttribute("tabindex")||lt)De+=pe==="next"?1:-1;else return De}}const Ne=mt(({event:me,index:pe,reason:De="auto"})=>{if(_e.current=pe,pe===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${pe}`),B&&B(me,pe===-1?null:Pe[pe],De),!re.current)return;const nt=re.current.querySelector(`[role="option"].${n}-focused`);nt&&(nt.classList.remove(`${n}-focused`),nt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(pe===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${pe}"]`);if(xt&&(xt.classList.add(`${n}-focused`),De==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&De!=="mouse"&&De!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!Fe)return;const xt=gt((()=>{const Nt=Pe.length-1;if(pe==="reset")return he;if(pe==="start")return 0;if(pe==="end")return Nt;const ut=_e.current+pe;return ut<0?ut===-1&&k?-1:v&&_e.current!==-1||Math.abs(pe)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(pe)>1?Nt:0:ut})(),De);if(Ne({index:xt,reason:nt,event:me}),r&&pe!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?D(pe):"",lt=De?D(De):"";return nt===lt};if(_e.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?ve.length===Te.value.length&&Te.value.every((pe,De)=>D(ve[De])===D(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>D(nt)===D(pe)))return!0}return!1},ie=S.useCallback(()=>{if(!Fe||te())return;const me=F?ve[0]:ve;if(Pe.length===0||me==null){ne({diff:"reset"});return}if(re.current){if(me!=null){const pe=Pe[_e.current];if(F&&pe&&fx(ve,nt=>R(pe,nt))!==-1)return;const De=fx(Pe,nt=>R(nt,me));De===-1?ne({diff:"reset"}):Ne({index:De});return}if(_e.current>=Pe.length-1){Ne({index:Pe.length-1});return}Ne({index:_e.current})}},[Pe.length,F?!1:ve,g,ne,Ne,Fe,Ue,F]),$e=mt(me=>{wp(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(qe(!0),Ae(!0),Y&&Y(me))},Ze=(me,pe)=>{Ce&&(qe(!1),G&&G(me,pe))},tt=(me,pe,De,nt)=>{if(F){if(ve.length===pe.length&&ve.every((lt,xt)=>lt===pe[xt]))return}else if(ve===pe)return;U&&U(me,pe,De,nt),Be(pe)},ft=S.useRef(!1),_t=(me,pe,De="selectOption",nt="options")=>{let lt=De,xt=pe;if(F){xt=Array.isArray(ve)?ve.slice():[];const Nt=fx(xt,ut=>R(pe,ut));Nt===-1?xt.push(pe):nt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(me,xt),tt(me,xt,lt,{option:pe}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&Ze(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(me,pe){if(me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===ve.length||pe==="previous"&&De===-1)return-1;const nt=le.querySelector(`[data-tag-index="${De}"]`);if(!nt||!nt.hasAttribute("tabindex")||nt.disabled||nt.getAttribute("aria-disabled")==="true")De+=pe==="next"?1:-1;else return De}}const dt=(me,pe)=>{if(!F)return;Ue===""&&Ze(me,"toggleInput");let De=fe;fe===-1?Ue===""&&pe==="previous"&&(De=ve.length-1):(De+=pe==="next"?1:-1,De<0&&(De=0),De===ve.length&&(De=-1)),De=vt(De,pe),ge(De),ct(De)},Et=me=>{N.current=!0,ze(""),z&&z(me,"","clear"),tt(me,F?[]:null,"clear")},Yt=me=>pe=>{if(me.onKeyDown&&me.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(pe.key)===-1&&(ge(-1),ct(-1)),pe.which!==229))switch(pe.key){case"Home":Fe&&$&&(pe.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":Fe&&$&&(pe.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),ne({diff:-mD,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:mD,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowDown":pe.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowUp":pe.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowLeft":dt(pe,"previous");break;case"ArrowRight":dt(pe,"next");break;case"Enter":if(_e.current!==-1&&Fe){const De=Pe[_e.current],nt=w?w(De):!1;if(pe.preventDefault(),nt)return;_t(pe,De,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Ze(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!X&&Ue===""&&ve.length>0){const De=fe===-1?ve.length-1:fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break;case"Delete":if(F&&!X&&Ue===""&&ve.length>0&&fe!==-1){const De=fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break}},kt=me=>{be(!0),H&&!N.current&&Se(me)},ln=me=>{if(t(re)){Z.current.focus();return}be(!1),V.current=!0,N.current=!1,a&&_e.current!==-1&&Fe?_t(me,Pe[_e.current],"blur"):a&&y&&Ue!==""?_t(me,Ue,"blur","freeSolo"):s&&we(me,ve),Ze(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),z&&z(me,pe,"input")),pe===""?!f&&!F&&tt(me,null,"clear"):Se(me)},Ut=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_e.current!==pe&&Ne({event:me,index:pe,reason:"mouse"})},Kt=me=>{Ne({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},bn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Bn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Ze(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==q&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(Z.current.focus(),L&&V.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),V.current=!1)},ke=me=>{!m&&(Ue===""||!Ce)&&se(me)};let Ee=y&&Ue.length>0;Ee=Ee||(F?ve.length>0:ve!==null);let pt=Pe;return _&&(pt=Pe.reduce((me,pe,De)=>{const nt=_(pe);return me.length>0&&me[me.length-1].group===nt?me[me.length-1].options.push(pe):me.push({key:De,index:De,group:nt,options:[pe]}),me},[])),m&&He&&ln(),{getRootProps:(me={})=>T({"aria-owns":it?`${q}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:se}),getTagProps:({index:me})=>T({key:me,"data-tag-index":me,tabIndex:-1},!X&&{onDelete:Bn(me)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&R(pe,lt)),nt=w?w(pe):!1;return{key:D(pe),tabIndex:-1,role:"option",id:`${q}-option-${me}`,onMouseMove:Ut,onClick:bn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:q,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const Rxe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Dxe=de(sxe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mxe=S.forwardRef(function(t,n){var r;const o=G_(),a=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,Rxe),$=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(Dxe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},E,{ref:n}))}),dh=Mxe;function Ixe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Axe=["className","color","component","disableGutters","disableSticky","inset"],Nxe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Xe(i,Ixe,t)},jxe=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Uj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,Axe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=Nxe(f);return O.jsx(jxe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});Uj.muiSkipListHighlight=!0;const Lxe=Uj,Fxe=rr(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function zxe(e){return et("MuiChip",e)}const Bxe=Qe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=Bxe,Vxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Uxe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,i&&"deletable",i&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(a)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Xe(c,zxe,t)},Wxe=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${je(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${je(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hxe=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function vD(e){return e.key==="Backspace"||e.key==="Delete"}const Gxe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,Vxe),$=S.useRef(null),E=sn($,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&vD(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&vD(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Ca:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),B=Uxe(G),z=U===Ca?T({component:l||"div",focusVisibleClassName:B.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,B.deleteIcon),onClick:k}):O.jsx(Fxe,{className:Ie(B.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(B.avatar,o.props.className)}));let H=null;return f&&S.isValidElement(f)&&(H=S.cloneElement(f,{className:Ie(B.icon,f.props.className)})),O.jsxs(Wxe,T({as:U,className:Ie(B.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},z,_,{children:[Q||H,O.jsx(Hxe,{className:Ie(B.label),ownerState:G,children:p}),Y]}))}),Wj=Gxe;function sl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const qxe=S.createContext(void 0),w0=qxe;function Pi(){return S.useContext(w0)}function Yxe(e){return O.jsx(Yge,T({},e,{defaultTheme:s0,themeId:Ny}))}function gD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ig(e,t=!1){return e&&(gD(e.value)&&e.value!==""||t&&gD(e.defaultValue)&&e.defaultValue!=="")}function Kxe(e){return e.startAdornment}function Jxe(e){return et("MuiInputBase",e)}const Zxe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=Zxe,Xxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],C0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qxe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,Jxe,t)},S0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ewe=O.jsx(Yxe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),twe=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:$=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:B,readOnly:z,renderSuffix:Y,rows:Q,slotProps:H={},slots:J={},startAdornment:X,type:L="text",value:K}=o,q=Oe(o,Xxe),D=y.value!=null?y.value:K,{current:N}=S.useRef(D!=null),V=S.useRef(),Z=S.useCallback(Pe=>{},[]),re=sn(V,w,y.ref,Z),[le,xe]=S.useState(!1),fe=Pi(),ge=sl({props:o,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&p&&le&&(xe(!1),k&&k())},[fe,p,le,k]);const he=fe&&fe.onFilled,_e=fe&&fe.onEmpty,ve=S.useCallback(Pe=>{Ig(Pe)?he&&he():_e&&_e()},[he,_e]);Kn(()=>{N&&ve({value:D})},[D,ve,N]);const Be=Pe=>{if(ge.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),fe&&fe.onFocus?fe.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),fe&&fe.onBlur?fe.onBlur(Pe):xe(!1)},ze=(Pe,...Te)=>{if(!N){const it=Pe.target||V.current;if(it==null)throw new Error(Xs(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),R&&R(Pe)};let be=g,we=y;$&&be==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),be=Exe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!X)},[fe,X]);const qe=T({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:b,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:X,type:L}),rt=Qxe(qe),Ae=J.root||c.Root||S0,Le=H.root||u.root||{},Fe=J.input||c.Input||_0;return we=T({},we,(r=H.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&ewe,O.jsxs(Ae,T({},Le,!yi(Ae)&&{ownerState:T({},qe,Le.ownerState)},{ref:n,onClick:He},q,{className:Ie(rt.root,Le.className,l,z&&"MuiInputBase-readOnly"),children:[X,O.jsx(w0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:qe,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:x,onAnimationStart:Ce,name:E,placeholder:B,readOnly:z,required:ge.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:L},we,!yi(Fe)&&{as:be,ownerState:T({},qe,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,z&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,Y?Y(T({},ge,{startAdornment:X})):null]}))]})}),d2=twe;function nwe(e){return et("MuiInput",e)}const rwe=T({},Fo,Qe("MuiInput",["root","underline","input"])),Ds=rwe;function owe(e){return et("MuiOutlinedInput",e)}const awe=T({},Fo,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),ii=awe;function iwe(e){return et("MuiFilledInput",e)}const swe=T({},Fo,Qe("MuiFilledInput",["root","underline","input"])),zo=swe,Hj=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function lwe(e){return et("MuiAutocomplete",e)}const cwe=Qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=cwe;var yD,bD;const uwe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],dwe=["ref"],fwe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(f,lwe,t)},pwe=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ds.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ds.root}.${Fo.sizeSmall}`]:{[`& .${Ds.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ii.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ii.root}.${Fo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${zo.root}.${Fo.sizeSmall}`]:{paddingBottom:1,[`& .${zo.input}`]:{padding:"2.5px 4px"}},[`& .${Fo.hiddenLabel}`]:{paddingTop:8},[`& .${zo.root}.${Fo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zo.root}.${Fo.hiddenLabel}.${Fo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),hwe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),mwe=de(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vwe=de(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gwe=de(dh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),ywe=de(ls,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),bwe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),xwe=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),wwe=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Cwe=de(Lxe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$we=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),Swe=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=yD||(yD=O.jsx(b1e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:$=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:B=!1,getLimitTagsText:z=De=>`+${De}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:L="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:le=ls,PopperComponent:xe=dh,popupIcon:fe=bD||(bD=O.jsx(Hj,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,uwe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:qe,getPopupIndicatorProps:rt,getClearProps:Ae,getTagProps:Le,getListboxProps:Fe,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Ne,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:$e,inputValue:Se,groupedOptions:Ze}=Oxe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!E&&it&&!ge,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=K??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,dwe),kt=sn(Et,vt),Vt=Y||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:B,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=fwe(Ut);let bn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:E},Le(nt));Be?bn=Be(Te,De,Ut):bn=Te.map((nt,lt)=>O.jsx(Wj,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(X>-1&&Array.isArray(bn)){const De=bn.length-X;!ne&&De>0&&(bn=bn.splice(0,X),bn.push(O.jsx("span",{className:Kt.tag,children:z(De)},bn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(Cwe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx($we,{className:Kt.groupUl,ownerState:Ut,children:De.children})]},De.key)),ue=ve||((De,nt)=>O.jsx("li",T({},De,{children:Vt(nt)}))),ke=(De,nt)=>{const lt=Pe({option:De,index:nt});return ue(T({},lt,{className:Kt.option}),De,{selected:lt["aria-selected"],index:nt,inputValue:Se},Ut)},Ee=(r=He.clearIndicator)!=null?r:w.clearIndicator,pt=(o=He.paper)!=null?o:w.paper,me=(a=He.popper)!=null?a:w.popper,pe=(i=He.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs(S.Fragment,{children:[O.jsx(pwe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:E,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:qe(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:bn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(hwe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(mwe,T({},Ae(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ie(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(vwe,T({},rt(),{disabled:E,"aria-label":Ne?y:re,title:Ne?y:re,ownerState:Ut},pe,{className:Ie(Kt.popupIndicator,pe==null?void 0:pe.className),children:fe})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ge},Ce())})})),ie?O.jsx(gwe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Ne},me,{className:Ie(Kt.popper,me==null?void 0:me.className),children:O.jsxs(ywe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[q&&Ze.length===0?O.jsx(bwe,{className:Kt.loading,ownerState:Ut,children:D}):null,Ze.length===0&&!G&&!q?O.jsx(xwe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Ze.length>0?O.jsx(wwe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Ze.map((De,nt)=>Q?se({key:De.key,group:De.group,children:De.options.map((lt,xt)=>ke(lt,De.index+xt))}):ke(De,nt))})):null]}))})):null]})}),_we=Swe,Ewe=rr(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Pwe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Twe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],kwe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Pwe,t)},Owe=de("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Rwe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Dwe=de(Ewe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Mwe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const Iwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,Twe);let b=null;const v=Mwe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=kwe(y);return g?b=O.jsx(Rwe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(Dwe,{ownerState:y,className:w.fallback}),O.jsx(Owe,T({as:s,ownerState:y,className:Ie(w.root,i),ref:n},m,{children:b}))}),Gj=Iwe,Awe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Nwe={entering:{opacity:1},entered:{opacity:1}},jwe=S.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=y0}=t,w=Oe(t,Awe),C=S.useRef(null),_=sn(C,s.ref,n),$=B=>z=>{if(B){const Y=C.current;z===void 0?B(Y):B(Y,z)}},E=$(p),k=$((B,z)=>{Tj(B);const Y=Hu({style:x,timeout:g,easing:l},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",Y),B.style.transition=r.transitions.create("opacity",Y),u&&u(B,z)}),I=$(f),R=$(v),F=$(B=>{const z=Hu({style:x,timeout:g,easing:l},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",z),B.style.transition=r.transitions.create("opacity",z),m&&m(B)}),U=$(b),G=B=>{a&&a(C.current,B)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(B,z)=>S.cloneElement(s,T({style:T({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},Nwe[B],x,s.props.style),ref:_},z))}))}),Cd=jwe;function Lwe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const Fwe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zwe=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},Lwe,t)},Bwe=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vwe=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=Cd,transitionDuration:g}=i,y=Oe(i,Fwe),w=T({},i,{component:c,invisible:p}),C=zwe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(Bwe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ie(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),qj=Vwe;function Uwe(e){return et("MuiBadge",e)}const Wwe=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),$s=Wwe,Hwe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],px=10,hx=4,Gwe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Xe(s,Uwe,i)},qwe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ywe=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:px*2,lineHeight:1,padding:"0 6px",height:px*2,borderRadius:px,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:hx,height:hx*2,minWidth:hx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Kwe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:$,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,Hwe),{badgeContent:R,invisible:F,max:U,displayValue:G}=F1e({max:w,invisible:y,badgeContent:C,showZero:E}),B=k_({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),z=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:H=u,variant:J=k}=z?B:c,X=J!=="dot"?G:void 0,L=T({},c,{badgeContent:R,invisible:z,max:U,displayValue:X,showZero:E,anchorOrigin:H,color:Y,overlap:Q,variant:J}),K=Gwe(L),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:qwe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:Ywe,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:V,ownerState:L,className:Ie(K.badge,V==null?void 0:V.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),Yj=Kwe;function Jwe(e){return et("MuiButton",e)}const Zwe=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ym=Zwe,Xwe=S.createContext({}),Qwe=Xwe,eCe=S.createContext(void 0),tCe=eCe,nCe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rCe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${je(t)}`,`size${je(o)}`,`${a}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Xe(s,Jwe,i);return T({},i,l)},Kj=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oCe=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ym.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ym.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ym.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ym.disabled}`]:{boxShadow:"none"}}),aCe=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kj(e))),iCe=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kj(e))),sCe=S.forwardRef(function(t,n){const r=S.useContext(Qwe),o=S.useContext(tCe),a=O_(r,t),i=Ke({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,nCe),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=rCe($),k=y&&O.jsx(aCe,{className:E.startIcon,ownerState:$,children:y}),I=b&&O.jsx(iCe,{className:E.endIcon,ownerState:$,children:b}),R=o||"";return O.jsxs(oCe,T({ownerState:$,className:Ie(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Uo=sCe;function lCe(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const cCe=["className","raised"],uCe=e=>{const{classes:t}=e;return Xe({root:["root"]},lCe,t)},dCe=de(ls,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),fCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,cCe),s=T({},r,{raised:a}),l=uCe(s);return O.jsx(dCe,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),pCe=fCe;function hCe(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const mCe=["className","component"],vCe=e=>{const{classes:t}=e;return Xe({root:["root"]},hCe,t)},gCe=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),yCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,mCe),s=T({},r,{component:a}),l=vCe(s);return O.jsx(gCe,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),bCe=yCe;function xCe(e){return et("MuiCardHeader",e)}const wCe=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),xD=wCe,CCe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$Ce=e=>{const{classes:t}=e;return Xe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},xCe,t)},SCe=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${xD.title}`]:t.title,[`& .${xD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_Ce=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ECe=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),PCe=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),TCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,CCe),b=T({},r,{component:s,disableTypography:l}),v=$Ce(b);let x=f;x!=null&&x.type!==gn&&!l&&(x=O.jsx(gn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==gn&&!l&&(g=O.jsx(gn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(SCe,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(_Ce,{className:v.avatar,ownerState:b,children:a}),O.jsxs(PCe,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(ECe,{className:v.action,ownerState:b,children:o})]}))}),kCe=TCe;function OCe(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RCe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DCe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Xe(a,OCe,t)},MCe=de(Ca)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ICe=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ACe=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:$,value:E}=t,k=Oe(t,RCe),[I,R]=Cr({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Pi(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},B=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let z=l;F&&typeof z>"u"&&(z=F.disabled);const Y=$==="checkbox"||$==="radio",Q=T({},t,{checked:I,disabled:z,disableFocusRipple:c,edge:u}),H=DCe(Q);return O.jsxs(MCe,T({component:"span",className:Ie(H.root,i),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(ICe,T({autoFocus:r,checked:o,defaultChecked:s,className:H.input,disabled:z,id:Y?p:void 0,name:v,onChange:B,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),f2=ACe,NCe=rr(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jCe=rr(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LCe=rr(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function FCe(e){return et("MuiCheckbox",e)}const zCe=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mx=zCe,BCe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],VCe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Xe(a,FCe,t);return T({},t,i)},UCe=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mx.checked}, &.${mx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),WCe=O.jsx(jCe,{}),HCe=O.jsx(NCe,{}),GCe=O.jsx(LCe,{}),qCe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=WCe,color:s="primary",icon:l=HCe,indeterminate:c=!1,indeterminateIcon:u=GCe,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,BCe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=VCe(g);return O.jsx(UCe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ie(y.root,m)},b,{classes:y}))}),YCe=qCe;function KCe(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const JCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ZCe=e=>{const{open:t,exited:n,classes:r}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},KCe,r)},XCe=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),QCe=de(qj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),e$e=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=QCe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:B}=c,z=Oe(c,JCe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:H,getTransitionProps:J,portalRef:X,isTopModal:L,exited:K,hasTransition:q}=vxe(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=ZCe(D),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),q){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const Z=(r=(o=B==null?void 0:B.root)!=null?o:g.Root)!=null?r:XCe,re=(a=(i=B==null?void 0:B.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,fe=zt({elementType:Z,externalSlotProps:le,externalForwardedProps:z,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ge=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>H(T({},he,{onClick:_e=>{F&&F(_e),he!=null&&he.onClick&&he.onClick(_e)}})),className:Ie(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(Bj,{ref:X,container:v,disablePortal:$,children:O.jsxs(Z,T({},fe,{children:[!I&&u?O.jsx(re,T({},ge)):null,O.jsx(Rj,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:L,open:U,children:S.cloneElement(b,V)})]}))})}),Jj=e$e;function t$e(e){return et("MuiDialog",e)}const n$e=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Kf=n$e,r$e=S.createContext({}),Zj=r$e,o$e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],a$e=de(qj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),i$e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${je(n)}`],paper:["paper",`paperScroll${je(n)}`,`paperWidth${je(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,t$e,t)},s$e=de(Jj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),l$e=de("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${je(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),c$e=de(ls,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${je(n.scroll)}`],t[`paperWidth${je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Kf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),u$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ls,PaperProps:C={},scroll:_="paper",TransitionComponent:$=Cd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,o$e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=i$e(R),U=S.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},B=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},z=Ya(s),Y=S.useMemo(()=>({titleId:z}),[z]);return O.jsx(s$e,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:a$e},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:B,ownerState:R},I,{children:O.jsx($,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(l$e,{className:Ie(F.container),onMouseDown:G,ownerState:R,children:O.jsx(c$e,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":z},C,{className:Ie(F.paper,C.className),ownerState:R,children:O.jsx(Zj.Provider,{value:Y,children:u})}))})}))}))}),E0=u$e;function d$e(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const f$e=["className","disableSpacing"],p$e=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},d$e,t)},h$e=de("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),m$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,f$e),s=T({},r,{disableSpacing:a}),l=p$e(s);return O.jsx(h$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),P0=m$e;function v$e(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function g$e(e){return et("MuiDialogTitle",e)}const y$e=Qe("MuiDialogTitle",["root"]),b$e=y$e,x$e=["className","dividers"],w$e=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},v$e,t)},C$e=de("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${b$e.root} + &`]:{paddingTop:0}})),$$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,x$e),s=T({},r,{dividers:a}),l=w$e(s);return O.jsx(C$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),T0=$$e;function S$e(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const _$e=["children","className"],E$e=e=>{const{classes:t}=e,r=Xe({root:["root"]},S$e,t);return T({},t,r)},P$e=de(gn,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,_$e),i=E$e(a);return O.jsx(P$e,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),p2=T$e,k$e=["className","id"],O$e=e=>{const{classes:t}=e;return Xe({root:["root"]},g$e,t)},R$e=de(gn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),D$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,k$e),s=r,l=O$e(s),{titleId:c=a}=S.useContext(Zj);return O.jsx(R$e,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),h2=D$e;function M$e(e){return et("MuiDivider",e)}const I$e=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wD=I$e,A$e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],N$e=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},M$e,r)},j$e=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),L$e=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,A$e),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=N$e(v);return O.jsx(j$e,T({as:s,className:Ie(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(L$e,{className:x.wrapper,ownerState:v,children:a}):null}))});Xj.muiSkipListHighlight=!0;const CD=Xj,F$e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],z$e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},iwe,t);return T({},t,o)},B$e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${zo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zo.disabled}, .${zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),V$e=de(_0,{name:"MuiFilledInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Qj=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,F$e),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=z$e(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Hr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:B$e,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:V$e;return O.jsx(d2,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});Qj.muiName="Input";const e6=Qj;function U$e(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const W$e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],H$e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Xe(o,U$e,t)},G$e=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),q$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,W$e),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=H$e(y),[C,_]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{if(!Eu(B,["Input","Select"]))return;const z=Eu(B,["Select"])?B.props.input:B;z&&Kxe(z.props)&&(G=!0)}),G}),[$,E]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{Eu(B,["Input","Select"])&&(Ig(B.props,!0)||Ig(B.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=S.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,$,R,f,p,F,b,v,x]);return O.jsx(w0.Provider,{value:U,children:O.jsx(G$e,T({as:s,ownerState:y,className:Ie(w.root,a),ref:n},g,{children:o}))})}),fh=q$e,Y$e=bye({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),K$e=Y$e;function J$e(e){return et("MuiFormControlLabel",e)}const Z$e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pf=Z$e,X$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q$e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,J$e,t)},eSe=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pf.label}`]:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),tSe=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),nSe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,X$e),x=Pi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=sl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=Q$e(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==gn&&!u&&(k=O.jsx(gn,T({component:"span"},E,{className:Ie($.label,E==null?void 0:E.className),children:k}))),O.jsxs(eSe,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,w),y?O.jsxs(K$e,{direction:"row",alignItems:"center",children:[k,O.jsxs(tSe,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),k0=nSe;function rSe(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const oSe=["className","row"],aSe=e=>{const{classes:t,row:n,error:r}=e;return Xe({root:["root",n&&"row",r&&"error"]},rSe,t)},iSe=de("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),sSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,oSe),s=Pi(),l=sl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=aSe(c);return O.jsx(iSe,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),t6=sSe;function lSe(e){return et("MuiFormHelperText",e)}const cSe=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$D=cSe;var SD;const uSe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dSe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,lSe,t)},fSe=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$D.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$D.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),pSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,uSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=dSe(u);return O.jsx(fSe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?SD||(SD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),fr=pSe;function hSe(e){return et("MuiFormLabel",e)}const mSe=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jf=mSe,vSe=["children","className","color","component","disabled","error","filled","focused","required"],gSe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,hSe,t)},ySe=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Jf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Jf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),bSe=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),xSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,vSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gSe(u);return O.jsxs(ySe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(bSe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),m2=xSe,wSe=S.createContext(),_D=wSe;function CSe(e){return et("MuiGrid",e)}const $Se=[0,1,2,3,4,5,6,7,8,9,10],SSe=["column-reverse","column","row-reverse","row"],_Se=["nowrap","wrap-reverse","wrap"],sf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Pp=Qe("MuiGrid",["root","container","item","zeroMinWidth",...$Se.map(e=>`spacing-xs-${e}`),...SSe.map(e=>`direction-xs-${e}`),..._Se.map(e=>`wrap-xs-${e}`),...sf.map(e=>`grid-xs-${e}`),...sf.map(e=>`grid-sm-${e}`),...sf.map(e=>`grid-md-${e}`),...sf.map(e=>`grid-lg-${e}`),...sf.map(e=>`grid-xl-${e}`)]),ESe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ku(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PSe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Bl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${ku(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function TSe({theme:e,ownerState:t}){const n=Bl({values:t.direction,breakpoints:e.breakpoints.values});return ko({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Pp.item}`]={maxWidth:"none"}),o})}function n6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function kSe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingTop:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Pp.item}`]:{paddingTop:0}}})}return o}function OSe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${ku(u)})`,marginLeft:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingLeft:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Pp.item}`]:{paddingLeft:0}}})}return o}function RSe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const DSe=de("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=RSe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),TSe,kSe,OSe,PSe);function MSe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const ISe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=MSe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(f,CSe,t)},ASe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=nr(),a=q_(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,ESe),y=m||b,w=l||b,C=S.useContext(_D),_=u?s||12:C,$={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&($[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},$,{breakpoints:o.keys}),I=ISe(k);return O.jsx(_D.Provider,{value:_,children:O.jsx(DSe,T({ownerState:k,className:Ie(I.root,i),as:c,ref:n},E))})}),en=ASe,NSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hC(e){return`scale(${e}, ${e**2})`}const jSe={entering:{opacity:1,transform:hC(1)},entered:{opacity:1,transform:"none"}},vx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r6=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=y0}=t,g=Oe(t,NSe),y=S.useRef(),w=S.useRef(),C=nr(),_=S.useRef(null),$=sn(_,a.ref,n),E=z=>Y=>{if(z){const Q=_.current;Y===void 0?z(Q):z(Q,Y)}},k=E(u),I=E((z,Y)=>{Tj(z);const{duration:Q,delay:H,easing:J}=Hu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=X):X=Q,z.style.transition=[C.transitions.create("opacity",{duration:X,delay:H}),C.transitions.create("transform",{duration:vx?X:X*.666,delay:H,easing:J})].join(","),l&&l(z,Y)}),R=E(c),F=E(m),U=E(z=>{const{duration:Y,delay:Q,easing:H}=Hu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=J):J=Y,z.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:vx?J:J*.666,delay:vx?Q:Q||J*.333,easing:H})].join(","),z.style.opacity=0,z.style.transform=hC(.75),f&&f(z)}),G=E(p),B=z=>{v==="auto"&&(y.current=setTimeout(z,w.current||0)),r&&r(_.current,z)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:B,timeout:v==="auto"?null:v},g,{children:(z,Y)=>S.cloneElement(a,T({style:T({opacity:0,transform:hC(.75),visibility:z==="exited"&&!s?"hidden":void 0},jSe[z],b,a.props.style),ref:$},Y))}))});r6.muiSupportAuto=!0;const Ag=r6;function LSe(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Kn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const o6=ep["useSyncExternalStore"];function FSe(e,t,n,r,o){const a=S.useCallback(()=>t,[t]),i=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return o6(l,s,i)}function ph(e,t={}){const n=G_(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Y_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(o6!==void 0?FSe:LSe)(l,o,a,i,s)}const zSe=["initialWidth","width"],Ns=["xs","sm","md","lg","xl"],BSe=(e,t,n=!0)=>n?Ns.indexOf(e)<=Ns.indexOf(t):Ns.indexOf(e)n?Ns.indexOf(t)<=Ns.indexOf(e):Ns.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=nr(),l=i.theme||s,c=Y_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,zSe),[m,b]=S.useState(!1);Kn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},WSe=USe;function HSe(e){const{children:t,only:n,width:r}=e,o=nr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${je(o)}`:`${o}${je(a)}`)]};return Xe(r,qSe,t)},JSe=de("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function ZSe(e){const{children:t,className:n,only:r}=e,o=Oe(e,YSe),a=nr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=KSe(s);return O.jsx(JSe,{className:Ie(l.root,n),ownerState:s,children:t})}const XSe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Pn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,XSe);return t==="js"?O.jsx(GSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(ZSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const QSe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],e_e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},nwe,t);return T({},t,o)},t_e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}})}),n_e=de(_0,{name:"MuiInput",slot:"Input",overridesResolver:$0})({}),a6=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,QSe),y=e_e(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Hr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:t_e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:n_e;return O.jsx(d2,T({slots:{root:$,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});a6.muiName="Input";const cs=a6;function r_e(e){return et("MuiInputAdornment",e)}const o_e=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),ED=o_e;var PD;const a_e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],i_e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s_e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,i,r&&"hiddenLabel",a&&`size${je(a)}`]};return Xe(s,r_e,t)},l_e=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i_e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ED.positionStart}&:not(.${ED.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),c_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,a_e),p=Pi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=s_e(b);return O.jsx(w0.Provider,{value:null,children:O.jsx(l_e,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(gn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?PD||(PD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),v2=c_e;function u_e(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d_e=["disableAnimation","margin","shrink","variant","className"],f_e=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,u_e,t);return T({},t,c)},p_e=de(m2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),h_e=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,d_e),l=Pi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=sl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=f_e(f);return O.jsx(p_e,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),i6=h_e,m_e=S.createContext({}),Ki=m_e;function v_e(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const g_e=["children","className","component","dense","disablePadding","subheader"],y_e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},v_e,t)},b_e=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),x_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,g_e),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=y_e(p);return O.jsx(Ki.Provider,{value:f,children:O.jsxs(b_e,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),g2=x_e;function w_e(e){return et("MuiListItem",e)}const C_e=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),tu=C_e,$_e=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),S_e=$_e;function __e(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const E_e=["className"],P_e=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},__e,n)},T_e=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),s6=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,E_e),i=S.useContext(Ki),s=T({},r,{disableGutters:i.disableGutters}),l=P_e(s);return O.jsx(T_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});s6.muiName="ListItemSecondaryAction";const l6=s6,k_e=["className"],O_e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],R_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},D_e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},w_e,r)},M_e=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:R_e})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${S_e.root}`]:{paddingRight:48}},{[`&.${tu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),I_e=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:$={},slots:E={}}=r,k=Oe(r.ContainerProps,k_e),I=Oe(r,O_e),R=S.useContext(Ki),F=S.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=S.useRef(null);Kn(()=>{a&&U.current&&U.current.focus()},[a]);const G=S.Children.toArray(s),B=G.length&&Eu(G[G.length-1],["ListItemSecondaryAction"]),z=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:B,selected:_}),Y=D_e(z),Q=sn(U,n),H=E.root||u.Root||M_e,J=$.root||f.root||{},X=T({className:Ie(Y.root,J.className,l),disabled:v},I);let L=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ie(tu.focusVisible,w),L=Ca),B?(L=!X.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":X.component==="li"&&(X.component="div")),O.jsx(Ki.Provider,{value:F,children:O.jsxs(I_e,T({as:p,className:Ie(Y.container,m),ref:Q,ownerState:z},k,{children:[O.jsx(H,T({},J,!yi(H)&&{as:L,ownerState:T({},z,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(Ki.Provider,{value:F,children:O.jsxs(H,T({},J,{as:L,ref:Q},!yi(H)&&{ownerState:T({},z,J.ownerState)},X,{children:[G,C&&O.jsx(l6,{children:C})]}))})}),c6=A_e;function N_e(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const j_e=["className"],L_e=e=>{const{alignItems:t,classes:n}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},N_e,n)},F_e=de("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),z_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,j_e),i=S.useContext(Ki),s=T({},r,{alignItems:i.alignItems}),l=L_e(s);return O.jsx(F_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),B_e=z_e,V_e=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),TD=V_e;function U_e(e){return et("MuiListItemText",e)}const W_e=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ng=W_e,H_e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],G_e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Xe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},U_e,t)},q_e=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ng.primary}`]:t.primary},{[`& .${Ng.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Y_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,H_e),{dense:m}=S.useContext(Ki);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=G_e(x);return b!=null&&b.type!==gn&&!i&&(b=O.jsx(gn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==gn&&!i&&(v=O.jsx(gn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(q_e,T({className:Ie(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),K_e=Y_e,J_e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function u6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function lf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!u6(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Z_e=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,J_e),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,$=zn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),lf(C,$,c,l,gx);else if(_==="ArrowUp")w.preventDefault(),lf(C,$,c,l,kD);else if(_==="Home")w.preventDefault(),lf(C,null,c,l,gx);else if(_==="End")w.preventDefault(),lf(C,null,c,l,kD);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=$&&!E.repeating&&u6($,E);E.previousKeyMatched&&(R||lf(C,$,!1,l,gx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;S.Children.forEach(i,(w,C)=>{if(!S.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=S.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),S.cloneElement(w,_)}return w});return O.jsx(g2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),y2=Z_e;function X_e(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const Q_e=["onEntering"],e2e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],t2e=["slotProps"];function OD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function DD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function yx(e){return typeof e=="function"?e():e}const n2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},X_e,t)},r2e=de(Jj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d6=de(ls,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o2e=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:$=Ag,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Q_e),F=Oe(i,e2e),U=(r=C==null?void 0:C.paper)!=null?r:y,G=S.useRef(),B=sn(G,U.ref),z=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:$,transitionDuration:E,TransitionProps:R}),Y=n2e(z),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=yx(l),ve=(he&&he.nodeType===1?he:zn(G.current).body).getBoundingClientRect();return{top:ve.top+OD(ve,c.vertical),left:ve.left+RD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),H=S.useCallback(he=>({vertical:OD(he,_.vertical),horizontal:RD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=H(_e);if(f==="none")return{top:null,left:null,transformOrigin:DD(ve)};const Be=Q();let Ue=Be.top-ve.vertical,ze=Be.left-ve.horizontal;const He=Ue+_e.height,be=ze+_e.width,we=$i(yx(l)),Ce=we.innerHeight-x,qe=we.innerWidth-x;if(x!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(x!==null&&zeqe){const rt=be-qe;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:DD(ve)}},[l,f,Q,H,x]),[X,L]=S.useState(g),K=S.useCallback(()=>{const he=G.current;if(!he)return;const _e=J(he);_e.top!==null&&(he.style.top=_e.top),_e.left!==null&&(he.style.left=_e.left),he.style.transformOrigin=_e.transformOrigin,L(!0)},[J]);S.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(he,_e)=>{k&&k(he,_e),K()},D=()=>{L(!1)};S.useEffect(()=>{g&&K()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),S.useEffect(()=>{if(!g)return;const he=ah(()=>{K()}),_e=$i(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,K]);let N=E;E==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?zn(yx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:r2e,re=(a=w==null?void 0:w.paper)!=null?a:d6,le=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:B},ownerState:z,className:Ie(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:z,className:Ie(Y.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,t2e);return O.jsx(Z,T({},ge,!yi(Z)&&{slotProps:fe,disableScrollLock:I},{children:O.jsx($,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},le,{children:p}))}))}))}),a2e=o2e;function i2e(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const s2e=["onEntering"],l2e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],c2e={vertical:"top",horizontal:"right"},u2e={vertical:"top",horizontal:"left"},d2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},i2e,t)},f2e=de(a2e,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p2e=de(d6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h2e=de(y2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),m2e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,s2e),_=Oe(a,l2e),$=nr(),E=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=d2e(k),R=i&&!c&&p,F=S.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let B=-1;S.Children.map(s,(J,X)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||B===-1)&&(B=X))});const z=(r=y.paper)!=null?r:p2e,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),H=zt({elementType:z,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(f2e,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?c2e:u2e,slots:{paper:z,root:y.root},slotProps:{root:Q,paper:H},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(h2e,T({onKeyDown:G,actions:F,autoFocus:i&&(B===-1||c),autoFocusItem:R,variant:g},u,{className:Ie(I.list,u.className),children:s}))}))}),v2e=m2e;function g2e(e){return et("MuiMenuItem",e)}const y2e=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cf=y2e,b2e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x2e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},w2e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},g2e,i);return T({},i,l)},C2e=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x2e})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wD.inset}`]:{marginLeft:52},[`& .${Ng.root}`]:{marginTop:0,marginBottom:0},[`& .${Ng.inset}`]:{paddingLeft:36},[`& .${TD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${TD.root} svg`]:{fontSize:"1.25rem"}}))),$2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,b2e),b=S.useContext(Ki),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=S.useRef(null);Kn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=w2e(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(Ki.Provider,{value:v,children:O.jsx(C2e,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),jg=$2e;function S2e(e){return et("MuiNativeSelect",e)}const _2e=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b2=_2e,E2e=["className","disabled","error","IconComponent","inputRef","variant"],P2e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return Xe(s,S2e,t)},f6=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${b2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),T2e=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ta,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b2.multiple}`]:t.multiple}]}})(f6),p6=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${b2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),k2e=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),O2e=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,E2e),u=T({},t,{disabled:o,variant:l,error:a}),f=P2e(u);return O.jsxs(S.Fragment,{children:[O.jsx(T2e,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(k2e,{as:i,ownerState:u,className:f.icon})]})}),R2e=O2e;var MD;const D2e=["children","classes","className","label","notched"],M2e=de("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),I2e=de("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function A2e(e){const{className:t,label:n,notched:r}=e,o=Oe(e,D2e),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(M2e,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(I2e,{ownerState:i,children:a?O.jsx("span",{children:n}):MD||(MD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const N2e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],j2e=e=>{const{classes:t}=e,r=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},owe,t);return T({},t,r)},L2e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ii.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ii.focused} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ii.error} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ii.disabled} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),F2e=de(A2e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),z2e=de(_0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),h6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,N2e),y=j2e(l),w=Pi(),C=sl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),$=(r=(o=v.root)!=null?o:c.Root)!=null?r:L2e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:z2e;return O.jsx(d2,T({slots:{root:$,input:E},renderSuffix:k=>O.jsx(F2e,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs(S.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});h6.muiName="Input";const m6=h6,B2e=rr(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),V2e=rr(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),U2e=de("span")({position:"relative",display:"flex"}),W2e=de(B2e)({transform:"scale(1)"}),H2e=de(V2e)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function v6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(U2e,{className:n.root,ownerState:o,children:[O.jsx(W2e,{fontSize:r,className:n.background,ownerState:o}),O.jsx(H2e,{fontSize:r,className:n.dot,ownerState:o})]})}const G2e=S.createContext(void 0),g6=G2e;function q2e(){return S.useContext(g6)}function Y2e(e){return et("MuiRadio",e)}const K2e=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ID=K2e,J2e=["checked","checkedIcon","color","icon","name","onChange","size","className"],Z2e=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Xe(o,Y2e,t))},X2e=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ID.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${ID.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Q2e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const AD=O.jsx(v6,{checked:!0}),ND=O.jsx(v6,{}),eEe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=AD,color:l="primary",icon:c=ND,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,J2e),v=T({},a,{color:l,size:p}),x=Z2e(v),g=q2e();let y=i;const w=Eg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=Q2e(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(X2e,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=ND.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=AD.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ie(x.root,m)},b))}),tEe=eEe,nEe=["actions","children","defaultValue","name","onChange","value"],rEe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,nEe),u=S.useRef(null),[f,p]=Cr({controlled:l,default:a,name:"RadioGroup"});S.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Ya(i),v=S.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(g6.Provider,{value:v,children:O.jsx(t6,T({role:"radiogroup",ref:m},c,{children:o}))})}),oEe=rEe;function aEe(e){return et("MuiSelect",e)}const iEe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uf=iEe;var jD;const sEe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lEe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${uf.select}`]:t.select},{[`&.${uf.select}`]:t[n.variant]},{[`&.${uf.error}`]:t.error},{[`&.${uf.multiple}`]:t.multiple}]}})(f6,{[`&.${uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cEe=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),uEe=de("input",{shouldForwardProp:e=>J_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function LD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dEe(e){return e==null||typeof e=="string"&&!e.trim()}const fEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,aEe,t)},pEe=S.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:$,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:B,value:z,variant:Y="standard"}=t,Q=Oe(t,sEe),[H,J]=Cr({controlled:z,default:f,name:"Select"}),[X,L]=Cr({controlled:R,default:u,name:"Select"}),K=S.useRef(null),q=S.useRef(null),[D,N]=S.useState(null),{current:V}=S.useRef(R!=null),[Z,re]=S.useState(),le=sn(n,x),xe=S.useCallback(Ne=>{q.current=Ne,Ne&&N(Ne)},[]),fe=D==null?void 0:D.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{q.current.focus()},node:K.current,value:H}),[H]),S.useEffect(()=>{u&&X&&D&&!V&&(re(s?null:fe.clientWidth),q.current.focus())},[D,s]),S.useEffect(()=>{i&&q.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=zn(q.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?I&&I(ne):E&&E(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),q.current.focus(),ge(!0,Ne))},_e=Ne=>{ge(!1,Ne)},ve=S.Children.toArray(l),Be=Ne=>{const ne=ve.find(te=>te.props.value===Ne.target.value);ne!==void 0&&(J(ne.props.value),$&&$(Ne,ne))},Ue=Ne=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(H)?H.slice():[];const ie=H.indexOf(Ne.props.value);ie===-1?te.push(Ne.props.value):te.splice(ie,1)}else te=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ne),H!==te&&(J(te),$)){const ie=ne.nativeEvent||ne,$e=new ie.constructor(ie.type,ie);Object.defineProperty($e,"target",{writable:!0,value:{value:te,name:C}}),$($e,Ne)}w||ge(!1,ne)}},ze=Ne=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},He=D!==null&&X,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const qe=[];let rt=!1;(Ig({value:H})||m)&&(U?we=U(H):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(w){if(!Array.isArray(H))throw new Error(Xs(2));ne=H.some(te=>LD(te,Ne.props.value)),ne&&rt&&qe.push(Ne.props.children)}else ne=LD(H,Ne.props.value),ne&&rt&&(Ce=Ne.props.children);return S.cloneElement(Ne,{"aria-selected":ne?"true":"false",onClick:Ue(Ne),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Ne.props.value})});rt&&(w?qe.length===0?we=null:we=qe.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},x2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ta(e)&&e!=="variant",slot:"Root"},yEe=de(cs,x2)(""),bEe=de(m6,x2)(""),xEe=de(e6,x2)(""),y6=S.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Hj,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,mEe),R=y?R2e:hEe,F=Pi(),U=sl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,B=T({},r,{variant:G,classes:i}),z=gEe(B),Y=Oe(z,vEe),Q=p||{standard:O.jsx(yEe,{ownerState:B}),outlined:O.jsx(bEe,{label:b,ownerState:B}),filled:O.jsx(xEe,{ownerState:B})}[G],H=sn(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:T({id:f},E)},m,{classes:m?Hr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:H,className:Ie(Q.props.className,s,z.root)},!p&&{variant:G},I))})});y6.muiName="Select";const b6=y6,wEe=e=>!e||!yi(e),CEe=wEe;function $Ee(e){return et("MuiSlider",e)}const SEe=Qe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),za=SEe,_Ee=e=>{const{open:t}=e;return{offset:Ie(t&&za.valueLabelOpen),circle:za.valueLabelCircle,label:za.valueLabelLabel}};function EEe(e){const{children:t,className:n,value:r}=e,o=_Ee(e);return t?S.cloneElement(t,{className:Ie(t.props.className)},O.jsxs(S.Fragment,{children:[t.props.children,O.jsx("span",{className:Ie(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const PEe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function FD(e){return e}const TEe=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`],n.size!=="medium"&&t[`size${je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${za.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${za.dragging}`]:{[`& .${za.thumb}, & .${za.track}`]:{transition:"none"}}})),kEe=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),OEe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),REe=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${je(n.color)}`],n.size!=="medium"&&t[`thumbSize${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${za.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${za.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${za.disabled}`]:{"&:hover":{boxShadow:"none"}}})),DEe=de(EEe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${za.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),MEe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>J_(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),IEe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>J_(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),AEe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${je(s)}`,l&&`size${je(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${je(l)}`,s&&`thumbColor${je(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xe(c,$Ee,i)},NEe=({children:e})=>e,jEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,$,E,k,I,R;const F=Ke({props:t,name:"MuiSlider"}),G=nr().direction==="rtl",{"aria-label":B,"aria-valuetext":z,"aria-labelledby":Y,component:Q="span",components:H={},componentsProps:J={},color:X="primary",classes:L,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:V,marks:Z=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=FD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=FD}=F,He=Oe(F,PEe),be=T({},F,{isRtl:G,max:re,min:le,classes:L,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:qe,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=$xe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=AEe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:H.Root)!=null?r:TEe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:H.Rail)!=null?a:kEe,Ze=(s=(l=ve==null?void 0:ve.track)!=null?l:H.Track)!=null?s:OEe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:H.Thumb)!=null?c:REe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:H.ValueLabel)!=null?f:DEe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:H.Mark)!=null?m:MEe,vt=(v=(x=ve==null?void 0:ve.markLabel)!=null?x:H.MarkLabel)!=null?v:IEe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:H.Input)!=null?g:"input",Et=(w=_e==null?void 0:_e.root)!=null?w:J.root,Yt=(C=_e==null?void 0:_e.rail)!=null?C:J.rail,kt=(_=_e==null?void 0:_e.track)!=null?_:J.track,ln=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(E=_e==null?void 0:_e.valueLabel)!=null?E:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(I=_e==null?void 0:_e.markLabel)!=null?I:J.markLabel,bn=(R=_e==null?void 0:_e.input)!=null?R:J.input,Bn=zt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},CEe($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),se=zt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=zt({elementType:Ze,externalSlotProps:kt,additionalProps:{style:T({},we[Fe].offset(Ne),we[Fe].leap(ne))},ownerState:T({},be,kt==null?void 0:kt.ownerState),className:ie.track}),ue=zt({elementType:tt,getSlotProps:rt,externalSlotProps:ln,ownerState:T({},be,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=zt({elementType:dt,getSlotProps:qe,externalSlotProps:bn,ownerState:be});return O.jsxs($e,T({},Bn,{children:[O.jsx(Se,T({},se)),O.jsx(Ze,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=Mg(pe.value,le,re),lt=we[Fe].offset(nt);let xt;return Be===!1?xt=gt.indexOf(pe.value)!==-1:xt=Be==="normal"&&(Te?pe.value>=gt[0]&&pe.value<=gt[gt.length-1]:pe.value<=gt[0])||Be==="inverted"&&(Te?pe.value<=gt[0]||pe.value>=gt[gt.length-1]:pe.value>=gt[0]),O.jsxs(S.Fragment,{children:[O.jsx(_t,T({"data-index":De},Ee,!yi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ie(Ee.className,xt&&ie.markActive)})),pe.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":De},pt,!yi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ie(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:pe.label})):null]},De)}),gt.map((pe,De)=>{const nt=Mg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?NEe:ft;return O.jsx(xt,T({},!yi(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:D},ke,{children:O.jsx(tt,T({"data-index":De},ue,{className:Ie(ie.thumb,ue.className,Le===De&&ie.active,Pe===De&&ie.focusVisible),style:T({},lt,te(De),ue.style),children:O.jsx(dt,T({"data-index":De,"aria-label":N?N(De):B,"aria-valuenow":he(pe),"aria-labelledby":Y,"aria-valuetext":V?V(he(pe),De):z,value:gt[De]},me))}))}),De)})]}))}),LEe=jEe;function FEe(e){return et("MuiTooltip",e)}const zEe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),js=zEe,BEe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function VEe(e){return Math.round(e*1e5)/1e5}const UEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,FEe,t)},WEe=de(dh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${js.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${js.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${js.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${js.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),HEe=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${js.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${js.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${js.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${js.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),GEe=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Km=!1,bx=null,df={x:0,y:0};function Jm(e,t){return n=>{t&&t(n),e(n)}}const qEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const $=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:B=!1,disableTouchListener:z=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:H=700,followCursor:J=!1,id:X,leaveDelay:L=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:V="bottom",PopperComponent:Z,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=Ag,TransitionProps:he}=$,_e=Oe($,BEe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=nr(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),qe=B||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=Cr({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Ya(X),gt=S.useRef(),Ne=S.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(Fe.current)},[]);S.useEffect(()=>()=>{clearTimeout(rt.current),clearTimeout(Ae.current),clearTimeout(Le.current),Ne()},[Ne]);const ne=yt=>{clearTimeout(bx),Km=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(bx),bx=setTimeout(()=>{Km=!1},800+L),Te(!1),q&&it&&q(yt),clearTimeout(rt.current),rt.current=setTimeout(()=>{Ce.current=!1},Be.transitions.duration.shortest)}),ie=yt=>{Ce.current&&yt.type!=="touchstart"||(ze&&ze.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Le.current),Y||Km&&Q?Ae.current=setTimeout(()=>{ne(yt)},Km?Q:Y):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Ze,onFocus:tt,ref:ft}=Ay(),[,_t]=S.useState(!1),vt=yt=>{Ze(yt),Se.current===!1&&(_t(!1),$e(yt))},dt=yt=>{ze||He(yt.currentTarget),tt(yt),Se.current===!0&&(_t(!0),ie(yt))},Et=yt=>{Ce.current=!0;const Wt=ve.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=$e,ln=yt=>{Et(yt),clearTimeout(Le.current),clearTimeout(rt.current),Ne(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},H)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},K)};S.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),bn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),df={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},se=typeof fe=="string";F?(Bn.title=!it&&se&&!G?fe:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=se?fe:null,Bn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Bn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:bn}:{}),ue={};z||(oe.onTouchStart=ln,oe.onTouchEnd=Vt),G||(oe.onMouseOver=Jm(Yt,oe.onMouseOver),oe.onMouseLeave=Jm(kt,oe.onMouseLeave),qe||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),U||(oe.onFocus=Jm(dt,oe.onFocus),oe.onBlur=Jm(vt,oe.onBlur),qe||(ue.onFocus=dt,ue.onBlur=vt));const ke=S.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!be,options:{element:be,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[be,re]),Ee=T({},$,{isRtl:Ue,arrow:E,disableInteractive:qe,placement:V,PopperComponentProp:Z,touch:Ce.current}),pt=UEe(Ee),me=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:WEe,pe=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ge)!=null?a:Ag,De=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:HEe,nt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:GEe,lt=Ef(me,T({},re,(p=le.popper)!=null?p:R.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=Ef(pe,T({},he,(v=le.transition)!=null?v:R.transition),Ee),Nt=Ef(De,T({},(x=le.tooltip)!=null?x:R.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=Ef(nt,T({},(w=le.arrow)!=null?w:R.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:Z??dh,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:df.y,left:df.x,right:df.x,bottom:df.y,width:0,height:0})}:ze,popperRef:Kt,open:ze?it:!1,id:ct,transition:!0},ue,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(pe,T({timeout:Be.transitions.duration.shorter},yt,xt,{children:O.jsxs(De,T({},Nt,{children:[fe,E?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),hc=qEe,YEe=S.createContext({}),hh=YEe,KEe=S.createContext({}),O0=KEe;function JEe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const ZEe=["active","children","className","component","completed","disabled","expanded","index","last"],XEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Xe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},JEe,t)},QEe=de("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),ePe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,ZEe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=S.useContext(hh);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=XEe(E),I=O.jsxs(QEe,T({as:s,className:Ie(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(O0.Provider,{value:$,children:v&&!x&&f!==0?O.jsxs(S.Fragment,{children:[v,I]}):I})}),tPe=ePe,nPe=rr(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),rPe=rr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function oPe(e){return et("MuiStepIcon",e)}const aPe=Qe("MuiStepIcon",["root","active","completed","error","text"]),xx=aPe;var zD;const iPe=["active","className","completed","error","icon"],sPe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Xe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},oPe,t)},wx=de(sC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${xx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.error}`]:{color:(e.vars||e).palette.error.main}})),lPe=de("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),cPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,iPe),u=T({},r,{active:o,completed:i,error:s}),f=sPe(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(wx,T({as:rPe,className:p,ref:n,ownerState:u},c)):i?O.jsx(wx,T({as:nPe,className:p,ref:n,ownerState:u},c)):O.jsxs(wx,T({className:p,ref:n,ownerState:u},c,{children:[zD||(zD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(lPe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),uPe=cPe;function dPe(e){return et("MuiStepLabel",e)}const fPe=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ls=fPe,pPe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],hPe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Xe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},dPe,t)},mPe=de("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ls.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ls.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),vPe=de("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ls.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.alternativeLabel}`]:{marginTop:16},[`&.${Ls.error}`]:{color:(e.vars||e).palette.error.main}})),gPe=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ls.alternativeLabel}`]:{paddingRight:0}})),yPe=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ls.alternativeLabel}`]:{textAlign:"center"}})),x6=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,pPe),{alternativeLabel:v,orientation:x}=S.useContext(hh),{active:g,disabled:y,completed:w,icon:C}=S.useContext(O0),_=c||C;let $=p;_&&!$&&($=uPe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=hPe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(mPe,T({className:Ie(k.root,i),ref:n,ownerState:E},b,{children:[_||$?O.jsx(gPe,{className:k.iconContainer,ownerState:E,children:O.jsx($,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(yPe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(vPe,T({ownerState:E},I,{className:Ie(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});x6.muiName="StepLabel";const bPe=x6;function xPe(e){return et("MuiStepButton",e)}const wPe=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),BD=wPe,CPe=["children","className","icon","optional"],$Pe=e=>{const{classes:t,orientation:n}=e;return Xe({root:["root",n],touchRipple:["touchRipple"]},xPe,t)},SPe=de(Ca,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BD.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${BD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),_Pe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,CPe),{disabled:c,active:u}=S.useContext(O0),{orientation:f}=S.useContext(hh),p=T({},r,{orientation:f}),m=$Pe(p),b={icon:i,optional:s},v=Eu(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(bPe,T({},b,{children:o}));return O.jsx(SPe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ie(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),EPe=_Pe;function PPe(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const TPe=["className"],kPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${je(n)}`]};return Xe(s,PPe,t)},OPe=de("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),RPe=de("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${je(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),DPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,TPe),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(hh),{active:l,disabled:c,completed:u}=S.useContext(O0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=kPe(f);return O.jsx(OPe,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(RPe,{className:p.line,ownerState:f})}))}),MPe=DPe;function IPe(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const APe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],NPe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Xe({root:["root",t,n&&"alternativeLabel"]},IPe,r)},jPe=de("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),LPe=O.jsx(MPe,{}),FPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=LPe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,APe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=NPe(m),v=S.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>S.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=S.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(hh.Provider,{value:g,children:O.jsx(jPe,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:x}))})}),zPe=FPe;function BPe(e){return et("MuiSwitch",e)}const VPe=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eo=VPe,UPe=["className","color","edge","size","sx"],WPe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Xe(s,BPe,t);return T({},t,l)},HPe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${eo.thumb}`]:{width:16,height:16},[`& .${eo.switchBase}`]:{padding:4,[`&.${eo.checked}`]:{transform:"translateX(16px)"}}})),GPe=de(f2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${eo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${eo.checked}`]:{transform:"translateX(20px)"},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${eo.checked} + .${eo.track}`]:{opacity:.5},[`&.${eo.disabled} + .${eo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${eo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.55)}`}},[`&.${eo.checked} + .${eo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),qPe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),YPe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),KPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,UPe),u=T({},r,{color:a,edge:i,size:s}),f=WPe(u),p=O.jsx(YPe,{className:f.thumb,ownerState:u});return O.jsxs(HPe,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(GPe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(qPe,{className:f.track,ownerState:u})]})}),JPe=KPe;function ZPe(e){return et("MuiTab",e)}const XPe=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),wl=XPe,QPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],eTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(c,ZPe,t)},tTe=de(Ca,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${wl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${wl.selected}`]:{opacity:1},[`&.${wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),nTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,QPe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),$=eTe(_),E=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(tTe,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[E,f]}):O.jsxs(S.Fragment,{children:[f,E]}),u]}))}),Tp=nTe,rTe=S.createContext(),w6=rTe;function oTe(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const aTe=["className","component","padding","size","stickyHeader"],iTe=e=>{const{classes:t,stickyHeader:n}=e;return Xe({root:["root",n&&"stickyHeader"]},oTe,t)},sTe=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),VD="table",lTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=VD,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,aTe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=iTe(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(w6.Provider,{value:p,children:O.jsx(sTe,T({as:a,role:a===VD?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),C6=lTe,cTe=S.createContext(),R0=cTe;function uTe(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const dTe=["className","component"],fTe=e=>{const{classes:t}=e;return Xe({root:["root"]},uTe,t)},pTe=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),hTe={variant:"body"},UD="tbody",mTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=UD}=r,i=Oe(r,dTe),s=T({},r,{component:a}),l=fTe(s);return O.jsx(R0.Provider,{value:hTe,children:O.jsx(pTe,T({className:Ie(l.root,o),as:a,ref:n,role:a===UD?null:"rowgroup",ownerState:s},i))})}),$6=mTe;function vTe(e){return et("MuiTableCell",e)}const gTe=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yTe=gTe,bTe=["align","className","component","padding","scope","size","sortDirection","variant"],xTe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(a)}`]};return Xe(s,vTe,t)},wTe=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?i0(Tt(e.palette.divider,1),.88):a0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${yTe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),CTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,bTe),m=S.useContext(w6),b=S.useContext(R0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=xTe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(wTe,T({as:x,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),$d=CTe;function $Te(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const STe=["className","component"],_Te=e=>{const{classes:t}=e;return Xe({root:["root"]},$Te,t)},ETe=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),PTe={variant:"head"},WD="thead",TTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=WD}=r,i=Oe(r,STe),s=T({},r,{component:a}),l=_Te(s);return O.jsx(R0.Provider,{value:PTe,children:O.jsx(ETe,T({as:a,className:Ie(l.root,o),ref:n,role:a===WD?null:"rowgroup",ownerState:s},i))})}),S6=TTe;function kTe(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const OTe=["className","component","disableGutters","variant"],RTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Xe({root:["root",!n&&"gutters",r]},kTe,t)},DTe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),MTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,OTe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=RTe(c);return O.jsx(DTe,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),ITe=MTe,ATe=rr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),NTe=rr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function jTe(e){return et("MuiTableRow",e)}const LTe=Qe("MuiTableRow",["root","selected","hover","head","footer"]),HD=LTe,FTe=["className","component","hover","selected"],zTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Xe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},jTe,t)},BTe=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),GD="tr",VTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=GD,hover:i=!1,selected:s=!1}=r,l=Oe(r,FTe),c=S.useContext(R0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=zTe(u);return O.jsx(BTe,T({as:a,ref:n,className:Ie(f.root,o),role:a===GD?null:"row",ownerState:u},l))}),ll=VTe;function UTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WTe(e,t,n,r={},o=()=>{}){const{ease:a=UTe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const HTe=["onChange"],GTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qTe(e){const{onChange:t}=e,n=Oe(e,HTe),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Kn(()=>{const i=ah(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=$i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:GTe,ref:o},n))}function YTe(e){return et("MuiTabScrollButton",e)}const KTe=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JTe=KTe,ZTe=["className","slots","slotProps","direction","orientation","disabled"],XTe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Xe({root:["root",n,r&&"disabled"]},YTe,t)},QTe=de(Ca,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${JTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),eke=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,ZTe),p=nr().direction==="rtl",m=T({isRtl:p},a),b=XTe(m),v=(r=s.StartScrollButtonIcon)!=null?r:ATe,x=(o=s.EndScrollButtonIcon)!=null?o:NTe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(QTe,T({component:"div",className:Ie(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),tke=eke;function nke(e){return et("MuiTabs",e)}const rke=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Nv=rke,oke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},ake=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nke,l)},ike=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.scrollButtons}`]:t.scrollButtons},{[`& .${Nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ske=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lke=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cke=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),uke=de(qTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KD={},dke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=nr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=tke,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,oke),G=R==="scrollable",B=x==="vertical",z=B?"scrollTop":"scrollLeft",Y=B?"top":"left",Q=B?"bottom":"right",H=B?"clientHeight":"clientWidth",J=B?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:B,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!B,scrollableY:G&&B,centered:c&&!G,scrollButtonsHideMobile:!m}),L=ake(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=S.useState(!1),[V,Z]=S.useState(KD),[re,le]=S.useState(!1),[xe,fe]=S.useState(!1),[ge,he]=S.useState(!1),[_e,ve]=S.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Ue=S.useRef(null),ze=S.useRef(null),He=()=>{const te=Ue.current;let ie;if(te){const Se=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:Bme(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&I!==!1){const Se=ze.current.children;if(Se.length>0){const Ze=Se[Be.get(I)];$e=Ze?Ze.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(B)Se="top",ie&&te&&($e=ie.top-te.top+te.scrollTop);else if(Se=a?"right":"left",ie&&te){const tt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;$e=(a?-1:1)*(ie[Se]-te[Se]+tt)}const Ze={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))Z(Ze);else{const tt=Math.abs(V[Se]-Ze[Se]),ft=Math.abs(V[J]-Ze[J]);(tt>=1||ft>=1)&&Z(Ze)}}),we=(te,{animation:ie=!0}={})=>{ie?WTe(z,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[z]=te},Ce=te=>{let ie=Ue.current[z];B?ie+=te:(ie+=te*(a?-1:1),ie*=a&&J5()==="reverse"?-1:1),we(ie)},qe=()=>{const te=Ue.current[H];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Ze=$e[Se];if(ie+Ze[H]>te){Se===0&&(ie=te);break}ie+=Ze[H]}return ie},rt=()=>{Ce(-1*qe())},Ae=()=>{Ce(qe())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(uke,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:rt,disabled:!re},E,{className:Ie(L.scrollButtons,E.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Ae,disabled:!xe},E,{className:Ie(L.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[Y]ie[Q]){const Se=ie[z]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=ah(()=>{Ue.current&&be()});let ie;const $e=tt=>{tt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},Se=$i(Ue.current);Se.addEventListener("resize",te);let Ze;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Ze=new MutationObserver($e),Ze.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Ze)==null||tt.disconnect(),(ft=ie)==null||ft.disconnect()}},[be,Te]),S.useEffect(()=>{const te=Array.from(ze.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const $e=te[0],Se=te[ie-1],Ze={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Ze);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Ze);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(KD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(cke,T({},$,{className:Ie(L.indicator,$.className),ownerState:X,style:T({},V,$.style)}));let ct=0;const gt=S.Children.map(u,te=>{if(!S.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Be.set(ie,ct);const $e=ie===I;return ct+=1,S.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:$e&&!D&&it,selected:$e,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=zn(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Ze=x==="horizontal"?"ArrowLeft":"ArrowUp",tt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Ze="ArrowRight",tt="ArrowLeft"),te.key){case Ze:te.preventDefault(),Zm(ie,$e,YD);break;case tt:te.preventDefault(),Zm(ie,$e,qD);break;case"Home":te.preventDefault(),Zm(ie,null,qD);break;case"End":te.preventDefault(),Zm(ie,null,YD);break}},ne=Fe();return O.jsxs(ike,T({className:Ie(L.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(ske,{className:L.scroller,ownerState:X,style:{overflow:_e.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(lke,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:L.flexContainer,ownerState:X,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),D0=dke;function fke(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const pke=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],hke={standard:cs,filled:e6,outlined:m6},mke=e=>{const{classes:t}=e;return Xe({root:["root"]},fke,t)},vke=de(fh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:$,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:B,select:z=!1,SelectProps:Y,type:Q,value:H,variant:J="outlined"}=r,X=Oe(r,pke),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:z,variant:J}),K=mke(L),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),z&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Ya(v),N=b&&D?`${D}-helper-text`:void 0,V=C&&D?`${D}-label`:void 0,Z=hke[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:B,maxRows:_,minRows:$,type:Q,value:H,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(vke,T({className:Ie(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:L},X,{children:[C!=null&&C!==""&&O.jsx(i6,T({htmlFor:D,id:V},x,{children:C})),z?O.jsx(b6,T({"aria-describedby":N,id:D,labelId:V,value:H,input:re},Y,{children:i})):re,b&&O.jsx(fr,T({id:N},p,{children:b}))]}))}),mh=gke;var yke=J$;function bke(e){return yke(e)?void 0:e}var xke=bke,wke=ud,Cke=xy,$ke=Yie,Ske=Yp,_ke=fd,Eke=xke,Pke=lS,Tke=_4,kke=1,Oke=2,Rke=4,Dke=Pke(function(e,t){var n={};if(e==null)return n;var r=!1;t=wke(t,function(a){return a=Ske(a,e),r||(r=a.length>1),a}),_ke(e,Tke(e),n),r&&(n=Cke(n,kke|Oke|Rke,Eke));for(var o=t.length;o--;)$ke(n,t[o]);return n}),Mke=Dke;const Ike=Bt(Mke);function Ake(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Yke){var c=t?null:Gke(e);if(c)return qke(c);i=!1,o=Hke,l=new Vke}else l=t?[]:s;e:for(;++r=B?G:""+Array(B+1-Y.length).join(z)+G},C={s:w,z:function(G){var B=-G.utcOffset(),z=Math.abs(B),Y=Math.floor(z/60),Q=z%60;return(B<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(B,z){if(B.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(T6);var _Oe=T6.exports;const EOe=Bt(_Oe);var k2={},POe=mc;Object.defineProperty(k2,"__esModule",{value:!0});var k6=k2.default=void 0,TOe=POe(vc()),kOe=O,OOe=(0,TOe.default)((0,kOe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");k6=k2.default=OOe;var ROe=cS,DOe=os;function MOe(e,t){var n=-1,r=DOe(e)?Array(e.length):[];return ROe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var IOe=MOe,AOe=ud,NOe=cc,jOe=IOe,LOe=lr;function FOe(e,t){var n=LOe(e)?AOe:jOe;return n(e,NOe(t))}var O6=FOe;const R6=Bt(O6),zOe=["localeText"],mC=S.createContext(null),vh=function(t){var n;const{localeText:r}=t,o=Oe(t,zOe),{utils:a,localeText:i}=(n=S.useContext(mC))!=null?n:{utils:void 0,localeText:void 0},s=Ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=S.useMemo(()=>T({},m,i,r),[m,i,r]),v=S.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),x=S.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=S.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(mC.Provider,{value:g,children:l})},BOe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),D6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},VOe=D6;BOe(D6);const gc=()=>{const e=S.useContext(mC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` -`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=S.useMemo(()=>T({},VOe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>gc().utils,yc=()=>gc().defaultDates,_r=()=>gc().localeText,cl=e=>{const t=qt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},UOe=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WOe=rr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),HOe=rr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),M6=rr(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),qOe=rr(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),YOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),KOe=rr(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function JOe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const ZOe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],XOe=["ownerState"],QOe=["ownerState"],eRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),tRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ZD=de(tr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),nRe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"]},JOe,t)},I6=S.forwardRef(function(t,n){var r,o,a,i;const l=nr().direction==="rtl",c=Ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,$=Oe(c,ZOe),E=c,k=nRe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:ZD,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:ZD,B=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),z=(a=p==null?void 0:p.leftArrowIcon)!=null?a:WOe,Y=zt({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,XOe),H=(i=p==null?void 0:p.rightArrowIcon)!=null?i:HOe,J=zt({elementType:H,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,QOe);return O.jsxs(eRe,T({ref:n,className:Ie(k.root,f),ownerState:E},$,{children:[O.jsx(F,T({},U,{children:l?O.jsx(H,T({},X)):O.jsx(z,T({},Q))})),u?O.jsx(gn,{variant:"subtitle1",component:"span",children:u}):O.jsx(tRe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},B,{children:l?O.jsx(z,T({},Q)):O.jsx(H,T({},X))}))]}))}),fi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),O2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},A6=["hours","minutes","seconds"],Ju=e=>A6.includes(e),Es=e=>A6.includes(e)||e==="meridiem",rRe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,kp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,oRe=(e,t,n,r)=>{const o=kp(r.getHours(e),t,n);return r.setHours(e,o)},XD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gh=(e,t)=>(n,r)=>e?t.isAfter(n,r):XD(n,t)>XD(r,t),Lg=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return fi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:fi(n,["minutes"])?o.minutes:fi(n,["seconds"])?o.seconds:fi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:fi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function yh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=S.useRef(n),f=S.useRef(o),p=S.useRef(o.includes(n)?n:o[0]),[m,b]=Cr({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[x,g]=Cr({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),$=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&$(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",B=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function aRe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function iRe(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function N0(e,t,n,r){const o=qt(),a=rRe(e,o),i=S.useCallback(s=>{const l=e==null?null:oRe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Op=36,j0=2,L0=320,sRe=280,F0=334,N6=232,Tf=48,z0=de("div")({overflow:"hidden",width:L0,maxHeight:F0,display:"flex",flexDirection:"column",margin:"0 auto"});function lRe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Zu=220,xi=36,Rp={x:Zu/2,y:Zu/2},j6={x:Rp.x,y:0},cRe=j6.x-Rp.x,uRe=j6.y-Rp.y,dRe=e=>e*(180/Math.PI),L6=(e,t,n)=>{const r=t-Rp.x,o=n-Rp.y,a=Math.atan2(cRe,uRe)-Math.atan2(r,o);let i=dRe(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},fRe=(e,t,n=1)=>{const r=n*6;let{value:o}=L6(r,e,t);return o=o*n%60,o},pRe=(e,t,n)=>{const{value:r,distance:o}=L6(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},hRe,t)},gRe=de("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),yRe=de("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${xi/2}px)`,border:`${(xi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function bRe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,mRe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=vRe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Zu),transform:`rotateZ(${p}deg)`}};return O.jsx(gRe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(yRe,{ownerState:l,className:c.thumb})}))}function xRe(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Zf=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},wRe=(e,t)=>t==null||!e.isValid(t)?null:t,Yr=(e,t,n)=>t==null||!e.isValid(t)?n:t,CRe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),R2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},vC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},D2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ba=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},$Re=["year","month","day"],Ou=e=>$Re.includes(e),Dp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return fi(n,["year"])?o.year:fi(n,["month"])?o.month:fi(n,["day"])?o.dayOfMonth:fi(n,["month","year"])?`${o.month} ${o.year}`:fi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},SRe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},_Re=e=>{const{classes:t}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},xRe,t)},ERe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),PRe=de("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),TRe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),kRe=de("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ORe=de("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),RRe=de(tr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),DRe=de(tr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),QD=de(gn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function MRe(e){const t=Ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=_r(),_=S.useRef(!1),$=_Re(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:L,offsetY:K}=J;if(L===void 0){const D=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?fRe(L,K,u):pRe(L,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},B=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},z=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=S.useRef(null);Kn(()=>{o&&Q.current.focus()},[o]);const H=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(ERe,{className:Ie(g,$.root),children:[O.jsxs(PRe,{className:$.clock,children:[O.jsx(kRe,{onTouchMove:F,onTouchEnd:U,onMouseUp:B,onMouseMove:G,ownerState:{disabled:v},className:$.squareMask}),!E&&O.jsxs(S.Fragment,{children:[O.jsx(ORe,{className:$.pin}),i!=null&&O.jsx(bRe,{type:m,viewValue:b,isInner:k,hasSelected:z})]}),O.jsx(TRe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:H,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(RRe,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Ba(w,"am"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"am")})}),O.jsx(DRe,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Ba(w,"pm"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"pm")})})]})]})}function IRe(e){return et("MuiClockNumber",e)}const Xm=Qe("MuiClockNumber",["root","selected","disabled"]),ARe=["className","disabled","index","inner","label","selected"],NRe=e=>{const{classes:t,selected:n,disabled:r}=e;return Xe({root:["root",n&&"selected",r&&"disabled"]},IRe,t)},jRe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Xm.disabled}`]:t.disabled},{[`&.${Xm.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:xi,width:xi,position:"absolute",left:`calc((100% - ${xi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Xm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Xm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function F6(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,ARe),c=t,u=NRe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Zu-xi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(jRe,T({className:Ie(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(Zu-xi)/2}px`},ownerState:c},l,{children:i}))}const LRe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(F6,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},eM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(F6,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},M2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=S.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=S.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=S.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Sd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=Cr({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return M2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Na={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},FRe=e=>Math.max(...e.map(t=>{var n;return(n=Na[t.type])!=null?n:1})),ff=(e,t,n)=>{if(t===Na.year)return e.startOfYear(n);if(t===Na.month)return e.startOfMonth(n);if(t===Na.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():ff(t,n,D2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ff(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ff(t,n,e.maxDate));const s=gh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vC(t,i,e.maxTime))),i},z6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BRe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},B0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},B6=(e,t,n,r)=>{switch(n){case"month":return R2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return B0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},V6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?V6(e,a,o.maxLength):a},VRe=(e,t,n,r,o,a,i)=>{const s=BRe(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>U6(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=B6(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},I2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},gu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),W6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},tM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),H6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,G6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return H6(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},WRe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},nM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=z6(e,w),_=G6(e,t,C.contentType,C.type,w),$=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if($)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=V6(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:URe(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:$,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=WRe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],$=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!$&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):$&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let $=_;return s&&$!==null&&$.includes(" ")&&($=`⁩${$}⁦`),a==="spacious"&&["/",".","-"].includes($)&&($=` ${$} `),$};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},HRe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=I2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qRe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=R2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:H6(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=B0(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},YRe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=B0(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},rM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},oM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>rM[i.type]-rM[s.type]).reduce((i,s)=>!a||s.modified?YRe(e,t,s,n,i):i,o),KRe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,JRe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ZRe=["value","referenceDate"],$r={emptyValue:null,getTodayValue:D2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,ZRe);return t!=null&&r.utils.isValid(t)?t:n??zRe(r)},cleanValue:wRe,areValuesEqual:CRe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},A2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:W6(o(t),r),getValueStrFromSections:GRe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},bh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},N2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>$r.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Na.day,timezone:o,getTodayDate:()=>D2(n,o,"date")}),[]);return e??a},XRe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],QRe=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},lRe,t)},eDe=de(z0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),tDe=de(I6,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),nDe=["hours","minutes"],rDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,showViewSwitcher:E,onChange:k,view:I,views:R=nDe,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:B,className:z,disabled:Y,readOnly:Q,timezone:H}=o,J=Oe(o,XRe),X=u??bh(l),L=f??c,{value:K,handleValueChange:q,timezone:D}=Sd({name:"TimeClock",timezone:H,value:p,defaultValue:m,onChange:k,valueManager:$r}),N=N2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),V=_r(),Z=cl(D),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=yh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:B}),{meridiemMode:he,handleMeridiemChange:_e}=N0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=gh(v,r),qe=we==="hours"||we==="minutes"&&R.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||x&&Ce(Le,x)||y&&Ce(Le,Z)||w&&Ce(Z,qe?Fe:Le)),Ae=(Le,Fe=1)=>{if(Le%Fe!==0||_!=null&&_(Le,we))return!1;if($)switch(we){case"hours":return!$(r.setHours(N,Le),"hours");case"minutes":return!$(r.setMinutes(N,Le),"minutes");case"seconds":return!$(r.setSeconds(N,Le),"seconds");default:return!1}return!0};switch(we){case"hours":{const Le=kp(be,he,a),Fe=r.setHours(N,Le),Pe=r.setSeconds(r.setMinutes(Fe,0),0),Te=r.setSeconds(r.setMinutes(Fe,59),59);return!rt({start:Pe,end:Te})||!Ae(Le)}case"minutes":{const Le=r.setMinutes(N,be),Fe=r.setSeconds(Le,0),Pe=r.setSeconds(Le,59);return!rt({start:Fe,end:Pe})||!Ae(be,C)}case"seconds":{const Le=r.setSeconds(N,be);return!rt({start:Le,end:Le})||!Ae(be)}default:throw new Error("not supported")}},[a,N,v,x,he,g,C,_,$,r,y,w,Z,R]),Be=Ya(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const qe=kp(we,he,a);ge(r.setHours(N,qe),Ce)};return{onChange:be,viewValue:r.getHours(N),children:LRe({value:K,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>Y||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,qe)=>{ge(r.setMinutes(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>Y||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,qe)=>{ge(r.setSeconds(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>Y||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,Y]),ze=o,He=QRe(ze);return O.jsxs(eDe,T({ref:n,className:Ie(He.root,z),ownerState:ze},J,{children:[O.jsx(MRe,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(tDe,{className:He.arrowSwitcher,slots:X,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function oDe(e){return et("MuiDigitalClock",e)}const aDe=Qe("MuiDigitalClock",["root","list","item"]),iDe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],sDe=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},oDe,t)},lDe=de(z0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:N6})),cDe=de(y2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),uDe=de(jg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),dDe=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=S.useRef(null),l=sn(n,s),c=Ke({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:$,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:B,onViewChange:z,focusedView:Y,onFocusedViewChange:Q,className:H,disabled:J,readOnly:X,views:L=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,iDe),{value:N,handleValueChange:V,timezone:Z}=Sd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:$r}),re=_r(),le=cl(Z),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=sDe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:uDe,he=zt({elementType:ge,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=N2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=yh({view:G,views:L,openTo:B,onViewChange:z,onChange:ve,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(be=>{Be(be,"finish")});S.useEffect(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;s.current.scrollTop=we-4});const ze=S.useCallback(be=>{const we=gh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||E&&we(be,le)||k&&we(le,be)),qe=()=>i.getMinutes(be)%I!==0||R!=null&&R(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!qe()},[C,i,$,_,E,le,k,I,R,F]),He=S.useMemo(()=>{const be=i.startOfDay(_e);return[be,...Array.from({length:Math.ceil(24*60/f)-1},(we,Ce)=>i.addMinutes(be,f*(Ce+1)))]},[_e,f,i]);return O.jsx(lDe,T({ref:l,className:Ie(fe.root,H),ownerState:xe},D,{children:O.jsx(cDe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(K&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!X&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function fDe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function pDe(e){return et("MuiMultiSectionDigitalClock",e)}const hDe=Qe("MuiMultiSectionDigitalClock",["root","item"]),mDe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vDe=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},pDe,t)},gDe=de(y2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:N6,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),yDe=de(jg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Tf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),bDe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=sn(n,o),i=S.useRef(null),s=Ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,mDe),w=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=vDe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:yDe;return S.useEffect(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][aria-selected="true"]');if(!$||i.current===$){i.current!==$&&(i.current=$);return}i.current=$,b&&l&&$.focus();const E=$.offsetTop;o.current.scrollTop=E-4}),O.jsx(gDe,T({ref:a,className:Ie(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var E,k;if(g&&(E=$.isDisabled)!=null&&E.call($,$.value))return null;const I=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:I,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))}),xDe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},aM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},wDe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],CDe=e=>{const{classes:t}=e;return Xe({root:["root"]},fDe,t)},$De=de(z0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),SDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:B,disabled:z,readOnly:Y,skipDisabled:Q=!1,timezone:H}=o,J=Oe(o,wDe),{value:X,handleValueChange:L,timezone:K}=Sd({name:"MultiSectionDigitalClock",timezone:H,value:p,defaultValue:m,onChange:E,valueManager:$r}),q=_r(),D=cl(K),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=N2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,Ce,qe)=>L(we,Ce,qe)),re=S.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:le,setValueAndGoToView:xe,focusedView:fe}=yh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=N0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const qe=gh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&qe(g,Pe)||x&&qe(Fe,x)||y&&qe(Fe,D)||w&&qe(D,rt?Pe:Fe)),Le=(Fe,Pe=1)=>{if(Fe%Pe!==0||_!=null&&_(Fe,Ce))return!1;if($)switch(Ce){case"hours":return!$(r.setHours(V,Fe),"hours");case"minutes":return!$(r.setMinutes(V,Fe),"minutes");case"seconds":return!$(r.setSeconds(V,Fe),"seconds");default:return!1}return!0};switch(Ce){case"hours":{const Fe=kp(we,he,a),Pe=r.setHours(V,Fe),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Ae({start:Te,end:it})||!Le(Fe)}case"minutes":{const Fe=r.setMinutes(V,we),Pe=r.setSeconds(Fe,0),Te=r.setSeconds(Fe,59);return!Ae({start:Pe,end:Te})||!Le(we,C)}case"seconds":{const Fe=r.setSeconds(V,we);return!Ae({start:Fe,end:Fe})||!Le(we)}default:throw new Error("not supported")}},[a,V,v,x,he,g,C,_,$,r,y,w,D,re]),Be=mt((we,Ce)=>{const qe=re.indexOf(we),rt=re[qe+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const qe=kp(Ce,he,a);Be("hours",r.setHours(V,qe))},items:xDe({now:D,value:X,ampm:a,utils:r,isDisabled:Ce=>z||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:aM({value:r.getMinutes(V),isDisabled:Ce=>z||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(D,Ce),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:aM({value:r.getSeconds(V),isDisabled:Ce=>z||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(D,Ce),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const Ce=Ba(r,"am"),qe=Ba(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!X&&he==="am",ariaLabel:Ce},{value:"pm",label:qe,isSelected:()=>!!X&&he==="pm",ariaLabel:qe}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,he,Be,V,z,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=CDe(He);return O.jsx($De,T({ref:n,className:Ie(be.root,B),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(bDe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:z,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function _De(e){return et("MuiPickersDay",e)}const Cl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),EDe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],PDe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_De,l)},q6=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Op,height:Op,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Cl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.disabled}:not(.${Cl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cl.disabled}&.${Cl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${j0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Cl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},TDe=de(Ca,{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(q6),kDe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(({theme:e,ownerState:t})=>T({},q6({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),pf=()=>{},ODe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=pf,onBlur:b=pf,onKeyDown:v=pf,onMouseDown:x=pf,onMouseEnter:g=pf,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,E=Oe(r,EDe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:$}),I=PDe(k),R=qt(),F=S.useRef(null),U=sn(F,n);Kn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=z=>{x(z),y&&z.preventDefault()},B=z=>{s||p(i),y&&z.currentTarget.focus(),f&&f(z)};return y&&!C?O.jsx(kDe,{className:Ie(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx(TDe,T({className:Ie(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:z=>v(z,i),onFocus:z=>m(z,i),onBlur:z=>b(z,i),onMouseEnter:z=>g(z,i),onClick:B,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),RDe=S.memo(ODe);function K6(e,t,n,r){const{value:o,onError:a}=e,i=gc(),s=S.useRef(r),l=t({adapter:i,value:o,props:e});return S.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const DDe=e=>{const t=qt(),n=_r(),r=gc(),a=nr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:$,handleValueChange:E}=M2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>qRe(t,_),[t,_]),I=S.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,V=>nM(t,_,n,v,V,x,w,a)),[s,v,n,a,w,t,x,_]),R=S.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=S.useState(()=>{const D=I($),N={sections:D,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=FRe(D),Z=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:Z})}),[G,B]=Cr({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),z=D=>{B(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=S.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:V})=>{U(re=>T({},re,{sections:V,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},H=(D,N)=>{const V=[...F.sections];return V[D]=T({},V[D],{value:N,modified:!0}),W6(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=H(Y.startIndex,""),le=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(le);(le!=null&&!t.isValid(le))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=D=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=nM(t,_,n,v,xe,x,w,a);return oM(t,_,xe,fe,le,!1)},V=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:Z,sections:I(V,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:V})=>{V&&Y&&Y.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return S.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),S.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,$)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,$):D=!0,D&&U(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:I($)}))},[$]),{state:F,selectedSectionIndexes:Y,setSelectedSections:z,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:L,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},MDe=5e3,qc=e=>e.saveQuery!=null,IDe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=S.useState(null),l=mt(()=>s(null));S.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),S.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),MDe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!qc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return qc(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),qc(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=$=>B6(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&z6(a,w).contentType==="letter"){const $=_(w),E=b(w,$,g);return qc(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>tM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:U6(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=G6(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qc(w))return w;const C=tM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(qc(y))return y;const w=B0(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function nu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ADe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Fg=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Fg(t.shadowRoot):t:null},j2="@media (pointer: fine)",NDe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=DDe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:$,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:B}=e,z=Oe(e.forwardedProps,NDe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=IDe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),H=S.useRef(null),J=sn(m,H),X=S.useRef(void 0),K=nr().direction==="rtl",q=S.useMemo(()=>JRe(n.sections,K),[n.sections,K]),D=()=>{var be;if(v){o(null);return}const we=(be=H.current.selectionStart)!=null?be:0;let Ce;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?Ce=1:Ce=n.sections.findIndex(rt=>rt.startInInput-rt.startSeparator.length>we);const qe=Ce===-1?n.sections.length-1:Ce-1;o(qe)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),D())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),Z=mt((...be)=>{C==null||C(...be);const we=H.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==H.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(E==null||E(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],qe=/^[a-zA-Z]+$/.test(we),rt=/^[0-9]+$/.test(we),Ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(Ce.contentType==="letter"&&qe||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(qe||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,qe=Ce&&Ce.length>1,rt=qe?Ce:we,Ae=gu(rt);if(r==null||qe){l(qe?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=gu(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-gu(it.endSeparator||"").length;Le=Ae.slice(it.start+gu(it.startSeparator||"").length,gt)}if(KRe()&&Le.length===0){c(rt);return}Y({keyPressed:Le,sectionIndex:r.startIndex})}),fe=mt(be=>{switch(w==null||w(be),!0){case(be.key==="a"&&(be.ctrlKey||be.metaKey)):{be.preventDefault(),o("all");break}case be.key==="ArrowRight":{if(be.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(be.key):{if(be.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(be.key):{if(be.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],Ce=U.getActiveDateManager(t,n,we),qe=VRe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:qe,shouldGoToNextSection:!1});break}}});Kn(()=>{if(!H.current)return;if(r==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,qe=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,qe+=we.endSeparator.length),Ce!==H.current.selectionStart||qe!==H.current.selectionEnd){const rt=H.current.scrollTop;H.current===Fg(document)&&H.current.setSelectionRange(Ce,qe),H.current.scrollTop=rt}});const ge=K6(T({},b,{value:n.value,timezone:p}),B,G.isSameError,G.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:G.hasError(ge),[G,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(H.current&&H.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=H.current&&H.current===Fg(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=H.current.selectionStart)!=null?be:0,qe=(we=H.current.selectionEnd)!=null?we:0;if(Ce===0&&qe===0)return null;const rt=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ce);return rt===-1?n.sections.length-1:rt-1},setSelectedSections:be=>o(be)}));const He=mt((be,...we)=>{var Ce;be.preventDefault(),R==null||R(be,...we),a(),H==null||(Ce=H.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},z,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},xh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Yr(n.utils,e.minDate,n.defaultDates.minDate),f=Yr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},gC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],J6=["minDateTime","maxDateTime"],jDe=[...gC,...yC,...J6],_d=e=>jDe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),LDe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],F2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return LDe.forEach(o),t==="date"?gC.forEach(o):t==="time"?yC.forEach(o):t==="date-time"&&(gC.forEach(o),yC.forEach(o),J6.forEach(o)),{forwardedProps:n,internalProps:r}},FDe=e=>{var t,n,r;const o=qt(),a=yc();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Yr(o,e.minDate,a.minDate),maxDate:Yr(o,e.maxDate,a.maxDate)})},zDe=({props:e,inputRef:t})=>{const n=FDe(e),{forwardedProps:r,internalProps:o}=F2(n,"date");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:xh,valueType:"date"})},BDe=de(E0)({[`& .${Kf.container}`]:{outline:0},[`& .${Kf.paper}`]:{outline:0,minWidth:L0}}),VDe=de(T0)({"&:first-of-type":{padding:0}});function UDe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:BDe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Cd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(VDe,{children:r})}))}function WDe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const HDe="@media (prefers-reduced-motion: reduce)",Ru=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),iM=Ru&&Ru[1]?parseInt(Ru[1],10):null,sM=Ru&&Ru[2]?parseInt(Ru[2],10):null,GDe=iM&&iM<10||sM&&sM<13||!1,Z6=()=>ph(HDe,{defaultMatches:!1})||GDe,qDe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YDe=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},WDe,t)},KDe=de(dh,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),JDe=de(ls,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ZDe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=zn(o.current);if(!o.current||"clientX"in l&&ZDe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return S.useEffect(()=>{if(e){const l=zn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),S.useEffect(()=>{if(e){const l=zn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const QDe=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,qDe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function eMe(e){var t,n,r,o;const a=Ke({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;S.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=S.useRef(null);S.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=Fg(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=XDe(p,u??f),$=S.useRef(null),E=sn($,l),k=sn(E,w),I=a,R=YDe(I),F=Z6(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},B=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?Cd:Ag,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:Rj,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:JDe,Q=(o=v==null?void 0:v.popper)!=null?o:KDe,H=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},H,{children:({TransitionProps:J,placement:X})=>O.jsx(z,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(B,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(QDe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function X6(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const tMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X6,t)},nMe=de("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),rMe=de("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),z2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=tMe(c);return s?null:O.jsxs(nMe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(rMe,{className:u.content,ownerState:c,children:o})]})});function oMe(e){return et("MuiPickersToolbarText",e)}const lM=Qe("MuiPickersToolbarText",["root","selected"]),aMe=["className","selected","value"],iMe=e=>{const{classes:t,selected:n}=e;return Xe({root:["root",n&&"selected"]},oMe,t)},sMe=de(gn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${lM.selected}`]:{color:(e.vars||e).palette.text.primary}})),B2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,aMe),s=iMe(r);return O.jsx(sMe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),lMe=["align","className","selected","typographyClassName","value","variant","width"],cMe=e=>{const{classes:t}=e;return Xe({root:["root"]},X6,t)},uMe=de(Uo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Lo=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,lMe),p=cMe(r);return O.jsx(uMe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(B2,{align:o,className:s,variant:c,value:l,selected:i})}))}),dMe=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,a]=S.useState(!1);S.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=S.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},fMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},pMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},hMe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},mMe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=S.useRef(l),{current:b}=S.useRef(s!==void 0),v=qt(),x=gc(),[g,y]=Cr({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=dMe(e),[_,$]=S.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=M2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});K6(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,Z.value,ge),isControlled:b,closeOnSelect:c},le=fMe(re),xe=pMe(re),fe=hMe(re);if($(ge=>T({},ge,{draft:Z.value,lastPublishedValue:le?Z.value:ge.lastPublishedValue,lastCommittedValue:xe?Z.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(he.shortcut=Z.shortcut),k(Z.value,he)}xe&&a&&a(Z.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),B=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),z=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),H=mt((Z,re,le)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:le})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),L={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:B,onOpen:z,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},V=T({},L,{value:q,onChange:Q,onSelectShortcut:H,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:V,actions:L}},vMe=["className","sx"],gMe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,vMe),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=yh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:E}=S.useMemo(()=>c.reduce((B,z)=>{let Y;return p?Y="field":m[z]!=null?Y="UI":Y="field",B.viewModeLookup[z]=Y,Y==="UI"&&(B.hasUIView=!0),B},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((B,z)=>m[z]!=null&&Ju(z)?B+1:B,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=S.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Kn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Kn(()=>{if(!i)return;let B=x;I==="field"&&F!=null&&(B=F),B!==y&&E[B]==="UI"&&E[y]==="UI"&&(B=y),B!==x&&g(B),C(B,!0)},[i]),{hasUIView:$,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const B=m[F];return B==null?null:B(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function cM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const yMe=(e,t)=>{const[n,r]=S.useState(cM);return Kn(()=>{const a=()=>{r(cM())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),nu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},bMe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=yMe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Q6=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Q6(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const eL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=mMe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=gMe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=bMe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function tL(e){return et("MuiPickersLayout",e)}const Sx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),xMe=["onAccept","onClear","onCancel","onSetToday","actions"];function wMe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,xMe),s=_r();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Uo,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Uo,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Uo,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Uo,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(P0,T({},i,{children:l}))}const CMe=["items","changeImportance","isLandscape","onChange","isValid"],$Me=["getValue"];function SMe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,CMe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,$Me);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(g2,T({dense:!0,sx:[{maxHeight:F0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(c6,{children:O.jsx(Wj,T({},s))},s.label))}))}function _Me(e){return e.view!==null}const EMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tL,t)},PMe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:$}=e,E=_??bh(w),k=$??C,I=EMe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:wMe,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,B=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),z=_Me(B)&&G?O.jsx(G,T({},B)):null,Y=y,Q=E==null?void 0:E.tabs,H=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:SMe,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},X)):null;return{toolbar:z,content:Y,tabs:H,actionBar:U,shortcuts:L}},TMe=PMe,kMe=e=>{const{isLandscape:t,classes:n}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tL,n)},nL=de("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Sx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Sx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));nL.propTypes={as:j.elementType,ownerState:j.shape({isLandscape:j.bool.isRequired}).isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const OMe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),rL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=TMe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=kMe(m);return O.jsxs(nL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(OMe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},V0=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=gh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},V2=({props:e,value:t,adapter:n})=>{const r=xh({adapter:n,value:t,props:e});return r!==null?r:V0({adapter:n,value:t,props:e})},RMe=e=>et("MuiPickersSlideTransition",e),ca=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),DMe=["children","className","reduceAnimations","slideDirection","transKey","classes"],MMe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Xe(r,RMe,t)},IMe=de(r2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ca["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ca["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ca.slideEnterActive}`]:t.slideEnterActive},{[`.${ca.slideExit}`]:t.slideExit},{[`.${ca["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ca["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ca["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ca["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ca.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ca.slideExit}`]:{transform:"translate(0%)"},[`& .${ca["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ca["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function AMe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,DMe),s=MMe(t),l=nr();if(o)return O.jsx("div",{className:Ie(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(IMe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(i0e,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const oL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=gc();return S.useCallback(c=>xh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},NMe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const jMe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LMe=["ownerState"],FMe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},NMe,t)},aL=(Op+j0*2)*6,zMe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BMe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),VMe=de(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),UMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),WMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Op,height:Op,padding:0,margin:`0 ${j0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),HMe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:aL}),GMe=de(AMe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:aL}),qMe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),YMe=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${j0}px 0`,display:"flex",justifyContent:"center"});function KMe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,jMe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),$=cl(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,$),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:RDe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,LMe),G=S.useMemo(()=>p||l(a),[p,l,a]),B=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),z=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:B,isFirstVisibleCell:z,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function JMe(e){const t=Ke({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:$,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,B=cl(G),z=qt(),Y=FMe(t),H=nr().direction==="rtl",J=$||((ze,He)=>z.format(He,"weekdayShort").charAt(0).toUpperCase()),X=oL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),L=_r(),[K,q]=Cr({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=S.useState(()=>i||B),V=mt(ze=>{u||l(ze)}),Z=ze=>{X(ze)||(n(ze),N(ze),k==null||k(!0),q(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":Z(z.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":Z(z.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=z.addDays(He,H?1:-1),we=z.addMonths(He,H?1:-1),Ce=Zf({utils:z,date:be,minDate:H?be:z.startOfMonth(we),maxDate:H?z.endOfMonth(we):be,isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=z.addDays(He,H?-1:1),we=z.addMonths(He,H?-1:1),Ce=Zf({utils:z,date:be,minDate:H?z.startOfMonth(we):be,maxDate:H?be:z.endOfMonth(we),isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"Home":Z(z.startOfWeek(He)),ze.preventDefault();break;case"End":Z(z.endOfWeek(He)),ze.preventDefault();break;case"PageUp":Z(z.addMonths(He,1)),ze.preventDefault();break;case"PageDown":Z(z.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>Z(He)),xe=mt((ze,He)=>{K&&z.isSameDay(D,He)&&(k==null||k(!1))}),fe=z.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>z.startOfDay(ze)),[z,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=z.startOfWeek(B),Be=S.useMemo(()=>{const ze=z.startOfMonth(o),He=z.endOfMonth(o);return X(D)||z.isAfterDay(D,He)||z.isBeforeDay(D,ze)?Zf({utils:z,date:D,minDate:ze,maxDate:He,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,z,G]),Ue=S.useMemo(()=>{const ze=z.setTimezone(o,G),He=z.getWeekArray(ze);let be=z.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=z.format(ze,"weekdayShort").slice(0,2);return O.jsx(VMe,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(ve,He),"weekday"),className:Y.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(HMe,{className:Y.loadingContainer,children:p()}):O.jsx(GMe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,Y.slideTransition)},b,{nodeRef:_e,children:O.jsx(qMe,{ref:_e,role:"rowgroup",className:Y.monthContainer,children:Ue.map((ze,He)=>O.jsxs(YMe,{role:"row",className:Y.weekContainer,"aria-rowindex":He+1,children:[R&&O.jsx(WMe,{className:Y.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(z.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(z.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(KMe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:X,currentMonthNumber:fe,isViewFocused:K,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const ZMe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},XMe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=cl(p),b=qt(),v=S.useRef(ZMe(!!u,i,b)).current,x=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),$r.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Na.day})},[]),[g,y]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=S.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=S.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=oL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:w}},QMe=["ownerState"],U2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=_r(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:tr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,QMe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:KOe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs(S.Fragment,{children:[O.jsx(v2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},eIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tIe=["inputRef"],nIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],iL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,eIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,tIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=zDe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,nIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),rIe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},oIe=({props:e,inputRef:t})=>{const n=rIe(e),{forwardedProps:r,internalProps:o}=F2(n,"time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V0,valueType:"time"})},aIe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],iIe=["inputRef"],sIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],sL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,aIe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,iIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=oIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,sIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),lIe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=yc(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Yr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Yr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},cIe=({props:e,inputRef:t})=>{const n=lIe(e),{forwardedProps:r,internalProps:o}=F2(n,"date-time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V2,valueType:"date-time"})},uIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],dIe=["inputRef"],fIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,uIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,dIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=cIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,fIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),pIe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const hIe=e=>{const{classes:t}=e;return Xe({root:["root"]},pIe,t)},mIe=de(r2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=hIe(t),s=nr();return o?n:O.jsx(mIe,{className:Ie(i.root,r),children:O.jsx(Cd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function vIe(e){return et("MuiPickersMonth",e)}const Qm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),gIe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],yIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vIe,r)},bIe=de("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),xIe=de("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Qm.disabled}`]:t.disabled},{[`&.${Qm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,gIe),x=S.useRef(null),g=yIe(n);return Kn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(bIe,T({className:g.root,ownerState:n},v,{children:O.jsx(xIe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function CIe(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const $Ie=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],SIe=e=>{const{classes:t}=e;return Xe({root:["root"]},CIe,t)};function _Ie(e,t){const n=qt(),r=yc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const EIe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:L0,boxSizing:"border-box"}),PIe=S.forwardRef(function(t,n){const r=_Ie(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:$,gridLabelId:E}=r,k=Oe(r,$Ie),{value:I,handleValueChange:R,timezone:F}=Sd({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:s,granularity:Na.month}),[]),Y=r,Q=SIe(Y),H=S.useMemo(()=>B.getMonth(U),[B,U]),J=S.useMemo(()=>I!=null?B.getMonth(I):x?null:B.getMonth(z),[I,B,x,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(fe=>{q(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=B.startOfMonth(u&&B.isAfter(U,p)?U:p),he=B.startOfMonth(c&&B.isBefore(U,f)?U:f),_e=B.startOfMonth(fe);return B.isBefore(_e,ge)||B.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,U,b,B]),V=mt((fe,ge)=>{if(v)return;const he=B.setMonth(I??z,ge);R(he)}),Z=mt(fe=>{N(B.setMonth(I??z,fe))||(L(fe),D(!0),y&&y(fe))});S.useEffect(()=>{L(fe=>J!==null&&fe!==J?J:fe)},[J]);const re=mt((fe,ge)=>{switch(fe.key){case"ArrowUp":Z((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":Z((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":Z((12+ge+(G.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":Z((12+ge+(G.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{Z(ge)}),xe=mt((fe,ge)=>{X===ge&&D(!1)});return O.jsx(EIe,T({ref:n,className:Ie(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:R2(B,I??z).map(fe=>{const ge=B.getMonth(fe),he=B.format(fe,"monthShort"),_e=B.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(wIe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:K&&ge===X,disabled:Be,tabIndex:ge===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function TIe(e){return et("MuiPickersYear",e)}const ev=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),kIe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],OIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},TIe,r)},RIe=de("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),DIe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),MIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,kIe),x=S.useRef(null),g=OIe(n);return S.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(RIe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(DIe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function IIe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const AIe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],NIe=e=>{const{classes:t}=e;return Xe({root:["root"]},IIe,t)};function jIe(e,t){var n;const r=qt(),o=yc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Yr(r,a.minDate,o.minDate),maxDate:Yr(r,a.maxDate,o.maxDate)})}const LIe=de("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:L0,maxHeight:sRe,boxSizing:"border-box",position:"relative"}),FIe=S.forwardRef(function(t,n){const r=jIe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:$,gridLabelId:E}=r,k=Oe(r,AIe),{value:I,handleValueChange:R,timezone:F}=Sd({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:l,granularity:Na.year}),[]),Y=r,Q=NIe(Y),H=S.useMemo(()=>B.getYear(U),[B,U]),J=S.useMemo(()=>I!=null?B.getYear(I):g?null:B.getYear(z),[I,B,g,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(he=>{q(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&B.isBeforeYear(he,U)||u&&B.isAfterYear(he,U)||m&&B.isBeforeYear(he,m)||p&&B.isAfterYear(he,p))return!0;if(!x)return!1;const _e=B.startOfYear(he);return x(_e)},[u,f,p,m,U,x,B]),V=mt((he,_e)=>{if(v)return;const ve=B.setYear(I??z,_e);R(ve)}),Z=mt(he=>{N(B.setYear(I??z,he))||(L(he),D(!0),y==null||y(he))});S.useEffect(()=>{L(he=>J!==null&&he!==J?J:he)},[J]);const re=mt((he,_e)=>{switch(he.key){case"ArrowUp":Z(_e-_),he.preventDefault();break;case"ArrowDown":Z(_e+_),he.preventDefault();break;case"ArrowLeft":Z(_e+(G.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":Z(_e+(G.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{Z(_e)}),xe=mt((he,_e)=>{X===_e&&D(!1)}),fe=S.useRef(null),ge=sn(n,fe);return S.useEffect(()=>{if(o||fe.current===null)return;const he=fe.current.querySelector('[tabindex="0"]');if(!he)return;const _e=he.offsetHeight,ve=he.offsetTop,Be=fe.current.clientHeight,Ue=fe.current.scrollTop,ze=ve+_e;_e>Be||ve{const _e=B.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(MIe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:K&&_e===X,disabled:Be,tabIndex:_e===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===_e?"date":void 0,yearsPerRow:_,children:B.format(he,"year")},B.format(he,"year"))})}))}),zIe=e=>et("MuiPickersCalendarHeader",e),BIe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),VIe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],UIe=["ownerState"],WIe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zIe,t)},HIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),GIe=de("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),YIe=de(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${BIe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),KIe=de(UOe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),JIe=S.forwardRef(function(t,n){var r,o;const a=_r(),i=qt(),s=Ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:$,timezone:E}=s,k=Oe(s,VIe),I=s,R=WIe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:YIe,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:KIe,B=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),z=Oe(B,UIe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),H=aRe(u,{disableFuture:p,maxDate:b,timezone:E}),J=iRe(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(L=>L!==y)||C[0]);else{const L=C.indexOf(y)!==0?0:1;g(C[L])}};return C.length===1&&C[0]==="year"?null:O.jsxs(HIe,T({},k,{ownerState:I,className:Ie($,R.root),ref:n,children:[O.jsxs(GIe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(cL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(qIe,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},z))}))]}),O.jsx(Cd,{in:y==="day",children:O.jsx(I6,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:H,nextLabel:a.nextMonth})})]}))}),ZIe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const XIe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],QIe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ZIe,t)};function eAe(e,t){var n,r,o,a,i,s,l;const c=qt(),u=yc(),f=Z6(),p=Ke({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Yr(c,p.minDate,u.minDate),maxDate:Yr(c,p.maxDate,u.maxDate)})}const tAe=de(z0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:F0}),nAe=de(cL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),uL=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Ya(),l=eAe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:B,maxDate:z,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:H,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,XIe),{value:he,handleValueChange:_e,timezone:ve}=Sd({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:$r}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=yh({view:k,views:I,openTo:R,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:H}),{referenceDate:Ce,calendarState:qe,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=XMe({value:he,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:B,maxDate:z,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=U&&he||B,it=U&&he||z,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:JIe,ne=zt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Be,currentMonth:qe.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(be(),Ae(Et)),rt(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(be(),Ae(Et)),rt(kt,!0)}),$e=mt(dt=>_e(dt&&vC(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Ze=QIe(Se),tt={disablePast:v,disableFuture:b,maxDate:z,minDate:B},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:ve,gridLabelId:ct},_t=S.useRef(Be);S.useEffect(()=>{_t.current!==Be&&(ze===_t.current&&He(Be,!0),_t.current=Be)},[ze,He,Be]);const vt=S.useMemo(()=>[he],[he]);return O.jsxs(tAe,T({ref:n,className:Ie(Ze.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(nAe,{reduceAnimations:C,className:Ze.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(FIe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(PIe,T({},tt,ft,{hasFocus:gt,className:F,value:he,onChange:te,shouldDisableMonth:$,onFocusedViewChange:dt=>He("month",dt),monthsPerRow:xe,referenceDate:Ce})),Be==="day"&&O.jsx(JMe,T({},qe,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z}))]})})]}))});function rAe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const oAe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aAe=e=>{const{classes:t}=e;return Xe({root:["root"],title:["title"]},rAe,t)},iAe=de(z2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sAe=de(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),lAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,oAe),u=qt(),f=_r(),p=aAe(r),m=S.useMemo(()=>{if(!o)return s;const v=Dp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(iAe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(sAe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function dL(e,t){var n,r,o,a;const i=qt(),s=yc(),l=Ke({props:e,name:t}),c=S.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:bh(l.components);return T({},l,{localeText:c},O2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Yr(i,l.minDate,s.minDate),maxDate:Yr(i,l.maxDate,s.maxDate),slots:T({toolbar:lAe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const cAe=["props","getOpenDialogAriaText"],uAe=["ownerState"],dAe=["ownerState"],W2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,cAe);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:$}=i,E=qt(),k=S.useRef(null),I=S.useRef(null),R=Ya(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:B,layoutProps:z,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:H}=eL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:v2,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(X,uAe),K=(o=c.openPickerButton)!=null?o:tr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(H.value,E),edge:L.position},ownerState:i}),D=Oe(q,dAe),N=c.openPickerIcon,V=c.field,Z=zt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},H,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});B&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),le=(a=c.layout)!=null?a:rL,xe=sn(k,Z.inputRef,g);let fe=R;F&&(x?fe=`${R}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(vh,{localeText:_,children:[O.jsx(V,T({},Z,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(eMe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},z,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:Y()}))}))]})}},ga=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q})=>O.jsx(uL,{view:e,onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q}),fL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=dL(t,"MuiDesktopDatePicker"),u=T({day:ga,month:ga,year:ga},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Dp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:M6,field:iL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},al((b=c.slotProps)==null?void 0:b.field,m),_d(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=W2({props:f,valueManager:$r,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:xh});return p()});fL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const fAe=["props","getOpenDialogAriaText"],H2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,fAe);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=S.useRef(null),_=Ya(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=eL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ADe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const B=T({textField:s.textField},G.slots),z=(r=s.layout)!=null?r:rL,Y=sn(C,G.inputRef,v);let Q=_;$&&(b?Q=`${_}-label`:Q=void 0);const H=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(vh,{localeText:y,children:[O.jsx(U,T({},G,{slots:B,slotProps:H,inputRef:Y})),O.jsx(UDe,T({},k,{open:E,slots:s,slotProps:H,children:O.jsx(z,T({},I,H==null?void 0:H.layout,{slots:s,slotProps:H,children:R()}))}))]})}},pL=S.forwardRef(function(t,n){var r,o,a;const i=_r(),s=qt(),l=dL(t,"MuiMobileDatePicker"),c=T({day:ga,month:ga,year:ga},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Dp(s,l,!1),slots:T({field:iL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},al((m=l.slotProps)==null?void 0:m.field,p),_d(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=H2({props:u,valueManager:$r,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:xh});return f()});pL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const pAe=["desktopModeMediaQuery"],hAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,pAe);return ph(o,{defaultMatches:!0})?O.jsx(fL,T({ref:n},a)):O.jsx(pL,T({ref:n},a))});function mAe(e){return et("MuiTimePickerToolbar",e)}const Xf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),vAe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],gAe=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,mAe,r)},yAe=de(z2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bAe=de(B2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),hL=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Xf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Xf.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));hL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const mL=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Xf.ampmLabel}`]:t.ampmLabel},{[`&.${Xf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Xf.ampmLabel}`]:{fontSize:17}}));mL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};function xAe(e){const t=Ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,vAe),m=qt(),b=_r(),v=nr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=N0(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=gAe(T({},C,{theme:v})),$=O.jsx(bAe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(yAe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(hL,{className:_.hourMinuteLabel,ownerState:C,children:[nu(c,"hours")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),nu(c,["hours","minutes"])&&$,nu(c,"minutes")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),nu(c,["minutes","seconds"])&&$,nu(c,"seconds")&&O.jsx(Lo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(mL,{className:_.ampmSelection,ownerState:C,children:[O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ba(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ba(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function vL(e,t){var n,r,o,a,i;const s=qt(),l=Ke({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=S.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:bh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},O2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:xAe},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Du=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B})=>O.jsx(rDe,{view:e,onViewChange:t,focusedView:n&&Ju(n)?n:null,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B}),gL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(dDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:B}),bC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(SDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B}),wAe=["views","format"],yL=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,wAe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Ju(c)?i.push(c):a.push(c)}),i.length===0)return Dp(e,T({views:a},o),!1);if(a.length===0)return Lg(e,T({views:i},o));const s=Lg(e,T({views:i},o));return`${Dp(e,T({views:a},o),!1)} ${s}`},CAe=(e,t,n)=>n?t.filter(r=>!Es(r)||r==="hours"):e?[...t,"meridiem"]:t,$Ae=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function bL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=$Ae(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:CAe(t,r,i)}}const xL=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=_r(),u=qt(),f=vL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=bL(f),v=p?gL:bC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===bC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:Lg(u,f),views:p?["hours"]:C,slots:T({field:sL,openPickerIcon:GOe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},al((k=f.slotProps)==null?void 0:k.field,E),_d(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:V0});return $()});xL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const wL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=vL(t,"MuiMobileTimePicker"),u=T({hours:Du,minutes:Du,seconds:Du},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Lg(l,c),slots:T({field:sL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},al((v=c.slotProps)==null?void 0:v.field,b),_d(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=H2({props:p,valueManager:$r,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:V0});return m()});wL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const SAe=["desktopModeMediaQuery"],_Ae=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,SAe);return ph(o,{defaultMatches:!0})?O.jsx(xL,T({ref:n},a)):O.jsx(wL,T({ref:n},a))});function EAe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const PAe=e=>Ou(e)?"date":"time",TAe=e=>e==="date"?"day":"hours",kAe=e=>{const{classes:t}=e;return Xe({root:["root"]},EAe,t)},OAe=de(D0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Nv.indicator}`]:{bottom:"auto",top:0}}})),RAe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(qOe,{}),onViewChange:o,timeIcon:a=O.jsx(YOe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=_r(),c=kAe(n),u=(f,p)=>{o(TAe(p))};return s?null:O.jsxs(OAe,{ownerState:n,variant:"fullWidth",value:PAe(i),onChange:u,className:c.root,children:[O.jsx(Tp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(Tp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function DAe(e){return et("MuiDateTimePickerToolbar",e)}const _x=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MAe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],IAe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,DAe,t)},CL=de(z2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));CL.propTypes={as:j.elementType,classes:j.object,className:j.string,isLandscape:j.bool.isRequired,isMobileKeyboardViewOpen:j.bool,landscapeDirection:j.oneOf(["column","row"]),ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),toggleMobileKeyboardView:j.func,toolbarTitle:j.node,viewType:j.oneOf(["date","time"])};const AAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),$L=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),NAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));$L.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const uM=de(B2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),jAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_x.ampmLabel}`]:t.ampmLabel},{[`&.${_x.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_x.ampmLabel}`]:{fontSize:17}}));function LAe(e){const t=Ke({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,MAe),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=N0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=_r(),E=nr(),k=IAe(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(CL,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(AAe,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(Lo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(Lo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs($L,{className:k.timeContainer,ownerState:x,children:[O.jsxs(NAe,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(jAe,{className:k.ampmSelection,ownerState:x,children:[O.jsx(Lo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ba(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(Lo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ba(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(Lo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ba(g,y):"--",width:Tf})]})]}))}function SL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=yc(),v=Ke({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=S.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:bh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,O2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Yr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Yr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:LAe,tabs:RAe},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const FAe=de("div")({display:"flex",margin:"0 auto"}),$l=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:$,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=al((Be=Q==null?void 0:Q.actionBar)!=null?Be:z==null?void 0:z.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:Es(e)?e:"hours",onViewChange:t,focusedView:r&&Es(r)?r:null,onFocusedViewChange:o,views:n.filter(Es),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:B,componentsProps:z,slots:Y,slotProps:Q,readOnly:L,disabled:K,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(FAe,{children:[O.jsx(uL,{view:Ou(e)?e:"day",onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:$,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(CD,{orientation:"vertical"}),_e?gL(T({},ze,{view:"hours",views:["hours"],focusedView:r&&Es(r)?"hours":null,sx:T({width:"auto",[`&.${aDe.root}`]:{maxHeight:F0}},Array.isArray(N)?N:[N])})):bC(T({},ze,{view:Es(e)?e:"hours",views:n.filter(Es),focusedView:r&&Es(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${hDe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(CD,{})]})},_L=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=_r(),f=qt(),p=SL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=bL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:$l,month:$l,year:$l,hours:$l,minutes:$l,seconds:$l,meridiem:$l}:T({day:ga,month:ga,year:ga,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:yL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:lL,openPickerIcon:M6},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},al((k=p.slotProps)==null?void 0:k.field,E),_d(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:V2});return $()});_L.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const EL=S.forwardRef(function(t,n){var r,o,a,i,s;const l=_r(),c=qt(),u=SL(t,"MuiMobileDateTimePicker"),f=T({day:ga,month:ga,year:ga,hours:Du,minutes:Du,seconds:Du},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:yL(c,u),ampmInClock:p,slots:T({field:lL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},al((x=u.slotProps)==null?void 0:x.field,v),_d(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=H2({props:m,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:V2});return b()});EL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const zAe=["desktopModeMediaQuery"],BAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,zAe);return ph(o,{defaultMatches:!0})?O.jsx(_L,T({ref:n},a)):O.jsx(EL,T({ref:n},a))});var PL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",m="year",b="date",v="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var z=["th","st","nd","rd"],Y=B%100;return"["+B+(z[(Y-20)%10]||z[Y]||z[0])+"]"}},w=function(B,z,Y){var Q=String(B);return!Q||Q.length>=z?B:""+Array(z+1-Q.length).join(Y)+B},C={s:w,z:function(B){var z=-B.utcOffset(),Y=Math.abs(z),Q=Math.floor(Y/60),H=Y%60;return(z<=0?"+":"-")+w(Q,2,"0")+":"+w(H,2,"0")},m:function B(z,Y){if(z.date()1)return B(X[0])}else{var L=z.name;$[L]=z,H=L}return!Q&&H&&(_=H),H||!Q&&_},R=function(B,z){if(k(B))return B.clone();var Y=typeof z=="object"?z:{};return Y.date=B,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(B,z){return R(B,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var U=function(){function B(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var z=B.prototype;return z.parse=function(Y){this.$d=function(Q){var H=Q.date,J=Q.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var X=H.match(x);if(X){var L=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(H)}(Y),this.init()},z.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(Y,Q){var H=R(Y);return this.startOf(Q)<=H&&H<=this.endOf(Q)},z.isAfter=function(Y,Q){return R(Y)25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(TL);var UAe=TL.exports;const WAe=Bt(UAe);var kL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(kL);var HAe=kL.exports;const GAe=Bt(HAe);var OL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(OL);var qAe=OL.exports;const YAe=Bt(qAe);var RL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(RL);var KAe=RL.exports;const JAe=Bt(KAe);br.extend(GAe);br.extend(YAe);br.extend(JAe);const ZAe=Q6(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),XAe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QAe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ex=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),dM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),e3e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class G2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=XAe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof br.utc<"u",this.hasTimezonePlugin=()=>typeof br.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return br.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=br.tz.guess();return i!=="UTC"?br.tz(a,i):br(a)}return br(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Ex);return br.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Ex);if(!this.hasTimezonePlugin())throw new Error(dM);const s=a!==void 0&&!a.endsWith("Z");return br(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=br.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(ZAe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Ex);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(dM)}return br.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=e3e((o=this.rawDayJsInstance)!=null?o:br,t),this.locale=t,this.formats=T({},QAe,n),br.extend(WAe)}}var q2={},t3e=mc;Object.defineProperty(q2,"__esModule",{value:!0});var DL=q2.default=void 0,n3e=t3e(vc()),r3e=O,o3e=(0,n3e.default)((0,r3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");DL=q2.default=o3e;const a3e=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=d5(i)(e,s.scope,a);if(l)return M.createElement(Pn,{xsUp:!n},M.createElement(Po,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Dy(e.allOf,t,"allOf",s,a,i);return M.createElement(Pn,{xsUp:!n},c.map((u,f)=>M.createElement(Po,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},i3e=mn(3,KN);var s3e=ime(a3e);class ML extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=Ike(t,n),a=Ql.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&BN(a)&&(i=a.elements.length>0),i?M.createElement(Po,{schema:o,path:r,uischema:a}):null}}const l3e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=S.useState(n||0),f=S.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Dy(e.anyOf,t,p,s,o,l);return M.createElement(Pn,{xsUp:!r},M.createElement(ML,{schema:e,combinatorKeyword:p,path:o}),M.createElement(D0,{value:c,onChange:f},m.map(b=>M.createElement(Tp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(Po,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};z5(l3e);const c3e=de($d)({borderBottom:"none"}),Mp=({children:e,...t})=>M.createElement(c3e,Object.assign({},t),e),u3e=de(Yj)(({theme:e})=>({color:e.palette.error.main})),IL=({errorMessages:e,id:t})=>M.createElement(hc,{id:t,title:e},M.createElement(u3e,{badgeContent:e.split(` -`).length},M.createElement(P2,{color:"inherit"}))),d3e={paddingLeft:0,paddingRight:0},f3e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(ll,null,M.createElement(Mp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Mp,{align:"right",style:d3e},M.createElement(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large"},M.createElement(_2,null)))):null)}),fM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},AL=(e,t,n,r,o)=>{if(t.type==="object")return NL(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},NL=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],p3e=({numColumns:e,translations:t})=>M.createElement(ll,null,M.createElement(Mp,{colSpan:e},M.createElement(gn,{align:"center"},t.noDataMessage))),h3e=M.memo(function({title:t}){return M.createElement($d,null,t)}),m3e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pM=e=>({type:"Control",scope:e,label:!1}),v3e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Mp,null,r.properties?M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:pM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ec,{schema:r,uischema:pM("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(fr,{error:!c},!c&&a))}),g3e=e=>{const t=pc(),n=m3e(t,e),r=Mt(n.errors);return M.createElement(v3e,Object.assign({},n,{isValid:r}))},y3e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(ll,{key:e,hover:!0},AL(g3e,t,e,c,u),c?M.createElement(Mp,{style:l?fM.fixedCell:fM.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(I0,null)))):null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(M0,null))))):null)},b3e=M.memo(y3e),x3e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(p3e,{numColumns:NL(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,hd(e).map(m=>{const b=ir.compose(t,`${m}`);return M.createElement(b3e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let w3e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?AL(h3e,r,n,c,u):void 0;return M.createElement(Pn,{xsUp:!l},M.createElement(C6,null,M.createElement(S6,null,M.createElement(f3e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(ll,null,b,c?M.createElement($d,null):null)),M.createElement($6,null,M.createElement(x3e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const C3e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(h2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(P0,null,M.createElement(Uo,{onClick:o,color:"primary"},l),M.createElement(Uo,{onClick:r,color:"primary"},s)))}),$3e=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return M.createElement(Pn,{xsUp:!l},M.createElement(w3e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(C3e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};My($3e);const ul=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},jL=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[$,E,k]=ul(),I=m.find(G=>G.value===i)??null,R=!Eo(r,t,$,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Pn,{xsUp:!r},M.createElement(_we,{className:s,id:l,disabled:!c,value:I,onChange:(G,B)=>{p(f,B==null?void 0:B.value)},inputValue:C,onInputChange:(G,B)=>{_(B)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(mh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:$})),renderOption:x,filterOptions:g}),M.createElement(fr,{error:!y&&!R},F),M.createElement(fr,{error:!y},U))},Y2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(YCe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});T2.extend(EOe);const K2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=T2(r).format(n);t(e,o)},J2=(e,t)=>{if(!e)return null;const n=T2(e,t);return n.toString()==="Invalid Date"?null:n},S3e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(Po,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),_3e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Pn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},S3e(t,n,r,o,i,s))),wh=M.memo(_3e),LL=e=>function(n){const r=pc(),o=gd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},E3e=e=>e.target.value,bc=(e,t,n,r,o=E3e,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(M5(f=>e(r,f),a),[e,r,a]),c=S.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=S.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},P3e={"enum.none":"None"},T3e=e=>e===""?void 0:parseInt(e,10),k3e=e=>T3e(e.target.value),FL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,k3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),O3e=e=>e===""?void 0:parseFloat(e),R3e=e=>O3e(e.target.value),zL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,R3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),D3e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=S.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=bc(l,"",b,s,v);return M.createElement(cs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),M3e=e=>e.target.value===""?void 0:e.target.value,BL=M.memo(function(t){var R,F,U;const[n,r]=S.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=bc(p,"",o,f,M3e),$=()=>r(!0),E=()=>r(!1),k=nr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(cs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:$,onPointerLeave:E,endAdornment:M.createElement(v2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(tr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(k6,{style:I}))),inputComponent:v})}),I3e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=bc(l,"",n,s);return M.createElement(cs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),U0=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=S.useMemo(()=>p("enum.none",P3e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(b6,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(jg,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(jg,{value:v.value,key:v.value},v.label))))}),VL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(JPe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),A3e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Pn,{xlUp:!t},M.createElement(fh,{component:"fieldset"},M.createElement(t6,{row:!0},o.map((u,f)=>{const p=ir.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(k0,{id:u.value,key:u.value,control:M.createElement(Y2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(fr,{error:!0},n)));dme(A3e);const N3e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>rh(n,r,l.scope,a,()=>Mt(a)?Ql.uiSchema(r,"VerticalLayout"):{...Ql.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Pn,{xsUp:!i},M.createElement(Po,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var j3e=sme(N3e);const L3e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=S.useState(!1),[b,v]=S.useState(l||0),[x,g]=S.useState(0),y=S.useCallback(()=>m(!1),[m]),w=S.useCallback(()=>{m(!1)},[m]),C=Dy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,es(C[k].schema)),v(k)},$=S.useCallback(()=>{_(x),m(!1)},[e,es,x]),E=S.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Pn,{xsUp:!s},M.createElement(ML,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(D0,{value:b,onChange:E},C.map(k=>M.createElement(Tp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(Po,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(E0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(h2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(P0,null,M.createElement(Uo,{onClick:w,color:"primary"},"No"),M.createElement(Uo,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},F3e=mn(3,ZN);var z3e=ame(L3e);const B3e=({text:e,visible:t})=>M.createElement(Pn,{xsUp:!t},M.createElement(gn,{variant:"h6"},e));U5(B3e);const UL=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(ITe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(hc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(_2,null))))))))}),V3e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(c6,{button:!0,selected:n,onClick:o(e)},M.createElement(B_e,null,M.createElement(Gj,{"aria-label":"Index"},e+1)),M.createElement(K_e,{primary:t}),r&&M.createElement(l6,null,M.createElement(tr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(M0,null))));var U3e=lme(V3e);const W3e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=S.useState(void 0),w=S.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>es(t),[es]),$=S.useMemo(()=>rh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Pn,{xsUp:!i},M.createElement(UL,{translations:x,label:ky(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(g2,null,f>0?R6(hd(f),k=>M.createElement(U3e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(Po,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:fc(r,`${g}`)}):M.createElement(gn,{variant:"h6"},x.noSelection))))};My(W3e);const Ed=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!Eo(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Pn,{xsUp:!c},M.createElement(fh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(i6,{htmlFor:o+"-input",error:!m,required:Oy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(fr,{error:!m&&!v},x),M.createElement(fr,{error:!m},g)))},H3e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),G3e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),q3e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=H3e(u.anyOf),m=G3e(u.anyOf).maxLength,b=S.useMemo(()=>tn({},n,i.options),[n,i.options]),v=S.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=bc(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(cs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Y3e extends A5{render(){return M.createElement(Ed,Object.assign({},this.props,{input:q3e}))}}lo(Y3e);const K3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(Y2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(K3e);const J3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(VL,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(J3e);const Z3e=e=>{const[t,n,r]=ul(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!Eo(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],$=y?o:x?null:i,E=y&&!x?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(hAe,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!x&&!y},$),M.createElement(fr,{error:!x},E)))};lo(Z3e);const X3e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(BAe,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(X3e);const Q3e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};P_(ol(M.memo(Q3e)),!1);const e4e=e=>M.createElement(Ed,Object.assign({},e,{input:FL}));lo(e4e);const t4e=e=>{const[t,n,r]=ul(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=bc(m,"",b,p),C=g.format??s.format,_=!Eo(u,l,t,g.showUnfocusedDescription);return M.createElement(Pn,{xsUp:!u},M.createElement(mh,{required:Oy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};lo(t4e);const n4e=e=>M.createElement(Ed,Object.assign({},e,{input:zL}));lo(n4e);const r4e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};T_(ol(M.memo(r4e)),!1);const WL=e=>{const[t,n,r]=ul(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!Eo(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Pn,{xsUp:!f},M.createElement(fh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(m2,{htmlFor:a,error:!x,component:"legend",required:Oy(s,g.hideRequiredAsterisk)},i),M.createElement(oEe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(k0,{value:C.value,key:C.label,control:M.createElement(tEe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(fr,{error:!x},x?y?l:null:c)))},o4e=e=>M.createElement(WL,Object.assign({},e));T_(o4e);const a4e=e=>M.createElement(WL,Object.assign({},e));P_(a4e);const i4e=e=>{const[t,n,r]=ul(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},$=!Eo(p,i,t,g.showUnfocusedDescription),E=S.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Pn,{xsUp:!p},M.createElement(fh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(m2,{htmlFor:o,error:!x,component:"legend",required:Oy(b,g.hideRequiredAsterisk)},M.createElement(gn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(gn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(gn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(LEe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(fr,{error:!x},x?$?i:null:l)))};lo(i4e);const s4e=e=>M.createElement(Ed,Object.assign({},e,{input:BL}));lo(s4e);const l4e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(_Ae,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(l4e);const Px={float:"right"},c4e=e=>{const[t]=S.useState(w5("expand-panel"));S.useEffect(()=>()=>{C5(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,$=S.useMemo(()=>rh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(D0e,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(d1e,{expandIcon:M.createElement(DL,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(Gj,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{onClick:l(m,a),style:Px,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{onClick:s(m,a),style:Px,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(I0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(tr,{onClick:p(m,[a]),style:Px,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(M0,null))))))))),M.createElement(L0e,null,M.createElement(Po,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:w})))},u4e=M.memo(c4e),d4e=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(UN(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(WN(o,n),o)))},[e])}),f4e=e=>function({ctx:n,props:r}){const o=d4e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=fc(s,`${l}`),f=_o.data(n.core.data,u),p=a?dr(f,a,""):dr(f,Fpe(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},p4e=e=>Sr(f4e(e));var h4e=p4e(u4e);const m4e={marginBottom:"10px"},v4e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Pn,{xsUp:!t},M.createElement(pCe,{style:m4e},!Mt(o)&&M.createElement(kCe,{title:o}),M.createElement(bCe,null,M.createElement(wh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),g4e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(v4e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};is(g4e);const y4e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(wh,Object.assign({},l,{renderers:t,cells:n}))};is(y4e);const b4e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(wh,Object.assign({},l,{renderers:a,cells:i}))};is(b4e);const x4e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=S.useState(i),[x,g]=S.useState(c??0),y=S.useMemo(()=>m.elements.filter(E=>yd(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},$=S.useMemo(()=>y.map(E=>Ey(E,p)),[y,p]);return M.createElement(Pn,{xsUp:!s},M.createElement(D1e,{position:"static"},M.createElement(D0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Tp,{key:k,label:$[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(wh,Object.assign({},C,{key:w}))))};LL(ol(is(x4e)));const w4e=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>es(e.schema),[e.schema]),o=S.useCallback($=>(E,k)=>{n(k?$:!1)},[]),a=$=>t===fc(e.path,`${$}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(UL,{translations:C,label:ky(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?R6(hd(s),$=>M.createElement(h4e,{enabled:i,index:$,expanded:a($),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:$,rootSchema:g,enableMoveUp:$!=0,enableMoveDown:${const r=S.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Pn,{xsUp:!e},M.createElement(C4e,Object.assign({visible:e,addItem:r},n)))};My($4e);const S4e=e=>M.createElement(Y2,Object.assign({},e));pr(S4e);const _4e=e=>M.createElement(VL,Object.assign({},e));pr(_4e);const E4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(cs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};pr(E4e);const P4e=e=>M.createElement(U0,Object.assign({},e));V5(ol(M.memo(P4e)),!1);const T4e=e=>M.createElement(FL,Object.assign({},e));pr(T4e);const k4e=e=>M.createElement(zL,Object.assign({},e));pr(k4e);const O4e=e=>M.createElement(D3e,Object.assign({},e));pr(O4e);const R4e=e=>M.createElement(U0,Object.assign({},e));ume(ol(M.memo(R4e)),!1);const D4e=e=>M.createElement(BL,Object.assign({},e));pr(D4e);const M4e=e=>M.createElement(I3e,Object.assign({},e));pr(M4e);const I4e=e=>{const[t,n]=S.useState(0),r=$=>{n($)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=S.useMemo(()=>b.elements.filter($=>yd($,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=S.useMemo(()=>w.map($=>Ey($,m)),[w,m]);return M.createElement(Pn,{xsUp:!c},M.createElement(zPe,{activeStep:t,nonLinear:!0},w.map(($,E)=>M.createElement(tPe,{key:_[E]},M.createElement(EPe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(wh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Uo,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Uo,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};LL(ol(is(I4e)));var HL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var $=_.match(r);if(!$)return null;var E=(""+$[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(HL);var A4e=HL.exports;const N4e=Bt(A4e);var GL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,$<=_.r||!_.r){$<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&($=m(""+$)),v=typeof E=="string"?E.replace("%d",$):E($,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(GL);var j4e=GL.exports;const L4e=Bt(j4e),F4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"})),z4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var Z2={exports:{}};Z2.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if($=$<<1,E==c-1){_.push(u($));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,$,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Z2);var W0=Z2.exports,B4e=Array.prototype,V4e=B4e.join;function U4e(e,t){return e==null?"":V4e.call(e,t)}var W4e=U4e;const qL=Bt(W4e);var H4e=pd,YL=H4e("filter",Z4);YL.placeholder=uc();var G4e=YL;const hM=Bt(G4e);var q4e=pd,KL=q4e("map",O6);KL.placeholder=uc();var Y4e=KL;const mM=Bt(Y4e);var Tx,vM;function K4e(){if(vM)return Tx;vM=1;var e=oS(),t=lS,n=rS(),r=A4(),o=lr,a=N4(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=mg(e,o=>o.name===t);return Ww(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},La=e=>(t,...n)=>qL(Qf(e)(t,n)," "),aNe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],iNe={styles:aNe},sNe=M.createContext(iNe),lNe=()=>S.useContext(sNe),X2=()=>{const{styles:e}=lNe();return e},Ti=e=>function(n){const r=pc(),o=X2(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Qf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${g5(a.scope)}`]);s&&(c=c.concat(Qf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>La(o)("control.label"),[o]),p=S.useMemo(()=>La(o)("input.description"),[o]),m=S.useMemo(()=>La(o)("control.validation"),[o]),b=S.useMemo(()=>La(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=S.useMemo(()=>La(o),[o]),g=S.useMemo(()=>Qf(o),[o]),y=c.join(" "),w=v.join(" "),C=S.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},Q2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=X2(),i=La(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:La(a),getStyle:Qf(a),className:o.join(" ")}))},Ka=Q2("control.input"),cNe=Q2("control.select"),uNe=Q2("control.checkbox"),dNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},fNe=mn(2,YN);var pNe=pr(uNe(dNe));const hNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},mNe=mn(2,r5);var vNe=pr(Ka(hNe));const gNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},yNe=mn(2,a5);var bNe=pr(Ka(gNe));const xNe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=S.useMemo(()=>u("enum.none",oNe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},wNe=mn(2,t_);var CNe=V5(ol(cNe(xNe)));const $Ne=e=>e===""?void 0:parseInt(e,10),SNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,$Ne(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},_Ne=mn(2,QN);var ENe=pr(Ka(SNe));const PNe=e=>e===""?void 0:Number(e),TNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,PNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},kNe=mn(2,e5);var ONe=pr(Ka(TNe));const RNe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};pr(Ka(RNe));const DNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},MNe=mn(4,l5);var INe=pr(Ka(DNe));const ANe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},NNe=mn(1,t5);pr(Ka(ANe));const jNe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},LNe=mn(2,n5);pr(Ka(jNe));const FNe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},zNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,FNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},BNe=mn(2,o5);var VNe=pr(Ka(zNe));class UNe extends A5{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!Eo(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=gy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Vu?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},ky(a,f,g.hideRequiredAsterisk)),M.createElement(ec,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const WNe=mn(1,Ga);var e9=Ti(lo(UNe));const t9=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=X2(),[v,x]=S.useState(!1),g=S.useMemo(()=>La(b)("control.radio"),[b]),y=S.useMemo(()=>La(b)("control.radio.option"),[b]),w=S.useMemo(()=>La(b)("control.radio.input"),[b]),C=S.useMemo(()=>La(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!Eo(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},ky(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:$},_?k?a:null:i))},HNe=e=>M.createElement(t9,Object.assign({},e)),GNe=mn(3,Cn(t_,as("format","radio")));var qNe=Ti(P_(HNe));const YNe=e=>M.createElement(t9,Object.assign({},e)),KNe=mn(3,Cn(XN,as("format","radio")));var JNe=Ti(T_(YNe));const{convertToValidClassName:ZNe}=_g,XNe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=S.useMemo(()=>rh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),$=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),ZNe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:$},n),M.createElement("button",{className:_,onClick:i(r,es(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?hd(0,t.length).map(U=>{const G=fc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(Po,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},QNe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=_g.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${_g.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:E};return M.createElement(XNe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var e5e=Ti(B5(QNe));const t5e=mn(4,r_),eE=e=>e.type==="Categorization",n5e=mn(1,Cn(Sn("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>eE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),r5e=(e,t)=>t===e?"selected":"",n9=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>Ey(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>eE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(n9,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:r5e(l,t)},M.createElement("span",null,s[c]))))},o5e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(Po,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class a5e extends I5{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(n9,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(o5e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:eE(n)?this.findCategory(n):n}}var i5e=Ti(ol(is(a5e)));const s5e=mn(1,Sn("Label")),l5e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var c5e=Ti(U5(l5e));const{convertToValidClassName:u5e}=_g,{or:d5e,isObjectArrayControl:f5e,isPrimitiveArrayControl:p5e,rankWith:h5e}=ope,m5e=h5e(3,d5e(f5e,p5e));class v5e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),u5e(m.scope)].join(" "),w=$=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${$}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,es(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?yM(xM,hM($=>r.properties[$].type!=="array"),mM($=>M.createElement("th",{key:$},r.properties[$].title??rNe($))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map(($,E)=>{const k=ir.compose(a,`${E}`),I=mg(f,G=>wg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?yM(xM,hM(G=>r.properties[G].type!=="array"),mM(G=>{const B=ir.compose(k,G.toString());return M.createElement("td",{key:B},M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(G)}`,o),uischema:w(Xl(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:ir.compose(k,E.toString())},M.createElement(ec,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},qL(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var g5e=Ti(B5(v5e));const tE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=pc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(Po,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},y5e=mn(1,Sn("Group")),b5e=e=>{const{data:t,...n}=e;return M.createElement(x5e,Object.assign({},n))},x5e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),tE(c,t,p,r,o))});var w5e=Ti(is(b5e));const r9=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),C5e=mn(1,Sn("HorizontalLayout")),$5e=e=>{const{data:t,...n}=e;return M.createElement(S5e,Object.assign({},n))},S5e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(r9,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},tE(l,t,f,s,a))});var _5e=Ti(is($5e,!1));const E5e=mn(1,Sn("VerticalLayout")),P5e=e=>{const{data:t,...n}=e;return M.createElement(T5e,Object.assign({},n))},T5e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(r9,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},tE(l,t,f,r,a))});var k5e=Ti(is(P5e,!1));const O5e=[{tester:WNe,renderer:e9},{tester:GNe,renderer:qNe},{tester:KNe,renderer:JNe},{tester:t5e,renderer:e5e},{tester:s5e,renderer:c5e},{tester:n5e,renderer:i5e},{tester:m5e,renderer:g5e},{tester:y5e,renderer:w5e},{tester:E5e,renderer:k5e},{tester:C5e,renderer:_5e}];function o9(e){let t=window.location.pathname.split("/playground")[0];return t.endsWith("/")&&(t=t.slice(0,-1)),new URL(t+e,window.location.origin)}const R5e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new $(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var B=0;B-1?D=N:(q=o.isUndefined(L)?void 0:R(L),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(V,Z){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function w(L,K){var q=L;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(L){return Object.keys(L).filter(function(K){return K!=="$ref"})}function _(L){var K;switch(L.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=L.uriDetails.reference}return K}function $(L,K){var q=p[L],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,Z){Z(void 0,JSON.parse(V.text))}),D=(D=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(V){return o.cloneDeep(V)})}function E(L,K){var q=!0;try{if(!o.isPlainObject(L))throw new Error("obj is not an Object");if(!o.isString(L.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function I(L,K){L.error=K.message,L.missing=!0}function R(L){return u.parse(L)}function F(L,K,q){w(L,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(L,K){var q,D;if(L=o.isUndefined(L)?{}:o.cloneDeep(L),!o.isObject(L))throw new TypeError("options must be an Object");if(!o.isUndefined(L.resolveCirculars)&&!o.isBoolean(L.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(L.filter)||o.isArray(L.filter)||o.isFunction(L.filter)||o.isString(L.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(L.includeInvalid)&&!o.isBoolean(L.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(L.location)&&!o.isString(L.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(L.refPreProcessor)&&!o.isFunction(L.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(L.refPostProcessor)&&!o.isFunction(L.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(L.subDocPath)&&!o.isArray(L.subDocPath)&&!Q(L.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(L.resolveCirculars)&&(L.resolveCirculars=!1),L.filter=function(N){var V,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?V=N.filter:o.isUndefined(N.filter)&&(V=function(){return!0}),function(re,le){return(re.type!=="invalid"||N.includeInvalid===!0)&&V(re,le)}}(L),o.isUndefined(L.location)&&(L.location=k("./root.json")),(q=L.location.split("#")).length>1&&(L.subDocPath="#"+q[1]),D=decodeURI(L.location)===L.location,L.location=x(L.location,void 0),D&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=H(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(K))try{w(K,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function G(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function B(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function z(L,K){var q={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function D(N,V,Z,re){var le=!0;function xe(fe,ge){Z.push(ge),D(N,fe,Z,re),Z.pop()}o.isFunction(re)&&(le=re(N,V,Z)),N.indexOf(V)===-1&&(N.push(V),le!==!1&&(o.isArray(V)?V.forEach(function(fe,ge){xe(fe,ge.toString())}):o.isObject(V)&&o.forOwn(V,function(fe,ge){xe(fe,ge)})),N.pop())}(function(D,N){var V,Z=[];return N.length>0&&(V=D,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],Z.push(V))})),Z}(L,(K=U(K,L)).subDocPath),w(L,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,V){var Z,re,le=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),V)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,V)),K.filter(Z,V)&&(re=J(V),q[re]=Z),C(N).length>0&&(le=!1)),le}),q}function Y(L){var K,q,D,N={def:L};try{if(E(L,!0),K=L.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,K){var q,D=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(q=L.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&L!=="#"&&L.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(L.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function H(L){try{Q(L,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=L.split("/");return K.shift(),G(K)}function J(L,K){if(!o.isArray(L))throw new Error("path must be an Array");return(K!==!1?"#":"")+(L.length>0?"/":"")+B(L).join("/")}function X(L,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");K=U(K,L),L=o.cloneDeep(L)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(V,Z,re){var le,xe,fe=Promise.resolve(),ge=J(Z.subDocPath),he=k(Z.location),_e=i.dirname(Z.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=z(V,Z),o.forOwn(le,function(Be,Ue){var ze,He,be=k(Z.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?x(_e,Be.uri):Z.location)+"#"+(Be.uri.indexOf("#")>-1?Be.uri.split("#")[1]:""));re.refs[be]=Be,y(Be)&&(Be.fqURI=we,re.deps[ve][Ue===ge?"#":Ue.replace(ge+"/","#/")]=we,be.indexOf(we+"/")!==0&&be!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:H(decodeURI(Be.uriDetails.fragment)),g(Be)?(delete xe.filter,xe.location=we.split("#")[0],fe=fe.then((ze=re,He=xe,function(){var Ce=k(He.location),qe=ze.docs[Ce];return o.isUndefined(qe)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return qe})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,qe,rt){return function(Ae){if(o.isError(Ae))I(rt,Ae);else try{return N(Ae,qe,Ce).catch(function(Le){I(rt,Le)})}catch(Le){I(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,K,D).then(function(){return D})}).then(function(D){var N={},V=[],Z=[],re=new a.Graph,le=k(K.location),xe=le+J(K.subDocPath),fe=i.dirname(le);return Object.keys(D.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e){re.setEdge(he,_e)})}),(V=a.alg.findCycles(re)).forEach(function(ge){ge.forEach(function(he){Z.indexOf(he)===-1&&Z.push(he)})}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=D.refs[he+ve.slice(1)],be=g(He);Z.indexOf(_e)>-1&&V.forEach(function(we){Ue||(Be=we.indexOf(_e))>-1&&we.forEach(function(Ce){Ue||ze.indexOf(Ce+"/")===0&&(be&&Be!==we.length-1&&_e[_e.length-1]==="#"||(Ue=!0))})}),Ue&&(He.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ge){var he=D.deps[ge],_e=ge.split("#"),ve=D.docs[_e[0]],Be=H(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=D.docs[He[0]],we=Be.concat(H(ze)),Ce=D.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!K.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=w(be,H(He[1]))}catch(qe){return void I(Ce,qe)}_e[1]===""&&ze==="#"?D.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(D.refs).forEach(function(ge){var he,_e,ve=D.refs[ge];ve.type!=="invalid"&&(ve.fqURI[ve.fqURI.length-1]==="#"&&ve.uri[ve.uri.length-1]!=="#"&&(ve.fqURI=ve.fqURI.substr(0,ve.fqURI.length-1)),he=ve.fqURI.split("/"),_e=ve.uri.split("/"),o.times(_e.length-1,function(Be){var Ue=_e[_e.length-Be-1],ze=_e[_e.length-Be],He=he.length-Be-1;Ue!=="."&&Ue!==".."&&ze!==".."&&(he[He]=Ue)}),ve.fqURI=he.join("/"),ve.fqURI.indexOf(le)===0?ve.fqURI=ve.fqURI.replace(le,""):ve.fqURI.indexOf(fe)===0&&(ve.fqURI=ve.fqURI.replace(fe,"")),ve.fqURI[0]==="/"&&(ve.fqURI="."+ve.fqURI)),ge.indexOf(xe)===0&&function Be(Ue,ze,He){var be,we=ze.split("#"),Ce=D.refs[ze];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=D.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(qe){Be(Ce.refdId,Ce.refdId+qe.substr(1),He.concat(H(qe)))})):!Ce.circular&&Ce.error&&(Ce.error=Ce.error.replace("options.subDocPath","JSON Pointer"),Ce.error.indexOf("#")>-1&&(Ce.error=Ce.error.replace(Ce.uri.substr(Ce.uri.indexOf("#")),Ce.uri)),Ce.error.indexOf("ENOENT:")!==0&&Ce.error.indexOf("Not Found")!==0||(Ce.error="JSON Pointer points to missing location: "+Ce.uri))}(xe,ge,H(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(D.docs[le],H(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:D.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return G(L)},e.exports.encodePath=function(L){return B(L)},e.exports.findRefs=function(L,K){return z(L,K)},e.exports.findRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=z(V,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:z(V,re),value:V}})}(L,K)},e.exports.getRefDetails=function(L){return Y(L)},e.exports.isPtr=function(L,K){return Q(L,K)},e.exports.isRef=function(L,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(L,K)},e.exports.pathFromPtr=function(L){return H(L)},e.exports.pathToPtr=function(L,K){return J(L,K)},e.exports.resolveRefs=function(L,K){return X(L,K)},e.exports.resolveRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){return X(V,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:V}})})}(L,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",$="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",H="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,he=RegExp(ge.source),_e=/^\s+|\s+$/g,ve=/^\s+/,Be=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Ne+"]",ie="["+gt+"]",$e="\\d+",Se="[\\u2700-\\u27bf]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tt="[^\\ud800-\\udfff"+Ne+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Ze+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",ln="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",bn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ut].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,me={};me[F]=me[U]=me[G]=me[B]=me[z]=me[Y]=me["[object Uint8ClampedArray]"]=me[Q]=me[H]=!0,me[u]=me[f]=me[I]=me[p]=me[R]=me[m]=me[b]=me[v]=me[g]=me[y]=me[w]=me[C]=me[_]=me[$]=me[k]=!1;var pe={};pe[u]=pe[f]=pe[I]=pe[R]=pe[p]=pe[m]=pe[F]=pe[U]=pe[G]=pe[B]=pe[z]=pe[g]=pe[y]=pe[w]=pe[C]=pe[_]=pe[$]=pe[E]=pe[Y]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[H]=!0,pe[b]=pe[v]=pe[k]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,En=Wt&&Wt.exports===yt,na=En&&xt.process,Vn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||na&&na.binding&&na.binding("util")}catch{}}(),Ro=Vn&&Vn.isArrayBuffer,ki=Vn&&Vn.isDate,Za=Vn&&Vn.isMap,Kr=Vn&&Vn.isRegExp,Do=Vn&&Vn.isSet,Xa=Vn&&Vn.isTypedArray;function Un(Me,Ye,Ge){switch(Ge.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,Ge[0]);case 2:return Me.call(Ye,Ge[0],Ge[1]);case 3:return Me.call(Ye,Ge[0],Ge[1],Ge[2])}return Me.apply(Ye,Ge)}function dl(Me,Ye,Ge,ht){for(var Ft=-1,cn=Me==null?0:Me.length;++Ft-1}function wc(Me,Ye,Ge){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return Ge}function vE(Me,Ye){for(var Ge=Me.length;Ge--&&Cc(Ye,Me[Ge],0)>-1;);return Ge}function a8(Me,Ye){for(var Ge=Me.length,ht=0;Ge--;)Me[Ge]===Ye&&++ht;return ht}var i8=e1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),s8=e1({"&":"&","<":"<",">":">",'"':""","'":"'"});function l8(Me){return"\\"+De[Me]}function $c(Me){return ue.test(Me)}function o1(Me){var Ye=-1,Ge=Array(Me.size);return Me.forEach(function(ht,Ft){Ge[++Ye]=[Ft,ht]}),Ge}function gE(Me,Ye){return function(Ge){return Me(Ye(Ge))}}function us(Me,Ye){for(var Ge=-1,ht=Me.length,Ft=0,cn=[];++Ge",""":'"',"'":"'"}),ds=function Me(Ye){var Ge,ht=(Ye=Ye==null?ut:ds.defaults(ut.Object(),Ye,ds.pick(ut,Ee))).Array,Ft=Ye.Date,cn=Ye.Error,hr=Ye.Function,Qa=Ye.Math,Dn=Ye.Object,a1=Ye.RegExp,d8=Ye.String,ra=Ye.TypeError,Eh=ht.prototype,f8=hr.prototype,_c=Dn.prototype,Ph=Ye["__core-js_shared__"],Th=f8.toString,xn=_c.hasOwnProperty,p8=0,yE=(Ge=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",kh=_c.toString,h8=Th.call(Dn),m8=ut._,v8=a1("^"+Th.call(xn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oh=En?Ye.Buffer:void 0,fs=Ye.Symbol,Rh=Ye.Uint8Array,bE=Oh?Oh.allocUnsafe:void 0,Dh=gE(Dn.getPrototypeOf,Dn),xE=Dn.create,wE=_c.propertyIsEnumerable,Mh=Eh.splice,CE=fs?fs.isConcatSpreadable:void 0,Td=fs?fs.iterator:void 0,pl=fs?fs.toStringTag:void 0,Ih=function(){try{var d=gl(Dn,"defineProperty");return d({},"",{}),d}catch{}}(),g8=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,y8=Ft&&Ft.now!==ut.Date.now&&Ft.now,b8=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,Ah=Qa.ceil,Nh=Qa.floor,i1=Dn.getOwnPropertySymbols,x8=Oh?Oh.isBuffer:void 0,$E=Ye.isFinite,w8=Eh.join,C8=gE(Dn.keys,Dn),mr=Qa.max,jr=Qa.min,$8=Ft.now,S8=Ye.parseInt,SE=Qa.random,_8=Eh.reverse,s1=gl(Ye,"DataView"),kd=gl(Ye,"Map"),l1=gl(Ye,"Promise"),Ec=gl(Ye,"Set"),Od=gl(Ye,"WeakMap"),Rd=gl(Dn,"create"),jh=Od&&new Od,Pc={},E8=yl(s1),P8=yl(kd),T8=yl(l1),k8=yl(Ec),O8=yl(Od),Lh=fs?fs.prototype:void 0,Dd=Lh?Lh.valueOf:void 0,_E=Lh?Lh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof oa)return d;if(xn.call(d,"__wrapped__"))return EP(d)}return new oa(d)}var Tc=function(){function d(){}return function(h){if(!Wn(h))return{};if(xE)return xE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Fh(){}function oa(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function hl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function aa(d,h,P,A,W,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(P&&(ce=W?P(d,A,W,ae):P(d)),ce!==void 0)return ce;if(!Wn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&xn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!ye)return uo(d,ce)}else{var ot=Lr(d),Ct=ot==v||ot==x;if(gs(d))return XE(d,ye);if(ot==w||ot==u||Ct&&!W){if(ce=Re||Ct?{}:gP(d),!ye)return Re?function(Je,st){return ti(Je,mP(Je),st)}(d,function(Je,st){return Je&&ti(st,po(st),Je)}(ce,d)):function(Je,st){return ti(Je,M1(Je),st)}(d,TE(ce,d))}else{if(!pe[ot])return W?d:{};ce=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return E1(Je);case p:case m:return new wt(+Je);case R:return function(jt,Xt){var Pt=Xt?E1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case B:case z:case Y:case"[object Uint8ClampedArray]":case Q:case H:return QE(Je,It);case g:return new wt;case y:case $:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,qe.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Dd?Dn(Dd.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new Pa);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),WP(d)?d.forEach(function(Je){ce.add(aa(Je,h,P,Je,d,ae))}):VP(d)&&d.forEach(function(Je,st){ce.set(st,aa(Je,h,P,st,d,ae))});var Rt=Ve?void 0:(We?Re?O1:k1:Re?po:Er)(d);return Jr(Rt||d,function(Je,st){Rt&&(Je=d[st=Je]),Md(ce,st,aa(Je,h,P,st,d,ae))}),ce}function kE(d,h,P){var A=P.length;if(d==null)return!A;for(d=Dn(d);A--;){var W=P[A],ae=h[W],ce=d[W];if(ce===void 0&&!(W in d)||!ae(ce))return!1}return!0}function OE(d,h,P){if(typeof d!="function")throw new ra(s);return zd(function(){d.apply(void 0,P)},h)}function Id(d,h,P,A){var W=-1,ae=Oi,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;P&&(h=Tn(h,Io(P))),A?(ae=wc,ce=!1):h.length>=200&&(ae=Pd,ce=!1,h=new ml(h));e:for(;++W-1},Ri.prototype.set=function(d,h){var P=this.__data__,A=zh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Di.prototype.clear=function(){this.size=0,this.__data__={hash:new hl,map:new(kd||Ri),string:new hl}},Di.prototype.delete=function(d){var h=Xh(this,d).delete(d);return this.size-=h?1:0,h},Di.prototype.get=function(d){return Xh(this,d).get(d)},Di.prototype.has=function(d){return Xh(this,d).has(d)},Di.prototype.set=function(d,h){var P=Xh(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},ml.prototype.add=ml.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},ml.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.clear=function(){this.__data__=new Ri,this.size=0},Pa.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},Pa.prototype.get=function(d){return this.__data__.get(d)},Pa.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ri){var A=P.__data__;if(!kd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Di(A)}return P.set(d,h),this.size=P.size,this};var ps=rP(ei),RE=rP(f1,!0);function I8(d,h){var P=!0;return ps(d,function(A,W,ae){return P=!!h(A,W,ae)}),P}function Bh(d,h,P){for(var A=-1,W=d.length;++A0&&P(ye)?h>1?Or(ye,h-1,P,A,W):co(W,ye):A||(W[W.length]=ye)}return W}var d1=oP(),ME=oP(!0);function ei(d,h){return d&&d1(d,h,Er)}function f1(d,h){return d&&ME(d,h,Er)}function Vh(d,h){return Mo(h,function(P){return ji(d[P])})}function kc(d,h){for(var P=0,A=(h=ms(h,d)).length;d!=null&&Ph}function A8(d,h){return d!=null&&xn.call(d,h)}function N8(d,h){return d!=null&&h in Dn(d)}function h1(d,h,P){for(var A=P?wc:Oi,W=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=Tn(Ve,Io(h))),Re=jr(Ve.length,Re),ye[ce]=!P&&(h||W>=120&&Ve.length>=120)?new ml(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Je=Re[We];return Rt*(Je=="desc"?-1:1)}}return ce.index-ye.index}(W,ae,P)})}function UE(d,h,P){for(var A=-1,W=h.length,ae={};++A-1;)ye!==d&&Mh.call(ye,Re,1),Mh.call(d,Re,1);return d}function WE(d,h){for(var P=d?h.length:0,A=P-1;P--;){var W=h[P];if(P==A||W!==ae){var ae=W;Ni(W)?Mh.call(d,W,1):C1(d,W)}}return d}function b1(d,h){return d+Nh(SE()*(h-d+1))}function x1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Nh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return j1(xP(d,h,ho),d+"")}function L8(d){return PE(Ic(d))}function F8(d,h){var P=Ic(d);return Qh(P,vl(h,0,P.length))}function jd(d,h,P,A){if(!Wn(d))return d;for(var W=-1,ae=(h=ms(h,d)).length,ce=ae-1,ye=d;ye!=null&&++WW?0:W+h),(P=P>W?W:P)<0&&(P+=W),W=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(W);++A>>1,ce=d[ae];ce!==null&&!No(ce)&&(P?ce<=h:ce=200){var We=h?null:W8(d);if(We)return _h(We);ce=!1,W=Pd,Re=new ml}else Re=h?[]:ye;e:for(;++A=A?d:ia(d,h,P)}var ZE=g8||function(d){return ut.clearTimeout(d)};function XE(d,h){if(h)return d.slice();var P=d.length,A=bE?bE(P):new d.constructor(P);return d.copy(A),A}function E1(d){var h=new d.constructor(d.byteLength);return new Rh(h).set(new Rh(d)),h}function QE(d,h){var P=h?E1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function eP(d,h){if(d!==h){var P=d!==void 0,A=d===null,W=d==d,ae=No(d),ce=h!==void 0,ye=h===null,Re=h==h,We=No(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||A&&ce&&Re||!P&&Re||!W)return 1;if(!A&&!ae&&!We&&d1?P[W-1]:void 0,ce=W>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(W--,ae):void 0,ce&&Xr(P[0],P[1],ce)&&(ae=W<3?void 0:ae,W=1),h=Dn(h);++A-1?W[ae?h[ce]:ce]:void 0}}function sP(d){return Ai(function(h){var P=h.length,A=P,W=oa.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new ra(s);if(W&&!ce&&Zh(ae)=="wrapper")var ce=new oa([],!0)}for(A=ce?A:P;++A1&&wt.reverse(),Ve&&Reye))return!1;var We=ae.get(d);if(We&&ae.get(h))return We==h;var Ve=-1,ot=!0,Ct=2&P?new ml:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),W.replace(Ue,`{ -/* [wrapped with `+ae+`] */ -`)}(A,function(W,ae){return Jr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!Oi(W,ye)&&W.push(ye)}),W.sort()}(function(W){var ae=W.match(ze);return ae?ae[1].split(He):[]}(A),P)))}function SP(d){var h=0,P=0;return function(){var A=$8(),W=16-(A-P);if(P=A,W>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Qh(d,h){var P=-1,A=d.length,W=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,DP(d,P)});function MP(d){var h=ee(d);return h.__chain__=!0,h}function em(d,h){return h(d)}var fF=Ai(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,W=function(ae){return u1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Ni(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:em,args:[W],thisArg:void 0}),new oa(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(W)}),pF=Gh(function(d,h,P){xn.call(d,P)?++d[P]:Mi(d,P,1)}),hF=iP(PP),mF=iP(TP);function IP(d,h){return(Ht(d)?Jr:ps)(d,Ot(h,3))}function AP(d,h){return(Ht(d)?$h:RE)(d,Ot(h,3))}var vF=Gh(function(d,h,P){xn.call(d,P)?d[P].push(h):Mi(d,P,[h])}),gF=Zt(function(d,h,P){var A=-1,W=typeof h=="function",ae=fo(d)?ht(d.length):[];return ps(d,function(ce){ae[++A]=W?Un(h,ce,P):Ad(ce,h,P)}),ae}),yF=Gh(function(d,h,P){Mi(d,P,h)});function tm(d,h){return(Ht(d)?Tn:LE)(d,Ot(h,3))}var bF=Gh(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),xF=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Xr(d,h[0],h[1])?h=[]:P>2&&Xr(h[0],h[1],h[2])&&(h=[h[0]]),VE(d,Or(h,1),[])}),nm=y8||function(){return ut.Date.now()};function NP(d,h,P){return h=P?void 0:h,Ii(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function jP(d,h){var P;if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var z1=Zt(function(d,h,P){var A=1;if(P.length){var W=us(P,Dc(z1));A|=32}return Ii(d,A,h,P,W)}),LP=Zt(function(d,h,P){var A=3;if(P.length){var W=us(P,Dc(LP));A|=32}return Ii(h,A,d,P,W)});function FP(d,h,P){var A,W,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new ra(s);function $t(At){var jt=A,Xt=W;return A=W=void 0,We=At,ce=d.apply(Xt,jt)}function Rt(At){return We=At,ye=zd(st,h),Ve?$t(At):ce}function Je(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=nm();if(Je(At))return It(At);ye=zd(st,function(jt){var Xt=h-(jt-Re);return ot?jr(Xt,ae-(jt-We)):Xt}(At))}function It(At){return ye=void 0,Ct&&A?$t(At):(A=W=void 0,ce)}function wt(){var At=nm(),jt=Je(At);if(A=arguments,W=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return ZE(ye),ye=zd(st,h),$t(Re)}return ye===void 0&&(ye=zd(st,h)),ce}return h=la(h)||0,Wn(P)&&(Ve=!!P.leading,ae=(ot="maxWait"in P)?mr(la(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){ye!==void 0&&ZE(ye),We=0,A=Re=W=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(nm())},wt}var wF=Zt(function(d,h){return OE(d,1,h)}),CF=Zt(function(d,h,P){return OE(d,la(h)||0,P)});function rm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ra(s);var P=function A(){var W=arguments,ae=h?h.apply(this,W):W[0],ce=A.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,W);return A.cache=ce.set(ae,ye)||ce,ye};return P.cache=new(rm.Cache||Di),P}function om(d){if(typeof d!="function")throw new ra(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}rm.Cache=Di;var $F=U8(function(d,h){var P=(h=h.length==1&&Ht(h[0])?Tn(h[0],Io(Ot())):Tn(Or(h,1),Io(Ot()))).length;return Zt(function(A){for(var W=-1,ae=jr(A.length,P);++W=h}),bl=AE(function(){return arguments}())?AE:function(d){return Jn(d)&&xn.call(d,"callee")&&!wE.call(d,"callee")},Ht=ht.isArray,PF=Ro?Io(Ro):function(d){return Jn(d)&&Zr(d)==I};function fo(d){return d!=null&&am(d.length)&&!ji(d)}function or(d){return Jn(d)&&fo(d)}var gs=x8||X1,TF=ki?Io(ki):function(d){return Jn(d)&&Zr(d)==m};function V1(d){if(!Jn(d))return!1;var h=Zr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Bd(d)}function ji(d){if(!Wn(d))return!1;var h=Zr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function BP(d){return typeof d=="number"&&d==Gt(d)}function am(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Wn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var VP=Za?Io(Za):function(d){return Jn(d)&&Lr(d)==g};function UP(d){return typeof d=="number"||Jn(d)&&Zr(d)==y}function Bd(d){if(!Jn(d)||Zr(d)!=w)return!1;var h=Dh(d);if(h===null)return!0;var P=xn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Th.call(P)==h8}var U1=Kr?Io(Kr):function(d){return Jn(d)&&Zr(d)==C},WP=Do?Io(Do):function(d){return Jn(d)&&Lr(d)==_};function im(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Zr(d)==$}function No(d){return i(d)=="symbol"||Jn(d)&&Zr(d)==E}var Mc=Xa?Io(Xa):function(d){return Jn(d)&&am(d.length)&&!!me[Zr(d)]},kF=Jh(g1),OF=Jh(function(d,h){return d<=h});function HP(d){if(!d)return[];if(fo(d))return im(d)?Ea(d):uo(d);if(Td&&d[Td])return function(P){for(var A,W=[];!(A=P.next()).done;)W.push(A.value);return W}(d[Td]());var h=Lr(d);return(h==g?o1:h==_?_h:Ic)(d)}function Li(d){return d?(d=la(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Li(d),P=h%1;return h==h?P?h-P:h:0}function GP(d){return d?vl(Gt(d),0,4294967295):0}function la(d){if(typeof d=="number")return d;if(No(d))return NaN;if(Wn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Wn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var P=Ae.test(d);return P||Fe.test(d)?lt(d.slice(2),P?2:8):rt.test(d)?NaN:+d}function qP(d){return ti(d,po(d))}function vn(d){return d==null?"":Ao(d)}var RF=Oc(function(d,h){if(Fd(h)||fo(h))ti(h,Er(h),d);else for(var P in h)xn.call(h,P)&&Md(d,P,h[P])}),YP=Oc(function(d,h){ti(h,po(h),d)}),sm=Oc(function(d,h,P,A){ti(h,po(h),d,A)}),DF=Oc(function(d,h,P,A){ti(h,Er(h),d,A)}),MF=Ai(u1),IF=Zt(function(d,h){d=Dn(d);var P=-1,A=h.length,W=A>2?h[2]:void 0;for(W&&Xr(h[0],h[1],W)&&(A=1);++P1),ae}),ti(d,O1(d),P),A&&(P=aa(P,7,H8));for(var W=h.length;W--;)C1(P,h[W]);return P}),BF=Ai(function(d,h){return d==null?{}:function(P,A){return UE(P,A,function(W,ae){return H1(P,ae)})}(d,h)});function JP(d,h){if(d==null)return{};var P=Tn(O1(d),function(A){return[A]});return h=Ot(h),UE(d,P,function(A,W){return h(A,W[0])})}var ZP=dP(Er),XP=dP(po);function Ic(d){return d==null?[]:r1(d,Er(d))}var VF=Rc(function(d,h,P){return h=h.toLowerCase(),d+(P?QP(h):h)});function QP(d){return G1(vn(d).toLowerCase())}function eT(d){return(d=vn(d))&&d.replace(Te,i8).replace(Bn,"")}var UF=Rc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),WF=Rc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),HF=aP("toLowerCase"),GF=Rc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),qF=Rc(function(d,h,P){return d+(P?" ":"")+G1(h)}),YF=Rc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),G1=aP("toUpperCase");function tT(d,h,P){return d=vn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(be)||[]}(d):d.match(h)||[]}var nT=Zt(function(d,h){try{return Un(d,void 0,h)}catch(P){return V1(P)?P:new cn(P)}}),KF=Ai(function(d,h){return Jr(h,function(P){P=ni(P),Mi(d,P,z1(d[P],d))}),d});function q1(d){return function(){return d}}var JF=sP(),ZF=sP(!0);function ho(d){return d}function Y1(d){return jE(typeof d=="function"?d:aa(d,1))}var XF=Zt(function(d,h){return function(P){return Ad(P,d,h)}}),QF=Zt(function(d,h){return function(P){return Ad(d,P,h)}});function K1(d,h,P){var A=Er(h),W=Vh(h,A);P!=null||Wn(h)&&(W.length||!A.length)||(P=h,h=d,d=this,W=Vh(h,Er(h)));var ae=!(Wn(P)&&"chain"in P&&!P.chain),ce=ji(d);return Jr(W,function(ye){var Re=h[ye];d[ye]=Re,ce&&(d.prototype[ye]=function(){var We=this.__chain__;if(ae||We){var Ve=d(this.__wrapped__),ot=Ve.__actions__=uo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,co([this.value()],arguments))})}),d}function J1(){}var e7=P1(Tn),t7=P1(fl),n7=P1(X0);function rT(d){return I1(d)?Q0(ni(d)):function(h){return function(P){return kc(P,h)}}(d)}var r7=cP(),o7=cP(!0);function Z1(){return[]}function X1(){return!1}var a7=Yh(function(d,h){return d+h},0),i7=T1("ceil"),s7=Yh(function(d,h){return d/h},1),l7=T1("floor"),Q1,c7=Yh(function(d,h){return d*h},1),u7=T1("round"),d7=Yh(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=NP,ee.assign=RF,ee.assignIn=YP,ee.assignInWith=sm,ee.assignWith=DF,ee.at=MF,ee.before=jP,ee.bind=z1,ee.bindAll=KF,ee.bindKey=LP,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=MP,ee.chunk=function(d,h,P){h=(P?Xr(d,h,P):h===void 0)?1:mr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var W=0,ae=0,ce=ht(Ah(A/h));WWe?0:We+ye),(Re=Re===void 0||Re>We?We:Gt(Re))<0&&(Re+=We),Re=ye>Re?0:GP(Re);ye>>0)?(d=vn(d))&&(typeof h=="string"||h!=null&&!U1(h))&&!(h=Ao(h))&&$c(d)?vs(Ea(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new ra(s);return h=h==null?0:mr(Gt(h),0),Zt(function(P){var A=P[h],W=vs(P,0,h);return A&&co(W,A),Un(d,this,W)})},ee.tail=function(d){var h=d==null?0:d.length;return h?ia(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?ia(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?ia(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,W=!0;if(typeof d!="function")throw new ra(s);return Wn(P)&&(A="leading"in P?!!P.leading:A,W="trailing"in P?!!P.trailing:W),FP(d,h,{leading:A,maxWait:h,trailing:W})},ee.thru=em,ee.toArray=HP,ee.toPairs=ZP,ee.toPairsIn=XP,ee.toPath=function(d){return Ht(d)?Tn(d,ni):No(d)?[d]:uo(_P(vn(d)))},ee.toPlainObject=qP,ee.transform=function(d,h,P){var A=Ht(d),W=A||gs(d)||Mc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=W?A?new ae:[]:Wn(d)&&ji(ae)?Tc(Dh(d)):{}}return(W?Jr:ei)(d,function(ce,ye,Re){return h(P,ce,ye,Re)}),P},ee.unary=function(d){return NP(d,1)},ee.union=rF,ee.unionBy=oF,ee.unionWith=aF,ee.uniq=function(d){return d&&d.length?hs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?hs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?hs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||C1(d,h)},ee.unzip=F1,ee.unzipWith=DP,ee.update=function(d,h,P){return d==null?d:YE(d,h,_1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:YE(d,h,_1(P),A)},ee.values=Ic,ee.valuesIn=function(d){return d==null?[]:r1(d,po(d))},ee.without=iF,ee.words=tT,ee.wrap=function(d,h){return B1(_1(h),d)},ee.xor=sF,ee.xorBy=lF,ee.xorWith=cF,ee.zip=uF,ee.zipObject=function(d,h){return JE(d||[],h||[],Md)},ee.zipObjectDeep=function(d,h){return JE(d||[],h||[],jd)},ee.zipWith=dF,ee.entries=ZP,ee.entriesIn=XP,ee.extend=YP,ee.extendWith=sm,K1(ee,ee),ee.add=a7,ee.attempt=nT,ee.camelCase=VF,ee.capitalize=QP,ee.ceil=i7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=la(P))==P?P:0),h!==void 0&&(h=(h=la(h))==h?h:0),vl(la(d),h,P)},ee.clone=function(d){return aa(d,4)},ee.cloneDeep=function(d){return aa(d,5)},ee.cloneDeepWith=function(d,h){return aa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return aa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||kE(d,h,Er(h))},ee.deburr=eT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=s7,ee.endsWith=function(d,h,P){d=vn(d),h=Ao(h);var A=d.length,W=P=P===void 0?A:vl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,W)==h},ee.eq=Ta,ee.escape=function(d){return(d=vn(d))&&N.test(d)?d.replace(q,s8):d},ee.escapeRegExp=function(d){return(d=vn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?fl:I8;return P&&Xr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=hF,ee.findIndex=PP,ee.findKey=function(d,h){return dE(d,Ot(h,3),ei)},ee.findLast=mF,ee.findLastIndex=TP,ee.findLastKey=function(d,h){return dE(d,Ot(h,3),f1)},ee.floor=l7,ee.forEach=IP,ee.forEachRight=AP,ee.forIn=function(d,h){return d==null?d:d1(d,Ot(h,3),po)},ee.forInRight=function(d,h){return d==null?d:ME(d,Ot(h,3),po)},ee.forOwn=function(d,h){return d&&ei(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&f1(d,Ot(h,3))},ee.get=W1,ee.gt=_F,ee.gte=EF,ee.has=function(d,h){return d!=null&&vP(d,h,A8)},ee.hasIn=H1,ee.head=OP,ee.identity=ho,ee.includes=function(d,h,P,A){d=fo(d)?d:Ic(d),P=P&&!A?Gt(P):0;var W=d.length;return P<0&&(P=mr(W+P,0)),im(d)?P<=W&&d.indexOf(h,P)>-1:!!W&&Cc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=P==null?0:Gt(P);return W<0&&(W=mr(A+W,0)),Cc(d,h,W)},ee.inRange=function(d,h,P){return h=Li(h),P===void 0?(P=h,h=0):P=Li(P),function(A,W,ae){return A>=jr(W,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=WP,ee.isString=im,ee.isSymbol=No,ee.isTypedArray=Mc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&Lr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Zr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":w8.call(d,h)},ee.kebabCase=UF,ee.last=sa,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=A;return P!==void 0&&(W=(W=Gt(P))<0?mr(A+W,0):jr(W,A-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,W):Sh(d,fE,W,!0)},ee.lowerCase=WF,ee.lowerFirst=HF,ee.lt=kF,ee.lte=OF,ee.max=function(d){return d&&d.length?Bh(d,ho,p1):void 0},ee.maxBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),p1):void 0},ee.mean=function(d){return pE(d,ho)},ee.meanBy=function(d,h){return pE(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Bh(d,ho,g1):void 0},ee.minBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),g1):void 0},ee.stubArray=Z1,ee.stubFalse=X1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=c7,ee.nth=function(d,h){return d&&d.length?BE(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=m8),this},ee.noop=J1,ee.now=nm,ee.pad=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;if(!h||A>=h)return d;var W=(h-A)/2;return Kh(Nh(W),P)+d+Kh(Ah(W),P)},ee.padEnd=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var W=SE();return jr(d+W*(h-d+nt("1e-"+((W+"").length-1))),h)}return b1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?Z0:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,ps)},ee.reduceRight=function(d,h,P){var A=Ht(d)?n8:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,RE)},ee.repeat=function(d,h,P){return h=(P?Xr(d,h,P):h===void 0)?1:Gt(h),x1(vn(d),h)},ee.replace=function(){var d=arguments,h=vn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,W=(h=ms(h,d)).length;for(W||(W=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=jr(d,4294967295);d-=4294967295;for(var W=n1(A,h=Ot(h));++P=ae)return d;var ye=P-Sc(A);if(ye<1)return A;var Re=ce?vs(ce,0,ye).join(""):d.slice(0,ye);if(W===void 0)return Re+A;if(ce&&(ye+=Re.length-ye),U1(W)){if(d.slice(ye).search(W)){var We,Ve=Re;for(W.global||(W=a1(W.source,vn(qe.exec(W))+"g")),W.lastIndex=0;We=W.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(Ao(W),ye)!=ye){var Ct=Re.lastIndexOf(W);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=vn(d))&&D.test(d)?d.replace(K,u8):d},ee.uniqueId=function(d){var h=++p8;return vn(d)+h},ee.upperCase=YF,ee.upperFirst=G1,ee.each=IP,ee.eachRight=AP,ee.first=OP,K1(ee,(Q1={},ei(ee,function(d,h){xn.call(ee.prototype,h)||(Q1[h]=d)}),Q1),{chain:!1}),ee.VERSION="4.17.15",Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Jr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:mr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=jr(P,A.__takeCount__):A.__views__.push({size:jr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Jr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(W){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(W,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Jr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Jr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(ho)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Ad(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(om(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ei(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),W=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);W&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=A?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=W.apply(ee,co([It],ye));return A&&Ct?wt[0]:wt};Ve&&P&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Je=Re&&!$t;if(!ae&&Ve){ce=Je?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:em,args:[ot],thisArg:void 0}),new oa(st,Ct)}return Rt&&Je?d.apply(this,ye):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Eh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var W=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],W)}return this[P](function(ce){return h.apply(Ht(ce)?ce:[],W)})}}),ei(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";xn.call(Pc,A)||(Pc[A]=[]),Pc[A].push({name:h,func:P})}}),Pc[qh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=uo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=uo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=uo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,W=P?d.length:0,ae=function(Xt,Pt,Dt){for(var vr=-1,Qr=Dt.length;++vr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Fh;){var A=EP(P);A.__index__=0,A.__values__=void 0,h?W.__wrapped__=A:h=A;var W=A;P=P.__wrapped__}return W.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:em,args:[L1],thisArg:void 0}),new oa(h,this.__chain__)}return this.thru(L1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return KE(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Td&&(ee.prototype[Td]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=ds,(a=(function(){return ds}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=ds)._=ds,yt._=ds):ut._=ds}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),$=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,B,z){var Y,Q=1&F,H=2&F,J=4&F;if(U&&(Y=B?U(R,G,B,z):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var L=b(R),K=L=="[object Function]"||L=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(L=="[object Object]"||L=="[object Arguments]"||K&&!B){if(Y=H||K?{}:g(R),!Q)return H?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[L])return B?R:{};Y=x(R,L,Q)}}z||(z=new r);var q=z.get(R);if(q)return q;z.set(R,Y),$(R)?R.forEach(function(V){Y.add(I(V,F,U,V,R,z))}):C(R)&&R.forEach(function(V,Z){Y.set(Z,I(V,F,U,Z,R,z))});var D=J?H?m:p:H?keysIn:E,N=X?void 0:D(R);return o(N||R,function(V,Z){N&&(V=R[Z=V]),a(Y,Z,I(V,F,U,Z,R,z))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var $ in C)b(_,$,C[$]);return _.join("&")}function b(C,_,$){if($!=null)if(Array.isArray($))$.forEach(function(k){b(C,_,k)});else if(s($))for(var E in $)b(C,_+"["+E+"]",$[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof $!="string"&&!this._isHost($)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&($=I($))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send($!==void 0?$:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,$){var E=new f.Request(C,_);return this._setDefaults(E),$&&E.end($),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var E=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.head=function(C,_,$){var E=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.options=function(C,_,$){var E=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.del=w,f.delete=w,f.patch=function(C,_,$){var E=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.post=function(C,_,$){var E=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.put=function(C,_,$){var E=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var $e=te.length-1,Se=1;Se<$e;++Se)te[Se]=te[Se].slice(1,-1);return te[$e]=te[$e].slice(1),te.join("")}return te[0]}function u(ne){return"(?:"+ne+")"}function f(ne){return ne===void 0?"undefined":ne===null?"null":Object.prototype.toString.call(ne).split(" ").pop().split("]").shift().toLowerCase()}function p(ne){return ne.toUpperCase()}function m(ne){var te=c("[0-9]","[A-Fa-f]"),ie=u(u("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+u("%[89A-Fa-f]"+te+"%"+te+te)+"|"+u("%"+te+te)),$e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=c("[\\:\\/\\?\\#\\[\\]\\@]",$e),Ze=ne?"[\\uE000-\\uF8FF]":"[]",tt=c("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",ne?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");u("[A-Za-z]"+c("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),u(u(ie+"|"+c(tt,$e,"[\\:]"))+"*");var ft=u(u("25[0-5]")+"|"+u("2[0-4][0-9]")+"|"+u("1[0-9][0-9]")+"|"+u("0?[1-9][0-9]")+"|0?0?[0-9]"),_t=u(ft+"\\."+ft+"\\."+ft+"\\."+ft),vt=u(te+"{1,4}"),dt=u(u(vt+"\\:"+vt)+"|"+_t),Et=u(u(vt+"\\:")+"{6}"+dt),Yt=u("\\:\\:"+u(vt+"\\:")+"{5}"+dt),kt=u(u(vt)+"?\\:\\:"+u(vt+"\\:")+"{4}"+dt),ln=u(u(u(vt+"\\:")+"{0,1}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{3}"+dt),Vt=u(u(u(vt+"\\:")+"{0,2}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{2}"+dt),Ut=u(u(u(vt+"\\:")+"{0,3}"+vt)+"?\\:\\:"+vt+"\\:"+dt),Kt=u(u(u(vt+"\\:")+"{0,4}"+vt)+"?\\:\\:"+dt),bn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Bn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,ln,Vt,Ut,Kt,bn,Bn].join("|")),oe=u(u(tt+"|"+ie)+"+");u("[vV]"+te+"+\\."+c(tt,$e,"[\\:]")+"+"),u(u(ie+"|"+c(tt,$e))+"*");var ue=u(ie+"|"+c(tt,$e,"[\\:\\@]"));return u(u(ie+"|"+c(tt,$e,"[\\@]"))+"+"),u(u(ue+"|"+c("[\\/\\?]",Ze))+"*"),{NOT_SCHEME:new RegExp(c("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",tt,$e),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",tt,$e),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",tt,$e),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",tt,$e),"g"),NOT_QUERY:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",tt,$e),"g"),UNRESERVED:new RegExp(tt,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",tt,Se),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+_t+")$"),IPV6ADDRESS:new RegExp("^\\[?("+se+")"+u(u("\\%25|\\%(?!"+te+"{2})")+"("+oe+")")+"?\\]?$")}}var b=m(!1),v=m(!0),x=function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return function(ie,$e){var Se=[],Ze=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Ze=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Ze=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Ze&&vt.return&&vt.return()}finally{if(tt)throw ft}}return Se}(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=2147483647,y=/^xn--/,w=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Ze,tt){for(var ft=[],_t=Ze.length;_t--;)ft[_t]=tt(Ze[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function R(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Ze=ne.charCodeAt(ie++);(64512&Ze)==56320?te.push(((1023&Se)<<10)+(1023&Ze)+65536):(te.push(Se),ie--)}else te.push(Se)}return te}var F=function(ne,te){return ne+22+75*(ne<26)-((te!=0)<<5)},U=function(ne,te,ie){var $e=0;for(ne=ie?$(ne/700):ne>>1,ne+=$(ne/te);ne>455;$e+=36)ne=$(ne/35);return $($e+36*ne/(ne+38))},G=function(ne){var te,ie=[],$e=ne.length,Se=0,Ze=128,tt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt<$e;){for(var dt=Se,Et=1,Yt=36;;Yt+=36){vt>=$e&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>$((g-Se)/Et))&&k("overflow"),Se+=kt*Et;var ln=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=U(Se-dt,Ut,dt==0),$(Se/Ut)>g-Ze&&k("overflow"),Ze+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Ze)}return String.fromCodePoint.apply(String,ie)},B=function(ne){var te=[],ie=(ne=R(ne)).length,$e=128,Se=0,Ze=72,tt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(tt=(vt=dt.next()).done);tt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!tt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=$e&&se$((g-Se)/oe)&&k("overflow"),Se+=(ln-$e)*oe,$e=ln;var ue=!0,ke=!1,Ee=void 0;try{for(var pt,me=ne[Symbol.iterator]();!(ue=(pt=me.next()).done);ue=!0){var pe=pt.value;if(pe<$e&&++Se>g&&k("overflow"),pe==$e){for(var De=Se,nt=36;;nt+=36){var lt=nt<=Ze?1:nt>=Ze+26?26:nt-Ze;if(De>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,$e=ne.length;ie<$e;){var Se=parseInt(ne.substr(ie+1,2),16);if(Se<128)te+=String.fromCharCode(Se),ie+=3;else if(Se>=194&&Se<224){if($e-ie>=6){var Ze=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Ze)}else te+=ne.substr(ie,6);ie+=6}else if(Se>=224){if($e-ie>=9){var tt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&Se)<<12|(63&tt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie($e){var Se=J($e);return Se.match(te.UNRESERVED)?Se:$e}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,H).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,H).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,H).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,H).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,H).replace(te.PCT_ENCODED,p)),ne}function L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=x(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=x(ie,3),Se=$e[1],Ze=$e[2];if(Se){for(var tt=Se.toLowerCase().split("::").reverse(),ft=x(tt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(L):[],Et=_t.split(":").map(L),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Bn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);bn=Bn.join(":")+"::"+se.join(":")}else bn=Vt.join(":");return Ze&&(bn+="%"+Ze),bn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function V(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},$e=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var Se=ne.match(D);if(Se){N?(ie.scheme=Se[1],ie.userinfo=Se[3],ie.host=Se[4],ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=Se[7],ie.fragment=Se[8],isNaN(ie.port)&&(ie.port=Se[5])):(ie.scheme=Se[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?Se[3]:void 0,ie.host=ne.indexOf("//")!==-1?Se[4]:void 0,ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=ne.indexOf("?")!==-1?Se[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?Se[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Se[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,$e),$e)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Ze=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Ze&&Ze.unicodeSupport)X(ie,$e);else{if(ie.host&&(te.domainHost||Ze&&Ze.domainHost))try{ie.host=z(ie.host.replace($e.PCT_ENCODED,J).toLowerCase())}catch(tt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+tt}X(ie,b)}Ze&&Ze.parse&&Ze.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,$e=[];return ne.userinfo!==void 0&&($e.push(ne.userinfo),$e.push("@")),ne.host!==void 0&&$e.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Ze,tt){return"["+Ze+(tt?"%25"+tt:"")+"]"})),typeof ne.port=="number"&&($e.push(":"),$e.push(ne.port.toString(10))),$e.length?$e.join(""):void 0}var re=/^\.\.?\//,le=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(le))ne=ne.replace(le,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(fe);if(!ie)throw new Error("Unexpected dot segment condition");var $e=ie[0];ne=ne.slice($e.length),te.push($e)}return te.join("")}function he(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,$e=[],Se=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(Se&&Se.serialize&&Se.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||Se&&Se.domainHost)try{ne.host=te.iri?Y(ne.host):z(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Ze=Z(ne,te);if(Ze!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Ze),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Ze===void 0&&(tt=tt.replace(/^\/\//,"/%2F")),$e.push(tt)}return ne.query!==void 0&&($e.push("?"),$e.push(ne.query)),ne.fragment!==void 0&&($e.push("#"),$e.push(ne.fragment)),$e.join("")}function _e(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=arguments[3],Se={};return $e||(ne=V(he(ne,ie),ie),te=V(he(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(Se.scheme=te.scheme,Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.path?(te.path.charAt(0)==="/"?Se.path=ge(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?Se.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:Se.path=te.path:Se.path="/"+te.path,Se.path=ge(Se.path)),Se.query=te.query):(Se.path=ne.path,te.query!==void 0?Se.query=te.query:Se.query=ne.query),Se.userinfo=ne.userinfo,Se.host=ne.host,Se.port=ne.port),Se.scheme=ne.scheme),Se.fragment=te.fragment,Se}function ve(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Be={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},ze={},He="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+u("%"+be+be)),Ce=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),qe=new RegExp(He,"g"),rt=new RegExp(we,"g"),Ae=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ce),"g"),Le=new RegExp(c("[^]",He,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Fe=Le;function Pe(ne){var te=J(ne);return te.match(qe)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,$e=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var Se=!1,Ze={},tt=ie.query.split("&"),ft=0,_t=tt.length;ft<_t;++ft){var vt=tt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}function D5e(e,t,n){var r=this,o=S.useRef(null),a=S.useRef(0),i=S.useRef(null),s=S.useRef([]),l=S.useRef(),c=S.useRef(),u=S.useRef(e),f=S.useRef(!0);S.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;S.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=S.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},$=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w($,t),m?y(o.current):c.current;if(v)return w($,t),y(o.current)}return i.current||w($,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function M5e(e,t){return e===t}function wM(e){return typeof e=="function"?function(){return e}:e}function I5e(e,t,n){var r,o,a=n&&n.equalityFn||M5e,i=(r=S.useState(wM(e)),o=r[1],[r[0],S.useCallback(function(f){return o(wM(f))},[])]),s=i[0],l=i[1],c=D5e(S.useCallback(function(f){return l(f)},[l]),t,n),u=S.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function A5e(e){const[t,n]=S.useState({config:null,input:null});S.useEffect(()=>{async function o(){n({config:window.CONFIG_SCHEMA?await Rx(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await Rx(window.INPUT_SCHEMA):null})}o()},[]);const[r]=I5e(e,500);return S.useEffect(()=>{r.defaults||fetch(o9(`/c/${W0.compressToEncodedURIComponent(JSON.stringify(r.data))}/input_schema`)).then(o=>o.json()).then(Rx).then(o=>n(a=>({...a,input:o}))).catch(()=>{})},[r]),t}/*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2022 Joachim Wester - * MIT licensed - */var N5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),j5e=Object.prototype.hasOwnProperty;function xC(e,t){return j5e.call(e,t)}function wC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ol(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $C(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!CC(m))throw new Qn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);CC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=F5e[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=yu[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Qn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Qn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&$C(e.value))throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new Qn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Qn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=s9([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function s9(e,t,n){try{if(!Array.isArray(e))throw new Qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)H0(Wo(t),Wo(e),n||!0);else{n=n||Bg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function rE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=wC(t),i=wC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(xC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?rE(u,f,n,r+"/"+Ol(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"replace",path:r+"/"+Ol(c),value:Wo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"remove",path:r+"/"+Ol(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function eje(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function $M(){return{data:"",event:"",id:"",retry:void 0}}var tje=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=_C);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=nje,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??oje;async function _(){var $;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await Z5e(E.body,X5e(Q5e(k=>{k?m[SM]=k:delete m[SM]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(E))!==null&&$!==void 0?$:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function oje(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(_C)))throw new Error(`Expected content-type to be ${_C}, Actual: ${t}`)}function aje(e,t){return H0(e,t,!0,!1).newDocument}function ije(e={}){const[t,n]=S.useState(null),[r,o]=S.useState(null),a=S.useRef(e.onStart);a.current=e.onStart;const i=S.useRef(e.onSuccess);i.current=e.onSuccess;const s=S.useRef(e.onError);s.current=e.onError;const l=S.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await rje(o9("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=aje(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=S.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const l9=S.createContext(null);function c9(e,t){const n=S.useContext(l9),r=S.useRef(t);r.current=t,S.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}const oE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),sje=de($d)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Ap=({children:e,...t})=>O.jsx(sje,{...t,children:e}),aE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),lje=de(Yj)(({theme:e})=>({color:e.palette.error.main})),cje=({errorMessages:e,id:t})=>O.jsx(hc,{id:t,title:e,children:O.jsx(lje,{badgeContent:e.split(` -`).length,children:O.jsx(P2,{color:"inherit"})})}),uje={paddingLeft:0,paddingRight:0},dje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(ll,{children:[O.jsx(Ap,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(cje,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Ap,{align:"right",style:uje,children:O.jsx(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large",sx:{p:1},children:O.jsx(aE,{className:"text-ls-black"})})})}):null]})}),_M={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},u9=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return d9(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},d9=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],fje=({numColumns:e,translations:t})=>O.jsx(ll,{children:O.jsx(Ap,{colSpan:e,children:O.jsx(gn,{align:"center",children:t.noDataMessage})})}),pje=M.memo(function({title:t}){return O.jsx($d,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),hje=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},EM=e=>({type:"Control",scope:e,label:!1}),mje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Ap,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:EM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ec,{schema:r,uischema:EM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(fr,{error:!c,children:!c&&a})]})}),vje=e=>{const t=pc(),n=hje(t,e),r=Mt(n.errors);return O.jsx(mje,{...n,isValid:r})},gje=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(ll,{hover:!0,children:[u9(vje,t,e,c,u),c?O.jsx(Ap,{style:l?_M.fixedCell:_M.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs(S.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(A0,{})})}),O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(I0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(oE,{className:"text-ls-black"})})})]})}):null]},e)},yje=M.memo(gje),bje=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(fje,{numColumns:d9(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:hd(e).map(m=>{const b=ir.compose(t,`${m}`);return O.jsx(yje,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class xje extends M.Component{constructor(){super(...arguments);Ud(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?u9(pje,o,r,u,f):void 0;return O.jsx(Pn,{xsUp:!c,children:O.jsxs(C6,{children:[O.jsxs(S6,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx(dje,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(ll,{children:[v,u?O.jsx($d,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx($6,{children:O.jsx(bje,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const wje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(h2,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(T0,{children:O.jsx(p2,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(P0,{children:[O.jsx(Uo,{onClick:o,color:"primary",children:l}),O.jsx(Uo,{onClick:r,color:"primary",children:s})]})]})}),Cje=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Pn,{xsUp:!l,children:[O.jsx(xje,{...e,openDeleteDialog:c}),O.jsx(wje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},$je=mn(11,dc(n_,s5,r_)),f9=My(Cje);function Sje(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var m9="!";function Rje(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function Dje(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Mje(e){return{cache:Oje(e.cacheSize),splitModifiers:Rje(e),..._je(e)}}var Ije=/\s+/;function Aje(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Ije).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=Dje(l).join(":"),v=c?b+m9:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Nje(){for(var e=arguments.length,t=new Array(e),n=0;n{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Ys(OM,"pointer-events-none select-none"),children:[e.value," "]})]})}const Xje=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},RM=pr(Ka(Xje));function Qje(e){try{return JSON.parse(e)}catch{return e}}function e6e(e){try{return JSON.stringify(e)}catch{return e}}const t6e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:typeof t=="object"?e6e(t):t??"",onChange:u=>l(s,u===""?void 0:Qje(u)),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},n6e=pr(Ka(t6e));function oo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function r6e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function y9(...e){return t=>e.forEach(n=>r6e(n,t))}function ns(...e){return S.useCallback(y9(...e),e)}function G0(e,t=[]){let n=[];function r(a,i){const s=S.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=S.useMemo(()=>b,Object.values(b));return S.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=S.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,o6e(o,...t)]}function o6e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const TC=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},a6e=ep["useId".toString()]||(()=>{});let i6e=0;function jv(e){const[t,n]=S.useState(a6e());return TC(()=>{e||n(r=>r??String(i6e++))},[e]),e||(t?`radix-${t}`:"")}function Qs(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ch({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=s6e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Qs(n),l=S.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function s6e({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=Qs(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Np=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(c6e);if(a){const i=a.props.children,s=o.map(l=>l===a?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return S.createElement(kC,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(kC,T({},r,{ref:t}),n)});Np.displayName="Slot";const kC=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...u6e(r,n.props),ref:t?y9(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});kC.displayName="SlotClone";const l6e=({children:e})=>S.createElement(S.Fragment,null,e);function c6e(e){return S.isValidElement(e)&&e.type===l6e}function u6e(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const d6e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ko=d6e.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Np:t;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function f6e(e,t){e&&nd.flushSync(()=>e.dispatchEvent(t))}function p6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const OC="dismissableLayer.update",h6e="dismissableLayer.pointerDownOutside",m6e="dismissableLayer.focusOutside";let DM;const v6e=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g6e=S.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=S.useContext(v6e),[f,p]=S.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=S.useState({}),v=ns(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,$=y6e(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=b6e(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return p6e(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(DM=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),MM(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=DM)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),MM())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener(OC,k),()=>document.removeEventListener(OC,k)},[]),S.createElement(Ko.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:oo(e.onFocusCapture,E.onFocusCapture),onBlurCapture:oo(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:oo(e.onPointerDownCapture,$.onPointerDownCapture)}))});function y6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){b9(h6e,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&b9(m6e,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function MM(){const e=new CustomEvent(OC);document.dispatchEvent(e)}function b9(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?f6e(o,a):o.dispatchEvent(a)}const Dx="focusScope.autoFocusOnMount",Mx="focusScope.autoFocusOnUnmount",IM={bubbles:!1,cancelable:!0},x6e=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=Qs(o),u=Qs(a),f=S.useRef(null),p=ns(t,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let y=function($){if(m.paused||!s)return;const E=$.target;s.contains(E)?f.current=E:Ps(f.current,{select:!0})},w=function($){if(m.paused||!s)return;const E=$.relatedTarget;E!==null&&(s.contains(E)||Ps(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&Ps(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),S.useEffect(()=>{if(s){NM.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Dx,IM);s.addEventListener(Dx,c),s.dispatchEvent(g),g.defaultPrevented||(w6e(E6e(x9(s)),{select:!0}),document.activeElement===v&&Ps(s))}return()=>{s.removeEventListener(Dx,c),setTimeout(()=>{const g=new CustomEvent(Mx,IM);s.addEventListener(Mx,u),s.dispatchEvent(g),g.defaultPrevented||Ps(v??document.body,{select:!0}),s.removeEventListener(Mx,u),NM.remove(m)},0)}}},[s,c,u,m]);const b=S.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=C6e(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ps(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ps(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(Ko.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function w6e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ps(r,{select:t}),document.activeElement!==n)return}function C6e(e){const t=x9(e),n=AM(t,e),r=AM(t.reverse(),e);return[n,r]}function x9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function AM(e,t){for(const n of e)if(!$6e(n,{upTo:t}))return n}function $6e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S6e(e){return e instanceof HTMLInputElement&&"select"in e}function Ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S6e(e)&&t&&e.select()}}const NM=_6e();function _6e(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jM(e,t),e.unshift(t)},remove(t){var n;e=jM(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function jM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function E6e(e){return e.filter(t=>t.tagName!=="A")}const P6e=S.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Cf.createPortal(S.createElement(Ko.div,T({},o,{ref:t})),r):null});function T6e(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const q0=e=>{const{present:t,children:n}=e,r=k6e(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=ns(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};q0.displayName="Presence";function k6e(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=T6e(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=nv(r.current);a.current=s==="mounted"?c:"none"},[s]),TC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=nv(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),TC(()=>{if(t){const c=f=>{const m=nv(r.current).includes(f.animationName);f.target===t&&m&&nd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=nv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function nv(e){return(e==null?void 0:e.animationName)||"none"}let Ix=0;function O6e(){S.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:LM()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:LM()),Ix++,()=>{Ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ix--}},[])}function LM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return q6e;var t=Y6e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J6e=S9(),Z6e=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(D6e,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Lv,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Fv,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Lv," .").concat(Lv,` { - right: 0 `).concat(r,`; - } - - .`).concat(Fv," .").concat(Fv,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(M6e,": ").concat(s,`px; - } -`)},X6e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return K6e(o)},[o]);return S.createElement(J6e,{styles:Z6e(a,!t,o,n?"":"!important")})},RC=!1;if(typeof window<"u")try{var rv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",rv,rv),window.removeEventListener("test",rv,rv)}catch{RC=!1}var Yc=RC?{passive:!1}:!1,Q6e=function(e){return e.tagName==="TEXTAREA"},_9=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q6e(e)&&n[t]==="visible")},eLe=function(e){return _9(e,"overflowY")},tLe=function(e){return _9(e,"overflowX")},zM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=E9(e,n);if(r){var o=P9(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nLe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rLe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E9=function(e,t){return e==="v"?eLe(t):tLe(t)},P9=function(e,t){return e==="v"?nLe(t):rLe(t)},oLe=function(e,t){return e==="h"&&t==="rtl"?-1:1},aLe=function(e,t,n,r,o){var a=oLe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=P9(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&E9(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},ov=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},iLe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sLe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},lLe=0,Kc=[];function cLe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(lLe++)[0],a=S.useState(function(){return S9()})[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=R6e([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=ov(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,$=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&$.type==="range")return!1;var k=zM(E,$);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=zM(E,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return aLe(I,x,v,I==="h"?w:C,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!Kc.length||Kc[Kc.length-1]!==a)){var g="deltaY"in x?BM(x):ov(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&iLe(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(VM).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=S.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=S.useCallback(function(v){n.current=ov(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,BM(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,ov(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Kc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Yc),document.addEventListener("touchmove",l,Yc),document.addEventListener("touchstart",u,Yc),function(){Kc=Kc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Yc),document.removeEventListener("touchmove",l,Yc),document.removeEventListener("touchstart",u,Yc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:sLe(o)}):null,m?S.createElement(X6e,{gapMode:"margin"}):null)}const uLe=z6e($9,cLe);var T9=S.forwardRef(function(e,t){return S.createElement(Y0,pi({},e,{ref:t,sideCar:uLe}))});T9.classNames=Y0.classNames;const dLe=T9;var fLe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jc=new WeakMap,av=new WeakMap,iv={},jx=0,k9=function(e){return e&&(e.host||k9(e.parentNode))},pLe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=k9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hLe=function(e,t,n,r){var o=pLe(t,Array.isArray(e)?e:[e]);iv[n]||(iv[n]=new WeakMap);var a=iv[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Jc.get(p)||0)+1,x=(a.get(p)||0)+1;Jc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&av.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),jx++,function(){i.forEach(function(f){var p=Jc.get(f)-1,m=a.get(f)-1;Jc.set(f,p),a.set(f,m),p||(av.has(f)||f.removeAttribute(r),av.delete(f)),m||f.removeAttribute(n)}),jx--,jx||(Jc=new WeakMap,Jc=new WeakMap,av=new WeakMap,iv={})}},mLe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||fLe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),hLe(r,o,n,"aria-hidden")):function(){return null}};const O9="Dialog",[R9,r8e]=G0(O9),[vLe,Ja]=R9(O9),gLe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=S.useRef(null),l=S.useRef(null),[c=!1,u]=Ch({prop:r,defaultProp:o,onChange:a});return S.createElement(vLe,{scope:t,triggerRef:s,contentRef:l,contentId:jv(),titleId:jv(),descriptionId:jv(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},yLe="DialogTrigger",bLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(yLe,n),a=ns(t,o.triggerRef);return S.createElement(Ko.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sE(o.open)},r,{ref:a,onClick:oo(e.onClick,o.onOpenToggle)}))}),D9="DialogPortal",[xLe,M9]=R9(D9,{forceMount:void 0}),wLe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(D9,t);return S.createElement(xLe,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(q0,{present:n||a.open},S.createElement(P6e,{asChild:!0,container:o},i))))},DC="DialogOverlay",CLe=S.forwardRef((e,t)=>{const n=M9(DC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(DC,e.__scopeDialog);return a.modal?S.createElement(q0,{present:r||a.open},S.createElement($Le,T({},o,{ref:t}))):null}),$Le=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(DC,n);return S.createElement(dLe,{as:Np,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(Ko.div,T({"data-state":sE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jp="DialogContent",SLe=S.forwardRef((e,t)=>{const n=M9(jp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(jp,e.__scopeDialog);return S.createElement(q0,{present:r||a.open},a.modal?S.createElement(_Le,T({},o,{ref:t})):S.createElement(ELe,T({},o,{ref:t})))}),_Le=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(null),o=ns(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return mLe(a)},[]),S.createElement(I9,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oo(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:oo(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oo(e.onFocusOutside,a=>a.preventDefault())}))}),ELe=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(I9,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),I9=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(jp,n),l=S.useRef(null),c=ns(t,l);return O6e(),S.createElement(S.Fragment,null,S.createElement(x6e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(g6e,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),PLe="DialogTitle",TLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(PLe,n);return S.createElement(Ko.h2,T({id:o.titleId},r,{ref:t}))}),kLe="DialogDescription",OLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(kLe,n);return S.createElement(Ko.p,T({id:o.descriptionId},r,{ref:t}))}),RLe="DialogClose",DLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(RLe,n);return S.createElement(Ko.button,T({type:"button"},r,{ref:t,onClick:oo(e.onClick,()=>o.onOpenChange(!1))}))});function sE(e){return e?"open":"closed"}const MLe=gLe,ILe=bLe,ALe=wLe,NLe=CLe,jLe=SLe,LLe=TLe,FLe=OLe,zLe=DLe;var A9=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lE=()=>M.useContext(A9);function BLe(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BLe(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var VLe=typeof window<"u"?S.useLayoutEffect:S.useEffect;function MC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function ULe(){return cE(/^Mac/)}function WLe(){return cE(/^iPhone/)}function HLe(){return cE(/^iPad/)||ULe()&&navigator.maxTouchPoints>1}function N9(){return WLe()||HLe()}function cE(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Lx=typeof document<"u"&&window.visualViewport;function UM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function j9(e){for(UM(e)&&(e=e.parentElement);e&&!UM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var GLe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),sv=0,Fx;function qLe(e={}){let{isDisabled:t}=e;VLe(()=>{if(!t)return sv++,sv===1&&(N9()?Fx=KLe():Fx=YLe()),()=>{sv--,sv===0&&Fx()}},[t])}function YLe(){return MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"))}function KLe(){let e,t=0,n=f=>{e=j9(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Ug(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Ug(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Lx&&(Lx.height{WM(p)}):Lx.addEventListener("resize",()=>WM(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=MC(vf(document,"touchstart",n,{passive:!1,capture:!0}),vf(document,"touchmove",r,{passive:!1,capture:!0}),vf(document,"touchend",o,{passive:!1,capture:!0}),vf(document,"focus",a,!0),vf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Vg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function WM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=j9(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Ug(e){return e instanceof HTMLInputElement&&!GLe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function JLe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ZLe(...e){return t=>e.forEach(n=>JLe(n,t))}function L9(...e){return S.useCallback(ZLe(...e),e)}var _s=null;function XLe({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(_s===null&&e){_s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(_s!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=_s.position,document.body.style.top=_s.top,document.body.style.left=_s.left,document.body.style.height=_s.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),_s=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var F9=new WeakMap;function Hn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&F9.set(e,r)}function lv(e,t){if(!e||!(e instanceof HTMLElement))return;let n=F9.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function cv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function QLe(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},z9=.4;function B9(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function e9e({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=B9(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function t9e({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=e9e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=B9(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function n9e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=t9e({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",$=0;_&&($=parseInt(w,10));let E=_?$:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Hn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,$=f===a-1,E=f===0;if($&&Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)z9&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Hn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,$=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs($);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var r9e=.25,o9e=500,HM=8,Sl=16,GM=26;function V9({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=r9e,scrollLockTimeout:c=o9e,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[$,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),B=M.useRef(null),z=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),H=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),L=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),V=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ge.length-1&&(z.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=n9e({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:B,onSnapPointChange:Z});qLe({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Be}=XLe({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-GM)/window.innerWidth}function ze(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,N9()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),L.current=Pe.clientY)}function He(Pe,Te){var it;let ct=Pe,gt=new Date,Ne=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?cv(D.current):null;if(z.current&>.getTime()-z.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.length>0)return!1;if(H.current&>.getTime()-H.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return H.current=new Date,!1;if(ct.scrollTop!==0)return H.current=new Date,!1}ct=ct.parentNode}return!0}function be(Pe){if(R){let Te=L.current-Pe.clientY,it=Te>0;if(i&&le===0&&!u||!J.current&&!He(Pe.target,it))return;if(J.current=!0,Hn(D.current,{transition:"none"}),Hn(B.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=QLe(Te);Hn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Ne=ct/N.current,ne=ve(ct,it);ne!==null&&(Ne=ne);let te=1-Ne;if((_e||f&&le===f-1)&&(o==null||o(Pe,Ne),Hn(B.current,{opacity:`${te}`,transition:"none"},!0)),gt&&B.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Hn(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Hn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{rt(!1),Be()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Ug(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Ne)>60&&(K.current=!K.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(q.current=Ne,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-GM),b?D.current.style.height=`${ie-Math.max(Ne,0)}px`:D.current.style.height=`${Math.max($e,gt-te)}px`}else D.current.style.height=`${V.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Ne,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[le,i,ge]);function we(){D.current&&(x==null||x(),D.current&&(Hn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{lv(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function Ce(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=cv(D.current);Hn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Hn(Pe,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function qe(Pe){if(!R||!D.current)return;J.current&&Ug(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=cv(D.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>z9){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}M.useEffect(()=>{y&&(z.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Hn(document.body,{background:"black"},!0),Hn(Te,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(lv(Te,"overflow"),lv(Te,"transform"),lv(Te,"borderRadius"),Hn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-Sl)/window.innerWidth:1,it=Pe?-Sl:0;X.current&&window.clearTimeout(X.current),Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Hn(D.current,{transition:"none",transform:`translate3d(0, ${cv(D.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-Sl)/window.innerWidth,ct=it+Te*(1-it),gt=-Sl+Te*Sl;Hn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-Sl)/window.innerWidth:1,ct=Te?-Sl:0;Te&&Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(MLe,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(A9.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:B,scaleBackground:rt,onPress:ze,setVisible:E,onRelease:qe,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:K,modal:v,snapPointsOffset:ge}},n))}var U9=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lE(),c=L9(n,r),u=o&&o.length>0;return M.createElement(NLe,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});U9.displayName="Drawer.Overlay";var W9=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lE(),y=L9(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(jLe,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});W9.displayName="Drawer.Content";function a9e({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lE();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(V9,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var gf={Root:V9,NestedRoot:a9e,Content:W9,Overlay:U9,Trigger:ILe,Portal:ALe,Close:zLe,Title:LLe,Description:FLe};const H9=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),i9e=e=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),s9e=e=>S.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),l9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),zx=2e3;function IC(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(W0.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Bx(e){const[t,n]=S.useState(!1),r=S.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return S.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(l9e,{}):O.jsx(s9e,{})})}function c9e(e){const t=S.useMemo(()=>W0.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${IC(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` -from langserve import RemoteRunnable - -chain = RemoteRunnable("${r}") -chain.invoke({ ... }) -`,s=` -import { RemoteRunnable } from "langchain/runnables/remote"; - -const chain = new RemoteRunnable({ url: \`${a}\` }); -const result = await chain.invoke({ ... }); -`;return O.jsxs(gf.Root,{children:[O.jsx(gf.Trigger,{asChild:!0,children:e.children}),O.jsxs(gf.Portal,{children:[O.jsx(gf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(gf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.lengthS.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function d9e(e){return typeof e=="object"&&e!=null}function Wg(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(d9e(r))r=r[o];else return}return r}function K0(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function f9e(e){const t=e+"CollectionProvider",[n,r]=G0(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=ns(b,g.collectionRef);return M.createElement(Np,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=ns(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Np,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const p9e=S.createContext(void 0);function G9(e){const t=S.useContext(p9e);return e||t||"ltr"}const Vx="rovingFocusGroup.onEntryFocus",h9e={bubbles:!1,cancelable:!0},uE="RovingFocusGroup",[AC,q9,m9e]=f9e(uE),[v9e,Y9]=G0(uE,[m9e]),[g9e,y9e]=v9e(uE),b9e=S.forwardRef((e,t)=>S.createElement(AC.Provider,{scope:e.__scopeRovingFocusGroup},S.createElement(AC.Slot,{scope:e.__scopeRovingFocusGroup},S.createElement(x9e,T({},e,{ref:t}))))),x9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=S.useRef(null),p=ns(t,f),m=G9(a),[b=null,v]=Ch({prop:i,defaultProp:s,onChange:l}),[x,g]=S.useState(!1),y=Qs(c),w=q9(n),C=S.useRef(!1),[_,$]=S.useState(0);return S.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Vx,y),()=>E.removeEventListener(Vx,y)},[y]),S.createElement(g9e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:S.useCallback(E=>v(E),[v]),onItemShiftTab:S.useCallback(()=>g(!0),[]),onFocusableItemAdd:S.useCallback(()=>$(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>$(E=>E-1),[])},S.createElement(Ko.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:oo(e.onMouseDown,()=>{C.current=!0}),onFocus:oo(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(Vx,h9e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(z=>z.focusable),F=R.find(z=>z.active),U=R.find(z=>z.id===b),B=[F,U,...R].filter(Boolean).map(z=>z.ref.current);K9(B)}}C.current=!1}),onBlur:oo(e.onBlur,()=>g(!1))})))}),w9e="RovingFocusGroupItem",C9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=jv(),l=a||s,c=y9e(w9e,n),u=c.currentTabStopId===l,f=q9(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),S.createElement(AC.ItemSlot,{scope:n,id:l,focusable:r,active:o},S.createElement(Ko.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:oo(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:oo(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:oo(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=_9e(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?E9e(g,y+1):g.slice(y+1)}setTimeout(()=>K9(g))}})})))}),$9e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S9e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _9e(e,t,n){const r=S9e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $9e[r]}function K9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const P9e=b9e,T9e=C9e,k9e=S.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Ch({prop:n,onChange:o,defaultProp:r});return S.createElement(Ko.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:oo(e.onClick,()=>{e.disabled||s(!i)})}))}),J0="ToggleGroup",[J9,o8e]=G0(J0,[Y9]),Z9=Y9(),O9e=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(R9e,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(D9e,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${J0}\``)}),[X9,Q9]=J9(J0),R9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ch({prop:n,defaultProp:r,onChange:o});return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(e8,T({},a,{ref:t})))}),D9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Ch({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(e8,T({},a,{ref:t})))}),[M9e,I9e]=J9(J0),e8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Z9(n),u=G9(i),f={role:"group",dir:u,...l};return M.createElement(M9e,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(P9e,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Ko.div,T({},f,{ref:t}))):M.createElement(Ko.div,T({},f,{ref:t})))}),NC="ToggleGroupItem",A9e=M.forwardRef((e,t)=>{const n=Q9(NC,e.__scopeToggleGroup),r=I9e(NC,e.__scopeToggleGroup),o=Z9(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(T9e,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(qM,T({},s,{ref:t}))):M.createElement(qM,T({},s,{ref:t}))}),qM=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Q9(NC,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(k9e,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),N9e=O9e,YM=A9e,j9e=mn(12,Cn(Ga,qr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function KM(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function JM(e,t){return typeof e=="string"?[{content:e,type:t}]:KM(e)?[e]:Array.isArray(e)&&e.every(KM)?e:null}function ZM(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const L9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??""),i=JM(o,"human"),s=JM(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=ir.compose(e.path,`${r}`),a=n.type??"chat",i=ZM((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(ir.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(N9e,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(ir.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(ir.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(YM,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(u9e,{className:"w-4 h-4"})}),O.jsx(YM,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(H9,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(oE,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(ir.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(ir.compose(o,"name"),p.target.value)}}),a==="ai"&&ZM((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(ir.compose(o,"additional_kwargs.function_call.name")),e.handleChange(ir.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(Xu,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(ir.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(Xu,{value:n.content,onChange:p=>{e.handleChange(ir.compose(o,"content"),p)}})]},r)})})]})}),F9e=mn(12,Cn(Ga,qr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!K0(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),z9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=ir.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(Xu,{value:n,onChange:i=>{e.handleChange(ir.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(Xu,{value:r,onChange:i=>{e.handleChange(ir.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(oE,{className:"w-4 h-4"})})]},o)})})]})}),B9e=mn(12,Cn(Ga,qr(e=>K0(e)?e.extra.widget.type==="base64file":!1))),V9e=lo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),U9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function t8(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function W9e(e){const[t,n]=S.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(U9e,{className:Ys("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:br.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:t8(a.final_output)??"..."})]},a.id))})]})}class Hg{constructor(t){Ud(this,"content");Ud(this,"name");Ud(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Hg({content:this.content+t.content,additional_kwargs:Hg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function H9e(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function G9e(e){return e.length>0&&e.every(t=>H9e(t))}function q9e(e){var t;if(G9e(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Hg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(t8).join("")||"..."}const Y9e=z5(e=>{const t=Dy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(Po,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:jC,cells:LC})}),K9e=mn(3,JN);br.extend(L4e);br.extend(N4e);const J9e=mn(2,Cn(Sn("Control"),qa("object"),qr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),Z9e=mn(1,Cn(Sn("Control"),qa("object"))),X9e=mn(1,Cn(Sn("Control"))),jC=[...O5e,{tester:J9e,renderer:j3e},{tester:i3e,renderer:s3e},{tester:F3e,renderer:z3e},{tester:K9e,renderer:Y9e},{tester:$je,renderer:f9},{tester:Z9e,renderer:e9},{tester:j9e,renderer:L9e},{tester:F9e,renderer:z9e},{tester:B9e,renderer:V9e}],Q9e=mn(1,(e,t)=>t.type==="array"),LC=[{tester:fNe,cell:pNe},{tester:mNe,cell:vNe},{tester:yNe,cell:bNe},{tester:wNe,cell:CNe},{tester:_Ne,cell:ENe},{tester:kNe,cell:ONe},{tester:MNe,cell:INe},{tester:LNe,cell:RM},{tester:NNe,cell:RM},{tester:BNe,cell:VNe},{tester:Q9e,cell:f9},{tester:X9e,cell:n6e}];function e8e(){var v,x,g,y,w,C;const[e]=S.useState(()=>window.location.search.includes("embeded=true")),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[],defaults:!0}),[o,a]=S.useState({data:null,errors:[]}),i=A5e(n);S.useEffect(()=>{if(i.config){const _=IC(window.location.href);r({data:_.configFromUrl??t.current??Rm(i.config),errors:[],defaults:!0}),a({data:Rm(i.input),errors:[]})}},[i.config]);const s=S.useRef({onStart:[],onSuccess:[],onError:[]}),{startStream:l,stopStream:c,latest:u}=ije({onStart(..._){for(const $ of s.current.onStart)$(..._)},onSuccess(..._){for(const $ of s.current.onSuccess)$(..._)},onError(..._){for(const $ of s.current.onError)$(..._)}});S.useEffect(()=>{var _;(_=window.parent)==null||_.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function _($){if($.source===window.parent){const E=$.data;if(typeof E=="object"&&E!=null)switch(E.type){case"update":{const k=E.value;if(Object.keys(k.config).length>0){t.current=k.config,r({data:k.config,errors:[],defaults:!1});break}}}}}return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[]);const f=S.useMemo(()=>i.input?JSON.stringify(Rm(i.input))!==JSON.stringify(o.data):!1,[i.input,o.data]);function p(){var _,$;!c&&((_=o.errors)!=null&&_.length||($=n.errors)!=null&&$.length)||(c?c():l(o.data,n.data))}const m=S.useRef(null);m.current=p,S.useEffect(()=>{window.addEventListener("keydown",_=>{var $;_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),($=m.current)==null||$.call(m))})},[]);const b=!c&&(!!((v=o.errors)!=null&&v.length)||!!((x=n.errors)!=null&&x.length));return!i.config||!i.input?O.jsx(O.Fragment,{}):O.jsx(l9.Provider,{value:s,children:O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),Object.keys(i.config).length>0&&O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(wR,{schema:i.config,data:n.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>_?r({data:_,errors:$,defaults:!1}):void 0}),!!((g=n.errors)!=null&&g.length)&&n.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(y=n.errors)==null?void 0:y.map((_,$)=>O.jsx("li",{children:_.message},$))})]})})]})]}),!e&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),f&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>a({data:Rm(i.input),errors:[]}),children:"Reset"})]}),O.jsx(wR,{schema:i.input,data:o.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>a({data:_,errors:$})}),!!((w=o.errors)!=null&&w.length)&&o.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(C=o.errors)==null?void 0:C.map((_,$)=>O.jsx("li",{children:_.message},$))})]})]}),u&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(q9e,{streamed:u.streamed_output})}),O.jsx(W9e,{latest:u})]})]}),O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),e?O.jsxs(O.Fragment,{children:[O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",onClick:()=>{var _;return(_=window.parent)==null?void 0:_.postMessage({type:"close"},"*")},children:"Cancel"}),O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:opacity-50 transition-colors",onClick:()=>{var k;const _=W0.compressToEncodedURIComponent(JSON.stringify(n.data)),E=`${IC(window.location.href).basePath}/c/${_}`;(k=window.parent)==null||k.postMessage({type:"apply",value:{targetUrl:E,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(c9e,{config:n.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(z4e,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx("button",{type:"button",className:Ys("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",b?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:p,disabled:b,children:c?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(F4e,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})})})}Ux.createRoot(document.getElementById("root")).render(O.jsx(e8e,{})); diff --git a/langserve/playground/dist/assets/index-849f2582.js b/langserve/playground/dist/assets/index-849f2582.js new file mode 100644 index 00000000..9fbde321 --- /dev/null +++ b/langserve/playground/dist/assets/index-849f2582.js @@ -0,0 +1,255 @@ +var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jd=(e,t,n)=>(q7(e,typeof t!="symbol"?t+"":t,n),n);function Y7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var CI={exports:{}},ay={},$I={exports:{}},an={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yp=Symbol.for("react.element"),J7=Symbol.for("react.portal"),Z7=Symbol.for("react.fragment"),X7=Symbol.for("react.strict_mode"),Q7=Symbol.for("react.profiler"),ez=Symbol.for("react.provider"),tz=Symbol.for("react.context"),nz=Symbol.for("react.forward_ref"),rz=Symbol.for("react.suspense"),oz=Symbol.for("react.memo"),az=Symbol.for("react.lazy"),OT=Symbol.iterator;function iz(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var SI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_I=Object.assign,EI={};function id(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}id.prototype.isReactComponent={};id.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PI(){}PI.prototype=id.prototype;function n$(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}var r$=n$.prototype=new PI;r$.constructor=n$;_I(r$,id.prototype);r$.isPureReactComponent=!0;var RT=Array.isArray,TI=Object.prototype.hasOwnProperty,o$={current:null},kI={key:!0,ref:!0,__self:!0,__source:!0};function OI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)TI.call(t,r)&&!kI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=W[j];if(0>>1;jo(N,X))Bo(Z,N)?(W[j]=Z,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(Z,X))W[j]=Z,W[B]=X,j=B;else break e}}return J}function o(W,J){var X=W.sortIndex-J.sortIndex;return X!==0?X:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=W)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-W)}}function _(W,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var X=p;p=J;try{return W.apply(this,arguments)}finally{p=X}}}})(II);MI.exports=II;var gz=MI.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var AI=$,Ko=gz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aw=Object.prototype.hasOwnProperty,yz=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,MT={},IT={};function bz(e){return aw.call(IT,e)?!0:aw.call(MT,e)?!1:yz.test(e)?IT[e]=!0:(MT[e]=!0,!1)}function xz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wz(e,t,n,r){if(t===null||typeof t>"u"||xz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jr[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jr[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jr[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jr[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jr[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jr[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jr[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jr[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jr[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var i$=/[\-:]([a-z])/g;function s$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!1,!1)});jr.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!0,!0)});function l$(e,t,n,r){var o=jr.hasOwnProperty(t)?jr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{vb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Cz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=gb(e.type,!1),e;case 11:return e=gb(e.type.render,!1),e;case 1:return e=gb(e.type,!0),e;default:return""}}function cw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case iw:return"Profiler";case c$:return"StrictMode";case sw:return"Suspense";case lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case LI:return(e.displayName||"Context")+".Consumer";case jI:return(e._context.displayName||"Context")+".Provider";case u$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d$:return t=e.displayName||null,t!==null?t:cw(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return cw(e(t))}catch{}}return null}function $z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cw(t);case 8:return t===c$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function el(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sz(e){var t=zI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Em(e){e._valueTracker||(e._valueTracker=Sz(e))}function VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function NT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=el(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function BI(e,t){t=t.checked,t!=null&&l$(e,"checked",t,!1)}function dw(e,t){BI(e,t);var n=el(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fw(e,t.type,n):t.hasOwnProperty("defaultValue")&&fw(e,t.type,el(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fw(e,t,n){(t!=="number"||Zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function up(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_z=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){_z.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function GI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function qI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=GI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ez=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mw(e,t){if(t){if(Ez[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gw=null;function f$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yw=null,Eu=null,Pu=null;function zT(e){if(e=Zp(e)){if(typeof yw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=uy(t),yw(e.stateNode,e.type,t))}}function YI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function KI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,zT(e),t)for(e=0;e>>=0,e===0?32:31-(jz(e)/Lz|0)|0}var Tm=64,km=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Kp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function Bz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),KT=String.fromCharCode(32),JT=!1;function mA(e,t){switch(e){case"keyup":return vV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function yV(e,t){switch(e){case"compositionend":return vA(t);case"keypress":return t.which!==32?null:(JT=!0,KT);case"textInput":return e=t.data,e===KT&&JT?null:e;default:return null}}function bV(e,t){if(du)return e==="compositionend"||!x$&&mA(e,t)?(e=pA(),Sv=g$=Ls=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ek(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wA(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zv(e.document)}return t}function w$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TV(e){var t=wA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&w$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=tk(n,a);var i=tk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Sw=null,Vf=null,_w=!1;function nk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_w||fu==null||fu!==Zv(r)||(r=fu,"selectionStart"in r&&w$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&vp(Vf,r)||(Vf=r,r=og(Sw,"onSelect"),0mu||(e.current=Rw[mu],Rw[mu]=null,mu--)}function Dn(e,t){mu++,Rw[mu]=e.current,e.current=t}var tl={},qr=sl(tl),Co=sl(!1),Jl=tl;function zu(e,t){var n=e.type.contextTypes;if(!n)return tl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function ig(){Ln(Co),Ln(qr)}function ck(e,t,n){if(qr.current!==tl)throw Error(at(168));Dn(qr,t),Dn(Co,n)}function OA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,$z(e)||"Unknown",o));return Kn({},n,r)}function sg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tl,Jl=qr.current,Dn(qr,e),Dn(Co,Co.current),!0}function uk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=OA(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(qr),Dn(qr,e)):Ln(Co),Dn(Co,n)}var Wi=null,dy=!1,Rb=!1;function RA(e){Wi===null?Wi=[e]:Wi.push(e)}function zV(e){dy=!0,RA(e)}function ll(){if(!Rb&&Wi!==null){Rb=!0;var e=0,t=Cn;try{var n=Wi;for(Cn=1;e>=i,o-=i,qi=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R,E=I}if(k===w.length)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(R.done)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return zn&&Rl(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return e&&E.forEach(function(U){return t(g,U)}),zn&&Rl(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _m:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&gk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Dv(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Fb(w,g.mode,C),y.return=g,g=y}return i(g);case Ms:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Zd(w))return v(g,y,w,C);Nm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Lb(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=FA(!0),zA=FA(!1),Xp={},yi=sl(Xp),xp=sl(Xp),wp=sl(Xp);function Bl(e){if(e===Xp)throw Error(at(174));return e}function O$(e,t){switch(Dn(wp,t),Dn(xp,e),Dn(yi,Xp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hw(t,e)}Ln(yi),Dn(yi,t)}function Uu(){Ln(yi),Ln(xp),Ln(wp)}function VA(e){Bl(wp.current);var t=Bl(yi.current),n=hw(t,e.type);t!==n&&(Dn(xp,e),Dn(yi,n))}function R$(e){xp.current===e&&(Ln(yi),Ln(xp))}var qn=sl(0);function pg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Db=[];function D$(){for(var e=0;en?n:4,e(!0);var r=Mb.transition;Mb.transition={};try{e(!1),t()}finally{Cn=n,Mb.transition=r}}function r3(){return wa().memoizedState}function WV(e,t,n){var r=Zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o3(e))a3(t,n);else if(n=AA(e,t,n,r),n!==null){var o=oo();Ha(n,e,r,o),i3(n,t,r)}}function HV(e,t,n){var r=Zs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o3(e))a3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,qa(s,i)){var l=t.interleaved;l===null?(o.next=o,T$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=AA(e,t,o,r),n!==null&&(o=oo(),Ha(n,e,r,o),i3(n,t,r))}}function o3(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function a3(e,t){Bf=hg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h$(e,n)}}var mg={readContext:xa,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},GV={readContext:xa,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tv(4194308,4,XA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tv(4,2,e,t)},useMemo:function(e,t){var n=si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=WV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:yk,useDebugValue:j$,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=yk(!1),t=e[0];return e=UV.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=si();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),kr===null)throw Error(at(349));Xl&30||WA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,bk(GA.bind(null,r,a,e),[e]),r.flags|=2048,Sp(9,HA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=si(),t=kr.identifierPrefix;if(zn){var n=Yi,r=qi;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[di]=t,e[bp]=r,m3(e,t,!1,!1),t.stateNode=e;e:{switch(i=vw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=pg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Vr(t),null}else 2*lr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=lr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return U$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function eB(e,t){switch($$(t),t.tag){case 1:return $o(t.type)&&ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(qr),D$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return P$(t.type._context),null;case 22:case 23:return U$(),null;case 24:return null;default:return null}}var Lm=!1,Hr=!1,tB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function Uw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Tk=!1;function nB(e,t){if(Ew=ng,e=wA(),w$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pw={focusedElem:e,selectionRange:n},ng=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Tk,Tk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Uw(t,n,a)}o=o.next}while(o!==r)}}function hy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ww(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y3(e){var t=e.alternate;t!==null&&(e.alternate=null,y3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[di],delete t[bp],delete t[Ow],delete t[LV],delete t[FV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b3(e){return e.tag===5||e.tag===3||e.tag===4}function kk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ag));else if(r!==4&&(e=e.child,e!==null))for(Hw(e,t,n),e=e.sibling;e!==null;)Hw(e,t,n),e=e.sibling}function Gw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gw(e,t,n),e=e.sibling;e!==null;)Gw(e,t,n),e=e.sibling}var Mr=null,Na=!1;function _s(e,t,n){for(n=n.child;n!==null;)x3(e,t,n),n=n.sibling}function x3(e,t,n){if(gi&&typeof gi.onCommitFiberUnmount=="function")try{gi.onCommitFiberUnmount(iy,n)}catch{}switch(n.tag){case 5:Hr||bu(n,t);case 6:var r=Mr,o=Na;Mr=null,_s(e,t,n),Mr=r,Na=o,Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mr.removeChild(n.stateNode));break;case 18:Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?Ob(e.parentNode,n):e.nodeType===1&&Ob(e,n),hp(e)):Ob(Mr,n.stateNode));break;case 4:r=Mr,o=Na,Mr=n.stateNode.containerInfo,Na=!0,_s(e,t,n),Mr=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Uw(n,t,i),o=o.next}while(o!==r)}_s(e,t,n);break;case 1:if(!Hr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:n.mode&1?(Hr=(r=Hr)||n.memoizedState!==null,_s(e,t,n),Hr=r):_s(e,t,n);break;default:_s(e,t,n)}}function Ok(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tB),t.forEach(function(r){var o=dB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=lr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oB(r/1960))-r,10e?16:e,Fs===null)var r=!1;else{if(e=Fs,Fs=null,yg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;llr()-V$?Hl(e,0):z$|=n),So(e,t)}function T3(e,t){t===0&&(e.mode&1?(t=km,km<<=1,!(km&130023424)&&(km=4194304)):t=1);var n=oo();e=rs(e,t),e!==null&&(Kp(e,t,n),So(e,n))}function uB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T3(e,n)}function dB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),T3(e,n)}var k3;k3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,XV(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&DA(t,cg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kv(e,t),e=t.pendingProps;var o=zu(t,qr.current);ku(t,n),o=I$(null,t,r,e,o,n);var a=A$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,sg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,k$(t),o.updater=fy,t.stateNode=o,o._reactInternals=t,Nw(t,r,e,n),t=Fw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&C$(t),no(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pB(r),e=Aa(r,e),o){case 0:t=Lw(null,t,r,e,n);break e;case 1:t=_k(null,t,r,e,n);break e;case 11:t=$k(null,t,r,e,n);break e;case 14:t=Sk(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Lw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 3:e:{if(f3(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,NA(e,t),fg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Ek(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Ek(e,t,r,n,o);break e}else for(Wo=Ys(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=zA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=os(e,t,n);break e}no(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Mw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Tw(r,o)?i=null:a!==null&&Tw(r,a)&&(t.flags|=32),d3(e,t),no(e,t,i,n),t.child;case 6:return e===null&&Mw(t),null;case 13:return p3(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):no(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),$k(e,t,r,o,n);case 7:return no(e,t,t.pendingProps,n),t.child;case 8:return no(e,t,t.pendingProps.children,n),t.child;case 12:return no(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(ug,r._currentValue),r._currentValue=i,a!==null)if(qa(a.value,i)){if(a.children===o.children&&!Co.current){t=os(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ji(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Iw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Iw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}no(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,no(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Sk(e,t,r,o,n);case 15:return c3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),kv(e,t),t.tag=1,$o(r)?(e=!0,sg(t)):e=!1,ku(t,n),LA(t,r,o),Nw(t,r,o,n),Fw(null,t,r,!0,e,n);case 19:return h3(e,t,n);case 22:return u3(e,t,n)}throw Error(at(156,t.tag))};function O3(e,t){return nA(e,t)}function fB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new fB(e,t,n,r)}function H$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pB(e){if(typeof e=="function")return H$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===u$)return 11;if(e===d$)return 14}return 2}function Xs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")H$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case c$:i=8,o|=8;break;case iw:return e=va(12,n,t,o|2),e.elementType=iw,e.lanes=a,e;case sw:return e=va(13,n,t,o),e.elementType=sw,e.lanes=a,e;case lw:return e=va(19,n,t,o),e.elementType=lw,e.lanes=a,e;case FI:return vy(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jI:i=10;break e;case LI:i=9;break e;case u$:i=11;break e;case d$:i=14;break e;case Ms:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function vy(e,t,n,r){return e=va(22,e,r,t),e.elementType=FI,e.lanes=n,e.stateNode={isHidden:!1},e}function Lb(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Fb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bb(0),this.expirationTimes=bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G$(e,t,n,r,o,a,i,s,l){return e=new hB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},k$(a),e}function mB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I3)}catch(e){console.error(e)}}I3(),DI.exports=Xo;var cd=DI.exports;const Of=Vt(cd);var Lk=cd;ow.createRoot=Lk.createRoot,ow.hydrateRoot=Lk.hydrateRoot;const xB=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var J$={exports:{}};J$.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(J$);var Z$=J$.exports;function X$(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(Z$.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Q$(e){const{basePath:t}=X$(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const wB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:R(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,Z){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,Z){Z(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function R(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,Z,re){var ce=!0;function xe(me,ue){Z.push(ue),D(N,me,Z,re),Z.pop()}o.isFunction(re)&&(ce=re(N,B,Z)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,Z=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],Z.push(B))})),Z}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var Z,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,B)),K.filter(Z,B)&&(re=J(B),q[re]=Z),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function J(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,Z,re){var ce,xe,me=Promise.resolve(),ue=J(Z.subDocPath),se=k(Z.location),Ce=i.dirname(Z.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,Z),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(Z.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):Z.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],Z=[],re=new a.Graph,ce=k(K.location),xe=ce+J(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){Z.indexOf(se)===-1&&Z.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);Z.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+J(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return J(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[R]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[R]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Ri=Un&&Un.isDate,Qa=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ei=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function z2(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function F8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var z8=p1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),V8=p1({"&":"&","<":"<",">":">",'"':""","'":"'"});function B8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function g1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function V2(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function ms(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),vs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:vs.defaults(ut.Object(),Ke,vs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ti=Ke.Math,Mn=Ke.Object,y1=Ke.RegExp,H8=Ke.String,aa=Ke.TypeError,Nh=ht.prototype,G8=mr.prototype,Rc=Mn.prototype,jh=Ke["__core-js_shared__"],Lh=G8.toString,wn=Rc.hasOwnProperty,q8=0,B2=(qe=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Fh=Rc.toString,Y8=Lh.call(Mn),K8=ut._,J8=y1("^"+Lh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zh=Pn?Ke.Buffer:void 0,gs=Ke.Symbol,Vh=Ke.Uint8Array,U2=zh?zh.allocUnsafe:void 0,Bh=V2(Mn.getPrototypeOf,Mn),W2=Mn.create,H2=Rc.propertyIsEnumerable,Uh=Nh.splice,G2=gs?gs.isConcatSpreadable:void 0,Ad=gs?gs.iterator:void 0,bl=gs?gs.toStringTag:void 0,Wh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),Z8=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,X8=Ft&&Ft.now!==ut.Date.now&&Ft.now,Q8=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Hh=ti.ceil,Gh=ti.floor,b1=Mn.getOwnPropertySymbols,eF=zh?zh.isBuffer:void 0,q2=Ke.isFinite,tF=Nh.join,nF=V2(Mn.keys,Mn),vr=ti.max,Lr=ti.min,rF=Ft.now,oF=Ke.parseInt,Y2=ti.random,aF=Nh.reverse,x1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),w1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),qh=jd&&new jd,Mc={},iF=Sl(x1),sF=Sl(Nd),lF=Sl(w1),cF=Sl(Dc),uF=Sl(jd),Yh=gs?gs.prototype:void 0,Fd=Yh?Yh.valueOf:void 0,K2=Yh?Yh.toString:void 0;function ee(d){if(Zn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return JP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(W2)return W2(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Kh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Re=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Ze){var st=Ze.length,It=new Ze.constructor(st);return st&&typeof Ze[0]=="string"&&wn.call(Ze,"index")&&(It.index=Ze.index,It.input=Ze.input),It}(d),!be)return fo(d,de)}else{var ot=Fr(d),Ct=ot==v||ot==x;if(Cs(d))return CP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Re||Ct?{}:VP(d),!be)return Re?function(Ze,st){return ri(Ze,FP(Ze),st)}(d,function(Ze,st){return Ze&&ri(st,ho(st),Ze)}(de,d)):function(Ze,st){return ri(Ze,G1(Ze),st)}(d,X2(de,d))}else{if(!ve[ot])return H?d:{};de=function(Ze,st,It){var wt=Ze.constructor;switch(st){case I:return F1(Ze);case p:case m:return new wt(+Ze);case R:return function(jt,Xt){var Pt=Xt?F1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Ze,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return $P(Ze,It);case g:return new wt;case y:case S:return new wt(Ze);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Ze);case _:return new wt;case E:return At=Ze,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),hT(d)?d.forEach(function(Ze){de.add(sa(Ze,h,P,Ze,d,ae))}):fT(d)&&d.forEach(function(Ze,st){de.set(st,sa(Ze,h,P,st,d,ae))});var Rt=We?void 0:(Ge?Re?U1:B1:Re?ho:Pr)(d);return Zr(Rt||d,function(Ze,st){Rt&&(Ze=d[st=Ze]),zd(de,st,sa(Ze,h,P,st,d,ae))}),de}function Q2(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function eP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Di,de=!0,be=d.length,Re=[],Ge=h.length;if(!be)return Re;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Mi.prototype.set=function(d,h){var P=this.__data__,A=Jh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ii.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Mi),string:new xl}},Ii.prototype.delete=function(d){var h=lm(this,d).delete(d);return this.size-=h?1:0,h},Ii.prototype.get=function(d){return lm(this,d).get(d)},Ii.prototype.has=function(d){return lm(this,d).has(d)},Ii.prototype.set=function(d,h){var P=lm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Mi,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Mi){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ii(A)}return P.set(d,h),this.size=P.size,this};var ys=PP(ni),tP=PP(_1,!0);function hF(d,h){var P=!0;return ys(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function Zh(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Rr(be,h-1,P,A,H):uo(H,be):A||(H[H.length]=be)}return H}var S1=TP(),rP=TP(!0);function ni(d,h){return d&&S1(d,h,Pr)}function _1(d,h){return d&&rP(d,h,Pr)}function Xh(d,h){return Ao(h,function(P){return Fi(d[P])})}function Ac(d,h){for(var P=0,A=(h=xs(h,d)).length;d!=null&&Ph}function mF(d,h){return d!=null&&wn.call(d,h)}function vF(d,h){return d!=null&&h in Mn(d)}function P1(d,h,P){for(var A=P?Pc:Di,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Re=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Re=Lr(We.length,Re),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Rt;var Ze=Re[Ge];return Rt*(Ze=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function pP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Uh.call(be,Re,1),Uh.call(d,Re,1);return d}function hP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;Li(H)?Uh.call(d,H,1):A1(d,H)}}return d}function D1(d,h){return d+Gh(Y2()*(h-d+1))}function M1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Gh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return J1(WP(d,h,mo),d+"")}function yF(d){return Z2(zc(d))}function bF(d,h){var P=zc(d);return cm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=xs(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:SF(d);if(Ge)return Ah(Ge);de=!1,H=Id,Re=new wl}else Re=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var wP=Z8||function(d){return ut.clearTimeout(d)};function CP(d,h){if(h)return d.slice();var P=d.length,A=U2?U2(P):new d.constructor(P);return d.copy(A),A}function F1(d){var h=new d.constructor(d.byteLength);return new Vh(h).set(new Vh(d)),h}function $P(d,h){var P=h?F1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function SP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Re=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Re&&!be&&!Ge||A&&de&&Re||!P&&Re||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&Qr(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function RP(d){return ji(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&sm(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Rebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ +/* [wrapped with `+ae+`] */ +`)}(A,function(H,ae){return Zr(c,function(de){var be="_."+de[0];ae&de[1]&&!Di(H,be)&&H.push(be)}),H.sort()}(function(H){var ae=H.match(De);return ae?ae[1].split(Be):[]}(A),P)))}function YP(d){var h=0,P=0;return function(){var A=rF(),H=16-(A-P);if(P=A,H>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function cm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,nT(d,P)});function rT(d){var h=ee(d);return h.__chain__=!0,h}function um(d,h){return h(d)}var GF=ji(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return $1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Li(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:um,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),qF=nm(function(d,h,P){wn.call(d,P)?++d[P]:Ai(d,P,1)}),YF=OP(ZP),KF=OP(XP);function oT(d,h){return(Ht(d)?Zr:ys)(d,Ot(h,3))}function aT(d,h){return(Ht(d)?Mh:tP)(d,Ot(h,3))}var JF=nm(function(d,h,P){wn.call(d,P)?d[P].push(h):Ai(d,P,[h])}),ZF=Zt(function(d,h,P){var A=-1,H=typeof h=="function",ae=po(d)?ht(d.length):[];return ys(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),XF=nm(function(d,h,P){Ai(d,P,h)});function dm(d,h){return(Ht(d)?kn:lP)(d,Ot(h,3))}var QF=nm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),e7=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Qr(d,h[0],h[1])?h=[]:P>2&&Qr(h[0],h[1],h[2])&&(h=[h[0]]),fP(d,Rr(h,1),[])}),fm=X8||function(){return ut.Date.now()};function iT(d,h,P){return h=P?void 0:h,Ni(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function sT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var Q1=Zt(function(d,h,P){var A=1;if(P.length){var H=ms(P,Lc(Q1));A|=32}return Ni(d,A,h,P,H)}),lT=Zt(function(d,h,P){var A=3;if(P.length){var H=ms(P,Lc(lT));A|=32}return Ni(h,A,d,P,H)});function cT(d,h,P){var A,H,ae,de,be,Re,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Rt(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Ze(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=fm();if(Ze(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Re);return ot?Lr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=fm(),jt=Ze(At);if(A=arguments,H=this,Re=At,jt){if(be===void 0)return Rt(Re);if(ot)return wP(be),be=qd(st,h),$t(Re)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&wP(be),Ge=0,A=Re=H=be=void 0},wt.flush=function(){return be===void 0?de:It(fm())},wt}var t7=Zt(function(d,h){return eP(d,1,h)}),n7=Zt(function(d,h,P){return eP(d,ua(h)||0,P)});function pm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(pm.Cache||Ii),P}function hm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}pm.Cache=Ii;var r7=$F(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Ot())):kn(Rr(h,1),No(Ot()))).length;return Zt(function(A){for(var H=-1,ae=Lr(A.length,P);++H=h}),_l=aP(function(){return arguments}())?aP:function(d){return Zn(d)&&wn.call(d,"callee")&&!H2.call(d,"callee")},Ht=ht.isArray,s7=Mo?No(Mo):function(d){return Zn(d)&&Xr(d)==I};function po(d){return d!=null&&mm(d.length)&&!Fi(d)}function ar(d){return Zn(d)&&po(d)}var Cs=eF||db,l7=Ri?No(Ri):function(d){return Zn(d)&&Xr(d)==m};function tb(d){if(!Zn(d))return!1;var h=Xr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Fi(d){if(!Hn(d))return!1;var h=Xr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function dT(d){return typeof d=="number"&&d==Gt(d)}function mm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Zn(d){return d!=null&&i(d)=="object"}var fT=Qa?No(Qa):function(d){return Zn(d)&&Fr(d)==g};function pT(d){return typeof d=="number"||Zn(d)&&Xr(d)==y}function Yd(d){if(!Zn(d)||Xr(d)!=w)return!1;var h=Bh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Lh.call(P)==Y8}var nb=Jr?No(Jr):function(d){return Zn(d)&&Xr(d)==C},hT=Io?No(Io):function(d){return Zn(d)&&Fr(d)==_};function vm(d){return typeof d=="string"||!Ht(d)&&Zn(d)&&Xr(d)==S}function Lo(d){return i(d)=="symbol"||Zn(d)&&Xr(d)==E}var Fc=ei?No(ei):function(d){return Zn(d)&&mm(d.length)&&!!ye[Xr(d)]},c7=im(O1),u7=im(function(d,h){return d<=h});function mT(d){if(!d)return[];if(po(d))return vm(d)?Ta(d):fo(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=Fr(d);return(h==g?g1:h==_?Ah:zc)(d)}function zi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=zi(d),P=h%1;return h==h?P?h-P:h:0}function vT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function gT(d){return ri(d,ho(d))}function gn(d){return d==null?"":jo(d)}var d7=Nc(function(d,h){if(Gd(h)||po(h))ri(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),yT=Nc(function(d,h){ri(h,ho(h),d)}),gm=Nc(function(d,h,P,A){ri(h,ho(h),d,A)}),f7=Nc(function(d,h,P,A){ri(h,Pr(h),d,A)}),p7=ji($1),h7=Zt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&Qr(h[0],h[1],H)&&(A=1);++P1),ae}),ri(d,U1(d),P),A&&(P=sa(P,7,_F));for(var H=h.length;H--;)A1(P,h[H]);return P}),w7=ji(function(d,h){return d==null?{}:function(P,A){return pP(P,A,function(H,ae){return ob(P,ae)})}(d,h)});function xT(d,h){if(d==null)return{};var P=kn(U1(d),function(A){return[A]});return h=Ot(h),pP(d,P,function(A,H){return h(A,H[0])})}var wT=AP(Pr),CT=AP(ho);function zc(d){return d==null?[]:v1(d,Pr(d))}var C7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?$T(h):h)});function $T(d){return ab(gn(d).toLowerCase())}function ST(d){return(d=gn(d))&&d.replace(Te,z8).replace(Bn,"")}var $7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),S7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),_7=kP("toLowerCase"),E7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),P7=jc(function(d,h,P){return d+(P?" ":"")+ab(h)}),T7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ab=kP("toUpperCase");function _T(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var ET=Zt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return tb(P)?P:new cn(P)}}),k7=ji(function(d,h){return Zr(h,function(P){P=oi(P),Ai(d,P,Q1(d[P],d))}),d});function ib(d){return function(){return d}}var O7=RP(),R7=RP(!0);function mo(d){return d}function sb(d){return sP(typeof d=="function"?d:sa(d,1))}var D7=Zt(function(d,h){return function(P){return Bd(P,d,h)}}),M7=Zt(function(d,h){return function(P){return Bd(d,P,h)}});function lb(d,h,P){var A=Pr(h),H=Xh(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=Xh(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Fi(d);return Zr(H,function(be){var Re=h[be];d[be]=Re,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=fo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Re.apply(d,uo([this.value()],arguments))})}),d}function cb(){}var I7=z1(kn),A7=z1(yl),N7=z1(d1);function PT(d){return q1(d)?f1(oi(d)):function(h){return function(P){return Ac(P,h)}}(d)}var j7=MP(),L7=MP(!0);function ub(){return[]}function db(){return!1}var F7=om(function(d,h){return d+h},0),z7=V1("ceil"),V7=om(function(d,h){return d/h},1),B7=V1("floor"),fb,U7=om(function(d,h){return d*h},1),W7=V1("round"),H7=om(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=iT,ee.assign=d7,ee.assignIn=yT,ee.assignInWith=gm,ee.assignWith=f7,ee.at=p7,ee.before=sT,ee.bind=Q1,ee.bindAll=k7,ee.bindKey=lT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=rT,ee.chunk=function(d,h,P){h=(P?Qr(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Hh(A/h));HGe?0:Ge+be),(Re=Re===void 0||Re>Ge?Ge:Gt(Re))<0&&(Re+=Ge),Re=be>Re?0:vT(Re);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!nb(h))&&!(h=jo(h))&&kc(d)?ws(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Zt(function(P){var A=P[h],H=ws(P,0,h);return A&&uo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),cT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=um,ee.toArray=mT,ee.toPairs=wT,ee.toPairsIn=CT,ee.toPath=function(d){return Ht(d)?kn(d,oi):Lo(d)?[d]:fo(KP(gn(d)))},ee.toPlainObject=gT,ee.transform=function(d,h,P){var A=Ht(d),H=A||Cs(d)||Fc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Fi(ae)?Ic(Bh(d)):{}}return(H?Zr:ni)(d,function(de,be,Re){return h(P,de,be,Re)}),P},ee.unary=function(d){return iT(d,1)},ee.union=jF,ee.unionBy=LF,ee.unionWith=FF,ee.uniq=function(d){return d&&d.length?bs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?bs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?bs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||A1(d,h)},ee.unzip=X1,ee.unzipWith=nT,ee.update=function(d,h,P){return d==null?d:yP(d,h,L1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:yP(d,h,L1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:v1(d,ho(d))},ee.without=zF,ee.words=_T,ee.wrap=function(d,h){return eb(L1(h),d)},ee.xor=VF,ee.xorBy=BF,ee.xorWith=UF,ee.zip=WF,ee.zipObject=function(d,h){return xP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return xP(d||[],h||[],Wd)},ee.zipWith=HF,ee.entries=wT,ee.entriesIn=CT,ee.extend=yT,ee.extendWith=gm,lb(ee,ee),ee.add=F7,ee.attempt=ET,ee.camelCase=C7,ee.capitalize=$T,ee.ceil=z7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||Q2(d,h,Pr(h))},ee.deburr=ST,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=V7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Oa,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,V8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:hF;return P&&Qr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=YF,ee.findIndex=ZP,ee.findKey=function(d,h){return A2(d,Ot(h,3),ni)},ee.findLast=KF,ee.findLastIndex=XP,ee.findLastKey=function(d,h){return A2(d,Ot(h,3),_1)},ee.floor=B7,ee.forEach=oT,ee.forEachRight=aT,ee.forIn=function(d,h){return d==null?d:S1(d,Ot(h,3),ho)},ee.forInRight=function(d,h){return d==null?d:rP(d,Ot(h,3),ho)},ee.forOwn=function(d,h){return d&&ni(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&_1(d,Ot(h,3))},ee.get=rb,ee.gt=a7,ee.gte=i7,ee.has=function(d,h){return d!=null&&zP(d,h,mF)},ee.hasIn=ob,ee.head=eT,ee.identity=mo,ee.includes=function(d,h,P,A){d=po(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),vm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=zi(h),P===void 0?(P=h,h=0):P=zi(P),function(A,H,ae){return A>=Lr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=hT,ee.isString=vm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Zn(d)&&Fr(d)==k},ee.isWeakSet=function(d){return Zn(d)&&Xr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":tF.call(d,h)},ee.kebabCase=$7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Lr(H,A-1)),h==h?function(ae,de,be){for(var Re=be+1;Re--;)if(ae[Re]===de)return Re;return Re}(d,h,H):Ih(d,N2,H,!0)},ee.lowerCase=S7,ee.lowerFirst=_7,ee.lt=c7,ee.lte=u7,ee.max=function(d){return d&&d.length?Zh(d,mo,E1):void 0},ee.maxBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),E1):void 0},ee.mean=function(d){return j2(d,mo)},ee.meanBy=function(d,h){return j2(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Zh(d,mo,O1):void 0},ee.minBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),O1):void 0},ee.stubArray=ub,ee.stubFalse=db,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=U7,ee.nth=function(d,h){return d&&d.length?dP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=K8),this},ee.noop=cb,ee.now=fm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return am(Gh(H),P)+d+am(Hh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=Y2();return Lr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return D1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?u1:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,ys)},ee.reduceRight=function(d,h,P){var A=Ht(d)?N8:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,tP)},ee.repeat=function(d,h,P){return h=(P?Qr(d,h,P):h===void 0)?1:Gt(h),M1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=xs(h,d)).length;for(H||(H=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=Lr(d,4294967295);d-=4294967295;for(var H=m1(A,h=Ot(h));++P=ae)return d;var be=P-Oc(A);if(be<1)return A;var Re=de?ws(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Re+A;if(de&&(be+=Re.length-be),nb(H)){if(d.slice(be).search(H)){var Ge,We=Re;for(H.global||(H=y1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Re=Re.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Re.lastIndexOf(H);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,W8):d},ee.uniqueId=function(d){var h=++q8;return gn(d)+h},ee.upperCase=T7,ee.upperFirst=ab,ee.each=oT,ee.eachRight=aT,ee.first=eT,lb(ee,(fb={},ni(ee,function(d,h){wn.call(ee.prototype,h)||(fb[h]=d)}),fb),{chain:!1}),ee.VERSION="4.17.15",Zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Zr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Lr(P,A.__takeCount__):A.__views__.push({size:Lr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Zr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Zr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Zr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(mo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(hm(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ni(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Re=de instanceof rn,Ge=be[0],We=Re||Ht(de),ot=function(It){var wt=H.apply(ee,uo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Re=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Ze=Re&&!$t;if(!ae&&We){de=Ze?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:um,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Rt&&Ze?d.apply(this,be):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Zr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Nh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),ni(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[rm(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=fo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=fo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=fo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,eo=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Kh;){var A=JP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:um,args:[Z1],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(Z1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return bP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=vs,(a=(function(){return vs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=vs)._=vs,yt._=vs):ut._=vs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,z,V){var Y,Q=1&F,W=2&F,J=4&F;if(U&&(Y=z?U(R,G,z,V):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var j=b(R),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(R),!Q)return W?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[j])return z?R:{};Y=x(R,j,Q)}}V||(V=new r);var q=V.get(R);if(q)return q;V.set(R,Y),S(R)?R.forEach(function(B){Y.add(I(B,F,U,B,R,V))}):C(R)&&R.forEach(function(B,Z){Y.set(Z,I(B,F,U,Z,R,V))});var D=J?W?m:p:W?keysIn:E,N=X?void 0:D(R);return o(N||R,function(B,Z){N&&(B=R[Z=B]),a(Y,Z,I(B,F,U,Z,R,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function R(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=R(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=J(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,J).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=Z(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=J(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var A3={exports:{}},N3={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gu=$;function CB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $B=typeof Object.is=="function"?Object.is:CB,SB=Gu.useState,_B=Gu.useEffect,EB=Gu.useLayoutEffect,PB=Gu.useDebugValue;function TB(e,t){var n=t(),r=SB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return EB(function(){o.value=n,o.getSnapshot=t,zb(o)&&a({inst:o})},[e,n,t]),_B(function(){return zb(o)&&a({inst:o}),e(function(){zb(o)&&a({inst:o})})},[e]),PB(n),n}function zb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$B(e,n)}catch{return!0}}function kB(e,t){return t()}var OB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kB:TB;N3.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:OB;A3.exports=N3;var RB=A3.exports;const zs=()=>{},yo=zs(),Vb=Object,pn=e=>e===yo,Ki=e=>typeof e=="function",nl=(e,t)=>({...e,...t}),DB=e=>Ki(e.then),Vm=new WeakMap;let MB=0;const Ep=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Vb(e)===e&&!r&&n!=RegExp){if(o=Vm.get(e),o)return o;if(o=++MB+"~",Vm.set(e,o),n==Array){for(o="@",a=0;awy&&typeof window.requestAnimationFrame!=eS,j3=(e,t)=>{const n=Hi.get(e);return[()=>!pn(t)&&e.get(t)||Bb,r=>{if(!pn(t)){const o=e.get(t);t in Bm||(Bm[t]=o),n[5](t,nl(o,r),o||Bb)}},n[6],()=>!pn(t)&&t in Bm?Bm[t]:!pn(t)&&e.get(t)||Bb]};let Xw=!0;const AB=()=>Xw,[Qw,eC]=wy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zs,zs],NB=()=>{const e=Zw&&document.visibilityState;return pn(e)||e!=="hidden"},jB=e=>(Zw&&document.addEventListener("visibilitychange",e),Qw("focus",e),()=>{Zw&&document.removeEventListener("visibilitychange",e),eC("focus",e)}),LB=e=>{const t=()=>{Xw=!0,e()},n=()=>{Xw=!1};return Qw("online",t),Qw("offline",n),()=>{eC("online",t),eC("offline",n)}},FB={isOnline:AB,isVisible:NB},zB={initFocus:jB,initReconnect:LB},Fk=!M.useId,Pp=!wy||"Deno"in window,VB=e=>IB()?window.requestAnimationFrame(e):setTimeout(e,1),Ub=Pp?$.useEffect:$.useLayoutEffect,Wb=typeof navigator<"u"&&navigator.connection,zk=!Pp&&Wb&&(["slow-2g","2g"].includes(Wb.effectiveType)||Wb.saveData),tS=e=>{if(Ki(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ep(e):"",[e,t]};let BB=0;const tC=()=>++BB,L3=0,F3=1,z3=2,UB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:UB,FOCUS_EVENT:L3,MUTATE_EVENT:z3,RECONNECT_EVENT:F3};async function V3(...e){const[t,n,r,o]=e,a=nl({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ki(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=tS(m);if(!b)return;const[v,x]=j3(t,b),[g,y,w,C]=Hi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](z3).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=tC();y[b]=[k,0];const I=!pn(l),R=v(),F=R.data,U=R._c,G=pn(U)?F:U;if(I&&(l=Ki(l)?l(G,F):l,x({data:l,_c:G})),Ki(S))try{S=S(G)}catch(z){E=z}if(S&&DB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:yo}));if(i&&!E)if(Ki(i)){const z=i(S,G);x({data:z,error:yo,_c:yo})}else x({data:S,error:yo,_c:yo});if(y[b][1]=tC(),Promise.resolve(_()).then(()=>{x({_c:yo})}),E){if(f)throw E;return}return S}}const Vk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},WB=(e,t)=>{if(!Hi.has(e)){const n=nl(zB,t),r={},o=V3.bind(yo,e);let a=zs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!Hi.has(e)&&(Hi.set(e,[r,{},{},{},o,l,s]),!Pp)){const u=n.initFocus(setTimeout.bind(yo,Vk.bind(yo,r,L3))),f=n.initReconnect(setTimeout.bind(yo,Vk.bind(yo,r,F3)));a=()=>{u&&u(),f&&f(),Hi.delete(e)}}};return c(),[e,o,c,a]}return[e,Hi.get(e)[4]]},HB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},GB=(e,t)=>Ep(e)==Ep(t),[B3,qB]=WB(new Map),YB=nl({onLoadingSlow:zs,onSuccess:zs,onError:zs,onErrorRetry:HB,onDiscarded:zs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:zk?5e3:3e3,compare:GB,isPaused:()=>!1,cache:B3,mutate:qB,fallback:{}},FB),KB=(e,t)=>{const n=nl(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=nl(o,i))}return n},JB=$.createContext({}),ZB="$inf$",U3=wy&&window.__SWR_DEVTOOLS_USE__,XB=U3?window.__SWR_DEVTOOLS_USE__:[],QB=()=>{U3&&(window.__SWR_DEVTOOLS_REACT__=M)},eU=e=>Ki(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],tU=()=>nl(YB,$.useContext(JB)),nU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=tS(t),[,,,s]=Hi.get(B3);if(i.startsWith(ZB))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),rU=XB.concat(nU),oU=e=>function(...n){const r=tU(),[o,a,i]=eU(n),s=KB(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(rU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},aU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};QB();const Bk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hb={dedupe:!0},iU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=Hi.get(r),[g,y]=tS(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[R,F,U,G]=j3(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=nl(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=R(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(R());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=RB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),J=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:J&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),Z=!!(g&&t&&J&&B),re=pn(W.isValidating)?Z:W.isValidating,ce=pn(W.isLoading)?Z:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>Fk?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(R().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(R().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),tC()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=yo;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=R().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ki(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>V3(r,_.current,...ue),[]);if(Ub(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Ub(()=>{if(!g)return;const ue=xe.bind(yo,Hb);let se=0;const fe=aU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Pp?ue():VB(ue)),()=>{C.current=!0,fe()}},[g]),Ub(()=>{let ue;function se(){const fe=Ki(c)?c(R().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!R().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Hb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!Fk&&Pp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Bk(se)}if(pn(q)){const se=xe(Hb);pn(N)||(se.status="fulfilled",se.value=!0),Bk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},W3=oU(iU),Cg=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Cy=e=>JSON.parse(JSON.stringify(e)),nS=(e,t)=>{e=Cy(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];Cg(r)&&Cg(o)?e[n]=nS(o,r):e[n]=r}return e},H3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return Cg(o)?Cy(o):o},sU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=sU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=H3(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:Cg(e.definitions)&&(t=nS(t,e.definitions)),ru(Cy(e),t)}function lU(){return W3(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await wg(window.CONFIG_SCHEMA);else{const t=await fetch(Q$("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await wg(n)}return e==null?null:{schema:e,defaults:$g(e)}})}function cU(e){return W3(["/input_schema",e],async([,t])=>{const n=t?`/c/${Z$.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await wg(window.INPUT_SCHEMA);else{const o=await fetch(Q$(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await wg(a)}return r==null?null:{schema:r,defaults:$g(r)}},{keepPreviousData:!0})}/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */var uU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dU=Object.prototype.hasOwnProperty;function nC(e,t){return dU.call(e,t)}function rC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function G3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function aC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!oC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);oC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=pU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&aC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=Y3([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Y3(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)$y(Ho(t),Ho(e),n||!0);else{n=n||_g;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function oS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=rC(t),i=rC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(nC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(dW,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Iv,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Av,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Iv," .").concat(Iv,` { + right: 0 `).concat(r,`; + } + + .`).concat(Av," .").concat(Av,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(fW,": ").concat(s,`px; + } +`)},RW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return TW(o)},[o]);return $.createElement(kW,{styles:OW(a,!t,o,n?"":"!important")})},dC=!1;if(typeof window<"u")try{var Wm=Object.defineProperty({},"passive",{get:function(){return dC=!0,!0}});window.addEventListener("test",Wm,Wm),window.removeEventListener("test",Wm,Wm)}catch{dC=!1}var Uc=dC?{passive:!1}:!1,DW=function(e){return e.tagName==="TEXTAREA"},oN=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DW(e)&&n[t]==="visible")},MW=function(e){return oN(e,"overflowY")},IW=function(e){return oN(e,"overflowX")},eO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=aN(e,n);if(r){var o=iN(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},AW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aN=function(e,t){return e==="v"?MW(t):IW(t)},iN=function(e,t){return e==="v"?AW(t):NW(t)},jW=function(e,t){return e==="h"&&t==="rtl"?-1:1},LW=function(e,t,n,r,o){var a=jW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=iN(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&aN(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Hm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tO=function(e){return[e.deltaX,e.deltaY]},nO=function(e){return e&&"current"in e?e.current:e},FW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zW=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},VW=0,Wc=[];function BW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(VW++)[0],a=$.useState(function(){return rN()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=uW([e.lockRef.current],(e.shards||[]).map(nO),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Hm(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=eO(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=eO(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return LW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?tO(x):Hm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&FW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(nO).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Hm(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,tO(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Hm(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:zW(o)}):null,m?$.createElement(RW,{gapMode:"margin"}):null)}const UW=bW(nN,BW);var sN=$.forwardRef(function(e,t){return $.createElement(Ey,fi({},e,{ref:t,sideCar:UW}))});sN.classNames=Ey.classNames;const WW=sN;var HW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Gm=new WeakMap,qm={},Zb=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},GW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lN(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qW=function(e,t,n,r){var o=GW(t,Array.isArray(e)?e:[e]);qm[n]||(qm[n]=new WeakMap);var a=qm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Gm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),Zb++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Gm.has(f)||f.removeAttribute(r),Gm.delete(f)),m||f.removeAttribute(n)}),Zb--,Zb||(Hc=new WeakMap,Hc=new WeakMap,Gm=new WeakMap,qm={})}},YW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||HW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qW(r,o,n,"aria-hidden")):function(){return null}};const cN="Dialog",[uN,BFe]=Sy(cN),[KW,Ja]=uN(cN),JW=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=Qp({prop:r,defaultProp:o,onChange:a});return $.createElement(KW,{scope:t,triggerRef:s,contentRef:l,contentId:Mv(),titleId:Mv(),descriptionId:Mv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},ZW="DialogTrigger",XW=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(ZW,n),a=as(t,o.triggerRef);return $.createElement(Jo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":aS(o.open)},r,{ref:a,onClick:ao(e.onClick,o.onOpenToggle)}))}),dN="DialogPortal",[QW,fN]=uN(dN,{forceMount:void 0}),eH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(dN,t);return $.createElement(QW,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(_y,{present:n||a.open},$.createElement(iW,{asChild:!0,container:o},i))))},fC="DialogOverlay",tH=$.forwardRef((e,t)=>{const n=fN(fC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(fC,e.__scopeDialog);return a.modal?$.createElement(_y,{present:r||a.open},$.createElement(nH,T({},o,{ref:t}))):null}),nH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(fC,n);return $.createElement(WW,{as:kp,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Jo.div,T({"data-state":aS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Op="DialogContent",rH=$.forwardRef((e,t)=>{const n=fN(Op,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(Op,e.__scopeDialog);return $.createElement(_y,{present:r||a.open},a.modal?$.createElement(oH,T({},o,{ref:t})):$.createElement(aH,T({},o,{ref:t})))}),oH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(null),o=as(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return YW(a)},[]),$.createElement(pN,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ao(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:ao(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:ao(e.onFocusOutside,a=>a.preventDefault())}))}),aH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(pN,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),pN=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(Op,n),l=$.useRef(null),c=as(t,l);return cW(),$.createElement($.Fragment,null,$.createElement(QU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(JU,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),iH="DialogTitle",sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(iH,n);return $.createElement(Jo.h2,T({id:o.titleId},r,{ref:t}))}),lH="DialogDescription",cH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(lH,n);return $.createElement(Jo.p,T({id:o.descriptionId},r,{ref:t}))}),uH="DialogClose",dH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(uH,n);return $.createElement(Jo.button,T({type:"button"},r,{ref:t,onClick:ao(e.onClick,()=>o.onOpenChange(!1))}))});function aS(e){return e?"open":"closed"}const fH=JW,pH=XW,hH=eH,mH=tH,vH=rH,gH=sH,yH=cH,bH=dH;var hN=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),iS=()=>M.useContext(hN);function xH(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}xH(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var wH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function pC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function CH(){return sS(/^Mac/)}function $H(){return sS(/^iPhone/)}function SH(){return sS(/^iPad/)||CH()&&navigator.maxTouchPoints>1}function mN(){return $H()||SH()}function sS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Xb=typeof document<"u"&&window.visualViewport;function rO(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vN(e){for(rO(e)&&(e=e.parentElement);e&&!rO(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var _H=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ym=0,Qb;function EH(e={}){let{isDisabled:t}=e;wH(()=>{if(!t)return Ym++,Ym===1&&(mN()?Qb=TH():Qb=PH()),()=>{Ym--,Ym===0&&Qb()}},[t])}function PH(){return pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"))}function TH(){let e,t=0,n=f=>{e=vN(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Pg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Pg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Xb&&(Xb.height{oO(p)}):Xb.addEventListener("resize",()=>oO(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=pC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Eg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oO(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vN(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Pg(e){return e instanceof HTMLInputElement&&!_H.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function kH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OH(...e){return t=>e.forEach(n=>kH(n,t))}function gN(...e){return $.useCallback(OH(...e),e)}var Es=null;function RH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Es===null&&e){Es={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Es!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Es.position,document.body.style.top=Es.top,document.body.style.left=Es.left,document.body.style.height=Es.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Es=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var yN=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&yN.set(e,r)}function Km(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yN.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Jm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function DH(e){return 8*(Math.log(e+1)-2)}var Rn={DURATION:.5,EASE:[.32,.72,0,1]},bN=.4;function xN(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=xN(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function IH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=MH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=xN(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function AH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=IH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)bN&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var NH=.25,jH=500,aO=8,El=16,iO=26;function wN({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=NH,scrollLockTimeout:c=jH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=AH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});EH({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Ve}=RH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-iO)/window.innerWidth}function De(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,mN()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Jm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(R){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!J.current&&!Be(Pe.target,it))return;if(J.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=DH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Pg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-iO),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Km(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Jm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`},!0)}function He(Pe){if(!R||!D.current)return;J.current&&Pg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=Jm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>bN){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})):(Km(Te,"overflow"),Km(Te,"transform"),Km(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Jm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(fH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(hN.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var CN=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=iS(),c=gN(n,r),u=o&&o.length>0;return M.createElement(mH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});CN.displayName="Drawer.Overlay";var $N=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=iS(),y=gN(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(vH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});$N.displayName="Drawer.Content";function LH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=iS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(wN,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:wN,NestedRoot:LH,Content:$N,Overlay:CN,Trigger:pH,Portal:hH,Close:bH,Title:gH,Description:yH};const SN=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),FH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),zH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),VH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ex=2e3;function tx(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(VH,{}):O.jsx(zH,{})})}function BH(e){const t=$.useMemo(()=>Z$.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${X$(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +from langserve import RemoteRunnable + +chain = RemoteRunnable("${r}") +chain.invoke({ ... }) +`,s=` +import { RemoteRunnable } from "langchain/runnables/remote"; + +const chain = new RemoteRunnable({ url: \`${a}\` }); +const result = await chain.invoke({ ... }); +`;return O.jsxs(lf.Root,{children:[O.jsx(lf.Trigger,{asChild:!0,children:e.children}),O.jsxs(lf.Portal,{children:[O.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},R=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return R(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,J=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=R(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return R(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function EN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var kN="!";function XH(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function QH(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function eG(e){return{cache:ZH(e.cacheSize),splitModifiers:XH(e),...GH(e)}}var tG=/\s+/;function nG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(tG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=QH(l).join(":"),v=c?b+kN:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function rG(){for(var e=arguments.length,t=new Array(e),n=0;nn(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(WH,{className:Zi("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:DN(a.final_output)??"..."})]},a.id))})]})}class Tg{constructor(t){Jd(this,"content");Jd(this,"name");Jd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Tg({content:this.content+t.content,additional_kwargs:Tg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function xG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function wG(e){return e.length>0&&e.every(t=>xG(t))}function CG(e){var t;if(wG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Tg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(DN).join("")||"..."}var $G=typeof xo=="object"&&xo&&xo.Object===Object&&xo,MN=$G,SG=MN,_G=typeof self=="object"&&self&&self.Object===Object&&self,EG=SG||_G||Function("return this")(),lo=EG,PG=lo,TG=PG.Symbol,ud=TG,uO=ud,IN=Object.prototype,kG=IN.hasOwnProperty,OG=IN.toString,df=uO?uO.toStringTag:void 0;function RG(e){var t=kG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=OG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var DG=RG,MG=Object.prototype,IG=MG.toString;function AG(e){return IG.call(e)}var NG=AG,dO=ud,jG=DG,LG=NG,FG="[object Null]",zG="[object Undefined]",fO=dO?dO.toStringTag:void 0;function VG(e){return e==null?e===void 0?zG:FG:fO&&fO in Object(e)?jG(e):LG(e)}var cl=VG;function BG(e){return e!=null&&typeof e=="object"}var ea=BG,UG=cl,WG=ea,HG="[object Symbol]";function GG(e){return typeof e=="symbol"||WG(e)&&UG(e)==HG}var dd=GG,qG=dd;function YG(e,t,n){for(var r=-1,o=e.length;++rt}var ZG=JG;function XG(){this.__data__=[],this.size=0}var QG=XG;function eq(e,t){return e===t||e!==e&&t!==t}var eh=eq,tq=eh;function nq(e,t){for(var n=e.length;n--;)if(tq(e[n][0],t))return n;return-1}var Py=nq,rq=Py,oq=Array.prototype,aq=oq.splice;function iq(e){var t=this.__data__,n=rq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aq.call(t,n,1),--this.size,!0}var sq=iq,lq=Py;function cq(e){var t=this.__data__,n=lq(t,e);return n<0?void 0:t[n][1]}var uq=cq,dq=Py;function fq(e){return dq(this.__data__,e)>-1}var pq=fq,hq=Py;function mq(e,t){var n=this.__data__,r=hq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var vq=mq,gq=QG,yq=sq,bq=uq,xq=pq,wq=vq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&zK?new NK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=FJ}var hS=zJ,VJ=cl,BJ=hS,UJ=ea,WJ="[object Arguments]",HJ="[object Array]",GJ="[object Boolean]",qJ="[object Date]",YJ="[object Error]",KJ="[object Function]",JJ="[object Map]",ZJ="[object Number]",XJ="[object Object]",QJ="[object RegExp]",eZ="[object Set]",tZ="[object String]",nZ="[object WeakMap]",rZ="[object ArrayBuffer]",oZ="[object DataView]",aZ="[object Float32Array]",iZ="[object Float64Array]",sZ="[object Int8Array]",lZ="[object Int16Array]",cZ="[object Int32Array]",uZ="[object Uint8Array]",dZ="[object Uint8ClampedArray]",fZ="[object Uint16Array]",pZ="[object Uint32Array]",Nn={};Nn[aZ]=Nn[iZ]=Nn[sZ]=Nn[lZ]=Nn[cZ]=Nn[uZ]=Nn[dZ]=Nn[fZ]=Nn[pZ]=!0;Nn[WJ]=Nn[HJ]=Nn[rZ]=Nn[GJ]=Nn[oZ]=Nn[qJ]=Nn[YJ]=Nn[KJ]=Nn[JJ]=Nn[ZJ]=Nn[XJ]=Nn[QJ]=Nn[eZ]=Nn[tZ]=Nn[nZ]=!1;function hZ(e){return UJ(e)&&BJ(e.length)&&!!Nn[VJ(e)]}var mZ=hZ;function vZ(e){return function(t){return e(t)}}var mS=vZ,Rg={exports:{}};Rg.exports;(function(e,t){var n=MN,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Rg,Rg.exports);var vS=Rg.exports,gZ=mZ,yZ=mS,wO=vS,CO=wO&&wO.isTypedArray,bZ=CO?yZ(CO):gZ,Dy=bZ,xZ=SJ,wZ=nh,CZ=cr,$Z=rh,SZ=oh,_Z=Dy,EZ=Object.prototype,PZ=EZ.hasOwnProperty;function TZ(e,t){var n=CZ(e),r=!n&&wZ(e),o=!n&&!r&&$Z(e),a=!n&&!r&&!o&&_Z(e),i=n||r||o||a,s=i?xZ(e.length,String):[],l=s.length;for(var c in e)(t||PZ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||SZ(c,l)))&&s.push(c);return s}var GN=TZ,kZ=Object.prototype;function OZ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kZ;return e===n}var My=OZ;function RZ(e,t){return function(n){return e(t(n))}}var qN=RZ,DZ=qN,MZ=DZ(Object.keys,Object),IZ=MZ,AZ=My,NZ=IZ,jZ=Object.prototype,LZ=jZ.hasOwnProperty;function FZ(e){if(!AZ(e))return NZ(e);var t=[];for(var n in Object(e))LZ.call(e,n)&&n!="constructor"&&t.push(n);return t}var gS=FZ,zZ=th,VZ=hS;function BZ(e){return e!=null&&VZ(e.length)&&!zZ(e)}var cs=BZ,UZ=GN,WZ=gS,HZ=cs;function GZ(e){return HZ(e)?UZ(e):WZ(e)}var Pi=GZ;const qZ=Vt(Pi);var YZ=BN,KZ=pS,JZ=Pi;function ZZ(e){return YZ(e,JZ,KZ)}var YN=ZZ,$O=YN,XZ=1,QZ=Object.prototype,eX=QZ.hasOwnProperty;function tX(e,t,n,r,o,a){var i=n&XZ,s=$O(e),l=s.length,c=$O(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:eX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:Gte(e,t,n)}var Yte=qte,Kte="\\ud800-\\udfff",Jte="\\u0300-\\u036f",Zte="\\ufe20-\\ufe2f",Xte="\\u20d0-\\u20ff",Qte=Jte+Zte+Xte,ene="\\ufe0e\\ufe0f",tne="\\u200d",nne=RegExp("["+tne+Kte+Qte+ene+"]");function rne(e){return nne.test(e)}var C4=rne;function one(e){return e.split("")}var ane=one,$4="\\ud800-\\udfff",ine="\\u0300-\\u036f",sne="\\ufe20-\\ufe2f",lne="\\u20d0-\\u20ff",cne=ine+sne+lne,une="\\ufe0e\\ufe0f",dne="["+$4+"]",wC="["+cne+"]",CC="\\ud83c[\\udffb-\\udfff]",fne="(?:"+wC+"|"+CC+")",S4="[^"+$4+"]",_4="(?:\\ud83c[\\udde6-\\uddff]){2}",E4="[\\ud800-\\udbff][\\udc00-\\udfff]",pne="\\u200d",P4=fne+"?",T4="["+une+"]?",hne="(?:"+pne+"(?:"+[S4,_4,E4].join("|")+")"+T4+P4+")*",mne=T4+P4+hne,vne="(?:"+[S4+wC+"?",wC,_4,E4,dne].join("|")+")",gne=RegExp(CC+"(?="+CC+")|"+vne+mne,"g");function yne(e){return e.match(gne)||[]}var bne=yne,xne=ane,wne=C4,Cne=bne;function $ne(e){return wne(e)?Cne(e):xne(e)}var Sne=$ne,_ne=Yte,Ene=C4,Pne=Sne,Tne=yd;function kne(e){return function(t){t=Tne(t);var n=Ene(t)?Pne(t):void 0,r=n?n[0]:t.charAt(0),o=n?_ne(n,1).join(""):t.slice(1);return r[e]()+o}}var One=kne,Rne=One,Dne=Rne("toUpperCase"),Mne=Dne,Ine=Wte,Ane=Mne,Nne=Ine(function(e,t,n){return e+(n?" ":"")+Ane(t)}),k4=Nne;const Ny=Vt(k4);var jne=pc,Lne=function(){try{var e=jne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O4=Lne,UO=O4;function Fne(e,t,n){t=="__proto__"&&UO?UO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CS=Fne,zne=CS,Vne=eh;function Bne(e,t,n){(n!==void 0&&!Vne(e[t],n)||n===void 0&&!(t in e))&&zne(e,t,n)}var R4=Bne;function Une(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Wne=Une,Hne=Wne,Gne=Hne(),D4=Gne,Dg={exports:{}};Dg.exports;(function(e,t){var n=lo,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Dg,Dg.exports);var M4=Dg.exports,WO=FN;function qne(e){var t=new e.constructor(e.byteLength);return new WO(t).set(new WO(e)),t}var $S=qne,Yne=$S;function Kne(e,t){var n=t?Yne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var I4=Kne;function Jne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=boe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V4=Coe,$oe=yoe,Soe=V4,_oe=Soe($oe),TS=_oe,Eoe=Iy,Poe=z4,Toe=TS;function koe(e,t){return Toe(Poe(e,t,Eoe),e+"")}var B4=koe,Ooe=eh,Roe=cs,Doe=oh,Moe=ta;function Ioe(e,t,n){if(!Moe(n))return!1;var r=typeof t;return(r=="number"?Roe(n)&&Doe(t,n.length):r=="string"&&t in n)?Ooe(n[t],e):!1}var U4=Ioe,Aoe=B4,Noe=U4;function joe(e){return Aoe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Noe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,ce&&ce<=Z?re:ix(re,Z)):re}},mixin:function(N){return function(B){var Z=this;if(!C(Z))return N(Z,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,Z.prototype[ce]])}),N(Z,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?Z.prototype[ce[0]]=xe:delete Z.prototype[ce[0]]}),Z}},nthArg:function(N){return function(B){var Z=B<0?1:k(B)+1;return x(N(B),Z)}},rearg:function(N){return function(B,Z){var re=Z?Z.length:0;return x(N(B,Z),re)}},runInContext:function(N){return function(B){return $C(e,N(B),r)}}};function U(N,B){if(i.cap){var Z=br.iterateeRearg[N];if(Z)return X(B,Z);var re=!o&&br.iterateeAry[N];if(re)return J(B,re)}return B}function G(N,B,Z){return l||i.curry&&Z>1?x(B,Z):B}function z(N,B,Z){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,Z):bse(B,ce)}return B}function V(N,B,Z){return i.rearg&&Z>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[Z]):B}function Y(N,B){B=I(B);for(var Z=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Yse,`{ +/* [wrapped with `+t+`] */ +`)}var Jse=Kse;function Zse(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var s5=sle,lle=kS,cle=s5,ule=1,dle=2,fle=8,ple=16,hle=32,mle=64,vle=128,gle=256,yle=512,ble=[["ary",vle],["bind",ule],["bindKey",dle],["curry",fle],["curryRight",ple],["flip",yle],["partial",hle],["partialRight",mle],["rearg",gle]];function xle(e,t){return lle(ble,function(n){var r="_."+n[0];t&n[1]&&!cle(e,r)&&e.push(r)}),e.sort()}var wle=xle,Cle=qse,$le=Jse,Sle=TS,_le=wle;function Ele(e,t,n){var r=t+"";return Sle(e,$le(r,_le(Cle(r),n)))}var l5=Ele,Ple=r5(),Tle=o5,kle=l5,Ole=1,Rle=2,Dle=4,Mle=8,xR=32,wR=64;function Ile(e,t,n,r,o,a,i,s,l,c){var u=t&Mle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?xR:wR,t&=~(u?wR:xR),t&Dle||(t&=~(Ole|Rle));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Ple(e)&&Tle(x,v),x.placeholder=r,kle(x,e,t)}var c5=Ile;function Ale(e){var t=e;return t.placeholder}var u5=Ale,Nle=ih,jle=oh,Lle=Math.min;function Fle(e,t){for(var n=e.length,r=Lle(t.length,n),o=Nle(e);r--;){var a=t[r];e[r]=jle(a,n)?o[a]:void 0}return e}var zle=Fle,CR="__lodash_placeholder__";function Vle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?m5(s,t-1,n,r,o):Mue(o,s):r||(o[o.length]=s)}return o}var v5=m5,Aue=v5;function Nue(e){var t=e==null?0:e.length;return t?Aue(e,1):[]}var jue=Nue,Lue=jue,Fue=z4,zue=TS;function Vue(e){return zue(Fue(e,void 0,Lue),e+"")}var jS=Vue,Bue=AS,Uue=jS,Wue=256,Hue=Uue(function(e,t){return Bue(e,Wue,void 0,void 0,void 0,t)}),Gue=Hue,que=gd,Yue=ih,Kue=cr,Jue=dd,Zue=n4,Xue=mc,Que=yd;function ede(e){return Kue(e)?que(e,Xue):Jue(e)?[e]:Yue(Zue(Que(e)))}var tde=ede,nde={ary:oue,assign:W4,clone:lue,curry:due,forEach:kS,isArray:cr,isError:yue,isFunction:th,isWeakMap:$ue,iteratee:Tue,keys:gS,rearg:Gue,toInteger:lh,toPath:tde},rde=xse,ode=nde;function ade(e,t,n){return rde(ode,e,t,n)}var xd=ade,Cx,jR;function ide(){if(jR)return Cx;jR=1;var e=ES,t=ah,n=oh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Hde=Wde,Gde=Hde,qde=o4,Yde=lh,Kde=yd;function Jde(e,t,n){e=Kde(e),t=qde(t);var r=e.length;n=n===void 0?r:Gde(Yde(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var Zde=Jde;const Xde=Vt(Zde);function Qde(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var efe=Qde,tfe=s4,nfe=LS,rfe=vc,ofe=efe,afe=cr;function ife(e,t,n){var r=afe(e)?tfe:ofe,o=arguments.length<3;return r(e,rfe(t),n,o,nfe)}var sfe=ife;const SC=Vt(sfe);var lfe=gd;function cfe(e,t){return lfe(t,function(n){return[n,e[n]]})}var ufe=cfe;function dfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ffe=dfe,pfe=ufe,hfe=hc,mfe=zN,vfe=ffe,gfe="[object Map]",yfe="[object Set]";function bfe(e){return function(t){var n=hfe(t);return n==gfe?mfe(t):n==yfe?vfe(t):pfe(t,e(t))}}var xfe=bfe,wfe=xfe,Cfe=Pi,$fe=wfe(Cfe),Sfe=$fe;const _fe=Vt(Sfe);var Efe=cl,Pfe=cr,Tfe=ea,kfe="[object String]";function Ofe(e){return typeof e=="string"||!Pfe(e)&&Tfe(e)&&Efe(e)==kfe}var Rfe=Ofe,Dfe=gd;function Mfe(e,t){return Dfe(t,function(n){return e[n]})}var Ife=Mfe,Afe=Ife,Nfe=Pi;function jfe(e){return e==null?[]:Afe(e,Nfe(e))}var Lfe=jfe,Ffe=i5,zfe=cs,Vfe=Rfe,Bfe=lh,Ufe=Lfe,Wfe=Math.max;function Hfe(e,t,n,r){e=zfe(e)?e:Ufe(e),n=n&&!r?Bfe(n):0;var o=e.length;return n<0&&(n=Wfe(o+n,0)),Vfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ffe(e,t,n)>-1}var Gfe=Hfe;const w5=Vt(Gfe);var qfe=vc,Yfe=cs,Kfe=Pi;function Jfe(e){return function(t,n,r){var o=Object(t);if(!Yfe(t)){var a=qfe(n);t=Kfe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var Zfe=Jfe,Xfe=a5,Qfe=vc,epe=lh,tpe=Math.max;function npe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:epe(n);return o<0&&(o=tpe(r+o,0)),Xfe(e,Qfe(t),o)}var rpe=npe,ope=Zfe,ape=rpe,ipe=ope(ape),spe=ipe;const FS=Vt(spe);var lpe=Math.ceil,cpe=Math.max;function upe(e,t,n,r){for(var o=-1,a=cpe(lpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var dpe=upe,fpe=dpe,ppe=U4,Sx=h5;function hpe(e){return function(t,n,r){return r&&typeof r!="number"&&ppe(t,n,r)&&(n=r=void 0),t=Sx(t),n===void 0?(n=t,t=0):n=Sx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(EC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rp,n=EC;var r=Rp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=EC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,Z){super(D,B,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let Z=B.length;for(;Z--;){const re=B[Z];re.optimizeNames(D,N)||(V(D,re.names),B.splice(Z,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,Z){super(),this.varKind=D,this.name=N,this.from=B,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:Z,to:re}=this;return`for(${N} ${B}=${Z}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,Z){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,Z;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,Z){const re=this._scope.toName(N);return B!==void 0&&Z&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,Z]of D)N.length>1&&N.push(","),N.push(B),(B!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>Z(ce))}forOf(D,N,B,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",Z,re,N),()=>B(re))}forIn(D,N,B,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return B&&(this._currNode=Z.finally=new R,this.code(B)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,Z){return this._blockNode(new S(D,N,B)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function Z(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const J=j(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=Rp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(R,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Br=Jt,Tpe={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ti.default=Tpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ti;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(ch);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const kpe=ch,Ope=Jt,Rpe=Ti,Dpe={message:"boolean schema is false"};function Mpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?$5(e,!1):typeof n=="object"&&n.$async===!0?t.return(Rpe.default.data):(t.assign((0,Ope._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Mpe;function Ipe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),$5(e)):n.var(t,!0)}qu.boolOrEmptySchema=Ipe;function $5(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,kpe.reportError)(o,Dpe,void 0,t)}var uh={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Ape=["string","number","integer","boolean","null","object","array"],Npe=new Set(Ape);function jpe(e){return typeof e=="string"&&Npe.has(e)}tc.isJSONType=jpe;function Lpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Lpe;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.shouldUseRule=Xi.shouldUseGroup=Xi.schemaHasRulesForType=void 0;function Fpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&S5(e,r)}Xi.schemaHasRulesForType=Fpe;function S5(e,t){return t.rules.some(n=>_5(e,n))}Xi.shouldUseGroup=S5;function _5(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Xi.shouldUseRule=_5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Xi,r=ch,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,S,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),R=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(R,E))),S.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${R} !== undefined`,()=>{S.assign(E,R),m(w,R)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null + || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null + || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(R,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" + || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(uh);var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.assignDefaults=void 0;const Gc=Jt,zpe=dn;function Vpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)FR(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>FR(e,a,o.default))}zy.assignDefaults=Vpe;function FR(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,zpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var vi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Jt,zS=dn,Ts=Ti,Bpe=dn;function Upe(e,t){const{gen:n,data:r,it:o}=e;n.if(BS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Upe;function Wpe({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(BS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=Wpe;function Hpe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Hpe;function E5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=E5;function VS(e,t,n){return(0,jn._)`${E5(e)}.call(${t}, ${n})`}Qt.isOwnProperty=VS;function Gpe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${VS(e,t,n)}`:o}Qt.propertyInData=Gpe;function BS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(VS(e,t,n))):o}Qt.noPropertyInData=BS;function P5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=P5;function qpe(e,t){return P5(t).filter(n=>!(0,zS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=qpe;function Ype({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[Ts.default.instancePath,(0,jn.strConcat)(Ts.default.instancePath,a)],[Ts.default.parentData,i.parentData],[Ts.default.parentDataProperty,i.parentDataProperty],[Ts.default.rootData,Ts.default.rootData]];i.opts.dynamicRef&&f.push([Ts.default.dynamicAnchors,Ts.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=Ype;const Kpe=(0,jn._)`new RegExp`;function Jpe({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?Kpe:(0,Bpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=Jpe;function Zpe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:zS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=Zpe;function Xpe(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,zS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=Xpe;Object.defineProperty(vi,"__esModule",{value:!0});vi.validateKeywordUsage=vi.validSchemaType=vi.funcKeywordCode=vi.macroKeywordCode=void 0;const ro=Jt,jl=Ti,Qpe=Qt,ehe=ch;function the(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=T5(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:ro.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}vi.macroKeywordCode=the;function nhe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;ohe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=T5(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&zR(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&zR(e),x(()=>rhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,ro._)`await `),y=>r.assign(f,!1).if((0,ro._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,ro._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,ro._)`${u}.errors`;return r.assign(g,null),v(ro.nil),g}function v(g=t.async?(0,ro._)`await `:ro.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,ro._)`${g}${(0,Qpe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,ro.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}vi.funcKeywordCode=nhe;function zR(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,ro._)`${r.parentData}[${r.parentDataProperty}]`))}function rhe(e,t){const{gen:n}=e;n.if((0,ro._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,ro._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,ro._)`${jl.default.vErrors}.length`),(0,ehe.extendErrors)(e)},()=>e.error())}function ohe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function T5(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ro.stringify)(n)})}function ahe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}vi.validSchemaType=ahe;function ihe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}vi.validateKeywordUsage=ihe;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.extendSubschemaMode=Qs.extendSubschemaData=Qs.getSubschema=void 0;const pi=Jt,k5=dn;function she(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}${(0,pi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,k5.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Qs.getSubschema=she;function lhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,pi._)`${t.data}${(0,pi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,pi.str)`${c}${(0,k5.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,pi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof pi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Qs.extendSubschemaData=lhe;function che(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}Qs.extendSubschemaMode=che;var Ar={},O5=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},R5={exports:{}},Vs=R5.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};jv(t,r,o,e,"",e)};Vs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function jv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Vs.arrayKeywords)for(var p=0;pt+=D5(r)),t===1/0))return 1/0}return t}function M5(e,t="",n){n!==!1&&(t=Ru(t));const r=e.parse(t);return I5(e,r)}Ar.getFullPath=M5;function I5(e,t){return e.serialize(t).split("#")[0]+"#"}Ar._getFullPath=I5;const yhe=/#\/?$/;function Ru(e){return e?e.replace(yhe,""):""}Ar.normalizeId=Ru;function bhe(e,t,n){return n=Ru(n),e.resolve(t,n)}Ar.resolveUrl=bhe;const xhe=/^[a-z_][-a-z0-9._]*$/i;function whe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ru(e[n]||t),a={"":o},i=M5(r,o,!1),s={},l=new Set;return hhe(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ru(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ru(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!xhe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!phe(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ar.getSchemaRefs=whe;Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getData=Ga.KeywordCxt=Ga.validateFunctionCode=void 0;const A5=qu,VR=uh,US=Xi,Ig=uh,Che=zy,Gf=vi,_x=Qs,St=Jt,Lt=Ti,$he=Ar,Qi=dn,pf=ch;function She(e){if(L5(e)&&(F5(e),j5(e))){Phe(e);return}N5(e,()=>(0,A5.topBoolOrEmptySchema)(e))}Ga.validateFunctionCode=She;function N5({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${BR(n,o)}`),Ehe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${_he(o)}`,r.$async,()=>e.code(BR(n,o)).code(a))}function _he(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Ehe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Phe(e){const{schema:t,opts:n,gen:r}=e;N5(e,()=>{n.$comment&&t.$comment&&V5(e),Dhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&The(e),z5(e),Ahe(e)})}function The(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function BR(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function khe(e,t){if(L5(e)&&(F5(e),j5(e))){Ohe(e,t);return}(0,A5.boolOrEmptySchema)(e,t)}function j5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function L5(e){return typeof e.schema!="boolean"}function Ohe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&V5(e),Mhe(e),Ihe(e);const a=r.const("_errs",Lt.default.errors);z5(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function F5(e){(0,Qi.checkUnknownRules)(e),Rhe(e)}function z5(e,t){if(e.opts.jtd)return UR(e,[],!1,t);const n=(0,VR.getSchemaTypes)(e.schema),r=(0,VR.coerceAndCheckDataType)(e,n);UR(e,n,!r,t)}function Rhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Qi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Dhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Qi.checkStrictMode)(e,"default is ignored in the schema root")}function Mhe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,$he.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ihe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ahe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Nhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Nhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function UR(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Qi.schemaHasRulesButRef)(a,u))){o.block(()=>W5(e,"$ref",u.all.$ref.definition));return}l.jtd||jhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,US.shouldUseGroup)(a,p)&&(p.type?(o.if((0,Ig.checkDataType)(p.type,i,l.strictNumbers)),WR(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,Ig.reportTypeError)(e)),o.endIf()):WR(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function WR(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Che.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,US.shouldUseRule)(r,a)&&W5(e,a.keyword,a.definition,t.type)})}function jhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Lhe(e,t),e.opts.allowUnionTypes||Fhe(e,t),zhe(e,e.dataTypes))}function Lhe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{B5(e.dataTypes,n)||WS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Bhe(e,t)}}function Fhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&WS(e,"use allowUnionTypes to allow union type keyword")}function zhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,US.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Vhe(t,i))&&WS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Vhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function B5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Bhe(e,t){const n=[];for(const r of e.dataTypes)B5(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function WS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Qi.checkStrictMode)(e,t,e.opts.strictTypes)}class U5{constructor(t,n,r){if((0,Gf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",H5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Gf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,Ig.checkDataTypes)(l,n,a.opts.strictNumbers,Ig.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,_x.getSubschema)(this.it,t);(0,_x.extendSubschemaData)(r,this.it,t),(0,_x.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return khe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Qi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Qi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ga.KeywordCxt=U5;function W5(e,t,n,r){const o=new U5(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Gf.funcKeywordCode)(o,n):"macro"in n?(0,Gf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Gf.funcKeywordCode)(o,n)}const Uhe=/^\/(?:[^~]|~0|~1)*$/,Whe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function H5(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Uhe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Whe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Qi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ga.getData=H5;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});class Hhe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}dh.default=Hhe;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});const Ex=Ar;class Ghe extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Ex.resolveUrl)(t,n,r),this.missingSchema=(0,Ex.normalizeId)((0,Ex.getFullPath)(t,this.missingRef))}}fh.default=Ghe;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Jt,qhe=dh,Pl=Ti,Fa=Ar,HR=dn,Yhe=Ga;class Vy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Vy;function HS(e){const t=G5.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:qhe.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Yhe.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=HS;function Khe(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=Xhe.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Vy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Jhe.call(this,a)}bo.resolveRef=Khe;function Jhe(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:HS.call(this,e)}function G5(e){for(const t of this._compilations)if(Zhe(t,e))return t}bo.getCompilingSchema=G5;function Zhe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Xhe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||By.call(this,e,t)}function By(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Px.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=By.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Px.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||HS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Vy({schema:s,schemaId:l,root:e,baseId:o})}return Px.call(this,n,i)}}bo.resolveSchema=By;const Qhe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Px(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,HR.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Qhe.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,HR.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=By.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Vy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const eme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",tme="Meta-schema for $data reference (JSON AnySchema extension proposal)",nme="object",rme=["$data"],ome={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ame=!1,ime={$id:eme,description:tme,type:nme,required:rme,properties:ome,additionalProperties:ame};var GS={},TC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(R[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(uo){Ie=!0,rt=uo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&QaU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ei=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Zr;!(Io=(Zr=gl.next()).done);Io=!0){var Mh=Zr.value;if(Mhb&&z("overflow"),Mh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Di=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Ri=Wt.slice(0,Un.index),Qa=Wt.slice(Un.index+Un.length);Mo=Ri.join(":")+"::"+Qa.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,Z,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=R.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return Z.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function Z({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const Z of N)B=B[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[Z];ce&&xe&&(B[Z]=J(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:Z}=this.opts;if(typeof j=="object")B=j[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:Z,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function R(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const Z={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,Z,j.before):B.rules.push(Z),N.all[X]=Z,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=J(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,W]}}})(C5);var qS={},YS={},KS={};Object.defineProperty(KS,"__esModule",{value:!0});const lme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};KS.default=lme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const cme=fh,GR=Qt,vo=Jt,qc=Ti,qR=bo,Qm=dn,ume={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=qR.resolveRef.call(l,c,o,n);if(u===void 0)throw new cme.default(r.opts.uriResolver,o,n);if(u instanceof qR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Lv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Lv(e,(0,vo._)`${b}.validate`,c,c.$async)}function p(b){const v=Y5(e,b);Lv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,vo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:vo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function Y5(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,vo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=Y5;function Lv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:vo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,vo._)`await ${(0,GR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,vo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,GR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,vo._)`${b}.errors`;o.assign(qc.default.vErrors,(0,vo._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,vo._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Qm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,vo._)`${b}.evaluated.props`);a.props=Qm.mergeEvaluated.props(o,g,a.props,vo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Qm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,vo._)`${b}.evaluated.items`);a.items=Qm.mergeEvaluated.items(o,g,a.items,vo.Name)}}}nc.callRef=Lv;nc.default=ume;Object.defineProperty(YS,"__esModule",{value:!0});const dme=KS,fme=nc,pme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",dme.default,fme.default];YS.default=pme;var JS={},ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const Ag=Jt,ks=Ag.operators,Ng={maximum:{okStr:"<=",ok:ks.LTE,fail:ks.GT},minimum:{okStr:">=",ok:ks.GTE,fail:ks.LT},exclusiveMaximum:{okStr:"<",ok:ks.LT,fail:ks.GTE},exclusiveMinimum:{okStr:">",ok:ks.GT,fail:ks.LTE}},hme={message:({keyword:e,schemaCode:t})=>(0,Ag.str)`must be ${Ng[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ag._)`{comparison: ${Ng[e].okStr}, limit: ${t}}`},mme={keyword:Object.keys(Ng),type:"number",schemaType:"number",$data:!0,error:hme,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Ag._)`${n} ${Ng[t].fail} ${r} || isNaN(${n})`)}};ZS.default=mme;var XS={};Object.defineProperty(XS,"__esModule",{value:!0});const qf=Jt,vme={message:({schemaCode:e})=>(0,qf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qf._)`{multipleOf: ${e}}`},gme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,qf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,qf._)`${i} !== parseInt(${i})`;e.fail$data((0,qf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};XS.default=gme;var QS={},e_={};Object.defineProperty(e_,"__esModule",{value:!0});function K5(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},wme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xme,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,yme.useFunc)(e.gen,bme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};QS.default=wme;var t_={};Object.defineProperty(t_,"__esModule",{value:!0});const Cme=Qt,jg=Jt,$me={message:({schemaCode:e})=>(0,jg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,jg._)`{pattern: ${e}}`},Sme={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$me,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,jg._)`(new RegExp(${o}, ${i}))`:(0,Cme.usePattern)(e,r);e.fail$data((0,jg._)`!${s}.test(${t})`)}};t_.default=Sme;var n_={};Object.defineProperty(n_,"__esModule",{value:!0});const Yf=Jt,_me={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Yf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Yf._)`{limit: ${e}}`},Eme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Yf.operators.GT:Yf.operators.LT;e.fail$data((0,Yf._)`Object.keys(${n}).length ${o} ${r}`)}};n_.default=Eme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const hf=Qt,Kf=Jt,Pme=dn,Tme={message:({params:{missingProperty:e}})=>(0,Kf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Kf._)`{missingProperty: ${e}}`},kme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Tme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Pme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Kf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Kf.not)(b),()=>{e.error(),t.break()})},Kf.nil)}}};r_.default=kme;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Jf=Jt,Ome={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Rme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};o_.default=Rme;var a_={},ph={};Object.defineProperty(ph,"__esModule",{value:!0});const J5=O5;J5.code='require("ajv/dist/runtime/equal").default';ph.default=J5;Object.defineProperty(a_,"__esModule",{value:!0});const Tx=uh,Dr=Jt,Dme=dn,Mme=ph,Ime={message:({params:{i:e,j:t}})=>(0,Dr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Dr._)`{i: ${e}, j: ${t}}`},Ame={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ime,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Tx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Dr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Dr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Dr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Tx.checkDataTypes)(c,x,s.opts.strictNumbers,Tx.DataType.Wrong),y=t.const("indices",(0,Dr._)`{}`);t.for((0,Dr._)`;${b}--;`,()=>{t.let(x,(0,Dr._)`${n}[${b}]`),t.if(g,(0,Dr._)`continue`),c.length>1&&t.if((0,Dr._)`typeof ${x} == "string"`,(0,Dr._)`${x} += "_"`),t.if((0,Dr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Dr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Dr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Dme.useFunc)(t,Mme.default),g=t.name("outer");t.label(g).for((0,Dr._)`;${b}--;`,()=>t.for((0,Dr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Dr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};a_.default=Ame;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const kC=Jt,Nme=dn,jme=ph,Lme={message:"must be equal to constant",params:({schemaCode:e})=>(0,kC._)`{allowedValue: ${e}}`},Fme={keyword:"const",$data:!0,error:Lme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,kC._)`!${(0,Nme.useFunc)(t,jme.default)}(${n}, ${o})`):e.fail((0,kC._)`${a} !== ${n}`)}};i_.default=Fme;var s_={};Object.defineProperty(s_,"__esModule",{value:!0});const Rf=Jt,zme=dn,Vme=ph,Bme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Rf._)`{allowedValues: ${e}}`},Ume={keyword:"enum",schemaType:"array",$data:!0,error:Bme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,zme.useFunc)(t,Vme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Rf.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Rf._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Rf._)`${c()}(${n}, ${m}[${b}])`:(0,Rf._)`${n} === ${v}`}}};s_.default=Ume;Object.defineProperty(JS,"__esModule",{value:!0});const Wme=ZS,Hme=XS,Gme=QS,qme=t_,Yme=n_,Kme=r_,Jme=o_,Zme=a_,Xme=i_,Qme=s_,eve=[Wme.default,Hme.default,Gme.default,qme.default,Yme.default,Kme.default,Jme.default,Zme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xme.default,Qme.default];JS.default=eve;var l_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Jt,OC=dn,tve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},nve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,OC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Z5(e,r)}};function Z5(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,OC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:OC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=Z5;Cd.default=nve;var c_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const YR=Jt,Fv=dn,rve=Qt,ove={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return X5(e,"additionalItems",t);n.items=!0,!(0,Fv.alwaysValidSchema)(n,t)&&e.ok((0,rve.validateArray)(e))}};function X5(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Fv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,YR._)`${a}.length`);n.forEach((f,p)=>{(0,Fv.alwaysValidSchema)(s,f)||(r.if((0,YR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Fv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=X5;$d.default=ove;Object.defineProperty(c_,"__esModule",{value:!0});const ave=$d,ive={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ave.validateTuple)(e,"items")};c_.default=ive;var u_={};Object.defineProperty(u_,"__esModule",{value:!0});const KR=Jt,sve=dn,lve=Qt,cve=Cd,uve={message:({params:{len:e}})=>(0,KR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KR._)`{limit: ${e}}`},dve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:uve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,sve.alwaysValidSchema)(r,t)&&(o?(0,cve.validateAdditionalItems)(e,o):e.ok((0,lve.validateArray)(e)))}};u_.default=dve;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});const fa=Jt,ev=dn,fve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},pve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,ev.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,ev.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ev.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:ev.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};d_.default=pve;var Q5={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, + missingProperty: ${f}, + depsCount: ${c}, + deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(Q5);var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const ej=Jt,hve=dn,mve={message:"property name must be valid",params:({params:e})=>(0,ej._)`{propertyName: ${e.propertyName}}`},vve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,hve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,ej.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};f_.default=vve;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});const tv=Qt,Ia=Jt,gve=Ti,nv=dn,yve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},bve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,nv.alwaysValidSchema)(i,n))return;const c=(0,tv.allSchemaProperties)(r.properties),u=(0,tv.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${gve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,nv.schemaRefOrVal)(i,r.properties,"properties");g=(0,tv.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,tv.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,nv.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:nv.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Uy.default=bve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const xve=Ga,JR=Qt,kx=dn,ZR=Uy,wve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&ZR.default.code(new xve.KeywordCxt(a,ZR.default,"additionalProperties"));const i=(0,JR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=kx.mergeEvaluated.props(t,(0,kx.toHash)(i),a.props));const s=i.filter(f=>!(0,kx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,JR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};p_.default=wve;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const XR=Qt,rv=Jt,QR=dn,eD=dn,Cve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,XR.allSchemaProperties)(n),l=s.filter(v=>(0,QR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof rv.Name)&&(a.props=(0,eD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,QR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,rv._)`${(0,XR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:eD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,rv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,rv.not)(u),()=>t.break())})})}}};h_.default=Cve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const $ve=dn,Sve={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,$ve.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};m_.default=Sve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const _ve=Qt,Eve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_ve.validateUnion,error:{message:"must match a schema in anyOf"}};v_.default=Eve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const zv=Jt,Pve=dn,Tve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,zv._)`{passingSchemas: ${e.passing}}`},kve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Tve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Pve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,zv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,zv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,zv.Name)})})}}};g_.default=kve;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Ove=dn,Rve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ove.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};y_.default=Rve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Lg=Jt,tj=dn,Dve={message:({params:e})=>(0,Lg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lg._)`{failingKeyword: ${e.ifClause}}`},Mve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,tj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=tD(r,"then"),a=tD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Lg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Lg._)`${u}`):e.setParams({ifClause:u})}}}};function tD(e,t){const n=e.schema[t];return n!==void 0&&!(0,tj.alwaysValidSchema)(e,n)}b_.default=Mve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Ive.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};x_.default=Ave;Object.defineProperty(l_,"__esModule",{value:!0});const Nve=Cd,jve=c_,Lve=$d,Fve=u_,zve=d_,Vve=Q5,Bve=f_,Uve=Uy,Wve=p_,Hve=h_,Gve=m_,qve=v_,Yve=g_,Kve=y_,Jve=b_,Zve=x_;function Xve(e=!1){const t=[Gve.default,qve.default,Yve.default,Kve.default,Jve.default,Zve.default,Bve.default,Uve.default,Vve.default,Wve.default,Hve.default];return e?t.push(jve.default,Fve.default):t.push(Nve.default,Lve.default),t.push(zve.default),t}l_.default=Xve;var w_={},C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ir=Jt,Qve={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},ege={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Qve,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};C_.default=ege;Object.defineProperty(w_,"__esModule",{value:!0});const tge=C_,nge=[tge.default];w_.default=nge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(qS,"__esModule",{value:!0});const rge=YS,oge=JS,age=l_,ige=w_,nD=Yu,sge=[rge.default,oge.default,(0,age.default)(),ige.default,nD.metadataVocabulary,nD.contentVocabulary];qS.default=sge;var $_={},nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(nj);Object.defineProperty($_,"__esModule",{value:!0});const au=Jt,RC=nj,rD=bo,lge=dn,cge={message:({params:{discrError:e,tagName:t}})=>e===RC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},uge={keyword:"discriminator",type:"object",schemaType:"object",error:cge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:RC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:RC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ga;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=dh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=fh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(_C,_C.exports);var rj=_C.exports;const yge=Vt(rj);var DC={exports:{}},oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(oj);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rj,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(aj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=oj,r=aj,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(DC,DC.exports);var bge=DC.exports;const xge=Vt(bge),Vv="additionalProperties",Bv="required",wge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Cge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Vv)},a=this.findOption(r)(Bv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=wge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const ij=(e,t={})=>{const n=o=>a=>{switch(a){case Vv:return Object.prototype.hasOwnProperty.call(t,Vv)?t[Vv]:!0;case Bv:return Object.prototype.hasOwnProperty.call(t,Bv)?t[Bv](o):Object.keys(o);default:return}};return new Cge(n).schemaObject(e)};var $i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})($i||($i={}));const sj=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",$ge=e=>e.type==="Group",lj=e=>e.elements!==void 0,Sge=e=>!!e&&typeof e=="object",_ge=e=>Sge(e)&&typeof e.scope=="string",Ege=e=>!!e&&typeof e=="object",cj=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},uj=(e,t)=>{cj(e,t,-1)},dj=(e,t)=>{cj(e,t,1)},Pge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},oD=(e={})=>tn({},Pge,e),aD=(e=oD(),t)=>{switch(t.type){case K_:return oD(t.config);default:return e}},Bi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Tge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},MC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),iD=(e,t)=>{if(t){if(kge(t.options))return t.options.ajv;if(t.options!==void 0&&Fq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?MC(e.ajv,t.schema):e.ajv:Aye()},kge=e=>e?e.ajv!==void 0:!1,sD=(e,t)=>t&&Oge(t.options)?t.options.validationMode:e.validationMode,Oge=e=>e?e.validationMode!==void 0:!1,Rge=e=>e?e.additionalErrors!==void 0:!1,lD=(e,t)=>t&&Rge(t.options)?t.options.additionalErrors:e.additionalErrors,cD=(e=Tge,t)=>{switch(t.type){case W_:{const n=iD(e,t),r=sD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data),i=lD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case H_:{const n=iD(e,t),r=sD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data)):e.data!==t.data&&(a=Bi(o,t.data));const i=lD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:b5(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case G_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Bi(r,e.data);return{...e,validator:r,errors:o}}case J_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?MC(e.ajv,t.schema).compile(t.schema):e.validator,o=Bi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Z_:return{...e,uischema:t.uischema};case q_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(aR(e.data)),r=Bi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(aR(n)),o=ude(t.path,r,e.data===void 0?{}:e.data),a=Bi(e.validator,o);return{...e,data:o,errors:a}}}case Y_:return{...e,errors:t.errors};case X_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Bi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=MC(e.ajv,e.schema).compile(e.schema),r=Bi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Dge=e=>fr(e,"data"),Mge=e=>fr(e,"schema"),Ige=e=>fr(e,"uischema"),Age=e=>fr(e,"ajv"),Nge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Fg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Nge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Gy(t),t},S_=(e,t,n)=>r=>{const o=Mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Fg(a));return Mg(r,a=>{if(Lge.indexOf(a.keyword)!==-1&&!Bg(a.parentSchema))return!1;const i=Fg(a);let s=n(i);const l=a.parentSchema;return s&&!jge(l)&&!Bg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&b5(l,t)),s})},jge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Lge=["additionalProperties","allOf","anyOf","oneOf"],fj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return S_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Fge=(e,t)=>fj(e,t,n=>n===e),zge=(e,t)=>fj(e,t,n=>n.startsWith(e+".")),__=(e,t)=>sj(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Vge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Si=(e,t,n)=>__(e,t)??Vge(n),zg=(e,t,n,r)=>`${Si(e,t,n)}.${r}`,Bge=(e,t)=>`${e}.${t}`,E_=(e,t)=>t,P_=(e,t,n)=>{var s;const r=zg(e.parentSchema,n,Fg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},T_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=zg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return F_(e.map(i=>t(i,n,o)))},Wy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!sj(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=__(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},pj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Bge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Wr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Wr||(Wr={}));const hj=[{key:Wr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Wr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Wr.removeTooltip,default:()=>"Delete"},{key:Wr.removeAriaLabel,default:()=>"Delete button"},{key:Wr.upAriaLabel,default:()=>"Move item up"},{key:Wr.up,default:()=>"Up"},{key:Wr.down,default:()=>"Down"},{key:Wr.downAriaLabel,default:()=>"Move item down"},{key:Wr.noDataMessage,default:()=>"No data"},{key:Wr.noSelection,default:()=>"No selection"},{key:Wr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Wr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Wr.deleteDialogAccept,default:()=>"Yes"},{key:Wr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:E_,translateError:P_},uD=(e=Cu,t)=>{switch(t.type){case tE:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case eE:return{...e,translate:t.translator??E_,translateError:t.errorTranslator??P_};case Q_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Uge=e=>e===void 0?E_:e.translate,Wge=e=>e===void 0?P_:e.translateError,Ku=-1,Ya=e=>!Mt(e)&&e.scope!==void 0,Yr=e=>(t,n,r)=>{if(Mt(t)||!Ya(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},k_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ya(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ka=e=>Yr(t=>!Mt(t)&&ol(t,e)),Hy=e=>Yr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,us=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Hge=e=>t=>Mt(e)||!Ya(t)?!1:Xde(t.scope,e),Gge=e=>t=>{if(Mt(e)||!Ya(t))return!1;const n=t.scope;return!Mt(n)&&Mde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,qge=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},mj=$n(_n("Control"),Ka("boolean")),Yge=$n(_n("Control"),Ka("object")),vj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),gj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),yj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),O_=$n(_n("Control"),yc(Yr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),bj=$n(_n("Control"),Yr(e=>Bg(e))),xj=$n(_n("Control"),Ka("integer")),wj=$n(_n("Control"),Ka("number")),Cj=$n(_n("Control"),Ka("string")),$j=$n(_n("Control"),us("multi",!0)),Sj=$n(_n("Control"),yc(Hy("date"),us("format","date"))),_j=$n(_n("Control"),yc(Hy("time"),us("format","time"))),Ej=$n(_n("Control"),yc(Hy("date-time"),us("format","date-time"))),Pj=$n(Yr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),R_=$n(_n("Control"),Pj),Df=(e,t,n)=>{if(VN(e))return SC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?SC(_fe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},D_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Bg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},Kge=R_,Tj=$n(_n("Control"),Yr((e,t)=>Ju(e).length!==0&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Ju(n);return r.length===1&&w5(["integer","number","boolean","string"],r[0])})),kj=$n(_n("Control"),yc(Ka("number"),Ka("integer")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),us("slider",!0)),Jge=$n(_n("Control"),Ka("integer"),us("format",!0)),Oj=e=>e.type==="Categorization",Rj=e=>e.type==="Category",M_=e=>Mt(e.elements)?!1:e.elements.map(t=>Oj(t)?M_(t):Rj(t)).reduce((t,n)=>t&&n,!0),Zge=e=>M_(e),Xge=e=>(t,n,r)=>!e(t,n,r);var Qge=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Ya,schemaMatches:Yr,schemaSubPathMatches:k_,schemaTypeIs:Ka,formatIs:Hy,uiTypeIs:_n,optionIs:us,scopeEndsWith:Hge,scopeEndIs:Gge,and:$n,or:yc,rankWith:vn,withIncreasedRank:qge,isBooleanControl:mj,isObjectControl:Yge,isAllOfControl:vj,isAnyOfControl:gj,isOneOfControl:yj,isEnumControl:O_,isOneOfEnumControl:bj,isIntegerControl:xj,isNumberControl:wj,isStringControl:Cj,isMultiLineControl:$j,isDateControl:Sj,isTimeControl:_j,isDateTimeControl:Ej,isObjectArray:Pj,isObjectArrayControl:R_,isObjectArrayWithNesting:D_,isArrayObjectControl:Kge,isPrimitiveArrayControl:Tj,isRangeControl:kj,isNumberFormatControl:Jge,isCategorization:Oj,isCategory:Rj,hasCategory:M_,categorizationHasCategory:Zge,not:Xge});const Dj=e=>(t,n,r)=>{const o=Ay(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},hh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=Dj(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},Mj=(e,t)=>n=>Fge(e,t)(n.jsonforms.core),Ij=(e,t)=>n=>zge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>Uge(fr(e,"jsonforms.i18n")),I_=()=>e=>Wge(fr(e,"jsonforms.i18n")),mh=e=>Dge(fr(e,"jsonforms.core")),Vg=e=>Mge(fr(e,"jsonforms.core")),eye=e=>Ige(fr(e,"jsonforms.core")),Sd=e=>Age(fr(e,"jsonforms.core")),A_=e=>fr(e,"jsonforms.renderers"),N_=e=>fr(e,"jsonforms.cells"),tye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},Aj=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Gy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},Nj=(e,t)=>{if(!_ge(e))return t??"";const n=Aj(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Gy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),IC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),nye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Gy);return Uv(e,r,n)},Uv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(nye(r))return Uv(e,o,n);const a=fr(e,r),i=Uv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Uv(c,[r,...o],n),s)break;return s}},rye=e=>e.type==="OR",oye=e=>e.type==="AND",aye=e=>e.type==="LEAF",iye=e=>Ppe(e,"schema"),dD=(e,t)=>Nj(e,t),AC=(e,t,n,r)=>{if(oye(t))return t.conditions.reduce((o,a)=>o&&AC(e,a,n,r),!0);if(rye(t))return t.conditions.reduce((o,a)=>o||AC(e,a,n,r),!1);if(aye(t))return IC(e,dD(t,n))===t.expectedValue;if(iye(t)){const o=IC(e,dD(t,n));return r.validate(t.schema,o)}else return!0},jj=(e,t,n,r)=>{const o=e.rule.condition;return AC(t,o,n,r)},sye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.HIDE:return!o;case $i.SHOW:return o;default:return!0}},lye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.DISABLE:return!o;case $i.ENABLE:return o;default:return!0}},j_=e=>!!(e.rule&&(e.rule.effect===$i.SHOW||e.rule.effect===$i.HIDE)),cye=e=>!!(e.rule&&(e.rule.effect===$i.ENABLE||e.rule.effect===$i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?sye(e,t,n,r):!0,uye=(e,t,n=void 0,r)=>e.rule?lye(e,t,n,r):!0,L_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&cye(n)?uye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},Lj=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),F_=e=>e==null?"":e.join(` +`),ol=(e,t)=>w5(Ju(e),t),Ju=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(VN(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=FS(e.allOf,n=>Ju(n).length!==0);if(t)return Ju(t)}return[]},Po={schema:$a,data:IC},dye=e=>Aj(e.scope).join("."),sr={compose:bc,fromScoped:dye},Ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Gy(n.substr(n.lastIndexOf("/")+1));return Ny(r)}return""},Fj=(e,t)=>{const n=e.label;if(typeof n=="boolean")return ov(Ox(e,t),n);if(typeof n=="string")return ov(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return ov(r,o)}return ov(Ox(e,t),!0)},ov=(e,t)=>({text:e,show:t}),fye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},qy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Yy=(e,t)=>e&&!t,is=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Dp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},z_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=mh(e),o=Nj(n,t.path),a=t.visible===void 0||j_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Vg(e),c=i.scope!==void 0&&fye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=Mj(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=Fj(n,u),v=b.show?b.text:"",x=rc(e),g=L_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=I_()(e),_=Si(y,n,o),S=w(zg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(zg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=T_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},pye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),hye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},mye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},vye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return z_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Dp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))}));return{...n,options:o}},gye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?FS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(mh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},V_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},yye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=V_(e,t),l=Po.schema(r,"items",s.rootSchema),c=Ij(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||A_(e),cells:t.cells||N_(e),translations:pj(u,hj,a,i)}},bye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(uj(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(dj(r,n),r)))}}),xye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),zj={visible:!0,enabled:!0,path:"",direction:"column"},wye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":zj.direction,Cye=(e,t)=>{const n=mh(e),{uischema:r}=t,o=t.visible===void 0||j_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=L_(e,t,r,void 0,n,i),l=Ca()(e),c=Ege(r)?Wy(r,l):void 0;return{...zj,renderers:t.renderers||A_(e),cells:t.cells||N_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??wye(r),config:i,label:c}},$ye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Vg(e),rootSchema:Vg(e),uischema:t.uischema||eye(e),path:t.path,enabled:t.enabled,config:rc(e)}),B_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:tye(e)}},Sye=(e,t)=>B_(e,t,"allOf"),_ye=(e,t)=>B_(e,t,"anyOf"),Eye=(e,t)=>B_(e,t,"oneOf"),Pye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=V_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=T_(Ij(n,c)(e),I_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:pj(u,hj,i,s)}},Tye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||j_(n)?_d(t.uischema,mh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=__(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||A_(e),cells:t.cells||N_(e)}},Ky=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=mh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Vg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=L_(e,t,a,r||u,l,f);const m=Ca()(e),b=I_()(e),v=T_(Mj(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},kye=(e,t)=>{const n=Ky(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Oye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},Rye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},Dye=(e,t,n)=>e.title?e.title:n+"-"+t,Jy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:hh(a,l,r.scope,o,void 0,r,t),label:Dye(i,s,n)}}),U_=new Set,Vj=(e,t)=>t<=1?e:e+t.toString(),Mye=(e,t)=>{const n=Vj(e,t);return!U_.has(n)},Bj=e=>{e===void 0&&(e="undefined");let t=0;for(;!Mye(e,t);)t++;const n=Vj(e,t);return U_.add(n),n},Uj=e=>U_.delete(e),Iye=e=>{if(e.properties)return FS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Bg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Aye=e=>{const t=new yge({allErrors:!0,verbose:!0,strict:!1,...e});return xge(t),t},Wj=e=>({type:e,elements:[]}),Wv=e=>({type:"Control",scope:e}),Nye=(e,t)=>{if(!Mt(e)&&!lj(e)){const n=Wj(t);return n.elements.push(e),n}return e},jye=(e,t)=>{if(!Mt(t)){const n=Ny(t);if($ge(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Lye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),NC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return NC($a(a,e.$ref,a),t,n,r,o,a);if(Lye(e)){const s=Wv(n);return t.push(s),s}const i=Ju(e);if(i.length===0)return null;if(i.length>1){const s=Wv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=Wj(o);if(t.push(s),e.properties&&qZ(e.properties).length>1&&jye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),NC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Wv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Hj=(e,t="VerticalLayout",n="#",r=e)=>Nye(NC(e,[],n,"",t,r),t),ac={jsonSchema:ij,uiSchema:Hj,controlElement:Wv},W_="jsonforms/INIT",H_="jsonforms/UPDATE_CORE",G_="jsonforms/SET_AJV",q_="jsonforms/UPDATE",Y_="jsonforms/UPDATE_ERRORS",Fye="jsonforms/VALIDATE",Gj="jsonforms/ADD_RENDERER",qj="jsonforms/REMOVE_RENDERER",Yj="jsonforms/ADD_CELL",Kj="jsonforms/REMOVE_CELL",K_="jsonforms/SET_CONFIG",Jj="jsonforms/ADD_UI_SCHEMA",Zj="jsonforms/REMOVE_UI_SCHEMA",J_="jsonforms/SET_SCHEMA",Z_="jsonforms/SET_UISCHEMA",X_="jsonforms/SET_VALIDATION_MODE",Q_="jsonforms/SET_LOCALE",eE="jsonforms/SET_TRANSLATOR",tE="jsonforms/UPDATE_I18N",Xj="jsonforms/ADD_DEFAULT_DATA",Qj="jsonforms/REMOVE_DEFAULT_DATA",zye=(e,t=ij(e),n,r)=>({type:W_,data:e,schema:t,uischema:typeof n=="object"?n:Hj(t),options:r}),Vye=(e,t,n,r)=>({type:H_,data:e,schema:t,uischema:n,options:r}),Bye=(e,t)=>({type:Xj,schemaPath:e,data:t}),Uye=e=>({type:Qj,schemaPath:e}),Wye=e=>({type:G_,ajv:e}),Va=(e,t)=>({type:q_,path:e,updater:t}),Hye=e=>({type:Y_,errors:e}),Gye=(e,t)=>({type:Gj,tester:e,renderer:t}),qye=(e,t)=>({type:Yj,tester:e,cell:t}),Yye=(e,t)=>({type:Kj,tester:e,cell:t}),Kye=(e,t)=>({type:qj,tester:e,renderer:t}),Jye=e=>({type:K_,config:e}),Zye=e=>({type:X_,validationMode:e}),Xye=(e,t)=>({type:Jj,tester:e,uischema:t}),Qye=e=>({type:Zj,tester:e}),e0e=e=>({type:Q_,locale:e}),t0e=e=>({type:J_,schema:e}),n0e=(e,t)=>({type:eE,translator:e,errorTranslator:t}),r0e=(e,t,n)=>({type:tE,locale:e,translator:t,errorTranslator:n}),o0e=e=>({type:Z_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:W_,UPDATE_CORE:H_,SET_AJV:G_,UPDATE_DATA:q_,UPDATE_ERRORS:Y_,VALIDATE:Fye,ADD_RENDERER:Gj,REMOVE_RENDERER:qj,ADD_CELL:Yj,REMOVE_CELL:Kj,SET_CONFIG:K_,ADD_UI_SCHEMA:Jj,REMOVE_UI_SCHEMA:Zj,SET_SCHEMA:J_,SET_UISCHEMA:Z_,SET_VALIDATION_MODE:X_,SET_LOCALE:Q_,SET_TRANSLATOR:eE,UPDATE_I18N:tE,ADD_DEFAULT_DATA:Xj,REMOVE_DEFAULT_DATA:Qj,init:zye,updateCore:Vye,registerDefaultData:Bye,unregisterDefaultData:Uye,setAjv:Wye,update:Va,updateErrors:Hye,registerRenderer:Gye,registerCell:qye,unregisterCell:Yye,unregisterRenderer:Kye,setConfig:Jye,setValidationMode:Zye,registerUISchema:Xye,unregisterUISchema:Qye,setLocale:e0e,setSchema:t0e,setTranslator:n0e,updateI18n:r0e,setUISchema:o0e});const Ug={createLabelDescriptionFrom:Fj,convertToValidClassName:Lj};var a0e=lo,i0e=function(){return a0e.Date.now()},s0e=i0e,l0e=ta,Rx=s0e,fD=p5,c0e="Expected a function",u0e=Math.max,d0e=Math.min;function f0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(c0e);t=fD(t)||0,l0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?u0e(fD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?d0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Rx();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Rx())}function _(){var S=Rx(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var p0e=f0e;const e6=Vt(p0e);class t6 extends M.Component{constructor(t){super(t)}}class n6 extends t6{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class r6 extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const h0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},o6=M.createContext({core:h0e,renderers:[]}),m0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},v0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(cD,void 0,()=>cD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(aD,void 0,()=>aD(void 0,Yc.setConfig(t.config)));m0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(uD,void 0,()=>{var _,S,E;return uD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(e6((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(o6.Provider,{value:v},e)},xc=()=>$.useContext(o6),g0e=(e,t)=>Pye({jsonforms:{...e}},t),y0e=(e,t)=>yye({jsonforms:{...e}},t),b0e=(e,t)=>Cye({jsonforms:{...e}},t),x0e=(e,t)=>Ed({jsonforms:{...e}},t),w0e=(e,t)=>{var o;const n=hye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},C0e=(e,t)=>{var o;const n=mye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},$0e=(e,t)=>{var o;const n=vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},S0e=(e,t)=>V_({jsonforms:{...e}},t),_0e=(e,t)=>({...Sye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>pye(e),[e]),E0e=(e,t)=>{const n=_ye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},P0e=(e,t)=>{const n=Eye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},T0e=(e,t)=>$ye({jsonforms:{...e}},t),a6=e=>({...Do(e),...$.useMemo(()=>bye(e),[e])}),k0e=(e,t)=>gye({jsonforms:{...e}},t),O0e=(e,t)=>Ky({jsonforms:{...e}},t),R0e=(e,t)=>{var o;const n=Oye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},D0e=(e,t)=>{var o;const n=Rye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>kye({jsonforms:{...e}},t),I0e=e=>({...Do(e),...$.useMemo(()=>xye(e),[e])}),A0e=(e,t)=>Tye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},N0e=e=>function({ctx:n,props:r}){const o=T0e(n,r);return M.createElement(e,Object.assign({},r,o))},j0e=e=>function({ctx:n,props:r}){const o=x0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},L0e=e=>function({ctx:n,props:r}){const o=b0e(n,r);return M.createElement(e,Object.assign({},r,o))},F0e=e=>function({ctx:n,props:r}){const o=P0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},z0e=e=>function({ctx:n,props:r}){const o=E0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},V0e=e=>function({ctx:n,props:r}){const o=_0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},B0e=e=>function({ctx:n,props:r}){const o=S0e(n,r);return M.createElement(e,Object.assign({},r,o))},U0e=e=>function({ctx:n,props:r}){const o=g0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},W0e=e=>function({ctx:n,props:r}){const o=y0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},H0e=e=>function({ctx:n,props:r}){const o=k0e(n,r);return M.createElement(e,Object.assign({},r,o))},G0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},q0e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Y0e=e=>function({ctx:n,props:r}){const o=R0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},K0e=e=>function({ctx:n,props:r}){const o=w0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},J0e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Z0e=e=>function({ctx:n,props:r}){const o=C0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},X0e=e=>function({ctx:n,props:r}){const o=$0e(n,r),a=I0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},i6=(e,t=!0)=>_r(N0e(t?M.memo(e):e)),co=(e,t=!0)=>_r(j0e(t?M.memo(e):e)),ds=(e,t=!0)=>_r(L0e(t?M.memo(e):e)),e1e=(e,t=!0)=>_r(F0e(t?M.memo(e):e)),s6=(e,t=!0)=>_r(z0e(t?M.memo(e):e)),t1e=(e,t=!0)=>_r(V0e(t?M.memo(e):e)),n1e=(e,t=!0)=>_r(B0e(t?M.memo(e):e)),Zy=(e,t=!0)=>_r(U0e(t?M.memo(e):e)),l6=(e,t=!0)=>_r(W0e(t?M.memo(e):e)),r1e=(e,t=!0)=>_r(H0e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(G0e(t?M.memo(e):e)),o1e=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),c6=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),nE=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),a1e=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),rE=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),i1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),u6=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class d6 extends M.Component{constructor(t){super(t),this.state={id:Ya(t.uischema)?Bj(t.uischema.scope):void 0}}componentWillUnmount(){Ya(this.props.uischema)&&Uj(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(s1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const s1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>Ay(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(r6,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class l1e extends d6{constructor(t){super(t)}}const ko=i6(d6);i6(l1e);const f6=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(v0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},c1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>Ay(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(r6,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=o1e(c1e),u1e={black:"#000",white:"#fff"},Mp=u1e,d1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=d1e,f1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jc=f1e,p1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zc=p1e,h1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=h1e,m1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=m1e,v1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=v1e,g1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y1e=g1e;function Gi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function p6(e){if(!Gi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=p6(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Gi(e)&&Gi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gi(t[o])&&o in e&&Gi(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Gi(t[o])?p6(t[o]):t[o]:r[o]=t[o])}),r}var h6={exports:{}},b1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x1e=b1e,w1e=x1e;function m6(){}function v6(){}v6.resetWarningCache=m6;var C1e=function(){function e(r,o,a,i,s,l){if(l!==w1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v6,resetWarningCache:m6};return n.PropTypes=n,n};h6.exports=C1e();var $1e=h6.exports;const L=Vt($1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function vh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function _1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function _i(e){return Vn(e).defaultView||window}function E1e(e,t){return()=>null}function Ip(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const P1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Jn=P1e;let pD=0;function T1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(pD+=1,n(`mui-${pD}`))},[t]),r}const hD=lp["useId".toString()];function Za(e){if(hD!==void 0){const t=hD();return e??t}return T1e(e)}function k1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Jn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ip(n,t)})},e)}let Xy=!0,jC=!1,mD;const O1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function R1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function D1e(e){e.metaKey||e.altKey||e.ctrlKey||(Xy=!0)}function Dx(){Xy=!1}function M1e(){this.visibilityState==="hidden"&&jC&&(Xy=!0)}function I1e(e){e.addEventListener("keydown",D1e,!0),e.addEventListener("mousedown",Dx,!0),e.addEventListener("pointerdown",Dx,!0),e.addEventListener("touchstart",Dx,!0),e.addEventListener("visibilitychange",M1e,!0)}function A1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xy||R1e(t)}function Qy(){const e=$.useCallback(o=>{o!=null&&I1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(jC=!0,window.clearTimeout(mD),mD=window.setTimeout(()=>{jC=!1},100),t.current=!1,!0):!1}function r(o){return A1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function g6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function y6(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function N1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(y6()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const j1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},oE=j1e,L1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},F1e=L1e;function aE(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=aE(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const vD=e=>e,z1e=()=>{let e=vD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vD}}},V1e=z1e(),b6=V1e,B1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=B1e[t];return r?`${n}-${r}`:`${b6.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const e0="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function x6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var U1e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W1e=x6(function(e){return U1e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function H1e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ir(Td,--Oo):0,Zu--,ur===10&&(Zu=1,n0--),ur}function Yo(){return ur=Oo2||Np(ur)>3?"":" "}function obe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gh(e,Hv()+(t<6&&bi()==32&&Yo()==32))}function FC(e){for(;Yo();)switch(ur){case e:return Oo;case 34:case 39:e!==34&&e!==39&&FC(ur);break;case 40:e===41&&FC(e);break;case 92:Yo();break}return Oo}function abe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&bi()===47)break;return"/*"+gh(t,Oo-1)+"*"+t0(e===47?e:Yo())}function ibe(e){for(;!Np(bi());)Yo();return gh(e,Oo)}function sbe(e){return E6(qv("",null,null,null,[""],e=_6(e),0,[0],e))}function qv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ir(E,f-1)==58){LC(E+=mn(Gv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Gv(y);break;case 9:case 10:case 13:case 32:E+=rbe(b);break;case 92:E+=obe(Hv()-1,7);continue;case 47:switch(bi()){case 42:case 47:av(lbe(abe(Yo(),Hv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=ci(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&ci(E)-f&&av(m>32?yD(E+";",r,n,f-1):yD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(av(S=gD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)qv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ir(E,3)===110?100:p){case 100:case 108:case 109:case 115:qv(e,S,S,r&&av(gD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:qv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+ci(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&nbe()==125)continue}switch(E+=t0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ci(E)-1)*g,g=1;break;case 64:bi()===45&&(E+=Gv(Yo())),p=bi(),u=f=ci(w=E+=ibe(Hv())),y++;break;case 45:b===45&&ci(E)==2&&(v=0)}}return a}function gD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=lE(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return r0(e,t,n,o===0?iE:s,l,c,u)}function lbe(e,t,n){return r0(e,t,n,w6,t0(tbe()),Ap(e,2,-2),0)}function yD(e,t,n,r){return r0(e,t,n,sE,Ap(e,0,r),Ap(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=lE(e),o=0;o6)switch(Ir(e,t+1)){case 109:if(Ir(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Hg+(Ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LC(e,"stretch")?P6(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ir(e,t+1)!==115)break;case 6444:switch(Ir(e,ci(e)-3-(~LC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ir(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(Ir(e,t+11)){case 114:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Ur+e+e}return e}var gbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sE:t.return=P6(t.value,t.length);break;case C6:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case iE:if(t.length)return ebe(t.props,function(a){switch(Q1e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Hg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Hg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Ur+"input-$1")]})],o)}return""})}},ybe=[gbe],bbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||ybe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dbe=/[A-Z]|^ms/g,Mbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I6=function(t){return t.charCodeAt(1)===45},xD=function(t){return t!=null&&typeof t!="boolean"},Mx=x6(function(e){return I6(e)?e:e.replace(Dbe,"-$&").toLowerCase()}),wD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mbe,function(r,o,a){return ui={name:o,styles:a,next:ui},o})}return Rbe[t]!==1&&!I6(t)&&typeof n=="number"&&n!==0?n+"px":n};function jp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ui={name:n.name,styles:n.styles,next:ui},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ui={name:r.name,styles:r.styles,next:ui},r=r.next;var o=n.styles+";";return o}return Ibe(e,t,n)}case"function":{if(e!==void 0){var a=ui,i=n(e);return ui=a,jp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Ibe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Fbe:zbe},_D=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Vbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return D6(n,r,o),Nbe(function(){return M6(n,r,o)}),null},Bbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=_D(t,n,r),l=s||SD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Wbe(o)?n:o):t;return O.jsx(jbe,{styles:r})}/** + * @mui/styled-engine v5.14.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Gbe(e,t){return zC(e,t)}const qbe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ybe=["values","unit","step"],Kbe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function Jbe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Ybe),a=Kbe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${mE[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ED;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ED;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mE).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function L6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function F6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Qbe(e,...t){const n=L6(e),r=[n,...t].reduce((o,a)=>Gr(o,a),{});return F6(Object.keys(n),r)}function exe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||exe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function h0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=h0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=h0(l,r)||{};return Ro(i,s,f=>{let p=Gg(c,o,f);return f===p&&typeof f=="string"&&(p=Gg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function txe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nxe={m:"margin",p:"padding"},rxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oxe=txe(e=>{if(e.length>2)if(PD[e])e=PD[e];else return[e];const[t,n]=e.split(""),r=nxe[t],o=rxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...gE];function yh(e,t,n,r){var o;const a=(o=h0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function yE(e){return yh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function axe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function ixe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=oxe(n),a=axe(o,r),i=e[n];return Ro(e,i,a)}function z6(e,t){const n=yE(e.theme);return Object.keys(e).map(r=>ixe(e,t,r,n)).reduce(Zf,{})}function Xn(e){return z6(e,vE)}Xn.propTypes={};Xn.filterProps=vE;function Qn(e){return z6(e,gE)}Qn.propTypes={};Qn.filterProps=gE;function sxe(e=8){if(e.mui)return e;const t=yE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function m0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Zf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function hi(e){return typeof e!="number"?e:`${e}px solid`}const lxe=bn({prop:"border",themeKey:"borders",transform:hi}),cxe=bn({prop:"borderTop",themeKey:"borders",transform:hi}),uxe=bn({prop:"borderRight",themeKey:"borders",transform:hi}),dxe=bn({prop:"borderBottom",themeKey:"borders",transform:hi}),fxe=bn({prop:"borderLeft",themeKey:"borders",transform:hi}),pxe=bn({prop:"borderColor",themeKey:"palette"}),hxe=bn({prop:"borderTopColor",themeKey:"palette"}),mxe=bn({prop:"borderRightColor",themeKey:"palette"}),vxe=bn({prop:"borderBottomColor",themeKey:"palette"}),gxe=bn({prop:"borderLeftColor",themeKey:"palette"}),v0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Ro(e,e.borderRadius,n)}return null};v0.propTypes={};v0.filterProps=["borderRadius"];m0(lxe,cxe,uxe,dxe,fxe,pxe,hxe,mxe,vxe,gxe,v0);const g0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Ro(e,e.gap,n)}return null};g0.propTypes={};g0.filterProps=["gap"];const y0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Ro(e,e.columnGap,n)}return null};y0.propTypes={};y0.filterProps=["columnGap"];const b0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Ro(e,e.rowGap,n)}return null};b0.propTypes={};b0.filterProps=["rowGap"];const yxe=bn({prop:"gridColumn"}),bxe=bn({prop:"gridRow"}),xxe=bn({prop:"gridAutoFlow"}),wxe=bn({prop:"gridAutoColumns"}),Cxe=bn({prop:"gridAutoRows"}),$xe=bn({prop:"gridTemplateColumns"}),Sxe=bn({prop:"gridTemplateRows"}),_xe=bn({prop:"gridTemplateAreas"}),Exe=bn({prop:"gridArea"});m0(g0,y0,b0,yxe,bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe);function Iu(e,t){return t==="grey"?t:e}const Pxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Txe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),kxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});m0(Pxe,Txe,kxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Oxe=bn({prop:"width",transform:Uo}),bE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||mE[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Ro(e,e.maxWidth,t)}return null};bE.filterProps=["maxWidth"];const Rxe=bn({prop:"minWidth",transform:Uo}),Dxe=bn({prop:"height",transform:Uo}),Mxe=bn({prop:"maxHeight",transform:Uo}),Ixe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Axe=bn({prop:"boxSizing"});m0(Oxe,bE,Rxe,Dxe,Mxe,Ixe,Axe);const Nxe={border:{themeKey:"borders",transform:hi},borderTop:{themeKey:"borders",transform:hi},borderRight:{themeKey:"borders",transform:hi},borderBottom:{themeKey:"borders",transform:hi},borderLeft:{themeKey:"borders",transform:hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:g0},rowGap:{style:b0},columnGap:{style:y0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:bE},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},x0=Nxe;function jxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Lxe(e,t){return typeof e=="function"?e(t):e}function Fxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=h0(o,c)||{};return f?f(i):Ro(i,r,b=>{let v=Gg(p,u,b);return b===v&&typeof b=="string"&&(v=Gg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:x0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=L6(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Lxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Zf(p,e(m,b,a,i));else{const v=Ro({theme:a},b,x=>({[m]:x}));jxe(v,b)?p[m]=t({sx:b,theme:a}):p=Zf(p,v)}else p=Zf(p,e(m,b,a,i))}),F6(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const V6=Fxe();V6.filterProps=["sx"];const xE=V6,zxe=["breakpoints","palette","spacing","shape"];function w0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,zxe),s=Jbe(n),l=sxe(o);let c=Gr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},Xbe,a)},i);return c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}function Vxe(e){return Object.keys(e).length===0}function wE(e=null){const t=$.useContext(pE);return!t||Vxe(t)?e:t}const Bxe=w0();function bh(e=Bxe){return wE(e)}function Uxe({styles:e,themeId:t,defaultTheme:n={}}){const r=bh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Hbe,{styles:o})}const Wxe=["sx"],Hxe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:x0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function CE(e){const{sx:t}=e,n=Oe(e,Wxe),{systemProps:r,otherProps:o}=Hxe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Gi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const Gxe=["variant"];function TD(e){return e.length===0}function B6(e){const{variant:t}=e,n=Oe(e,Gxe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=TD(r)?e[o]:Fe(e[o]):r+=`${TD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const qxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yxe(e){return Object.keys(e).length===0}function Kxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Jxe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qg=e=>{const t={};return e&&e.forEach(n=>{const r=B6(n.props);t[r]=n.style}),t},Zxe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),qg(n)},Yg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[B6(a.props)])}),o},Xxe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Yg(e,t,a)};function Xf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qxe=w0(),ewe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yv({defaultTheme:e,theme:t,themeId:n}){return Yxe(t)?e:t[n]||t}function twe(e){return e?(t,n)=>n[e]:null}const kD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Yv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Yg(t,qg(a),a);return[o,...i]}return o};function U6(e={}){const{themeId:t,defaultTheme:n=Qxe,rootShouldForwardProp:r=Xf,slotShouldForwardProp:o=Xf}=e,a=i=>xE(T({},i,{theme:Yv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{qbe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=twe(ewe(c))}=s,m=Oe(s,qxe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Xf;c==="Root"||c==="root"?g=r:c?g=o:Kxe(i)&&(g=void 0);const y=Gbe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>kD({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Gi(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let z=R;return Yg(G,qg(U),U).forEach(Y=>{z=Gr(z,Y)}),z}),F}return R}):[];let E=C;if(Gi(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Yg(F,qg(R),R).forEach(z=>{U=Gr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>kD({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t})),U=Jxe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},R,{theme:F})):V}),p(R,G)}return null}),l&&!b&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t}));return Xxe(R,Zxe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const nwe=U6(),rwe=nwe;function $E(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:aE(t.components[n].defaultProps,r)}function W6({props:e,name:t,defaultTheme:n,themeId:r}){let o=bh(n);return r&&(o=o[r]||o),$E({theme:o,name:t,props:e})}function SE(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function owe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(owe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function C0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function awe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),C0({type:s,values:l})}function OD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(awe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iwe(e,t){const n=OD(e),r=OD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=SE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,C0(e)}function $0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return C0(e)}function S0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return C0(e)}const swe=["component","direction","spacing","divider","children","className","useFlexGap"],lwe=w0(),cwe=rwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function uwe(e){return W6({props:e,name:"MuiStack",defaultTheme:lwe})}function dwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pwe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Ro({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=yE(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Gr(n,Ro({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fwe(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=Qbe(t.breakpoints,n),n};function hwe(e={}){const{createStyledComponent:t=cwe,useThemeProps:n=uwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(pwe);return $.forwardRef(function(l,c){const u=n(l),f=CE(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,swe),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?dwe(x,v):x}))})}function mwe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vwe=["mode","contrastThreshold","tonalOffset"],RD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mp.white,default:Mp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ix={text:{primary:Mp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S0(e.main,o):t==="dark"&&(e.dark=$0(e.main,a)))}function gwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function ywe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[500],light:Jc[300],dark:Jc[700]}}function bwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function xwe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function wwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Cwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function $we(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,vwe),a=e.primary||gwe(t),i=e.secondary||ywe(t),s=e.error||bwe(t),l=e.info||xwe(t),c=e.success||wwe(t),u=e.warning||Cwe(t);function f(v){return iwe(v,Ix.text.primary)>=n?Ix.text.primary:RD.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return DD(v,"light",y,r),DD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Ix,light:RD};return Gr(T({common:T({},Mp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:y1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Swe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _we(e){return Math.round(e*1e5)/1e5}const MD={textTransform:"uppercase"},ID='"Roboto", "Helvetica", "Arial", sans-serif';function Ewe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ID,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,Swe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===ID?{letterSpacing:`${_we(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,MD),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,MD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Pwe=.2,Twe=.14,kwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Pwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Twe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kwe})`].join(",")}const Owe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Rwe=Owe,Dwe=["duration","easing","delay"],Mwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AD(e){return`${Math.round(e)}ms`}function Iwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Awe(e){const t=T({},Mwe,e.easing),n=T({},H6,e.duration);return T({getAutoHeightDuration:Iwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,Dwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:AD(i)} ${s} ${typeof l=="string"?l:AD(l)}`).join(",")}},e,{easing:t,duration:n})}const Nwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jwe=Nwe,Lwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Lwe);if(e.vars)throw new Error(al(18));const s=$we(r),l=w0(e);let c=Gr(l,{mixins:mwe(l.breakpoints,n),palette:s,shadows:Rwe.slice(),typography:Ewe(s,a),transitions:Awe(o),zIndex:T({},jwe)});return c=Gr(c,i),c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}const zwe=Fwe(),_0=zwe;function rr(){const e=bh(_0);return e[e0]||e}function Je({props:e,name:t}){return W6({props:e,name:t,defaultTheme:_0,themeId:e0})}const ra=e=>Xf(e)&&e!=="classes",_E=Xf,Vwe=U6({themeId:e0,defaultTheme:_0,rootShouldForwardProp:ra}),he=Vwe,Bwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ND=Bwe;function Uwe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wwe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hwe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,Uwe,r)},Gwe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),G6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Wwe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Hwe(v);return O.jsxs(Gwe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});G6.muiName="SvgIcon";const VC=G6;function or(e,t){function n(r,o){return O.jsx(VC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=VC.muiName,$.memo($.forwardRef(n))}const qwe={configure:e=>{b6.configure(e)}},Ywe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:Wg,createSvgIcon:or,debounce:vh,deprecatedPropType:_1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:_i,requirePropFactory:E1e,setRef:Ip,unstable_ClassNameGenerator:qwe,unstable_useEnhancedEffect:Jn,unstable_useId:Za,unsupportedProp:k1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Qy},Symbol.toStringTag,{value:"Module"}));var En={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var EE=Symbol.for("react.element"),PE=Symbol.for("react.portal"),E0=Symbol.for("react.fragment"),P0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),O0=Symbol.for("react.context"),Kwe=Symbol.for("react.server_context"),R0=Symbol.for("react.forward_ref"),D0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),I0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Jwe=Symbol.for("react.offscreen"),q6;q6=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EE:switch(e=e.type,e){case E0:case T0:case P0:case D0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case Kwe:case O0:case R0:case A0:case I0:case k0:return e;default:return t}}case PE:return t}}}En.ContextConsumer=O0;En.ContextProvider=k0;En.Element=EE;En.ForwardRef=R0;En.Fragment=E0;En.Lazy=A0;En.Memo=I0;En.Portal=PE;En.Profiler=T0;En.StrictMode=P0;En.Suspense=D0;En.SuspenseList=M0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===O0};En.isContextProvider=function(e){return Pa(e)===k0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EE};En.isForwardRef=function(e){return Pa(e)===R0};En.isFragment=function(e){return Pa(e)===E0};En.isLazy=function(e){return Pa(e)===A0};En.isMemo=function(e){return Pa(e)===I0};En.isPortal=function(e){return Pa(e)===PE};En.isProfiler=function(e){return Pa(e)===T0};En.isStrictMode=function(e){return Pa(e)===P0};En.isSuspense=function(e){return Pa(e)===D0};En.isSuspenseList=function(e){return Pa(e)===M0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===E0||e===T0||e===P0||e===D0||e===M0||e===Jwe||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===I0||e.$$typeof===k0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===q6||e.getModuleId!==void 0)};En.typeOf=Pa;function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BC(e,t)}function TE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BC(e,t)}function Zwe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Xwe(e,t){e.classList?e.classList.add(t):Zwe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Qwe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jD(e.className,t):e.setAttribute("class",jD(e.className&&e.className.baseVal||"",t))}const LD={disabled:!1},Kg=M.createContext(null);var Y6=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",UC="exiting",fs=function(e){TE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=UC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this);i&&Y6(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Of.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||LD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Of.findDOMNode(this);if(!a||LD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:UC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Kg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);fs.contextType=Kg;fs.propTypes={};function tu(){}fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};fs.UNMOUNTED=Mf;fs.EXITED=Al;fs.ENTERING=Nl;fs.ENTERED=iu;fs.EXITING=UC;const N0=fs;var eCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xwe(t,r)})},Ax=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Qwe(t,r)})},kE=function(e){TE(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function lCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const cCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],uCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,lCe,n)},dCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),fCe=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),J6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=H6.standard,TransitionComponent:C=N0}=r,_=Oe(r,cCe),S=T({},r,{orientation:g,collapsedSize:s}),E=uCe(S),k=rr(),I=$.useRef(),R=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>Z=>{if(B){const re=V.current;Z===void 0?B(re):B(re,Z)}},W=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((B,Z)=>{R.current&&G&&(R.current.style.position="absolute"),B.style[z]=U,f&&f(B,Z)}),X=Q((B,Z)=>{const re=W();R.current&&G&&(R.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,Z)}),j=Q((B,Z)=>{B.style[z]="auto",p&&p(B,Z)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const Z=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return O.jsx(C,T({in:u,onEnter:J,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,Z)=>O.jsx(dCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},Z,{children:O.jsx(fCe,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:R,children:O.jsx(pCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});J6.muiSupportAuto=!0;const hCe=J6;function mCe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const vCe=["className","component","elevation","square","variant"],gCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,mCe,o)},yCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",ND(t.elevation))}, ${Tt("#fff",ND(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),bCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,vCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=gCe(u);return O.jsx(yCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),ps=bCe,xCe=$.createContext({}),Z6=xCe;function wCe(e){return tt("MuiAccordion",e)}const CCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),iv=CCe,$Ce=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],SCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},wCe,t)},_Ce=he(ps,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${iv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${iv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${iv.expanded}`]:{margin:"16px 0"}})),ECe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=hCe,TransitionProps:m}=r,b=Oe(r,$Ce),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=SCe(_);return O.jsxs(_Ce,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Z6.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),PCe=ECe;function TCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const kCe=["className"],OCe=e=>{const{classes:t}=e;return Qe({root:["root"]},TCe,t)},RCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),DCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,kCe),i=r,s=OCe(i);return O.jsx(RCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),MCe=DCe;function ICe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const ACe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=ACe,NCe=["center","classes","className"];let j0=e=>e,FD,zD,VD,BD;const WC=550,jCe=80,LCe=hE(FD||(FD=j0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FCe=hE(zD||(zD=j0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),zCe=hE(VD||(VD=j0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),VCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BCe=he(ICe,{name:"MuiTouchRipple",slot:"Ripple"})(BD||(BD=j0` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),pa.rippleVisible,LCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,FCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,zCe,({theme:e})=>e.transitions.easing.easeInOut),UCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,NCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(BCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:WC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},jCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(VCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:O.jsx(DE,{component:null,exit:!0,children:l})}))}),WCe=UCe;function HCe(e){return tt("MuiButtonBase",e)}const GCe=et("MuiButtonBase",["root","disabled","focusVisible"]),qCe=GCe,YCe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KCe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},HCe,o);return n&&r&&(i.root+=` ${r}`),i},JCe=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qCe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Oe(r,YCe),Q=$.useRef(null),W=$.useRef(null),J=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=Qy(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,Z]=$.useState(!1);$.useEffect(()=>{Z(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",R),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=KCe(ze);return O.jsxs(JCe,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?O.jsx(WCe,T({ref:J,center:a},G)):null]}))}),Sa=ZCe;function XCe(e){return tt("MuiAccordionSummary",e)}const QCe=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=QCe,e$e=["children","className","expandIcon","focusVisibleClassName","onClick"],t$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},XCe,t)},n$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),r$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),o$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),a$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,e$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(Z6),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=t$e(v);return O.jsxs(n$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(r$e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(o$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),i$e=a$e;function s$e(e){return tt("MuiIconButton",e)}const l$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c$e=l$e,u$e=["edge","children","className","color","disabled","disableFocusRipple","size"],d$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,s$e,t)},f$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),p$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,u$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=d$e(p);return O.jsx(f$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=p$e,h$e=or(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function m$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const v$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,m$e,i)},y$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x$e=e=>b$e[e]||e,w$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=x$e(r.color),a=CE(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=UD}=a,b=Oe(a,v$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||UD[p])||"span",g=g$e(v);return O.jsx(y$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=w$e;function C$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const $$e=["className","color","enableColorOnDark","position"],S$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,C$e,r)},sv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_$e=he(ps,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:sv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),E$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,$$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=S$e(c);return O.jsx(_$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),P$e=E$e;function xi(e){return typeof e=="string"}function If(e,t,n){return e===void 0||xi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function T$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const k$e={disableDefaultClasses:!1},O$e=$.createContext(k$e);function R$e(e){const{disableDefaultClasses:t}=$.useContext(O$e);return n=>t?"":e(n)}function Qf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function WD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Qf(T({},o,r)),s=WD(r),l=WD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const M$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,M$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=D$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function I$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=oE({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const A$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function N$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function L$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j$e(e))}function F$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(A$e)).forEach((r,o)=>{const a=N$e(r);a===-1||!L$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function z$e(){return!0}function X6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=F$e,isEnabled:i=z$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs($.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",ME="auto",xh=[_o,_a,Ea,Eo],Qu="start",Lp="end",V$e="clippingParents",Q6="viewport",gf="popper",B$e="reference",HD=xh.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+Lp])},[]),eL=[].concat(xh,[ME]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+Lp])},[]),U$e="beforeRead",W$e="read",H$e="afterRead",G$e="beforeMain",q$e="main",Y$e="afterMain",K$e="beforeWrite",J$e="write",Z$e="afterWrite",X$e=[U$e,W$e,H$e,G$e,q$e,Y$e,K$e,J$e,Z$e];function Ei(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IE(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ei(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function eSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ei(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const tSe={name:"applyStyles",enabled:!0,phase:"write",fn:Q$e,effect:eSe,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Kl=Math.max,Jg=Math.min,ed=Math.round;function HC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tL(){return!/^((?!chrome|android).)*safari/i.test(HC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Zo(e):window,s=i.visualViewport,l=!tL()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function AE(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ss(e){return Zo(e).getComputedStyle(e)}function nSe(e){return["table","td","th"].indexOf(Ei(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return Ei(e)==="html"?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||fl(e)}function GD(e){return!ya(e)||ss(e).position==="fixed"?null:e.offsetParent}function rSe(e){var t=/firefox/i.test(HC()),n=/Trident/i.test(HC());if(n&&ya(e)){var r=ss(e);if(r.position==="fixed")return null}var o=L0(e);for(IE(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ei(o))<0;){var a=ss(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function wh(e){for(var t=Zo(e),n=GD(e);n&&nSe(n)&&ss(n).position==="static";)n=GD(n);return n&&(Ei(n)==="html"||Ei(n)==="body"&&ss(n).position==="static")?t:n||rSe(e)||t}function NE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ep(e,t,n){return Kl(e,Jg(t,n))}function oSe(e,t,n){var r=ep(e,t,n);return r>n?n:r}function rL(){return{top:0,right:0,bottom:0,left:0}}function oL(e){return Object.assign({},rL(),e)}function aL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oL(typeof t!="number"?t:aL(t,xh))};function iSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=wi(n.placement),l=NE(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=aSe(o.padding,n),p=AE(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=wh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=ep(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function sSe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nL(t.elements.popper,o)&&(t.elements.arrow=o))}const lSe={name:"arrow",enabled:!0,phase:"main",fn:iSe,effect:sSe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var cSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function qD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=wh(n),E="clientHeight",k="clientWidth";if(S===Zo(n)&&(S=fl(n),ss(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===Lp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===Lp){w=Ea;var R=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&cSe),U=u===!0?uSe({x:m,y:v},Zo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function dSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:wi(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fSe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dSe,data:{}};var lv={passive:!0};function pSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lv)}),s&&l.addEventListener("resize",n.update,lv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lv)}),s&&l.removeEventListener("resize",n.update,lv)}}const hSe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pSe,data:{}};var mSe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(e){return e.replace(/left|right|bottom|top/g,function(t){return mSe[t]})}var vSe={start:"end",end:"start"};function YD(e){return e.replace(/start|end/g,function(t){return vSe[t]})}function jE(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LE(e){return td(fl(e)).left+jE(e).scrollLeft}function gSe(e,t){var n=Zo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=tL();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+LE(e),y:l}}function ySe(e){var t,n=fl(e),r=jE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+LE(e),l=-r.scrollTop;return ss(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function FE(e){var t=ss(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iL(e){return["html","body","#document"].indexOf(Ei(e))>=0?e.ownerDocument.body:ya(e)&&FE(e)?e:iL(L0(e))}function tp(e,t){var n;t===void 0&&(t=[]);var r=iL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Zo(r),i=o?[a].concat(a.visualViewport||[],FE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(tp(L0(i)))}function GC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KD(e,t,n){return t===Q6?GC(gSe(e,n)):cc(t)?bSe(t,n):GC(ySe(fl(e)))}function xSe(e){var t=tp(L0(e)),n=["absolute","fixed"].indexOf(ss(e).position)>=0,r=n&&ya(e)?wh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&nL(o,r)&&Ei(o)!=="body"}):[]}function wSe(e,t,n,r){var o=t==="clippingParents"?xSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=KD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Jg(u.right,l.right),l.bottom=Jg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},KD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sL(e){var t=e.reference,n=e.element,r=e.placement,o=r?wi(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?NE(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Lp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Fp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?V$e:s,c=n.rootBoundary,u=c===void 0?Q6:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=oL(typeof x!="number"?x:aL(x,xh)),y=p===gf?B$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=wSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=sL({reference:S,element:w,strategy:"absolute",placement:o}),k=GC(Object.assign({},w,E)),I=p===gf?k:S,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(R).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";R[G]+=U[V]*z})}return R}function CSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?eL:l,u=nd(r),f=u?s?HD:HD.filter(function(b){return nd(b)===u}):xh,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Fp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function $Se(e){if(wi(e)===ME)return[];var t=Kv(e);return[YD(e),t,YD(t)]}function SSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=wi(x),y=g===x,w=l||(y||!b?[Kv(x)]:$Se(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(wi(N)===ME?CSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,V=z?"width":"height",Y=Fp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Kv(Q));var W=Kv(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[W]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const _Se={name:"flip",enabled:!0,phase:"main",fn:SSe,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZD(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function ESe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Fp(t,{elementContext:"reference"}),s=Fp(t,{altBoundary:!0}),l=JD(i,r),c=JD(s,o,a),u=ZD(l),f=ZD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const PSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ESe};function TSe(e,t,n){var r=wi(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function kSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=eL.reduce(function(u,f){return u[f]=TSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const OSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kSe};function RSe(e){var t=e.state,n=e.name;t.modifiersData[n]=sL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DSe={name:"popperOffsets",enabled:!0,phase:"read",fn:RSe,data:{}};function MSe(e){return e==="x"?"y":"x"}function ISe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Fp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=wi(t.placement),y=nd(t.placement),w=!y,C=NE(g),_=MSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],J=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?AE(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rL(),B=N[z],Z=N[V],re=ep(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-R.mainAxis:j-re-B-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,me=t.elements.arrow&&wh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=ep(m?Jg(W,Ce):W,Q,m?Kl(J,fe):J);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+R.altAxis,ze=Ye?ge+E[we]+k[we]-Me-R.altAxis:He,Pe=m&&Ye?oSe(je,ge,ze):ep(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const ASe={name:"preventOverflow",enabled:!0,phase:"main",fn:ISe,requiresIfExists:["offset"]};function NSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jSe(e){return e===Zo(e)||!ya(e)?jE(e):NSe(e)}function LSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&LSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ei(t)!=="body"||FE(a))&&(s=jSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=LE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function zSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function VSe(e){var t=zSe(e);return X$e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function USe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XD={placement:"bottom",modifiers:[],strategy:"absolute"};function QD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(qSe(o)||document.body)},[o,a]),Jn(()=>{if(i&&!a)return Ip(n,i),()=>{Ip(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return O.jsx($.Fragment,{children:r})}return O.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function YSe(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const KSe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JSe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZSe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function qC(e){return typeof e=="function"?e():e}function XSe(e){return e.nodeType!==void 0}const QSe=()=>Qe({root:["root"]},R$e(YSe)),e_e={},t_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,KSe),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Jn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=ZSe(u,i),[E,k]=$.useState(S),[I,R]=$.useState(qC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&R(qC(o))},[o]),Jn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=GSe(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=QSe(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),n_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=e_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,JSe),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=qC(r);E=R&&XSe(R)?Vn(R).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return O.jsx(lL,{disablePortal:s,container:E,children:O.jsx(t_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function r_e(e){const t=Vn(e);return t.body===e?_i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eM(e){return parseInt(_i(e).getComputedStyle(e).paddingRight,10)||0}function o_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!o_e(i);s&&l&&np(i,o)})}function Nx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r_e(r)){const i=g6(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${eM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=_i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function i_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&np(t.modalRef,!1);const o=i_e(n);tM(n,t.mount,t.modalRef,o,!0);const a=Nx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Nx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=a_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,n),tM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l_e(e){return typeof e=="function"?e():e}function c_e(e){return e?e.props.hasOwnProperty("in"):!1}const u_e=new s_e;function d_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=u_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=c_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=l_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&np(b.current,w))}),R=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{R()},[R]),$.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Qf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Wg(Y,l==null?void 0:l.props.onEnter),onExited:Wg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const f_e=2;function cL(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function nM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},g_e=e=>e;let fv;function jx(){return fv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fv=CSS.supports("touch-action","none"):fv=!0),fv}function y_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=g_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[R,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(R);let z=G?R.slice().sort(cL):[R];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:X}=Qy(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));J(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},Z=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Jn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=p_e(gt,l,s),v)Le=m_e(Le,v,l);else{const te=nM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=nM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=rM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=cv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});uv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>f_e&&k(!0),U&&!dv(ze,R)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=cv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;jx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=cv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});uv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!dv(Te,R)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:jx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:jx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=cv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});uv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!dv(it,R)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=Zg(G?z[0]:l,l,s),De=Zg(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=Qf(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:v_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=Qf(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:Z(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},F1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=Qf(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const b_e=["onChange","maxRows","minRows","style","value"];function pv(e){return parseInt(e,10)||0}const x_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const w_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,b_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=_i(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=S.boxSizing,I=pv(S.paddingBottom)+pv(S.paddingTop),R=pv(S.borderBottomWidth)+pv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+R:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();oM(C)||v(_=>g(_,C))},[x]);Jn(()=>{const C=()=>{const F=x();oM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=vh(_),k=u.current,I=_i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Jn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs($.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},x_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function aM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function C_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=aM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=aM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Lx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function __e(e){const{unstable_isActiveElementInListbox:t=S_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=$_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:J,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Za(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),Z=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&R(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=oE({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?Z.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Lx(fe,rt=>R(ve,rt))!==-1)return;const Ie=Lx(Pe,rt=>R(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Ip(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Lx(xt,ut=>R(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-iM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:iM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){Z.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(Z.current.focus(),j&&B.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&R(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const E_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],P_e=he(n_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T_e=$.forwardRef(function(t,n){var r;const o=wE(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,E_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(P_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),Ch=T_e;function k_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const O_e=["className","color","component","disableGutters","disableSticky","inset"],R_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,k_e,t)},D_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),uL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,O_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=R_e(f);return O.jsx(D_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});uL.muiSkipListHighlight=!0;const M_e=uL,I_e=or(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function A_e(e){return tt("MuiChip",e)}const N_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=N_e,j_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,A_e,t)},F_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),z_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sM(e){return e.key==="Backspace"||e.key==="Delete"}const V_e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,j_e),S=$.useRef(null),E=sn(S,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&sM(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&sM(J)?b(J):J.key==="Escape"&&S.current&&S.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=L_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):O.jsx(I_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),O.jsxs(F_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,O.jsx(z_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),dL=V_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const B_e=$.createContext(void 0),F0=B_e;function ki(){return $.useContext(F0)}function U_e(e){return O.jsx(Uxe,T({},e,{defaultTheme:_0,themeId:e0}))}function lM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(lM(e.value)&&e.value!==""||t&&lM(e.defaultValue)&&e.defaultValue!=="")}function W_e(e){return e.startAdornment}function H_e(e){return tt("MuiInputBase",e)}const G_e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=G_e,q_e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],z0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},V0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Y_e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,H_e,t)},B0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),U0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_e=O.jsx(U_e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),J_e=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:J={},startAdornment:X,type:j="text",value:K}=o,q=Oe(o,q_e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),Z=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,Z),[ce,xe]=$.useState(!1),me=ki(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{Xg(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Jn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),R&&R(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=w_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=Y_e(He),Me=J.root||c.Root||B0,je=W.root||u.root||{},ze=J.input||c.Input||U0;return we=T({},we,(r=W.input)!=null?r:u.input),O.jsxs($.Fragment,{children:[!m&&K_e,O.jsxs(Me,T({},je,!xi(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,O.jsx(F0.Provider,{value:null,children:O.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!xi(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),zE=J_e;function Z_e(e){return tt("MuiInput",e)}const X_e=T({},Vo,et("MuiInput",["root","underline","input"])),js=X_e;function Q_e(e){return tt("MuiOutlinedInput",e)}const eEe=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),li=eEe;function tEe(e){return tt("MuiFilledInput",e)}const nEe=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=nEe,fL=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rEe(e){return tt("MuiAutocomplete",e)}const oEe=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=oEe;var cM,uM;const aEe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iEe=["ref"],sEe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,rEe,t)},lEe=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${js.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${js.root}.${Vo.sizeSmall}`]:{[`& .${js.input}`]:{padding:"2px 4px 3px 0"}},[`& .${li.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${li.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),cEe=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uEe=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dEe=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),fEe=he(Ch,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),pEe=he(ps,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),hEe=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mEe=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vEe=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gEe=he(M_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yEe=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),bEe=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=cM||(cM=O.jsx(h$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:ce=ps,PopperComponent:xe=Ch,popupIcon:me=uM||(uM=O.jsx(fL,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Oe(s,aEe),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=__e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Oe(dt,iEe),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=sEe(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>O.jsx(dL,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(O.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>O.jsxs("li",{children:[O.jsx(gEe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),O.jsx(yEe,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>O.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs($.Fragment,{children:[O.jsx(lEe,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:O.jsxs(cEe,{className:Kt.endAdornment,ownerState:Ut,children:[nt?O.jsx(uEe,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(dEe,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?O.jsx(fEe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:O.jsxs(pEe,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?O.jsx(hEe,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?O.jsx(mEe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?O.jsx(vEe,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),xEe=bEe,wEe=or(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CEe(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $Ee=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],SEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CEe,t)},_Ee=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),EEe=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),PEe=he(wEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TEe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const kEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,$Ee);let b=null;const v=TEe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=SEe(y);return g?b=O.jsx(EEe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(PEe,{ownerState:y,className:w.fallback}),O.jsx(_Ee,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),pL=kEe,OEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],REe={entering:{opacity:1},entered:{opacity:1}},DEe=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=N0}=t,w=Oe(t,OEe),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{K6(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),R=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},REe[z],x,s.props.style),ref:_},V))}))}),kd=DEe;function MEe(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const IEe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AEe=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},MEe,t)},NEe=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),jEe=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Oe(i,IEe),w=T({},i,{component:c,invisible:p}),C=AEe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(NEe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),hL=jEe;function LEe(e){return tt("MuiBadge",e)}const FEe=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=FEe,zEe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fx=10,zx=4,VEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,LEe,i)},BEe=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),UEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fx*2,lineHeight:1,padding:"0 6px",height:Fx*2,borderRadius:Fx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:zx,height:zx*2,minWidth:zx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),WEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,zEe),{badgeContent:R,invisible:F,max:U,displayValue:G}=I$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=oE({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=V?z:c,X=J!=="dot"?G:void 0,j=T({},c,{badgeContent:R,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:J}),K=VEe(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:BEe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:UEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),mL=WEe;function HEe(e){return tt("MuiButton",e)}const GEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hv=GEe,qEe=$.createContext({}),YEe=qEe,KEe=$.createContext(void 0),JEe=KEe,ZEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],XEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,HEe,i);return T({},i,l)},vL=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),QEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hv.disabled}`]:{boxShadow:"none"}}),e2e=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},vL(e))),t2e=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},vL(e))),n2e=$.forwardRef(function(t,n){const r=$.useContext(YEe),o=$.useContext(JEe),a=aE(r,t),i=Je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,ZEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=XEe(S),k=y&&O.jsx(e2e,{className:E.startIcon,ownerState:S,children:y}),I=b&&O.jsx(t2e,{className:E.endIcon,ownerState:S,children:b}),R=o||"";return O.jsxs(QEe,T({ownerState:S,className:Ne(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=n2e;function r2e(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const o2e=["className","raised"],a2e=e=>{const{classes:t}=e;return Qe({root:["root"]},r2e,t)},i2e=he(ps,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),s2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,o2e),s=T({},r,{raised:a}),l=a2e(s);return O.jsx(i2e,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),l2e=s2e;function c2e(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const u2e=["className","component"],d2e=e=>{const{classes:t}=e;return Qe({root:["root"]},c2e,t)},f2e=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),p2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,u2e),s=T({},r,{component:a}),l=d2e(s);return O.jsx(f2e,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),h2e=p2e;function m2e(e){return tt("MuiCardHeader",e)}const v2e=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dM=v2e,g2e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],y2e=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m2e,t)},b2e=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${dM.title}`]:t.title,[`& .${dM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),x2e=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),w2e=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),C2e=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),$2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,g2e),b=T({},r,{component:s,disableTypography:l}),v=y2e(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=O.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=O.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(b2e,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(x2e,{className:v.avatar,ownerState:b,children:a}),O.jsxs(C2e,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(w2e,{className:v.action,ownerState:b,children:o})]}))}),S2e=$2e;function _2e(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E2e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],P2e=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,_2e,t)},T2e=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),k2e=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O2e=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Oe(t,E2e),[I,R]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=ki(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=P2e(Q);return O.jsxs(T2e,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(k2e,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),VE=O2e,R2e=or(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),D2e=or(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M2e=or(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I2e(e){return tt("MuiCheckbox",e)}const A2e=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vx=A2e,N2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],j2e=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,I2e,t);return T({},t,i)},L2e=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vx.checked}, &.${Vx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),F2e=O.jsx(D2e,{}),z2e=O.jsx(R2e,{}),V2e=O.jsx(M2e,{}),B2e=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=F2e,color:s="primary",icon:l=z2e,indeterminate:c=!1,indeterminateIcon:u=V2e,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,N2e),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=j2e(g);return O.jsx(L2e,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),U2e=B2e;function W2e(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const H2e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],G2e=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W2e,r)},q2e=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Y2e=he(hL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),K2e=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({name:"MuiModal",props:t}),{BackdropComponent:u=Y2e,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Oe(c,H2e),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=d_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=G2e(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=J();B.onEnter=se,B.onExited=Ce}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:q2e,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:Z,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(lL,{ref:X,container:v,disablePortal:S,children:O.jsxs(Z,T({},me,{children:[!I&&u?O.jsx(re,T({},ue)):null,O.jsx(X6,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),gL=K2e;function J2e(e){return tt("MuiDialog",e)}const Z2e=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rp=Z2e,X2e=$.createContext({}),yL=X2e,Q2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ePe=he(hL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,J2e,t)},nPe=he(gL,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),rPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),oPe=he(ps,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),aPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ps,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,Q2e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=tPe(R),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Za(s),Y=$.useMemo(()=>({titleId:V}),[V]);return O.jsx(nPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:ePe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:R},I,{children:O.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(rPe,{className:Ne(F.container),onMouseDown:G,ownerState:R,children:O.jsx(oPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:R,children:O.jsx(yL.Provider,{value:Y,children:u})}))})}))}))}),W0=aPe;function iPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const sPe=["className","disableSpacing"],lPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},iPe,t)},cPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),uPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,sPe),s=T({},r,{disableSpacing:a}),l=lPe(s);return O.jsx(cPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),H0=uPe;function dPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function fPe(e){return tt("MuiDialogTitle",e)}const pPe=et("MuiDialogTitle",["root"]),hPe=pPe,mPe=["className","dividers"],vPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},dPe,t)},gPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${hPe.root} + &`]:{paddingTop:0}})),yPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,mPe),s=T({},r,{dividers:a}),l=vPe(s);return O.jsx(gPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),G0=yPe;function bPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const xPe=["children","className"],wPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},bPe,t);return T({},t,r)},CPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Pe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,xPe),i=wPe(a);return O.jsx(CPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),BE=$Pe,SPe=["className","id"],_Pe=e=>{const{classes:t}=e;return Qe({root:["root"]},fPe,t)},EPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,SPe),s=r,l=_Pe(s),{titleId:c=a}=$.useContext(yL);return O.jsx(EPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),UE=PPe;function TPe(e){return tt("MuiDivider",e)}const kPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fM=kPe,OPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},TPe,r)},DPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,OPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=RPe(v);return O.jsx(DPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(MPe,{className:x.wrapper,ownerState:v,children:a}):null}))});bL.muiSkipListHighlight=!0;const pM=bL,IPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],APe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},tEe,t);return T({},t,o)},NPe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),jPe=he(U0,{name:"MuiFilledInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,IPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=APe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Gr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:NPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:jPe;return O.jsx(zE,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});xL.muiName="Input";const wL=xL;function LPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,LPe,t)},VPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),BPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,FPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=zPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&W_e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(Xg(z.props,!0)||Xg(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,R,f,p,F,b,v,x]);return O.jsx(F0.Provider,{value:U,children:O.jsx(VPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),$h=BPe,UPe=hwe({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Je({props:e,name:"MuiStack"})}),WPe=UPe;function HPe(e){return tt("MuiFormControlLabel",e)}const GPe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=GPe,qPe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YPe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,HPe,t)},KPe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JPe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),ZPe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,qPe),x=ki(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=YPe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=O.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),O.jsxs(KPe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?O.jsxs(WPe,{direction:"row",alignItems:"center",children:[k,O.jsxs(JPe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),q0=ZPe;function XPe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const QPe=["className","row"],eTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},XPe,t)},tTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,QPe),s=ki(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=eTe(c);return O.jsx(tTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),CL=nTe;function rTe(e){return tt("MuiFormHelperText",e)}const oTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hM=oTe;var mM;const aTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,rTe,t)},sTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,aTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iTe(u);return O.jsx(sTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?mM||(mM=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=lTe;function cTe(e){return tt("MuiFormLabel",e)}const uTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),op=uTe,dTe=["children","className","color","component","disabled","error","filled","focused","required"],fTe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,cTe,t)},pTe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${op.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),hTe=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),mTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,dTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fTe(u);return O.jsxs(pTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(hTe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),WE=mTe,vTe=$.createContext(),vM=vTe;function gTe(e){return tt("MuiGrid",e)}const yTe=[0,1,2,3,4,5,6,7,8,9,10],bTe=["column-reverse","column","row-reverse","row"],xTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zp=et("MuiGrid",["root","container","item","zeroMinWidth",...yTe.map(e=>`spacing-xs-${e}`),...bTe.map(e=>`direction-xs-${e}`),...xTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),wTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function CTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function $Te({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${zp.item}`]={maxWidth:"none"}),o})}function $L({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function STe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${zp.item}`]:{paddingTop:0}}})}return o}function _Te({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zp.item}`]:{paddingLeft:0}}})}return o}function ETe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const PTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=ETe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),$Te,STe,_Te,CTe);function TTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const kTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,gTe,t)},OTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=CE(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,wTe),y=m||b,w=l||b,C=$.useContext(vM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&(S[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=kTe(k);return O.jsx(vM.Provider,{value:_,children:O.jsx(PTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=OTe,RTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function YC(e){return`scale(${e}, ${e**2})`}const DTe={entering:{opacity:1,transform:YC(1)},entered:{opacity:1,transform:"none"}},Bx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SL=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=N0}=t,g=Oe(t,RTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{K6(V);const{duration:Q,delay:W,easing:J}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Bx?X:X*.666,delay:W,easing:J})].join(","),l&&l(V,Y)}),R=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=J):J=Y,V.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:Bx?J:J*.666,delay:Bx?Q:Q||J*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=YC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:YC(.75),visibility:V==="exited"&&!s?"hidden":void 0},DTe[V],b,a.props.style),ref:S},Y))}))});SL.muiSupportAuto=!0;const Qg=SL;function MTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Jn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const _L=lp["useSyncExternalStore"];function ITe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return _L(l,s,i)}function Sh(e,t={}){const n=wE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=$E({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(_L!==void 0?ITe:MTe)(l,o,a,i,s)}const ATe=["initialWidth","width"],Bs=["xs","sm","md","lg","xl"],NTe=(e,t,n=!0)=>n?Bs.indexOf(e)<=Bs.indexOf(t):Bs.indexOf(e)n?Bs.indexOf(t)<=Bs.indexOf(e):Bs.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=$E({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,ATe),[m,b]=$.useState(!1);Jn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Sh(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},FTe=LTe;function zTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,BTe,t)},HTe=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function GTe(e){const{children:t,className:n,only:r}=e,o=Oe(e,UTe),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=WTe(s);return O.jsx(HTe,{className:Ne(l.root,n),ownerState:s,children:t})}const qTe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,qTe);return t==="js"?O.jsx(VTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(GTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const YTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KTe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},Z_e,t);return T({},t,o)},JTe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${js.disabled}, .${js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${js.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZTe=he(U0,{name:"MuiInput",slot:"Input",overridesResolver:V0})({}),EL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,YTe),y=KTe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Gr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:JTe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:ZTe;return O.jsx(zE,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});EL.muiName="Input";const hs=EL;function XTe(e){return tt("MuiInputAdornment",e)}const QTe=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gM=QTe;var yM;const eke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,XTe,t)},rke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gM.positionStart}&:not(.${gM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,eke),p=ki()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=nke(b);return O.jsx(F0.Provider,{value:null,children:O.jsx(rke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(yn,{color:"text.secondary",children:o}):O.jsxs($.Fragment,{children:[c==="start"?yM||(yM=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),HE=oke;function ake(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ike=["disableAnimation","margin","shrink","variant","className"],ske=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,ake,t);return T({},t,c)},lke=he(WE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cke=$.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,ike),l=ki();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=ske(f);return O.jsx(lke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),PL=cke,uke=$.createContext({}),es=uke;function dke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const fke=["children","className","component","dense","disablePadding","subheader"],pke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dke,t)},hke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),mke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,fke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=pke(p);return O.jsx(es.Provider,{value:f,children:O.jsxs(hke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),GE=mke;function vke(e){return tt("MuiListItem",e)}const gke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=gke,yke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bke=yke;function xke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const wke=["className"],Cke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},xke,n)},$ke=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,wke),i=$.useContext(es),s=T({},r,{disableGutters:i.disableGutters}),l=Cke(s);return O.jsx($ke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});TL.muiName="ListItemSecondaryAction";const kL=TL,Ske=["className"],_ke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Eke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Pke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},vke,r)},Tke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:Eke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),kke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Oe(r.ContainerProps,Ske),I=Oe(r,_ke),R=$.useContext(es),F=$.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=$.useRef(null);Jn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Pke(V),Q=sn(U,n),W=E.root||u.Root||Tke,J=S.root||f.root||{},X=T({className:Ne(Y.root,J.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),O.jsx(es.Provider,{value:F,children:O.jsxs(kke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[O.jsx(W,T({},J,!xi(W)&&{as:j,ownerState:T({},V,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(es.Provider,{value:F,children:O.jsxs(W,T({},J,{as:j,ref:Q},!xi(W)&&{ownerState:T({},V,J.ownerState)},X,{children:[G,C&&O.jsx(kL,{children:C})]}))})}),OL=Oke;function Rke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Dke=["className"],Mke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rke,n)},Ike=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ake=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,Dke),i=$.useContext(es),s=T({},r,{alignItems:i.alignItems}),l=Mke(s);return O.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),Nke=Ake,jke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),bM=jke;function Lke(e){return tt("MuiListItemText",e)}const Fke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ey=Fke,zke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Lke,t)},Bke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.primary}`]:t.primary},{[`& .${ey.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Uke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,zke),{dense:m}=$.useContext(es);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Vke(x);return b!=null&&b.type!==yn&&!i&&(b=O.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=O.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(Bke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),Wke=Uke,Hke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ux(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RL(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Gke=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,Hke),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,Ux);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,xM);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,Ux);else if(_==="End")w.preventDefault(),xf(C,null,c,l,xM);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=S&&!E.repeating&&RL(S,E);E.previousKeyMatched&&(R||xf(C,S,!1,l,Ux,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return O.jsx(GE,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),qE=Gke;function qke(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const Yke=["onEntering"],Kke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jke=["slotProps"];function wM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $M(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Wx(e){return typeof e=="function"?e():e}const Zke=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},qke,t)},Xke=he(gL,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=he(ps,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qke=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=Qg,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Yke),F=Oe(i,Kke),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),Y=Zke(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Wx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+wM(fe,c.vertical),left:fe.left+CM(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:wM(se,_.vertical),horizontal:CM(se,_.horizontal)}),[_.horizontal,_.vertical]),J=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:$M(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=_i(Wx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:$M(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=J(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[J]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=vh(()=>{K()}),Ce=_i(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Wx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:Xke,re=(a=w==null?void 0:w.paper)!=null?a:DL,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Oe(xe,Jke);return O.jsx(Z,T({},ue,!xi(Z)&&{slotProps:me,disableScrollLock:I},{children:O.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},ce,{children:p}))}))}))}),eOe=Qke;function tOe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const nOe=["onEntering"],rOe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],oOe={vertical:"top",horizontal:"right"},aOe={vertical:"top",horizontal:"left"},iOe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},tOe,t)},sOe=he(eOe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lOe=he(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cOe=he(qE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),uOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,nOe),_=Oe(a,rOe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=iOe(k),R=i&&!c&&p,F=$.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,S),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;$.Children.map(s,(J,X)=>{$.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:lOe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(sOe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?oOe:aOe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(cOe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:R,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),dOe=uOe;function fOe(e){return tt("MuiMenuItem",e)}const pOe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=pOe,hOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},fOe,i);return T({},i,l)},gOe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mOe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fM.inset}`]:{marginLeft:52},[`& .${ey.root}`]:{marginTop:0,marginBottom:0},[`& .${ey.inset}`]:{paddingLeft:36},[`& .${bM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bM.root} svg`]:{fontSize:"1.25rem"}}))),yOe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,hOe),b=$.useContext(es),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Jn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=vOe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(es.Provider,{value:v,children:O.jsx(gOe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),ty=yOe;function bOe(e){return tt("MuiNativeSelect",e)}const xOe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=xOe,wOe=["className","disabled","error","IconComponent","inputRef","variant"],COe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,bOe,t)},ML=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${YE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$Oe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${YE.multiple}`]:t.multiple}]}})(ML),IL=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${YE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),SOe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),_Oe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,wOe),u=T({},t,{disabled:o,variant:l,error:a}),f=COe(u);return O.jsxs($.Fragment,{children:[O.jsx($Oe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(SOe,{as:i,ownerState:u,className:f.icon})]})}),EOe=_Oe;var SM;const POe=["children","classes","className","label","notched"],TOe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kOe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function OOe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,POe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(TOe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(kOe,{ownerState:i,children:a?O.jsx("span",{children:n}):SM||(SM=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const ROe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],DOe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Q_e,t);return T({},t,r)},MOe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${li.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${li.focused} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${li.error} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${li.disabled} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),IOe=he(OOe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),AOe=he(U0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,ROe),y=DOe(l),w=ki(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:MOe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:AOe;return O.jsx(zE,T({slots:{root:S,input:E},renderSuffix:k=>O.jsx(IOe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});AL.muiName="Input";const NL=AL,NOe=or(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jOe=or(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),LOe=he("span")({position:"relative",display:"flex"}),FOe=he(NOe)({transform:"scale(1)"}),zOe=he(jOe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function jL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(LOe,{className:n.root,ownerState:o,children:[O.jsx(FOe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(zOe,{fontSize:r,className:n.dot,ownerState:o})]})}const VOe=$.createContext(void 0),LL=VOe;function BOe(){return $.useContext(LL)}function UOe(e){return tt("MuiRadio",e)}const WOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_M=WOe,HOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],GOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,UOe,t))},qOe=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_M.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_M.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function YOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const EM=O.jsx(jL,{checked:!0}),PM=O.jsx(jL,{}),KOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=EM,color:l="primary",icon:c=PM,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,HOe),v=T({},a,{color:l,size:p}),x=GOe(v),g=BOe();let y=i;const w=Wg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=YOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(qOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=PM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=EM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),JOe=KOe,ZOe=["actions","children","defaultValue","name","onChange","value"],XOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,ZOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Za(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(LL.Provider,{value:v,children:O.jsx(CL,T({role:"radiogroup",ref:m},c,{children:o}))})}),QOe=XOe;function eRe(e){return tt("MuiSelect",e)}const tRe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=tRe;var TM;const nRe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rRe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(ML,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oRe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),aRe=he("input",{shouldForwardProp:e=>_E(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iRe(e){return e==null||typeof e=="string"&&!e.trim()}const sRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,eRe,t)},lRe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Oe(t,nRe),[W,J]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:R,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(R!=null),[Z,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(J(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(J(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(Xg({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>kM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=kM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},KE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},pRe=he(hs,KE)(""),hRe=he(NL,KE)(""),mRe=he(wL,KE)(""),FL=$.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fL,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,uRe),R=y?EOe:cRe,F=ki(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=fRe(z),Y=Oe(V,dRe),Q=p||{standard:O.jsx(pRe,{ownerState:z}),outlined:O.jsx(hRe,{label:b,ownerState:z}),filled:O.jsx(mRe,{ownerState:z})}[G],W=sn(n,Q.ref);return O.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?Gr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});FL.muiName="Select";const zL=FL,vRe=e=>!e||!xi(e),gRe=vRe;function yRe(e){return tt("MuiSlider",e)}const bRe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=bRe,xRe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function wRe(e){const{children:t,className:n,value:r}=e,o=xRe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},O.jsxs($.Fragment,{children:[t.props.children,O.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const CRe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function OM(e){return e}const $Re=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),SRe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),_Re=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),ERe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),PRe=he(wRe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),TRe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_E(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),kRe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_E(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ORe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,yRe,i)},RRe=({children:e})=>e,DRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,R;const F=Je({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:J={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:Z=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=OM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=OM}=F,Be=Oe(F,CRe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=y_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=ORe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:$Re,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:SRe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:_Re,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:ERe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:PRe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:TRe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:kRe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:J.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:J.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:J.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:J.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:J.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:J.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:J.markLabel,xn=(R=Ce==null?void 0:Ce.input)!=null?R:J.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},gRe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return O.jsxs(Se,T({},Bn,{children:[O.jsx(_e,T({},le)),O.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=Zg(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),O.jsxs($.Fragment,{children:[O.jsx(_t,T({"data-index":Ie},Ee,!xi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!xi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=Zg(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?RRe:ft;return O.jsx(xt,T({},!xi(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:O.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:O.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),MRe=DRe;function IRe(e){return tt("MuiTooltip",e)}const ARe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Us=ARe,NRe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function jRe(e){return Math.round(e*1e5)/1e5}const LRe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,IRe,t)},FRe=he(Ch,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Us.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Us.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Us.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Us.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),zRe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jRe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Us.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Us.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Us.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Us.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),VRe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mv=!1,Hx=null,$f={x:0,y:0};function vv(e,t){return n=>{t&&t(n),e(n)}}const BRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:Z,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=Qg,TransitionProps:se}=S,Ce=Oe(S,NRe),fe=$.isValidElement(k)?k:O.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||J,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Za(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Hx),mv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Hx),Hx=setTimeout(()=>{mv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||mv&&Q?Me.current=setTimeout(()=>{ne(yt)},mv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=Qy(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=vv(Yt,oe.onMouseOver),oe.onMouseLeave=vv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=vv(dt,oe.onFocus),oe.onBlur=vv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:Z,touch:$e.current}),pt=LRe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:FRe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:Qg,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:zRe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:VRe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:R.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:R.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:R.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:R.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),O.jsx(ye,T({as:Z??Ch,placement:B,anchorEl:J?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:O.jsxs(Ie,T({},Nt,{children:[me,E?O.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=BRe,URe=$.createContext({}),_h=URe,WRe=$.createContext({}),Y0=WRe;function HRe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const GRe=["active","children","className","component","completed","disabled","expanded","index","last"],qRe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},HRe,t)},YRe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),KRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,GRe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(_h);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=qRe(E),I=O.jsxs(YRe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(Y0.Provider,{value:S,children:v&&!x&&f!==0?O.jsxs($.Fragment,{children:[v,I]}):I})}),JRe=KRe,ZRe=or(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),XRe=or(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function QRe(e){return tt("MuiStepIcon",e)}const eDe=et("MuiStepIcon",["root","active","completed","error","text"]),Gx=eDe;var RM;const tDe=["active","className","completed","error","icon"],nDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},QRe,t)},qx=he(VC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Gx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.error}`]:{color:(e.vars||e).palette.error.main}})),rDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),oDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,tDe),u=T({},r,{active:o,completed:i,error:s}),f=nDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?O.jsx(qx,T({as:XRe,className:p,ref:n,ownerState:u},c)):i?O.jsx(qx,T({as:ZRe,className:p,ref:n,ownerState:u},c)):O.jsxs(qx,T({className:p,ref:n,ownerState:u},c,{children:[RM||(RM=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(rDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),aDe=oDe;function iDe(e){return tt("MuiStepLabel",e)}const sDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ws=sDe,lDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],cDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},iDe,t)},uDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ws.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ws.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),dDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ws.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.alternativeLabel}`]:{marginTop:16},[`&.${Ws.error}`]:{color:(e.vars||e).palette.error.main}})),fDe=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ws.alternativeLabel}`]:{paddingRight:0}})),pDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ws.alternativeLabel}`]:{textAlign:"center"}})),VL=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,lDe),{alternativeLabel:v,orientation:x}=$.useContext(_h),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Y0),_=c||C;let S=p;_&&!S&&(S=aDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=cDe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(uDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?O.jsx(fDe,{className:k.iconContainer,ownerState:E,children:O.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(pDe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(dDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});VL.muiName="StepLabel";const hDe=VL;function mDe(e){return tt("MuiStepButton",e)}const vDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),DM=vDe,gDe=["children","className","icon","optional"],yDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},mDe,t)},bDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${DM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),xDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,gDe),{disabled:c,active:u}=$.useContext(Y0),{orientation:f}=$.useContext(_h),p=T({},r,{orientation:f}),m=yDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):O.jsx(hDe,T({},b,{children:o}));return O.jsx(bDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),wDe=xDe;function CDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const $De=["className"],SDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,CDe,t)},_De=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),EDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),PDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,$De),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(_h),{active:l,disabled:c,completed:u}=$.useContext(Y0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=SDe(f);return O.jsx(_De,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(EDe,{className:p.line,ownerState:f})}))}),TDe=PDe;function kDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const ODe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],RDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},kDe,r)},DDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),MDe=O.jsx(TDe,{}),IDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=MDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,ODe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=RDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(_h.Provider,{value:g,children:O.jsx(DDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),ADe=IDe;function NDe(e){return tt("MuiSwitch",e)}const jDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),to=jDe,LDe=["className","color","edge","size","sx"],FDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,NDe,t);return T({},t,l)},zDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${to.thumb}`]:{width:16,height:16},[`& .${to.switchBase}`]:{padding:4,[`&.${to.checked}`]:{transform:"translateX(16px)"}}})),VDe=he(VE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${to.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${to.checked}`]:{transform:"translateX(20px)"},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${to.checked} + .${to.track}`]:{opacity:.5},[`&.${to.disabled} + .${to.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${to.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${to.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.55)}`}},[`&.${to.checked} + .${to.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),BDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),UDe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),WDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,LDe),u=T({},r,{color:a,edge:i,size:s}),f=FDe(u),p=O.jsx(UDe,{className:f.thumb,ownerState:u});return O.jsxs(zDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[O.jsx(VDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(BDe,{className:f.track,ownerState:u})]})}),HDe=WDe;function GDe(e){return tt("MuiTab",e)}const qDe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=qDe,YDe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],KDe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,GDe,t)},JDe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ZDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,YDe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=KDe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(JDe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs($.Fragment,{children:[E,f]}):O.jsxs($.Fragment,{children:[f,E]}),u]}))}),Vp=ZDe,XDe=$.createContext(),BL=XDe;function QDe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const eMe=["className","component","padding","size","stickyHeader"],tMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},QDe,t)},nMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),MM="table",rMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTable"}),{className:o,component:a=MM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,eMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=tMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(BL.Provider,{value:p,children:O.jsx(nMe,T({as:a,role:a===MM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),UL=rMe,oMe=$.createContext(),K0=oMe;function aMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const iMe=["className","component"],sMe=e=>{const{classes:t}=e;return Qe({root:["root"]},aMe,t)},lMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),cMe={variant:"body"},IM="tbody",uMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableBody"}),{className:o,component:a=IM}=r,i=Oe(r,iMe),s=T({},r,{component:a}),l=sMe(s);return O.jsx(K0.Provider,{value:cMe,children:O.jsx(lMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===IM?null:"rowgroup",ownerState:s},i))})}),WL=uMe;function dMe(e){return tt("MuiTableCell",e)}const fMe=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pMe=fMe,hMe=["align","className","component","padding","scope","size","sortDirection","variant"],mMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,dMe,t)},vMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?S0(Tt(e.palette.divider,1),.88):$0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),gMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,hMe),m=$.useContext(BL),b=$.useContext(K0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=mMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(vMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Od=gMe;function yMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const bMe=["className","component"],xMe=e=>{const{classes:t}=e;return Qe({root:["root"]},yMe,t)},wMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CMe={variant:"head"},AM="thead",$Me=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableHead"}),{className:o,component:a=AM}=r,i=Oe(r,bMe),s=T({},r,{component:a}),l=xMe(s);return O.jsx(K0.Provider,{value:CMe,children:O.jsx(wMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===AM?null:"rowgroup",ownerState:s},i))})}),HL=$Me;function SMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const _Me=["className","component","disableGutters","variant"],EMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},SMe,t)},PMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),TMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,_Me),c=T({},r,{component:a,disableGutters:i,variant:s}),u=EMe(c);return O.jsx(PMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),kMe=TMe,OMe=or(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),RMe=or(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function DMe(e){return tt("MuiTableRow",e)}const MMe=et("MuiTableRow",["root","selected","hover","head","footer"]),NM=MMe,IMe=["className","component","hover","selected"],AMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},DMe,t)},NMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jM="tr",jMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableRow"}),{className:o,component:a=jM,hover:i=!1,selected:s=!1}=r,l=Oe(r,IMe),c=$.useContext(K0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=AMe(u);return O.jsx(NMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===jM?null:"row",ownerState:u},l))}),hl=jMe;function LMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function FMe(e,t,n,r={},o=()=>{}){const{ease:a=LMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const zMe=["onChange"],VMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BMe(e){const{onChange:t}=e,n=Oe(e,zMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Jn(()=>{const i=vh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=_i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:VMe,ref:o},n))}function UMe(e){return tt("MuiTabScrollButton",e)}const WMe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),HMe=WMe,GMe=["className","slots","slotProps","direction","orientation","disabled"],qMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},UMe,t)},YMe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${HMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),KMe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,GMe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=qMe(m),v=(r=s.StartScrollButtonIcon)!=null?r:OMe,x=(o=s.EndScrollButtonIcon)!=null?o:RMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(YMe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),JMe=KMe;function ZMe(e){return tt("MuiTabs",e)}const XMe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Jv=XMe,QMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],LM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,FM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},eIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},ZMe,l)},tIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jv.scrollButtons}`]:t.scrollButtons},{[`& .${Jv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Jv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),nIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),rIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),oIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),aIe=he(BMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zM={},iIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=JMe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,QMe),G=R==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=eIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,Z]=$.useState(zM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:N1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[J]:ie?ie[J]:0};if(isNaN(B[_e])||isNaN(B[J]))Z(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[J]-Xe[J]);(nt>=1||ft>=1)&&Z(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?FMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&y6()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(aIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=vh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=_i(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(zM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=O.jsx(oIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),gv(ie,Se,FM);break;case nt:te.preventDefault(),gv(ie,Se,LM);break;case"Home":te.preventDefault(),gv(ie,null,LM);break;case"End":te.preventDefault(),gv(ie,null,FM);break}},ne=ze();return O.jsxs(tIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(nIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[O.jsx(rIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),J0=iIe;function sIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const lIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cIe={standard:hs,filled:wL,outlined:NL},uIe=e=>{const{classes:t}=e;return Qe({root:["root"]},sIe,t)},dIe=he($h,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:J="outlined"}=r,X=Oe(r,lIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:J}),K=uIe(j),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Za(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,Z=cIe[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(dIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:j},X,{children:[C!=null&&C!==""&&O.jsx(PL,T({htmlFor:D,id:B},x,{children:C})),V?O.jsx(zL,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&O.jsx(pr,T({id:N},p,{children:b}))]}))}),Eh=fIe;var pIe=_S;function hIe(e){return pIe(e)?void 0:e}var mIe=hIe,vIe=gd,gIe=Ly,yIe=Ude,bIe=ah,xIe=bd,wIe=mIe,CIe=jS,$Ie=G4,SIe=1,_Ie=2,EIe=4,PIe=CIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=vIe(t,function(a){return a=bIe(a,e),r||(r=a.length>1),a}),xIe(e,$Ie(e),n),r&&(n=gIe(n,SIe|_Ie|EIe,wIe));for(var o=t.length;o--;)yIe(n,t[o]);return n}),TIe=PIe;const kIe=Vt(TIe);function OIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=UIe){var c=t?null:VIe(e);if(c)return BIe(c);i=!1,o=zIe,l=new jIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(KL);var xAe=KL.exports;const wAe=Vt(xAe);var o2={},CAe=Cc;Object.defineProperty(o2,"__esModule",{value:!0});var JL=o2.default=void 0,$Ae=CAe($c()),SAe=O,_Ae=(0,$Ae.default)((0,SAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");JL=o2.default=_Ae;var EAe=LS,PAe=cs;function TAe(e,t){var n=-1,r=PAe(e)?Array(e.length):[];return EAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var kAe=TAe,OAe=gd,RAe=vc,DAe=kAe,MAe=cr;function IAe(e,t){var n=MAe(e)?OAe:DAe;return n(e,RAe(t))}var ZL=IAe;const XL=Vt(ZL),AAe=["localeText"],KC=$.createContext(null),Ph=function(t){var n;const{localeText:r}=t,o=Oe(t,AAe),{utils:a,localeText:i}=(n=$.useContext(KC))!=null?n:{utils:void 0,localeText:void 0},s=Je({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(KC.Provider,{value:g,children:l})},NAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),QL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},jAe=QL;NAe(QL);const Sc=()=>{const e=$.useContext(KC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=$.useMemo(()=>T({},jAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},LAe=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FAe=or(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),zAe=or(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),e9=or(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),VAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),BAe=or(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),UAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),WAe=or(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function HAe(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const GAe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],qAe=["ownerState"],YAe=["ownerState"],KAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),BM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),ZAe=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},HAe,t)},t9=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Je({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Oe(c,GAe),E=c,k=ZAe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:BM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:BM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:FAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,qAe),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:zAe,J=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,YAe);return O.jsxs(KAe,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[O.jsx(F,T({},U,{children:l?O.jsx(W,T({},X)):O.jsx(V,T({},Q))})),u?O.jsx(yn,{variant:"subtitle1",component:"span",children:u}):O.jsx(JAe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},z,{children:l?O.jsx(V,T({},Q)):O.jsx(W,T({},X))}))]}))}),mi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),a2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},n9=["hours","minutes","seconds"],rd=e=>n9.includes(e),Ds=e=>n9.includes(e)||e==="meridiem",XAe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Bp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,QAe=(e,t,n,r)=>{const o=Bp(r.getHours(e),t,n);return r.setHours(e,o)},UM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Th=(e,t)=>(n,r)=>e?t.isAfter(n,r):UM(n,t)>UM(r,t),ny=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return mi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:mi(n,["minutes"])?o.minutes:mi(n,["seconds"])?o.seconds:mi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:mi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function kh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),S=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function e3e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function t3e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function e1(e,t,n,r){const o=qt(),a=XAe(e,o),i=$.useCallback(s=>{const l=e==null?null:QAe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Up=36,t1=2,n1=320,n3e=280,r1=334,r9=232,Nf=48,o1=he("div")({overflow:"hidden",width:n1,maxHeight:r1,display:"flex",flexDirection:"column",margin:"0 auto"});function r3e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Ci=36,Wp={x:od/2,y:od/2},o9={x:Wp.x,y:0},o3e=o9.x-Wp.x,a3e=o9.y-Wp.y,i3e=e=>e*(180/Math.PI),a9=(e,t,n)=>{const r=t-Wp.x,o=n-Wp.y,a=Math.atan2(o3e,a3e)-Math.atan2(r,o);let i=i3e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},s3e=(e,t,n=1)=>{const r=n*6;let{value:o}=a9(r,e,t);return o=o*n%60,o},l3e=(e,t,n)=>{const{value:r,distance:o}=a9(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},c3e,t)},f3e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),p3e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ci/2}px)`,border:`${(Ci-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function h3e(e){const t=Je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,u3e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=d3e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return O.jsx(f3e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:O.jsx(p3e,{ownerState:l,className:c.thumb})}))}function m3e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ap=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},v3e=(e,t)=>t==null||!e.isValid(t)?null:t,Kr=(e,t,n)=>t==null||!e.isValid(t)?n:t,g3e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),i2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},JC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},s2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},y3e=["year","month","day"],Nu=e=>y3e.includes(e),Hp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return mi(n,["year"])?o.year:mi(n,["month"])?o.month:mi(n,["day"])?o.dayOfMonth:mi(n,["month","year"])?`${o.month} ${o.year}`:mi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},b3e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},x3e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},m3e,t)},w3e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),C3e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$3e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S3e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),_3e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),E3e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),P3e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),WM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function T3e(e){const t=Je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=x3e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:j,offsetY:K}=J;if(j===void 0){const D=J.target.getBoundingClientRect();j=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?s3e(j,K,u):l3e(j,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Jn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(w3e,{className:Ne(g,S.root),children:[O.jsxs(C3e,{className:S.clock,children:[O.jsx(S3e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&O.jsxs($.Fragment,{children:[O.jsx(_3e,{className:S.pin}),i!=null&&O.jsx(h3e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),O.jsx($3e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&O.jsxs($.Fragment,{children:[O.jsx(E3e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),O.jsx(P3e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function k3e(e){return tt("MuiClockNumber",e)}const yv=et("MuiClockNumber",["root","selected","disabled"]),O3e=["className","disabled","index","inner","label","selected"],R3e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},k3e,t)},D3e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yv.disabled}`]:t.disabled},{[`&.${yv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Ci,width:Ci,position:"absolute",left:`calc((100% - ${Ci}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${yv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${yv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function i9(e){const t=Je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,O3e),c=t,u=R3e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Ci-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(D3e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Ci)/2}px`},ownerState:c},l,{children:i}))}const M3e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(i9,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(i9,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},l2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Rd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return l2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},I3e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,s2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Th((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:JC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:JC(t,i,e.maxTime))),i},s9=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},N3e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},a1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},l9=(e,t,n,r)=>{switch(n){case"month":return i2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return a1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},c9=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?c9(e,a,o.maxLength):a},j3e=(e,t,n,r,o,a,i)=>{const s=N3e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>u9(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=l9(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},c2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),d9=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},GM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),f9=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,p9=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return f9(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},F3e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},qM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=s9(e,w),_=p9(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=c9(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:L3e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=F3e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},z3e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=c2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},B3e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=i2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:f9(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=a1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},U3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=a1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},YM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>YM[i.type]-YM[s.type]).reduce((i,s)=>!a||s.modified?U3e(e,t,s,n,i):i,o),W3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,H3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},G3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:s2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,G3e);return t!=null&&r.utils.isValid(t)?t:n??A3e(r)},cleanValue:v3e,areValuesEqual:g3e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},u2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:d9(o(t),r),getValueStrFromSections:V3e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Oh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},d2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>s2(n,o,"date")}),[]);return e??a},q3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Y3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},r3e,t)},K3e=he(o1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),J3e=he(t9,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Z3e=["hours","minutes"],X3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:R=Z3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,J=Oe(o,q3e),X=u??Oh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Rd({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=d2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),Z=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=kh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Th(v,r),He=we==="hours"||we==="minutes"&&R.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,Z)||w&&$e(Z,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Bp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,Z,R]),Ve=Za(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Bp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:M3e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=Y3e(De);return O.jsxs(K3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},J,{children:[O.jsx(T3e,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(J3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function Q3e(e){return tt("MuiDigitalClock",e)}const eNe=et("MuiDigitalClock",["root","list","item"]),tNe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],nNe=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},Q3e,t)},rNe=he(o1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:r9})),oNe=he(qE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),aNe=he(ty,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),iNe=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Je({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:J,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,tNe),{value:N,handleValueChange:B,timezone:Z}=Rd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(Z),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=nNe(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:aNe,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=d2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=kh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Th(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||R!=null&&R(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,R,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return O.jsx(rNe,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:O.jsx(oNe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return O.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:J||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function sNe(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function lNe(e){return tt("MuiMultiSectionDigitalClock",e)}const cNe=et("MuiMultiSectionDigitalClock",["root","item"]),uNe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],dNe=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},lNe,t)},fNe=he(qE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:r9,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),pNe=he(ty,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),hNe=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,uNe),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=dNe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:pNe;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),O.jsx(fNe,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return O.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),mNe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},JM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},vNe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],gNe=e=>{const{classes:t}=e;return Qe({root:["root"]},sNe,t)},yNe=he(o1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),bNe=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,J=Oe(o,vNe),{value:X,handleValueChange:j,timezone:K}=Rd({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=d2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=kh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Th(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Bp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Bp($e,se,a);Ve("hours",r.setHours(B,He))},items:mNe({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:JM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:JM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=gNe(Be);return O.jsx(yNe,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},J,{children:Object.entries(De).map(([we,$e])=>O.jsx(hNe,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function xNe(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wNe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],CNe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xNe,l)},h9=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Up,height:Up,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${t1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),m9=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},$Ne=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(h9),SNe=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(({theme:e,ownerState:t})=>T({},h9({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},_Ne=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Oe(r,wNe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=CNe(k),R=qt(),F=$.useRef(null),U=sn(F,n);Jn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?O.jsx(SNe,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx($Ne,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),ENe=$.memo(_Ne);function v9(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const PNe=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=l2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>B3e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>qM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),R=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=I3e(D),Z=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),d9(B,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=qM(t,_,n,v,xe,x,w,a);return KM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:Z,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},TNe=5e3,nu=e=>e.saveQuery!=null,kNe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),TNe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>l9(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&s9(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>GM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:u9(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=p9(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=GM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=a1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ONe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ry=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ry(t.shadowRoot):t:null},f2="@media (pointer: fine)",RNe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],p2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=PNe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Oe(e.forwardedProps,RNe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=kNe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),J=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>H3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),Z=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(W3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=j3e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Jn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===ry(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=v9(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===ry(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),R==null||R(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},Rh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Kr(n.utils,e.minDate,n.defaultDates.minDate),f=Kr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},ZC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],g9=["minDateTime","maxDateTime"],DNe=[...ZC,...XC,...g9],Dd=e=>DNe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),MNe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],h2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return MNe.forEach(o),t==="date"?ZC.forEach(o):t==="time"?XC.forEach(o):t==="date-time"&&(ZC.forEach(o),XC.forEach(o),g9.forEach(o)),{forwardedProps:n,internalProps:r}},INe=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Kr(o,e.minDate,a.minDate),maxDate:Kr(o,e.maxDate,a.maxDate)})},ANe=({props:e,inputRef:t})=>{const n=INe(e),{forwardedProps:r,internalProps:o}=h2(n,"date");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:Rh,valueType:"date"})},NNe=he(W0)({[`& .${rp.container}`]:{outline:0},[`& .${rp.paper}`]:{outline:0,minWidth:n1}}),jNe=he(G0)({"&:first-of-type":{padding:0}});function LNe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:NNe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(jNe,{children:r})}))}function FNe(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const zNe="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ZM=ju&&ju[1]?parseInt(ju[1],10):null,XM=ju&&ju[2]?parseInt(ju[2],10):null,VNe=ZM&&ZM<10||XM&&XM<13||!1,y9=()=>Sh(zNe,{defaultMatches:!1})||VNe,BNe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],UNe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},FNe,t)},WNe=he(Ch,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HNe=he(ps,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function GNe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&GNe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const YNe=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,BNe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function KNe(e){var t,n,r,o;const a=Je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=ry(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=qNe(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,R=UNe(I),F=y9(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:Qg,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:X6,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:HNe,Q=(o=v==null?void 0:v.popper)!=null?o:WNe,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},W,{children:({TransitionProps:J,placement:X})=>O.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(z,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(YNe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function b9(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const JNe=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},b9,t)},ZNe=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),XNe=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),m2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=JNe(c);return s?null:O.jsxs(ZNe,{ref:n,className:Ne(u.root,a),ownerState:c,children:[O.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(XNe,{className:u.content,ownerState:c,children:o})]})});function QNe(e){return tt("MuiPickersToolbarText",e)}const QM=et("MuiPickersToolbarText",["root","selected"]),e4e=["className","selected","value"],t4e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},QNe,t)},n4e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${QM.selected}`]:{color:(e.vars||e).palette.text.primary}})),v2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,e4e),s=t4e(r);return O.jsx(n4e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),r4e=["align","className","selected","typographyClassName","value","variant","width"],o4e=e=>{const{classes:t}=e;return Qe({root:["root"]},b9,t)},a4e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,r4e),p=o4e(r);return O.jsx(a4e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(v2,{align:o,className:s,variant:c,value:l,selected:i})}))}),i4e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},s4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},l4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},c4e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},u4e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=i4e(e),[_,S]=$.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=l2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});v9(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,Z.value,ue),isControlled:b,closeOnSelect:c},ce=s4e(re),xe=l4e(re),me=c4e(re);if(S(ue=>T({},ue,{draft:Z.value,lastPublishedValue:ce?Z.value:ue.lastPublishedValue,lastCommittedValue:xe?Z.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(se.shortcut=Z.shortcut),k(Z.value,se)}xe&&a&&a(Z.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),W=mt((Z,re,ce)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:ce})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),j={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},d4e=["className","sx"],f4e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,d4e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=kh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Jn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Jn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function eI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const p4e=(e,t)=>{const[n,r]=$.useState(eI);return Jn(()=>{const a=()=>{r(eI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},h4e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=p4e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},x9=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};x9(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const w9=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=u4e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=f4e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=h4e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function C9(e){return tt("MuiPickersLayout",e)}const Jx=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),m4e=["onAccept","onClear","onCancel","onSetToday","actions"];function v4e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,m4e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(H0,T({},i,{children:l}))}const g4e=["items","changeImportance","isLandscape","onChange","isValid"],y4e=["getValue"];function b4e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,g4e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,y4e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(GE,T({dense:!0,sx:[{maxHeight:r1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(OL,{children:O.jsx(dL,T({},s))},s.label))}))}function x4e(e){return e.view!==null}const w4e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},C9,t)},C4e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Oh(w),k=S??C,I=w4e(e),R=(t=E==null?void 0:E.actionBar)!=null?t:v4e,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=x4e(z)&&G?O.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:b4e,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&J?O.jsx(J,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},$4e=C4e,S4e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},C9,n)},$9=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Jx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Jx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Jx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));$9.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const _4e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),S9=function(t){const n=Je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=$4e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=S4e(m);return O.jsxs($9,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(_4e,{className:b.contentWrapper,children:p==="desktop"?O.jsxs($.Fragment,{children:[o,a]}):O.jsxs($.Fragment,{children:[a,o]})}),i]})},i1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Th(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},g2=({props:e,value:t,adapter:n})=>{const r=Rh({adapter:n,value:t,props:e});return r!==null?r:i1({adapter:n,value:t,props:e})},E4e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P4e=["children","className","reduceAnimations","slideDirection","transKey","classes"],T4e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,E4e,t)},k4e=he(DE,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function O4e(e){const t=Je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,P4e),s=T4e(t),l=rr();if(o)return O.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(k4e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(tCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const _9=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Rh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},R4e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D4e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M4e=["ownerState"],I4e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},R4e,t)},E9=(Up+t1*2)*6,A4e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),j4e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),L4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),F4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Up,height:Up,padding:0,margin:`0 ${t1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),z4e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:E9}),V4e=he(O4e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:E9}),B4e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),U4e=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${t1}px 0`,display:"flex",justifyContent:"center"});function W4e(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,D4e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:ENe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,M4e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function H4e(e){const t=Je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=I4e(t),W=rr().direction==="rtl",J=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=_9({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),Z=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":Z(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":Z(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ap({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ap({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"Home":Z(V.startOfWeek(Be)),De.preventDefault();break;case"End":Z(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":Z(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":Z(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>Z(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ap({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return O.jsx(j4e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=J==null?void 0:J(we,De))!=null?ge:we},we+Be.toString())})]}),s?O.jsx(z4e,{className:Y.loadingContainer,children:p()}):O.jsx(V4e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:O.jsx(B4e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>O.jsxs(U4e,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[R&&O.jsx(F4e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>O.jsx(W4e,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const G4e=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},q4e=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(G4e(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=_9({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},Y4e=["ownerState"],y2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,Y4e),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:WAe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs($.Fragment,{children:[O.jsx(HE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},K4e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],J4e=["inputRef"],Z4e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,K4e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,J4e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=ANe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,Z4e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),X4e=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},Q4e=({props:e,inputRef:t})=>{const n=X4e(e),{forwardedProps:r,internalProps:o}=h2(n,"time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:i1,valueType:"time"})},e5e=["slots","slotProps","components","componentsProps","InputProps","inputProps"],t5e=["inputRef"],n5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],T9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,e5e),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,t5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=Q4e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,n5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),r5e=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Kr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Kr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},o5e=({props:e,inputRef:t})=>{const n=r5e(e),{forwardedProps:r,internalProps:o}=h2(n,"date-time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:g2,valueType:"date-time"})},a5e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],i5e=["inputRef"],s5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],k9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,a5e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,i5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=o5e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,s5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),l5e=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const c5e=e=>{const{classes:t}=e;return Qe({root:["root"]},l5e,t)},u5e=he(DE,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function O9(e){const t=Je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=c5e(t),s=rr();return o?n:O.jsx(u5e,{className:Ne(i.root,r),children:O.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function d5e(e){return tt("MuiPickersMonth",e)}const bv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),f5e=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],p5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},d5e,r)},h5e=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),m5e=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${bv.disabled}`]:t.disabled},{[`&.${bv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),v5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,f5e),x=$.useRef(null),g=p5e(n);return Jn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(h5e,T({className:g.root,ownerState:n},v,{children:O.jsx(m5e,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function g5e(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const y5e=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],b5e=e=>{const{classes:t}=e;return Qe({root:["root"]},g5e,t)};function x5e(e,t){const n=qt(),r=_c(),o=Je({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Kr(n,o.minDate,r.minDate),maxDate:Kr(n,o.maxDate,r.maxDate)})}const w5e=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:n1,boxSizing:"border-box"}),C5e=$.forwardRef(function(t,n){const r=x5e(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Oe(r,y5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=b5e(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),J=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);R(se)}),Z=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>J!==null&&me!==J?J:me)},[J]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":Z((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":Z((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":Z((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":Z((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{Z(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return O.jsx(w5e,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:i2(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===J,Ve=l||N(me);return O.jsx(v5e,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function $5e(e){return tt("MuiPickersYear",e)}const xv=et("MuiPickersYear",["root","yearButton","selected","disabled"]),S5e=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],_5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},$5e,r)},E5e=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),P5e=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xv.disabled}`]:t.disabled},{[`&.${xv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),T5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,S5e),x=$.useRef(null),g=_5e(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(E5e,T({className:Ne(g.root,o),ownerState:n},v,{children:O.jsx(P5e,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function k5e(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const O5e=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],R5e=e=>{const{classes:t}=e;return Qe({root:["root"]},k5e,t)};function D5e(e,t){var n;const r=qt(),o=_c(),a=Je({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Kr(r,a.minDate,o.minDate),maxDate:Kr(r,a.maxDate,o.maxDate)})}const M5e=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:n1,maxHeight:n3e,boxSizing:"border-box",position:"relative"}),I5e=$.forwardRef(function(t,n){const r=D5e(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Oe(r,O5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=R5e(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),J=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);R(fe)}),Z=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>J!==null&&se!==J?J:se)},[J]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":Z(Ce-_),se.preventDefault();break;case"ArrowDown":Z(Ce+_),se.preventDefault();break;case"ArrowLeft":Z(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":Z(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{Z(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===J,Ve=c||N(se);return O.jsx(T5e,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),A5e=e=>tt("MuiPickersCalendarHeader",e),N5e=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),j5e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],L5e=["ownerState"],F5e=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},A5e,t)},z5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),V5e=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),B5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),U5e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${N5e.switchViewIcon}`]:{transform:"rotate(180deg)"}})),W5e=he(LAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),H5e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Je({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Oe(s,j5e),I=s,R=F5e(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:U5e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:W5e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),V=Oe(z,L5e),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=e3e(u,{disableFuture:p,maxDate:b,timezone:E}),J=t3e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:O.jsxs(z5e,T({},k,{ownerState:I,className:Ne(S,R.root),ref:n,children:[O.jsxs(V5e,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(O9,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(B5e,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},V))}))]}),O.jsx(kd,{in:y==="day",children:O.jsx(t9,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),G5e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const q5e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Y5e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},G5e,t)};function K5e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=y9(),p=Je({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Kr(c,p.minDate,u.minDate),maxDate:Kr(c,p.maxDate,u.maxDate)})}const J5e=he(o1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:r1}),Z5e=he(O9,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),R9=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Za(),l=K5e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Oe(l,q5e),{value:se,handleValueChange:Ce,timezone:fe}=Rd({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=kh({view:k,views:I,openTo:R,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=q4e({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:H5e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&JC(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=Y5e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return O.jsxs(J5e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[O.jsx(Le,T({},ne)),O.jsx(Z5e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:O.jsxs("div",{children:[Ve==="year"&&O.jsx(I5e,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&O.jsx(C5e,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&O.jsx(H4e,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z}))]})})]}))});function X5e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const Q5e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],eje=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},X5e,t)},tje=he(m2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nje=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),rje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,Q5e),u=qt(),f=Er(),p=eje(r),m=$.useMemo(()=>{if(!o)return s;const v=Hp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(tje,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(nje,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function D9(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Je({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Oh(l.components);return T({},l,{localeText:c},a2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Kr(i,l.minDate,s.minDate),maxDate:Kr(i,l.maxDate,s.maxDate),slots:T({toolbar:rje},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const oje=["props","getOpenDialogAriaText"],aje=["ownerState"],ije=["ownerState"],b2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,oje);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),R=Za(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=w9(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:HE,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Oe(X,aje),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Oe(q,ije),N=c.openPickerIcon,B=c.field,Z=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${j.position}Adornment`]:O.jsx(J,T({},j,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ce=(a=c.layout)!=null?a:S9,xe=sn(k,Z.inputRef,g);let me=R;F&&(x?me=`${R}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:_,children:[O.jsx(B,T({},Z,{slots:re,slotProps:ue,inputRef:xe})),O.jsx(KNe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:O.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>O.jsx(R9,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),M9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=D9(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Hp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:e9,field:P9},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=b2({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Rh});return p()});M9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const sje=["props","getOpenDialogAriaText"],x2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,sje);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Za(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=w9(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ONe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:S9,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:y,children:[O.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),O.jsx(LNe,T({},k,{open:E,slots:s,slotProps:W,children:O.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:R()}))}))]})}},I9=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=D9(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Hp(s,l,!1),slots:T({field:P9},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=x2({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Rh});return f()});I9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const lje=["desktopModeMediaQuery"],cje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,lje);return Sh(o,{defaultMatches:!0})?O.jsx(M9,T({ref:n},a)):O.jsx(I9,T({ref:n},a))});function uje(e){return tt("MuiTimePickerToolbar",e)}const ip=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),dje=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fje=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,uje,r)},pje=he(m2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hje=he(v2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),A9=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ip.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ip.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));A9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N9=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ip.ampmLabel}`]:t.ampmLabel},{[`&.${ip.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ip.ampmLabel}`]:{fontSize:17}}));N9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function mje(e){const t=Je({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,dje),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=e1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=fje(T({},C,{theme:v})),S=O.jsx(hje,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(pje,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(A9,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&O.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(N9,{className:_.ampmSelection,ownerState:C,children:[O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function j9(e,t){var n,r,o,a,i;const s=qt(),l=Je({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Oh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},a2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:mje},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>O.jsx(X3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),L9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(iNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),QC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(bNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),vje=["views","format"],F9=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,vje);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return Hp(e,T({views:a},o),!1);if(a.length===0)return ny(e,T({views:i},o));const s=ny(e,T({views:i},o));return`${Hp(e,T({views:a},o),!1)} ${s}`},gje=(e,t,n)=>n?t.filter(r=>!Ds(r)||r==="hours"):e?[...t,"meridiem"]:t,yje=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function z9({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=yje(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:gje(t,r,i)}}const V9=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=j9(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=z9(f),v=p?L9:QC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===QC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ny(u,f),views:p?["hours"]:C,slots:T({field:T9,openPickerIcon:VAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:i1});return S()});V9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const B9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=j9(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ny(l,c),slots:T({field:T9},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=x2({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:i1});return m()});B9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const bje=["desktopModeMediaQuery"],xje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,bje);return Sh(o,{defaultMatches:!0})?O.jsx(V9,T({ref:n},a)):O.jsx(B9,T({ref:n},a))});function wje(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const Cje=e=>Nu(e)?"date":"time",$je=e=>e==="date"?"day":"hours",Sje=e=>{const{classes:t}=e;return Qe({root:["root"]},wje,t)},_je=he(J0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Jv.indicator}`]:{bottom:"auto",top:0}}})),Eje=function(t){const n=Je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(BAe,{}),onViewChange:o,timeIcon:a=O.jsx(UAe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=Sje(n),u=(f,p)=>{o($je(p))};return s?null:O.jsxs(_je,{ownerState:n,variant:"fullWidth",value:Cje(i),onChange:u,className:c.root,children:[O.jsx(Vp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx($.Fragment,{children:r})}),O.jsx(Vp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx($.Fragment,{children:a})})]})};function Pje(e){return tt("MuiDateTimePickerToolbar",e)}const Zx=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Tje=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],kje=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,Pje,t)},U9=he(m2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));U9.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const Oje=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),W9=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Rje=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));W9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const tI=he(v2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Dje=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zx.ampmLabel}`]:t.ampmLabel},{[`&.${Zx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Zx.ampmLabel}`]:{fontSize:17}}));function Mje(e){const t=Je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,Tje),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=e1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=kje(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(U9,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(Oje,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs(W9,{className:k.timeContainer,ownerState:x,children:[O.jsxs(Rje,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(Dje,{className:k.ampmSelection,ownerState:x,children:[O.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function H9(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Je({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Oh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,a2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Kr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Kr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:Mje,tabs:Eje},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const Ije=he("div")({display:"flex",margin:"0 auto"}),Ol=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ds(e)?e:"hours",onViewChange:t,focusedView:r&&Ds(r)?r:null,onFocusedViewChange:o,views:n.filter(Ds),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return O.jsxs($.Fragment,{children:[O.jsxs(Ije,{children:[O.jsx(R9,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce}),se>0&&O.jsxs($.Fragment,{children:[O.jsx(pM,{orientation:"vertical"}),Ce?L9(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ds(r)?"hours":null,sx:T({width:"auto",[`&.${eNe.root}`]:{maxHeight:r1}},Array.isArray(N)?N:[N])})):QC(T({},De,{view:Ds(e)?e:"hours",views:n.filter(Ds),focusedView:r&&Ds(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${cNe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(pM,{})]})},G9=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=H9(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=z9(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Ol,month:Ol,year:Ol,hours:Ol,minutes:Ol,seconds:Ol,meridiem:Ol}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:F9(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:k9,openPickerIcon:e9},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:g2});return S()});G9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const q9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=H9(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:F9(c,u),ampmInClock:p,slots:T({field:k9},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=x2({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:g2});return b()});q9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const Aje=["desktopModeMediaQuery"],Nje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,Aje);return Sh(o,{defaultMatches:!0})?O.jsx(G9,T({ref:n},a)):O.jsx(q9,T({ref:n},a))});var Y9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Y9);var jje=Y9.exports;const Lje=Vt(jje);var K9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(K9);var Fje=K9.exports;const zje=Vt(Fje);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(J9);var Vje=J9.exports;const Bje=Vt(Vje);var Z9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Z9);var Uje=Z9.exports;const Wje=Vt(Uje);xr.extend(zje);xr.extend(Bje);xr.extend(Wje);const Hje=x9(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),Gje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},qje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Xx=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),nI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),Yje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class w2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Gje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Xx);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Xx);if(!this.hasTimezonePlugin())throw new Error(nI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(Hje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Xx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(nI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=Yje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},qje,n),xr.extend(Lje)}}var C2={},Kje=Cc;Object.defineProperty(C2,"__esModule",{value:!0});var X9=C2.default=void 0,Jje=Kje($c()),Zje=O,Xje=(0,Jje.default)((0,Zje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");X9=C2.default=Xje;const Qje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Dj(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Jy(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},e6e=vn(3,vj);var t6e=t1e(Qje);class Q9 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=kIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&lj(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const n6e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Jy(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(Q9,{schema:e,combinatorKeyword:p,path:o}),M.createElement(J0,{value:c,onChange:f},m.map(b=>M.createElement(Vp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};s6(n6e);const r6e=he(Od)({borderBottom:"none"}),Gp=({children:e,...t})=>M.createElement(r6e,Object.assign({},t),e),o6e=he(mL)(({theme:e})=>({color:e.palette.error.main})),e8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(o6e,{badgeContent:e.split(` +`).length},M.createElement(n2,{color:"inherit"}))),a6e={paddingLeft:0,paddingRight:0},i6e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Gp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Gp,{align:"right",style:a6e},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large"},M.createElement(e2,null)))):null)}),rI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},t8=(e,t,n,r,o)=>{if(t.type==="object")return n8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},n8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],s6e=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Gp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),l6e=M.memo(function({title:t}){return M.createElement(Od,null,t)}),c6e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},oI=e=>({type:"Control",scope:e,label:!1}),u6e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Gp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:oI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:oI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),d6e=e=>{const t=xc(),n=c6e(t,e),r=Mt(n.errors);return M.createElement(u6e,Object.assign({},n,{isValid:r}))},f6e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},t8(d6e,t,e,c,u),c?M.createElement(Gp,{style:l?rI.fixedCell:rI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(X0,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(Z0,null))))):null)},p6e=M.memo(f6e),h6e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(s6e,{numColumns:n8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=sr.compose(t,`${m}`);return M.createElement(p6e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let m6e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?t8(l6e,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(UL,null,M.createElement(HL,null,M.createElement(i6e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Od,null):null)),M.createElement(WL,null,M.createElement(h6e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const v6e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(UE,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(H0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),g6e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(m6e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(v6e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};Zy(g6e);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},r8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,R=!To(r,t,S,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(xEe,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(Eh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!R},F),M.createElement(pr,{error:!y},U))},$2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(U2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});r2.extend(wAe);const S2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=r2(r).format(n);t(e,o)},_2=(e,t)=>{if(!e)return null;const n=r2(e,t);return n.toString()==="Invalid Date"?null:n},y6e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),b6e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},y6e(t,n,r,o,i,s))),Dh=M.memo(b6e),o8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},x6e=e=>e.target.value,Ec=(e,t,n,r,o=x6e,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(e6(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},w6e={"enum.none":"None"},C6e=e=>e===""?void 0:parseInt(e,10),$6e=e=>C6e(e.target.value),a8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,$6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),S6e=e=>e===""?void 0:parseFloat(e),_6e=e=>S6e(e.target.value),i8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,_6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),E6e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(hs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),P6e=e=>e.target.value===""?void 0:e.target.value,s8=M.memo(function(t){var R,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,P6e),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(hs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(HE,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(JL,{style:I}))),inputComponent:v})}),T6e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(hs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),s1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",w6e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(zL,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(ty,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(ty,{value:v.value,key:v.value},v.label))))}),l8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(HDe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),k6e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement($h,{component:"fieldset"},M.createElement(CL,{row:!0},o.map((u,f)=>{const p=sr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(q0,{id:u.value,key:u.value,control:M.createElement($2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));i1e(k6e);const O6e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>hh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var R6e=n1e(O6e);const D6e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=Jy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,is(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,is,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(Q9,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(J0,{value:b,onChange:E},C.map(k=>M.createElement(Vp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(W0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(UE,{id:"alert-dialog-title"},"Clear form?"),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(H0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},M6e=vn(3,yj);var I6e=e1e(D6e);const A6e=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));u6(A6e);const c8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(kMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(e2,null))))))))}),N6e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(OL,{button:!0,selected:n,onClick:o(e)},M.createElement(Nke,null,M.createElement(pL,{"aria-label":"Index"},e+1)),M.createElement(Wke,{primary:t}),r&&M.createElement(kL,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(Z0,null))));var j6e=r1e(N6e);const L6e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>is(t),[is]),S=$.useMemo(()=>hh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(c8,{translations:x,label:qy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(GE,null,f>0?XL(wd(f),k=>M.createElement(j6e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};Zy(L6e);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement($h,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(PL,{htmlFor:o+"-input",error:!m,required:Yy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},F6e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),z6e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),V6e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=F6e(u.anyOf),m=z6e(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(hs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class B6e extends n6{render(){return M.createElement(Md,Object.assign({},this.props,{input:V6e}))}}co(B6e);const U6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement($2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(U6e);const W6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement(l8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(W6e);const H6e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(cje,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};co(H6e);const G6e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(Nje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(G6e);const q6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};nE(ul(M.memo(q6e)),!1);const Y6e=e=>M.createElement(Md,Object.assign({},e,{input:a8}));co(Y6e);const K6e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(Eh,{required:Yy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};co(K6e);const J6e=e=>M.createElement(Md,Object.assign({},e,{input:i8}));co(J6e);const Z6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};rE(ul(M.memo(Z6e)),!1);const u8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement($h,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(WE,{htmlFor:a,error:!x,component:"legend",required:Yy(s,g.hideRequiredAsterisk)},i),M.createElement(QOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(q0,{value:C.value,key:C.label,control:M.createElement(JOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},X6e=e=>M.createElement(u8,Object.assign({},e));rE(X6e);const Q6e=e=>M.createElement(u8,Object.assign({},e));nE(Q6e);const eLe=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement($h,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(WE,{htmlFor:o,error:!x,component:"legend",required:Yy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(MRe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};co(eLe);const tLe=e=>M.createElement(Md,Object.assign({},e,{input:s8}));co(tLe);const nLe=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(xje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(nLe);const Qx={float:"right"},rLe=e=>{const[t]=$.useState(Bj("expand-panel"));$.useEffect(()=>()=>{Uj(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>hh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(PCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(i$e,{expandIcon:M.createElement(X9,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(pL,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:Qx,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:Qx,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(X0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:Qx,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(Z0,null))))))))),M.createElement(MCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},oLe=M.memo(rLe),aLe=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(uj(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(dj(o,n),o)))},[e])}),iLe=e=>function({ctx:n,props:r}){const o=aLe(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Iye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},sLe=e=>_r(iLe(e));var lLe=sLe(oLe);const cLe={marginBottom:"10px"},uLe=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(l2e,{style:cLe},!Mt(o)&&M.createElement(S2e,{title:o}),M.createElement(h2e,null,M.createElement(Dh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),dLe=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(uLe,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};ds(dLe);const fLe=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Dh,Object.assign({},l,{renderers:t,cells:n}))};ds(fLe);const pLe=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Dh,Object.assign({},l,{renderers:a,cells:i}))};ds(pLe);const hLe=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Wy(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(P$e,{position:"static"},M.createElement(J0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Vp,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Dh,Object.assign({},C,{key:w}))))};o8(ul(ds(hLe)));const mLe=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>is(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(c8,{translations:C,label:qy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?XL(wd(s),S=>M.createElement(lLe,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(vLe,Object.assign({visible:e,addItem:r},n)))};Zy(gLe);const yLe=e=>M.createElement($2,Object.assign({},e));hr(yLe);const bLe=e=>M.createElement(l8,Object.assign({},e));hr(bLe);const xLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(hs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(xLe);const wLe=e=>M.createElement(s1,Object.assign({},e));c6(ul(M.memo(wLe)),!1);const CLe=e=>M.createElement(a8,Object.assign({},e));hr(CLe);const $Le=e=>M.createElement(i8,Object.assign({},e));hr($Le);const SLe=e=>M.createElement(E6e,Object.assign({},e));hr(SLe);const _Le=e=>M.createElement(s1,Object.assign({},e));a1e(ul(M.memo(_Le)),!1);const ELe=e=>M.createElement(s8,Object.assign({},e));hr(ELe);const PLe=e=>M.createElement(T6e,Object.assign({},e));hr(PLe);const TLe=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Wy(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(ADe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(JRe,{key:_[E]},M.createElement(wDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Dh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};o8(ul(ds(TLe)));var kLe=Array.prototype,OLe=kLe.join;function RLe(e,t){return e==null?"":OLe.call(e,t)}var DLe=RLe;const d8=Vt(DLe);var MLe=xd,f8=MLe("filter",y5);f8.placeholder=gc();var ILe=f8;const aI=Vt(ILe);var ALe=xd,p8=ALe("map",ZL);p8.placeholder=gc();var NLe=p8;const iI=Vt(NLe);var ew,sI;function jLe(){if(sI)return ew;sI=1;var e=MS(),t=jS,n=DS(),r=n5(),o=cr,a=r5(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Mg(e,o=>o.name===t);return SC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>d8(sp(e)(t,n)," "),qLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],YLe={styles:qLe},KLe=M.createContext(YLe),JLe=()=>$.useContext(KLe),E2=()=>{const{styles:e}=JLe();return e},Oi=e=>function(n){const r=xc(),o=E2(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>sp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${Lj(a.scope)}`]);s&&(c=c.concat(sp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>sp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},P2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=E2(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:sp(a),className:o.join(" ")}))},Xa=P2("control.input"),ZLe=P2("control.select"),XLe=P2("control.checkbox"),QLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},e9e=vn(2,mj);var t9e=hr(XLe(QLe));const n9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},r9e=vn(2,Sj);var o9e=hr(Xa(n9e));const a9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},i9e=vn(2,Ej);var s9e=hr(Xa(a9e));const l9e=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",GLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},c9e=vn(2,O_);var u9e=c6(ul(ZLe(l9e)));const d9e=e=>e===""?void 0:parseInt(e,10),f9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,d9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},p9e=vn(2,xj);var h9e=hr(Xa(f9e));const m9e=e=>e===""?void 0:Number(e),v9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,m9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},g9e=vn(2,wj);var y9e=hr(Xa(v9e));const b9e=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(Xa(b9e));const x9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},w9e=vn(4,kj);var C9e=hr(Xa(x9e));const $9e=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},S9e=vn(1,Cj);hr(Xa($9e));const _9e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},E9e=vn(2,$j);hr(Xa(_9e));const P9e=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},T9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,P9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},k9e=vn(2,_j);var O9e=hr(Xa(T9e));class R9e extends n6{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Ay(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},qy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const D9e=vn(1,Ya);var y8=Oi(co(R9e));const b8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=E2(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},qy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},M9e=e=>M.createElement(b8,Object.assign({},e)),I9e=vn(3,$n(O_,us("format","radio")));var A9e=Oi(nE(M9e));const N9e=e=>M.createElement(b8,Object.assign({},e)),j9e=vn(3,$n(bj,us("format","radio")));var L9e=Oi(rE(N9e));const{convertToValidClassName:F9e}=Ug,z9e=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>hh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),F9e(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,is(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},V9e=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Ug.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Ug.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(z9e,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var B9e=Oi(l6(V9e));const U9e=vn(4,D_),T2=e=>e.type==="Categorization",W9e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>T2(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),H9e=(e,t)=>t===e?"selected":"",x8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Wy(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>T2(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(x8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:H9e(l,t)},M.createElement("span",null,s[c]))))},G9e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class q9e extends t6{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(x8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(G9e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:T2(n)?this.findCategory(n):n}}var Y9e=Oi(ul(ds(q9e)));const K9e=vn(1,_n("Label")),J9e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var Z9e=Oi(u6(J9e));const{convertToValidClassName:X9e}=Ug,{or:Q9e,isObjectArrayControl:e8e,isPrimitiveArrayControl:t8e,rankWith:n8e}=Qge,r8e=n8e(3,Q9e(e8e,t8e));class o8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),X9e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,is(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?cI(dI,aI(S=>r.properties[S].type!=="array"),iI(S=>M.createElement("th",{key:S},r.properties[S].title??HLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=sr.compose(a,`${E}`),I=Mg(f,G=>Fg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?cI(dI,aI(G=>r.properties[G].type!=="array"),iI(G=>{const z=sr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:sr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},d8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var a8e=Oi(l6(o8e));const k2=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},i8e=vn(1,_n("Group")),s8e=e=>{const{data:t,...n}=e;return M.createElement(l8e,Object.assign({},n))},l8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),k2(c,t,p,r,o))});var c8e=Oi(ds(s8e));const w8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),u8e=vn(1,_n("HorizontalLayout")),d8e=e=>{const{data:t,...n}=e;return M.createElement(f8e,Object.assign({},n))},f8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(w8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},k2(l,t,f,s,a))});var p8e=Oi(ds(d8e,!1));const h8e=vn(1,_n("VerticalLayout")),m8e=e=>{const{data:t,...n}=e;return M.createElement(v8e,Object.assign({},n))},v8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(w8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},k2(l,t,f,r,a))});var g8e=Oi(ds(m8e,!1));const y8e=[{tester:D9e,renderer:y8},{tester:I9e,renderer:A9e},{tester:j9e,renderer:L9e},{tester:U9e,renderer:B9e},{tester:K9e,renderer:Z9e},{tester:W9e,renderer:Y9e},{tester:r8e,renderer:a8e},{tester:i8e,renderer:c8e},{tester:h8e,renderer:g8e},{tester:u8e,renderer:p8e}],O2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),b8e=he(Od)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),qp=({children:e,...t})=>O.jsx(b8e,{...t,children:e}),R2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),x8e=he(mL)(({theme:e})=>({color:e.palette.error.main})),w8e=({errorMessages:e,id:t})=>O.jsx(wc,{id:t,title:e,children:O.jsx(x8e,{badgeContent:e.split(` +`).length,children:O.jsx(n2,{color:"inherit"})})}),C8e={paddingLeft:0,paddingRight:0},$8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(hl,{children:[O.jsx(qp,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(w8e,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(qp,{align:"right",style:C8e,children:O.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large",sx:{p:1},children:O.jsx(R2,{className:"text-ls-black"})})})}):null]})}),fI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},C8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return $8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},$8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],S8e=({numColumns:e,translations:t})=>O.jsx(hl,{children:O.jsx(qp,{colSpan:e,children:O.jsx(yn,{align:"center",children:t.noDataMessage})})}),_8e=M.memo(function({title:t}){return O.jsx(Od,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),E8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pI=e=>({type:"Control",scope:e,label:!1}),P8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(qp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:pI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ic,{schema:r,uischema:pI("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(pr,{error:!c,children:!c&&a})]})}),T8e=e=>{const t=xc(),n=E8e(t,e),r=Mt(n.errors);return O.jsx(P8e,{...n,isValid:r})},k8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(hl,{hover:!0,children:[C8(T8e,t,e,c,u),c?O.jsx(qp,{style:l?fI.fixedCell:fI.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs($.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(Q0,{})})}),O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(X0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(O2,{className:"text-ls-black"})})})]})}):null]},e)},O8e=M.memo(k8e),R8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(S8e,{numColumns:$8(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:wd(e).map(m=>{const b=sr.compose(t,`${m}`);return O.jsx(O8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class D8e extends M.Component{constructor(){super(...arguments);Jd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?C8(_8e,o,r,u,f):void 0;return O.jsx(Tn,{xsUp:!c,children:O.jsxs(UL,{children:[O.jsxs(HL,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx($8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(hl,{children:[v,u?O.jsx(Od,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx(WL,{children:O.jsx(R8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const M8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(UE,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(G0,{children:O.jsx(BE,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(H0,{children:[O.jsx(Go,{onClick:o,color:"primary",children:l}),O.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),I8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Tn,{xsUp:!l,children:[O.jsx(D8e,{...e,openDeleteDialog:c}),O.jsx(M8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},A8e=vn(11,yc(R_,Tj,D_)),S8=Zy(I8e),hI=Zi("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return O.jsxs("div",{className:Zi("grid w-full",e.className),children:[O.jsx("textarea",{id:e.id,className:Zi(hI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Zi(hI,"pointer-events-none select-none"),children:[e.value," "]})]})}const N8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},mI=hr(Xa(N8e));function j8e(e){try{return JSON.parse(e)}catch{return e}}function L8e(e){try{return JSON.stringify(e)}catch{return e}}const F8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:typeof t=="object"?L8e(t):t??"",onChange:u=>l(s,u===""?void 0:j8e(u)),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},z8e=hr(Xa(F8e)),V8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function B8e(e){return typeof e=="object"&&e!=null}function oy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(B8e(r))r=r[o];else return}return r}function l1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function U8e(e){const t=e+"CollectionProvider",[n,r]=Sy(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=as(b,g.collectionRef);return M.createElement(kp,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=as(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(kp,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const W8e=$.createContext(void 0);function _8(e){const t=$.useContext(W8e);return e||t||"ltr"}const rw="rovingFocusGroup.onEntryFocus",H8e={bubbles:!1,cancelable:!0},D2="RovingFocusGroup",[e$,E8,G8e]=U8e(D2),[q8e,P8]=Sy(D2,[G8e]),[Y8e,K8e]=q8e(D2),J8e=$.forwardRef((e,t)=>$.createElement(e$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(e$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(Z8e,T({},e,{ref:t}))))),Z8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=as(t,f),m=_8(a),[b=null,v]=Qp({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=E8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(rw,y),()=>E.removeEventListener(rw,y)},[y]),$.createElement(Y8e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Jo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:ao(e.onMouseDown,()=>{C.current=!0}),onFocus:ao(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(rw,H8e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(V=>V.focusable),F=R.find(V=>V.active),U=R.find(V=>V.id===b),z=[F,U,...R].filter(Boolean).map(V=>V.ref.current);T8(z)}}C.current=!1}),onBlur:ao(e.onBlur,()=>g(!1))})))}),X8e="RovingFocusGroupItem",Q8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Mv(),l=a||s,c=K8e(X8e,n),u=c.currentTabStopId===l,f=E8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(e$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Jo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:ao(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:ao(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ao(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=nFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?rFe(g,y+1):g.slice(y+1)}setTimeout(()=>T8(g))}})})))}),eFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nFe(e,t,n){const r=tFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return eFe[r]}function T8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const oFe=J8e,aFe=Q8e,iFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Qp({prop:n,onChange:o,defaultProp:r});return $.createElement(Jo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:ao(e.onClick,()=>{e.disabled||s(!i)})}))}),c1="ToggleGroup",[k8,WFe]=Sy(c1,[P8]),O8=P8(),sFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(lFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(cFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${c1}\``)}),[R8,D8]=k8(c1),lFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Qp({prop:n,defaultProp:r,onChange:o});return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(M8,T({},a,{ref:t})))}),cFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qp({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(M8,T({},a,{ref:t})))}),[uFe,dFe]=k8(c1),M8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=O8(n),u=_8(i),f={role:"group",dir:u,...l};return M.createElement(uFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(oFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Jo.div,T({},f,{ref:t}))):M.createElement(Jo.div,T({},f,{ref:t})))}),t$="ToggleGroupItem",fFe=M.forwardRef((e,t)=>{const n=D8(t$,e.__scopeToggleGroup),r=dFe(t$,e.__scopeToggleGroup),o=O8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(aFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(vI,T({},s,{ref:t}))):M.createElement(vI,T({},s,{ref:t}))}),vI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=D8(t$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(iFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),pFe=sFe,gI=fFe,hFe=vn(12,$n(Ya,Yr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function yI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function bI(e,t){return typeof e=="string"?[{content:e,type:t}]:yI(e)?[e]:Array.isArray(e)&&e.every(yI)?e:null}function xI(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const mFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??""),i=bI(o,"human"),s=bI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=sr.compose(e.path,`${r}`),a=n.type??"chat",i=xI((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(sr.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(pFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(sr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(sr.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(gI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(V8e,{className:"w-4 h-4"})}),O.jsx(gI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(SN,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(O2,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(sr.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(sr.compose(o,"name"),p.target.value)}}),a==="ai"&&xI((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(sr.compose(o,"additional_kwargs.function_call.name")),e.handleChange(sr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(sr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(sr.compose(o,"content"),p)}})]},r)})})]})}),vFe=vn(12,$n(Ya,Yr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!l1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),gFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=sr.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(ad,{value:n,onChange:i=>{e.handleChange(sr.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(ad,{value:r,onChange:i=>{e.handleChange(sr.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(O2,{className:"w-4 h-4"})})]},o)})})]})}),yFe=vn(12,$n(Ya,Yr(e=>l1(e)?e.extra.widget.type==="base64file":!1))),bFe=co(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),xFe=s6(e=>{const t=Jy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:M2,cells:I2})}),wFe=vn(3,gj),CFe=vn(2,$n(_n("Control"),Ka("object"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),$Fe=vn(1,$n(_n("Control"),Ka("object"))),SFe=vn(1,$n(_n("Control"))),M2=[...y8e,{tester:CFe,renderer:R6e},{tester:e6e,renderer:t6e},{tester:M6e,renderer:I6e},{tester:wFe,renderer:xFe},{tester:A8e,renderer:S8},{tester:$Fe,renderer:y8},{tester:hFe,renderer:mFe},{tester:vFe,renderer:gFe},{tester:yFe,renderer:bFe}],_Fe=vn(1,(e,t)=>t.type==="array"),I2=[{tester:e9e,cell:t9e},{tester:r9e,cell:o9e},{tester:i9e,cell:s9e},{tester:c9e,cell:u9e},{tester:p9e,cell:h9e},{tester:g9e,cell:y9e},{tester:w9e,cell:C9e},{tester:E9e,cell:mI},{tester:S9e,cell:mI},{tester:k9e,cell:O9e},{tester:_Fe,cell:S8},{tester:SFe,cell:z8e}];function EFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(f6,{schema:e.config,data:e.value.data,renderers:M2,cells:I2,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>O.jsx("li",{children:r.message},o))})]})})]})]})}function PFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify($g(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:$g(e.input),errors:[]}),children:"Reset"})]}),O.jsx(f6,{schema:e.input,data:e.value.data,renderers:M2,cells:I2,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>O.jsx("li",{children:o.message},a))})]})]})]})}const TFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function kFe(e){return O.jsx("button",{type:"button",className:Zi("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(TFe,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})}function OFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function RFe(e,t){return e===t}function wI(e){return typeof e=="function"?function(){return e}:e}function DFe(e,t,n){var r,o,a=n&&n.equalityFn||RFe,i=(r=$.useState(wI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(wI(f))},[])]),s=i[0],l=i[1],c=OFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function MFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return O.jsxs(O.Fragment,{children:[O.jsx(PFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),O.jsx(BH,{config:e.configData.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(xB,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx(kFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function IFe(e){const t=X$(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),[o,a]=DFe(n.data,500),i=cU(o!==e.configSchema.defaults?o:void 0),{context:s,callbacks:l}=AU(),{startStream:c,stopStream:u,latest:f}=IU(l);return O.jsxs(K3.Provider,{value:s,children:[O.jsx(EFe,{config:e.configSchema.schema,value:n,onChange:r}),O.jsx("div",{className:Zi("flex flex-col flex-grow gap-4 w-full transition-opacity",(i.isLoading||a.isPending())&&"opacity-50 pointer-events-none"),children:i.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:i.error.toString()})}):O.jsx(O.Fragment,{children:i.data!=null?O.jsx(MFe,{configSchema:e.configSchema,inputSchema:i.data,configData:n,startStream:c,stopStream:u,children:f&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(CG,{streamed:f.streamed_output})}),O.jsx(bG,{latest:f})]})}):null})})]})}function AFe(){const e=lU();return e.isLoading?null:e.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":O.jsx(IFe,{configSchema:e.data})}function NFe(){return O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),O.jsx(AFe,{})]})})}var I8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(I8);var jFe=I8.exports;const LFe=Vt(jFe);var A8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(A8);var FFe=A8.exports;const zFe=Vt(FFe);xr.extend(zFe);xr.extend(LFe);ow.createRoot(document.getElementById("root")).render(O.jsx(NFe,{})); diff --git a/langserve/playground/dist/assets/index-c6cde0dd.css b/langserve/playground/dist/assets/index-8968db79.css similarity index 76% rename from langserve/playground/dist/assets/index-c6cde0dd.css rename to langserve/playground/dist/assets/index-8968db79.css index b9bff76e..2c7ecf92 100644 --- a/langserve/playground/dist/assets/index-c6cde0dd.css +++ b/langserve/playground/dist/assets/index-8968db79.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index ed88a6ec..96a696b1 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,8 +5,8 @@ Playground - - + +
diff --git a/langserve/playground/package.json b/langserve/playground/package.json index 30cf5485..dc374164 100644 --- a/langserve/playground/package.json +++ b/langserve/playground/package.json @@ -28,6 +28,7 @@ "lz-string": "^1.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "swr": "^2.2.4", "tailwind-merge": "^1.14.0", "use-debounce": "^9.0.4", "vaul": "^0.7.3" diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx index f78d03c8..5693d975 100644 --- a/langserve/playground/src/App.tsx +++ b/langserve/playground/src/App.tsx @@ -1,260 +1,54 @@ import "./App.css"; -import { useEffect, useMemo, useRef, useState } from "react"; -import defaults from "./utils/defaults"; -import { JsonForms } from "@jsonforms/react"; -import { - materialAllOfControlTester, - MaterialAllOfRenderer, - MaterialObjectRenderer, - materialOneOfControlTester, - MaterialOneOfRenderer, -} from "@jsonforms/material-renderers"; -import dayjs from "dayjs"; -import utc from "dayjs/plugin/utc"; -import relativeDate from "dayjs/plugin/relativeTime"; -import SendIcon from "./assets/SendIcon.svg?react"; +import { useEffect, useRef, useState } from "react"; + import ShareIcon from "./assets/ShareIcon.svg?react"; -import { compressToEncodedURIComponent } from "lz-string"; -import { - BooleanCell, - DateCell, - DateTimeCell, - EnumCell, - IntegerCell, - NumberCell, - SliderCell, - TimeCell, - booleanCellTester, - dateCellTester, - dateTimeCellTester, - enumCellTester, - integerCellTester, - numberCellTester, - sliderCellTester, - textAreaCellTester, - textCellTester, - timeCellTester, - vanillaRenderers, - InputControl, -} from "@jsonforms/vanilla-renderers"; -import { useSchemas } from "./useSchemas"; +import { useConfigSchema, useInputSchema } from "./useSchemas"; import { useStreamLog } from "./useStreamLog"; -import { StreamCallback } from "./types"; -import { AppCallbackContext } from "./useStreamCallback"; -import { - JsonFormsCore, - RankedTester, - rankWith, - and, - uiTypeIs, - schemaMatches, - schemaTypeIs, -} from "@jsonforms/core"; -import CustomArrayControlRenderer, { - materialArrayControlTester, -} from "./components/CustomArrayControlRenderer"; -import CustomTextAreaCell from "./components/CustomTextAreaCell"; -import JsonTextAreaCell from "./components/JsonTextAreaCell"; -import { getStateFromUrl, ShareDialog } from "./components/ShareDialog"; -import { - chatMessagesTester, - ChatMessagesControlRenderer, -} from "./components/ChatMessagesControlRenderer"; -import { - ChatMessageTuplesControlRenderer, - chatMessagesTupleTester, -} from "./components/ChatMessageTuplesControlRenderer"; -import { - fileBase64Tester, - FileBase64ControlRenderer, -} from "./components/FileBase64Tester"; +import { AppCallbackContext, useAppStreamCallbacks } from "./useStreamCallback"; +import { JsonSchema } from "@jsonforms/core"; +import { ShareDialog } from "./components/ShareDialog"; import { IntermediateSteps } from "./components/IntermediateSteps"; import { StreamOutput } from "./components/StreamOutput"; -import { - customAnyOfTester, - CustomAnyOfRenderer, -} from "./components/CustomAnyOfRenderer"; +import { ConfigValue, SectionConfigure } from "./sections/SectionConfigure"; +import { InputValue, SectionInputs } from "./sections/SectionInputs"; +import { SubmitButton } from "./components/SubmitButton"; +import { useDebounce } from "use-debounce"; import { cn } from "./utils/cn"; +import { getStateFromUrl } from "./utils/url"; -dayjs.extend(relativeDate); -dayjs.extend(utc); - -const isObjectWithPropertiesControl = rankWith( - 2, - and( - uiTypeIs("Control"), - schemaTypeIs("object"), - schemaMatches((schema) => - Object.prototype.hasOwnProperty.call(schema, "properties") - ) - ) -); - -const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); -const isElse = rankWith(1, and(uiTypeIs("Control"))); - -export const renderers = [ - ...vanillaRenderers, - - // use material renderers to handle objects and json schema references - // they should yield the rendering to simpler cells - { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, - { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, - { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, - - { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, - - // custom renderers - { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, - { tester: isObject, renderer: InputControl }, - { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, - { - tester: chatMessagesTupleTester, - renderer: ChatMessageTuplesControlRenderer, - }, - { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, -]; - -const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { - return jsonSchema.type === "array"; -}); - -export const cells = [ - { tester: booleanCellTester, cell: BooleanCell }, - { tester: dateCellTester, cell: DateCell }, - { tester: dateTimeCellTester, cell: DateTimeCell }, - { tester: enumCellTester, cell: EnumCell }, - { tester: integerCellTester, cell: IntegerCell }, - { tester: numberCellTester, cell: NumberCell }, - { tester: sliderCellTester, cell: SliderCell }, - { tester: textAreaCellTester, cell: CustomTextAreaCell }, - { tester: textCellTester, cell: CustomTextAreaCell }, - { tester: timeCellTester, cell: TimeCell }, - { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, - { tester: isElse, cell: JsonTextAreaCell }, -]; +function InputPlayground(props: { + configSchema: { schema: JsonSchema; defaults: unknown }; + inputSchema: { schema: JsonSchema; defaults: unknown }; -function App() { - const [isEmbedded] = useState(() => - window.location.search.includes("embeded=true") - ); - - // it is possible that defaults are being applied _after_ - // the initial update message has been sent from the parent window - // so we store the initial config data in a ref - const initConfigData = useRef(null); + configData: ConfigValue; - // store form state - const [configData, setConfigData] = useState< - Pick & { defaults: boolean } - >({ data: {}, errors: [], defaults: true }); + startStream: (input: unknown, config: unknown) => void; + stopStream: (() => void) | undefined; - const [inputData, setInputData] = useState< - Pick - >({ data: null, errors: [] }); - // fetch input and config schemas from the server - const schemas = useSchemas(configData); - // apply defaults defined in each schema - useEffect(() => { - if (schemas.config) { - const state = getStateFromUrl(window.location.href); - setConfigData({ - data: - state.configFromUrl ?? - initConfigData.current ?? - defaults(schemas.config), - errors: [], - defaults: true, - }); - - setInputData({ data: defaults(schemas.input), errors: [] }); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [schemas.config]); - - // callbacks handling - const callbacks = useRef<{ - onStart: Exclude[]; - onSuccess: Exclude[]; - onError: Exclude[]; - }>({ onStart: [], onSuccess: [], onError: [] }); - - // the runner - const { startStream, stopStream, latest } = useStreamLog({ - onStart(...args) { - for (const callback of callbacks.current.onStart) { - callback(...args); - } - }, - onSuccess(...args) { - for (const callback of callbacks.current.onSuccess) { - callback(...args); - } - }, - onError(...args) { - for (const callback of callbacks.current.onError) { - callback(...args); - } - }, + children?: React.ReactNode; +}) { + const [inputData, setInputData] = useState({ + data: props.inputSchema.defaults, + errors: [], }); - useEffect(() => { - window.parent?.postMessage({ type: "init" }, "*"); - }, []); - - useEffect(() => { - function listener(event: MessageEvent) { - if (event.source === window.parent) { - const message = event.data; - if (typeof message === "object" && message != null) { - switch (message.type) { - case "update": { - const value: { config: JsonFormsCore["data"] } = message.value; - if (Object.keys(value.config).length > 0) { - initConfigData.current = value.config; - setConfigData({ - data: value.config, - errors: [], - defaults: false, - }); - break; - } - } - } - } - } - } - - window.addEventListener("message", listener); - return () => window.removeEventListener("message", listener); - }, []); - - const isInputResetable = useMemo(() => { - if (!schemas.input) return false; - return ( - JSON.stringify(defaults(schemas.input)) !== JSON.stringify(inputData.data) - ); - }, [schemas.input, inputData.data]); - - function onSubmit() { + const submitRef = useRef<(() => void) | null>(null); + submitRef.current = () => { if ( - !stopStream && - (!!inputData.errors?.length || !!configData.errors?.length) + !props.stopStream && + (!!inputData.errors?.length || !!props.configData.errors?.length) ) { return; } - if (stopStream) { - stopStream(); + if (props.stopStream) { + props.stopStream(); } else { - startStream(inputData.data, configData.data); + props.startStream(inputData.data, props.configData.data); } - } - - const submitRef = useRef<(() => void) | null>(null); - submitRef.current = onSubmit; + }; useEffect(() => { window.addEventListener("keydown", (e) => { @@ -266,206 +60,147 @@ function App() { }, []); const isSendDisabled = - !stopStream && (!!inputData.errors?.length || !!configData.errors?.length); - - if (!schemas.config || !schemas.input) { - return <>; - } + !props.stopStream && + (!!inputData.errors?.length || !!props.configData.errors?.length); return ( - -
-
-

- 🦜 LangServe Playground -

- - {Object.keys(schemas.config).length > 0 && ( -
- {!isEmbedded && ( -

Configure

- )} + <> + setInputData(input)} + /> + + {props.children} + +
+ +
+
+ + + + + + +
+ + ); +} -
- - data - ? setConfigData({ data, errors, defaults: false }) - : undefined - } - /> +function ConfigPlayground(props: { + configSchema: { + schema: JsonSchema; + defaults: unknown; + }; +}) { + const urlState = getStateFromUrl(window.location.href); + const [configData, setConfigData] = useState({ + data: urlState.configFromUrl ?? props.configSchema.defaults, + errors: [], + defaults: true, + }); - {!!configData.errors?.length && configData.data && ( -
-
- Validation Errors -
    - {configData.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
-
-
- )} -
-
- )} + // input schema is derived from config data + const [debouncedConfigData, debounceState] = useDebounce( + configData.data, + 500 + ); - {!isEmbedded && ( -
-

Try it

+ const inputSchema = useInputSchema( + debouncedConfigData !== props.configSchema.defaults + ? debouncedConfigData + : undefined + ); -
-
-

Inputs

- {isInputResetable && ( - - )} -
+ const { context, callbacks } = useAppStreamCallbacks(); + const { startStream, stopStream, latest } = useStreamLog(callbacks); - - setInputData({ data, errors }) - } - /> - {!!inputData.errors?.length && inputData.data && ( -
- Validation Errors -
    - {inputData.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
+ return ( + + + +
+ {inputSchema.error != null ? ( +
+
+ {inputSchema.error.toString()} +
+
+ ) : ( + <> + {inputSchema.data != null ? ( + + {latest && ( +
+

Output

+
+ +
+
)} -
- - {latest && ( -
-

Output

-
- -
- -
- )} -
- )} - -
- -
-
+ + ) : null} + + )} +
+ + ); +} - {isEmbedded ? ( - <> - - - - ) : ( - <> - - - - - - )} -
+ if (configSchema.error != null) { + return ( +
+
+ {configSchema.error.toString()}
- + ); + } + if (configSchema.data == null) return "No config schema found"; + return ; +} + +export function App() { + return ( +
+
+

+ 🦜 LangServe Playground +

+ +
+
); } diff --git a/langserve/playground/src/components/CustomAnyOfRenderer.tsx b/langserve/playground/src/components/CustomAnyOfRenderer.tsx index 8dcbb657..52da90b9 100644 --- a/langserve/playground/src/components/CustomAnyOfRenderer.tsx +++ b/langserve/playground/src/components/CustomAnyOfRenderer.tsx @@ -5,7 +5,7 @@ import { JsonSchema, isAnyOfControl, } from "@jsonforms/core"; -import { renderers, cells } from "../App"; +import { renderers, cells } from "../renderers"; export const CustomAnyOfRenderer = withJsonFormsAnyOfProps((props) => { const anyOfRenderInfos = createCombinatorRenderInfos( diff --git a/langserve/playground/src/components/ShareDialog.tsx b/langserve/playground/src/components/ShareDialog.tsx index 494581d3..dcc6debb 100644 --- a/langserve/playground/src/components/ShareDialog.tsx +++ b/langserve/playground/src/components/ShareDialog.tsx @@ -4,37 +4,11 @@ import CodeIcon from "../assets/CodeIcon.svg?react"; import PadlockIcon from "../assets/PadlockIcon.svg?react"; import CopyIcon from "../assets/CopyIcon.svg?react"; import CheckCircleIcon from "../assets/CheckCircleIcon.svg?react"; -import { - compressToEncodedURIComponent, - decompressFromEncodedURIComponent, -} from "lz-string"; +import { compressToEncodedURIComponent } from "lz-string"; +import { getStateFromUrl } from "../utils/url"; const URL_LENGTH_LIMIT = 2000; -export function getStateFromUrl(path: string) { - let configFromUrl = null; - let basePath = path; - if (basePath.endsWith("/")) { - basePath = basePath.slice(0, -1); - } - - if (basePath.endsWith("/playground")) { - basePath = basePath.slice(0, -"/playground".length); - } - - // check if we can omit the last segment - const [configHash, c, ...rest] = basePath.split("/").reverse(); - if (c === "c") { - basePath = rest.reverse().join("/"); - try { - configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); - } catch (error) { - console.error(error); - } - } - return { basePath, configFromUrl }; -} - function CopyButton(props: { value: string }) { const [copied, setCopied] = useState(false); const cbRef = useRef(null); @@ -121,7 +95,6 @@ const result = await chain.invoke({ ... });
{playgroundUrl.split("://")[1]} - PadlockIcon
diff --git a/langserve/playground/src/components/SubmitButton.tsx b/langserve/playground/src/components/SubmitButton.tsx new file mode 100644 index 00000000..2dce60ea --- /dev/null +++ b/langserve/playground/src/components/SubmitButton.tsx @@ -0,0 +1,50 @@ +import SendIcon from "../assets/SendIcon.svg?react"; +import { cn } from "../utils/cn"; + +export function SubmitButton(props: { + disabled: boolean; + isLoading?: boolean; + onSubmit: () => void; +}) { + return ( + + ); +} diff --git a/langserve/playground/src/main.tsx b/langserve/playground/src/main.tsx index 164cb889..7c3050b2 100644 --- a/langserve/playground/src/main.tsx +++ b/langserve/playground/src/main.tsx @@ -1,4 +1,11 @@ import ReactDOM from "react-dom/client"; import App from "./App.tsx"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; +import relativeDate from "dayjs/plugin/relativeTime"; + +dayjs.extend(relativeDate); +dayjs.extend(utc); + ReactDOM.createRoot(document.getElementById("root")!).render(); diff --git a/langserve/playground/src/renderers.tsx b/langserve/playground/src/renderers.tsx new file mode 100644 index 00000000..630244b2 --- /dev/null +++ b/langserve/playground/src/renderers.tsx @@ -0,0 +1,111 @@ +import { + materialAllOfControlTester, + MaterialAllOfRenderer, + MaterialObjectRenderer, + materialOneOfControlTester, + MaterialOneOfRenderer, +} from "@jsonforms/material-renderers"; +import { + BooleanCell, + DateCell, + DateTimeCell, + EnumCell, + IntegerCell, + NumberCell, + SliderCell, + TimeCell, + booleanCellTester, + dateCellTester, + dateTimeCellTester, + enumCellTester, + integerCellTester, + numberCellTester, + sliderCellTester, + textAreaCellTester, + textCellTester, + timeCellTester, + vanillaRenderers, + InputControl, +} from "@jsonforms/vanilla-renderers"; +import { + RankedTester, + rankWith, + and, + uiTypeIs, + schemaMatches, + schemaTypeIs, +} from "@jsonforms/core"; +import CustomArrayControlRenderer, { + materialArrayControlTester, +} from "./components/CustomArrayControlRenderer"; +import CustomTextAreaCell from "./components/CustomTextAreaCell"; +import JsonTextAreaCell from "./components/JsonTextAreaCell"; +import { + chatMessagesTester, + ChatMessagesControlRenderer, +} from "./components/ChatMessagesControlRenderer"; +import { + ChatMessageTuplesControlRenderer, + chatMessagesTupleTester, +} from "./components/ChatMessageTuplesControlRenderer"; +import { + fileBase64Tester, + FileBase64ControlRenderer, +} from "./components/FileBase64Tester"; +import { + customAnyOfTester, + CustomAnyOfRenderer, +} from "./components/CustomAnyOfRenderer"; + +const isObjectWithPropertiesControl = rankWith( + 2, + and( + uiTypeIs("Control"), + schemaTypeIs("object"), + schemaMatches((schema) => + Object.prototype.hasOwnProperty.call(schema, "properties") + ) + ) +); +const isObject = rankWith(1, and(uiTypeIs("Control"), schemaTypeIs("object"))); +const isElse = rankWith(1, and(uiTypeIs("Control"))); + +export const renderers = [ + ...vanillaRenderers, + + // use material renderers to handle objects and json schema references + // they should yield the rendering to simpler cells + { tester: isObjectWithPropertiesControl, renderer: MaterialObjectRenderer }, + { tester: materialAllOfControlTester, renderer: MaterialAllOfRenderer }, + { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, + + { tester: customAnyOfTester, renderer: CustomAnyOfRenderer }, + + // custom renderers + { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, + { tester: isObject, renderer: InputControl }, + { tester: chatMessagesTester, renderer: ChatMessagesControlRenderer }, + { + tester: chatMessagesTupleTester, + renderer: ChatMessageTuplesControlRenderer, + }, + { tester: fileBase64Tester, renderer: FileBase64ControlRenderer }, +]; +const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { + return jsonSchema.type === "array"; +}); + +export const cells = [ + { tester: booleanCellTester, cell: BooleanCell }, + { tester: dateCellTester, cell: DateCell }, + { tester: dateTimeCellTester, cell: DateTimeCell }, + { tester: enumCellTester, cell: EnumCell }, + { tester: integerCellTester, cell: IntegerCell }, + { tester: numberCellTester, cell: NumberCell }, + { tester: sliderCellTester, cell: SliderCell }, + { tester: textAreaCellTester, cell: CustomTextAreaCell }, + { tester: textCellTester, cell: CustomTextAreaCell }, + { tester: timeCellTester, cell: TimeCell }, + { tester: nestedArrayControlTester, cell: CustomArrayControlRenderer }, + { tester: isElse, cell: JsonTextAreaCell }, +]; diff --git a/langserve/playground/src/sections/SectionConfigure.tsx b/langserve/playground/src/sections/SectionConfigure.tsx new file mode 100644 index 00000000..2977bedb --- /dev/null +++ b/langserve/playground/src/sections/SectionConfigure.tsx @@ -0,0 +1,50 @@ +import { JsonForms } from "@jsonforms/react"; +import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; +import { renderers, cells } from "../renderers"; + +export type ConfigValue = Pick & { + defaults: boolean; +}; + +export function SectionConfigure(props: { + config: JsonSchema | undefined; + value: ConfigValue; + onChange: (value: ConfigValue) => void; +}) { + if (props.config == null || Object.keys(props.config).length === 0) { + return null; + } + + return ( +
+

Configure

+ +
+ { + if (data) { + props.onChange({ data, errors, defaults: false }); + } + }} + /> + + {!!props.value.errors?.length && props.value.data && ( +
+
+ Validation Errors +
    + {props.value.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+
+ )} +
+
+ ); +} diff --git a/langserve/playground/src/sections/SectionInputs.tsx b/langserve/playground/src/sections/SectionInputs.tsx new file mode 100644 index 00000000..da4668da --- /dev/null +++ b/langserve/playground/src/sections/SectionInputs.tsx @@ -0,0 +1,64 @@ +import { useMemo } from "react"; +import defaults from "../utils/defaults"; +import { JsonForms } from "@jsonforms/react"; +import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; +import { renderers, cells } from "../renderers"; + +export type InputValue = Pick; + +export function SectionInputs(props: { + input: JsonSchema | undefined; + value: InputValue; + onChange: (value: InputValue) => void; +}) { + const isInputResetable = useMemo(() => { + if (!props.input) return false; + return ( + JSON.stringify(defaults(props.input)) !== JSON.stringify(props.value.data) + ); + }, [props.input, props.value.data]); + + return ( +
+

Try it

+ +
+
+

Inputs

+ {isInputResetable && ( + + )} +
+ + props.onChange({ data, errors })} + /> + {!!props.value.errors?.length && props.value.data && ( +
+ Validation Errors +
    + {props.value.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+ )} +
+
+ ); +} diff --git a/langserve/playground/src/useSchemas.tsx b/langserve/playground/src/useSchemas.tsx index 901e4fe5..a63a9e6f 100644 --- a/langserve/playground/src/useSchemas.tsx +++ b/langserve/playground/src/useSchemas.tsx @@ -1,9 +1,10 @@ -import { useEffect, useState } from "react"; import { resolveApiUrl } from "./utils/url"; import { simplifySchema } from "./utils/simplifySchema"; -import { JsonFormsCore } from "@jsonforms/core"; +import { JsonSchema } from "@jsonforms/core"; import { compressToEncodedURIComponent } from "lz-string"; -import { useDebounce } from "use-debounce"; + +import useSWR from "swr"; +import defaults from "./utils/defaults"; declare global { interface Window { @@ -14,63 +15,54 @@ declare global { } } -export function useSchemas( - configData: Pick & { defaults: boolean } -) { - const [schemas, setSchemas] = useState<{ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - config: null | any; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - input: null | any; - }>({ - config: null, - input: null, - }); +export function useConfigSchema() { + return useSWR(["/config_schema"], async () => { + let schema: JsonSchema | null = null; + if (!import.meta.env.DEV && window.CONFIG_SCHEMA) { + schema = await simplifySchema(window.CONFIG_SCHEMA); + } else { + const response = await fetch(resolveApiUrl(`/config_schema`)); + if (!response.ok) throw new Error(await response.text()); - useEffect(() => { - async function save() { - if (import.meta.env.DEV) { - const [config, input] = await Promise.all([ - fetch(resolveApiUrl("/config_schema")) - .then((r) => r.json()) - .then(simplifySchema), - fetch(resolveApiUrl("/input_schema")) - .then((r) => r.json()) - .then(simplifySchema), - ]); - setSchemas({ config, input }); - } else { - setSchemas({ - config: window.CONFIG_SCHEMA - ? await simplifySchema(window.CONFIG_SCHEMA) - : null, - input: window.INPUT_SCHEMA - ? await simplifySchema(window.INPUT_SCHEMA) - : null, - }); - } + const json = await response.json(); + schema = await simplifySchema(json); } - save(); - }, []); + if (schema == null) return null; + return { + schema, + defaults: defaults(schema), + }; + }); +} - const [debouncedConfigData] = useDebounce(configData, 500); +export function useInputSchema(configData?: unknown) { + return useSWR( + ["/input_schema", configData], + async ([, configData]) => { + // TODO: this won't work if we're already seeing a prefixed URL + const prefix = configData + ? `/c/${compressToEncodedURIComponent(JSON.stringify(configData))}` + : ""; - useEffect(() => { - if (!debouncedConfigData.defaults) { - fetch( - resolveApiUrl( - `/c/${compressToEncodedURIComponent( - JSON.stringify(debouncedConfigData.data) - )}/input_schema` - ) - ) - .then((r) => r.json()) - .then(simplifySchema) - .then((input) => setSchemas((current) => ({ ...current, input }))) - .catch(() => {}); // ignore errors, eg. due to incomplete config - } - }, [debouncedConfigData]); + let schema: JsonSchema | null = null; + + if (!prefix && !import.meta.env.DEV && window.INPUT_SCHEMA) { + schema = await simplifySchema(window.INPUT_SCHEMA); + } else { + const response = await fetch(resolveApiUrl(`${prefix}/input_schema`)); + if (!response.ok) throw new Error(await response.text()); + + const json = await response.json(); + schema = await simplifySchema(json); + } - return schemas; + if (schema == null) return null; + return { + schema, + defaults: defaults(schema), + }; + }, + { keepPreviousData: true } + ); } diff --git a/langserve/playground/src/useStreamCallback.tsx b/langserve/playground/src/useStreamCallback.tsx index 137bfe07..31a3ca8b 100644 --- a/langserve/playground/src/useStreamCallback.tsx +++ b/langserve/playground/src/useStreamCallback.tsx @@ -14,6 +14,35 @@ export const AppCallbackContext = createContext[]; }> | null>(null); +export function useAppStreamCallbacks() { + // callbacks handling + const context = useRef<{ + onStart: Exclude[]; + onSuccess: Exclude[]; + onError: Exclude[]; + }>({ onStart: [], onSuccess: [], onError: [] }); + + const callbacks: StreamCallback = { + onStart(...args) { + for (const callback of context.current.onStart) { + callback(...args); + } + }, + onSuccess(...args) { + for (const callback of context.current.onSuccess) { + callback(...args); + } + }, + onError(...args) { + for (const callback of context.current.onError) { + callback(...args); + } + }, + }; + + return { context, callbacks }; +} + export function useStreamCallback< Type extends "onStart" | "onSuccess" | "onError" >(type: Type, callback: Exclude) { diff --git a/langserve/playground/src/utils/url.ts b/langserve/playground/src/utils/url.ts index 6f560db1..88f40a4d 100644 --- a/langserve/playground/src/utils/url.ts +++ b/langserve/playground/src/utils/url.ts @@ -1,5 +1,33 @@ +import { decompressFromEncodedURIComponent } from "lz-string"; + +export function getStateFromUrl(path: string) { + let configFromUrl = null; + let basePath = path; + if (basePath.endsWith("/")) { + basePath = basePath.slice(0, -1); + } + + if (basePath.endsWith("/playground")) { + basePath = basePath.slice(0, -"/playground".length); + } + + // check if we can omit the last segment + const [configHash, c, ...rest] = basePath.split("/").reverse(); + if (c === "c") { + basePath = rest.reverse().join("/"); + try { + configFromUrl = JSON.parse(decompressFromEncodedURIComponent(configHash)); + } catch (error) { + console.error(error); + } + } + return { basePath, configFromUrl }; +} + export function resolveApiUrl(path: string) { - let prefix = window.location.pathname.split("/playground")[0]; + const { basePath } = getStateFromUrl(window.location.href); + let prefix = new URL(basePath).pathname; if (prefix.endsWith("/")) prefix = prefix.slice(0, -1); - return new URL(prefix + path, window.location.origin); + + return new URL(prefix + path, basePath); } diff --git a/langserve/playground/yarn.lock b/langserve/playground/yarn.lock index 39092cb6..b3f755da 100644 --- a/langserve/playground/yarn.lock +++ b/langserve/playground/yarn.lock @@ -1407,6 +1407,11 @@ chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" +client-only@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + clsx@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b" @@ -2620,6 +2625,14 @@ svg-parser@^2.0.4: resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== +swr@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.4.tgz#03ec4c56019902fbdc904d78544bd7a9a6fa3f07" + integrity sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ== + dependencies: + client-only "^0.0.1" + use-sync-external-store "^1.2.0" + tailwind-merge@^1.14.0: version "1.14.0" resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.14.0.tgz#e677f55d864edc6794562c63f5001f45093cdb8b" @@ -2751,6 +2764,11 @@ use-sidecar@^1.1.2: detect-node-es "^1.1.0" tslib "^2.0.0" +use-sync-external-store@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== + util-deprecate@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" From 728406056d7c768ce1c6101397074c9a891197bd Mon Sep 17 00:00:00 2001 From: David Duong Date: Mon, 27 Nov 2023 16:22:45 +0100 Subject: [PATCH 10/23] Fix streaming duplicate requests when refocusing (#256) --- .../dist/assets/{index-849f2582.js => index-65de8f9b.js} | 2 +- langserve/playground/dist/index.html | 2 +- langserve/playground/src/useStreamLog.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename langserve/playground/dist/assets/{index-849f2582.js => index-65de8f9b.js} (98%) diff --git a/langserve/playground/dist/assets/index-849f2582.js b/langserve/playground/dist/assets/index-65de8f9b.js similarity index 98% rename from langserve/playground/dist/assets/index-849f2582.js rename to langserve/playground/dist/assets/index-65de8f9b.js index 9fbde321..e48a1676 100644 --- a/langserve/playground/dist/assets/index-849f2582.js +++ b/langserve/playground/dist/assets/index-65de8f9b.js @@ -85,7 +85,7 @@ Possible causes: the network is offline, Origin is not allowed by Access-Control * (c) 2017-2021 Joachim Wester * MIT license */var rS=new WeakMap,vU=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),gU=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function yU(e){return rS.get(e)}function bU(e,t){return e.observers.get(t)}function xU(e,t){e.observers.delete(t.callback)}function wU(e,t){t.unobserve()}function CU(e,t){var n=[],r,o=yU(e);if(!o)o=new vU(e),rS.set(e,o);else{var a=bU(o,t);r=a&&a.observer}if(r)return r;if(r={},o.value=Ho(e),t){r.callback=t,r.next=null;var i=function(){iC(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=n,r.object=e,r.unobserve=function(){iC(r),clearTimeout(r.next),xU(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new gU(t,r)),r}function iC(e,t){t===void 0&&(t=!1);var n=rS.get(e.object);oS(n.value,e.object,e.patches,"",t),e.patches.length&&$y(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function oS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=rC(t),i=rC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(nC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},openWhenHidden:!0,onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` .`.concat(dW,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index 96a696b1..bbb6f52b 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,7 +5,7 @@ Playground - + diff --git a/langserve/playground/src/useStreamLog.tsx b/langserve/playground/src/useStreamLog.tsx index 5f06dfb0..baa5c2b3 100644 --- a/langserve/playground/src/useStreamLog.tsx +++ b/langserve/playground/src/useStreamLog.tsx @@ -76,6 +76,7 @@ export function useStreamLog(callbacks: StreamCallback = {}) { setLatest(innerLatest); } }, + openWhenHidden: true, onclose() { setController(null); successRef.current?.({ input, output: innerLatest?.final_output }); From bcf833c3d4b75475a1e7781dbe88f2e2d3a83ece Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 27 Nov 2023 10:33:02 -0500 Subject: [PATCH 11/23] Version 0.0.31 (#258) Version 0.0.31 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4cec90d7..a7286750 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langserve" -version = "0.0.30" +version = "0.0.31" description = "" readme = "README.md" authors = ["LangChain"] From af904f5f6e3418b0e776bad1b0c5911f367bd7b7 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 27 Nov 2023 12:39:14 -0500 Subject: [PATCH 12/23] Fix mimetype handling on windows (#259) This PR fixes handling of mimetypes on windows machines: Needed due to issue: https://bugs.python.org/issue43975 Resolves issue: https://github.com/langchain-ai/langserve/issues/245 Chose not to use mimetypes.init since that's using a singleton pattern and worried that users will be likely to run into issues since the server may be parsing files which may also end up using mimetype guessing based on file extension --- langserve/playground.py | 35 ++++++++++++++++++++++++++++- tests/unit_tests/test_playground.py | 24 ++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 tests/unit_tests/test_playground.py diff --git a/langserve/playground.py b/langserve/playground.py index 66ca639c..c5f915be 100644 --- a/langserve/playground.py +++ b/langserve/playground.py @@ -14,6 +14,39 @@ class PlaygroundTemplate(Template): delimiter = "____" +def _get_mimetype(path: str) -> str: + """Get mimetype for file. + + Custom implementation of mimetypes.guess_type that + uses the file extension to determine the mimetype for some files. + + This is necessary due to: https://bugs.python.org/issue43975 + Resolves issue: https://github.com/langchain-ai/langserve/issues/245 + + Args: + path (str): Path to file + + Returns: + str: Mimetype of file + """ + try: + file_extension = path.lower().split(".")[-1] + except IndexError: + return mimetypes.guess_type(path)[0] + + if file_extension == "js": + return "application/javascript" + elif file_extension == "css": + return "text/css" + elif file_extension in ["htm", "html"]: + return "text/html" + + # If the file extension is not one of the specified ones, + # use the default guess method + mime_type = mimetypes.guess_type(path)[0] + return mime_type + + async def serve_playground( runnable: Runnable, input_schema: Type[BaseModel], @@ -39,7 +72,7 @@ async def serve_playground( try: with open(local_file_path, encoding="utf-8") as f: - mime_type = mimetypes.guess_type(local_file_path)[0] + mime_type = _get_mimetype(local_file_path) if mime_type in ("text/html", "text/css", "application/javascript"): response = PlaygroundTemplate(f.read()).substitute( LANGSERVE_BASE_URL=base_url[1:] diff --git a/tests/unit_tests/test_playground.py b/tests/unit_tests/test_playground.py new file mode 100644 index 00000000..fa49d8d6 --- /dev/null +++ b/tests/unit_tests/test_playground.py @@ -0,0 +1,24 @@ +import pytest + +from langserve.playground import _get_mimetype + + +@pytest.mark.parametrize( + "file_extension, expected_mimetype", + [ + ("js", "application/javascript"), + ("css", "text/css"), + ("htm", "text/html"), + ("html", "text/html"), + ("txt", "text/plain"), # An example of an unknown extension using guess_type + ], +) +def test_get_mimetype(file_extension: str, expected_mimetype: str) -> None: + # Create a filename with the given extension + filename = f"test_file.{file_extension}" + + # Call the _get_mimetype function with the test filename + mimetype = _get_mimetype(filename) + + # Check if the returned mimetype matches the expected one + assert mimetype == expected_mimetype From 477af9e6c47b9f0f660e332c6a181df7f5725f3e Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 27 Nov 2023 16:52:03 -0500 Subject: [PATCH 13/23] Update widget (#261) Update the widget to use "output" key --- examples/conversational_retrieval_chain/server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/conversational_retrieval_chain/server.py b/examples/conversational_retrieval_chain/server.py index 66c20a21..d676498d 100755 --- a/examples/conversational_retrieval_chain/server.py +++ b/examples/conversational_retrieval_chain/server.py @@ -87,12 +87,14 @@ class ChatHistory(BaseModel): chat_history: List[Tuple[str, str]] = Field( ..., - extra={"widget": {"type": "chat", "input": "question", "output": "answer"}}, + extra={"widget": {"type": "chat", "input": "question", "output": "output"}}, ) question: str -conversational_qa_chain = _inputs | _context | ANSWER_PROMPT | ChatOpenAI() +conversational_qa_chain = ( + _inputs | _context | ANSWER_PROMPT | ChatOpenAI() | StrOutputParser() +) chain = conversational_qa_chain.with_types(input_type=ChatHistory) app = FastAPI( From 04a950e770f19b8e73d3b4c468ccb474e266d498 Mon Sep 17 00:00:00 2001 From: David Duong Date: Tue, 28 Nov 2023 20:30:12 +0100 Subject: [PATCH 14/23] Handle AIMessageChunk, attempt to gather non-dict values (#262) Closes #260 --- .../conversational_retrieval_chain/server.py | 2 +- examples/widgets/server.py | 2 +- .../ChatMessageTuplesControlRenderer.tsx | 20 ++++++++++++++++--- .../ChatMessagesControlRenderer.tsx | 18 ++++++++++++++--- langserve/playground/src/utils/messages.ts | 7 +++++++ langserve/playground/src/utils/path.ts | 9 ++++++++- 6 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 langserve/playground/src/utils/messages.ts diff --git a/examples/conversational_retrieval_chain/server.py b/examples/conversational_retrieval_chain/server.py index d676498d..956f3520 100755 --- a/examples/conversational_retrieval_chain/server.py +++ b/examples/conversational_retrieval_chain/server.py @@ -87,7 +87,7 @@ class ChatHistory(BaseModel): chat_history: List[Tuple[str, str]] = Field( ..., - extra={"widget": {"type": "chat", "input": "question", "output": "output"}}, + extra={"widget": {"type": "chat", "input": "question"}}, ) question: str diff --git a/examples/widgets/server.py b/examples/widgets/server.py index 66f8dc2d..83219474 100755 --- a/examples/widgets/server.py +++ b/examples/widgets/server.py @@ -48,7 +48,7 @@ class ChatHistory(BaseModel): class ChatHistoryMessage(BaseModel): chat_history: List[BaseMessage] = Field( ..., - extra={"widget": {"type": "chat", "input": "location", "output": "output"}}, + extra={"widget": {"type": "chat", "input": "location"}}, ) location: str diff --git a/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx b/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx index 35627b0e..9ae40253 100644 --- a/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx +++ b/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx @@ -11,7 +11,8 @@ import { import { AutosizeTextarea } from "./AutosizeTextarea"; import { isJsonSchemaExtra } from "../utils/schema"; import { useStreamCallback } from "../useStreamCallback"; -import { traverseNaiveJsonPath } from "../utils/path"; +import { getNormalizedJsonPath, traverseNaiveJsonPath } from "../utils/path"; +import { getMessageContent } from "../utils/messages"; type MessageTuple = [string, string]; @@ -53,9 +54,22 @@ export const ChatMessageTuplesControlRenderer = withJsonFormsControlProps( const widget = props.schema.extra.widget; if (!("input" in widget) && !("output" in widget)) return; - const human = traverseNaiveJsonPath(ctx.input, widget.input ?? ""); - const ai = traverseNaiveJsonPath(ctx.output, widget.output ?? ""); + const inputPath = getNormalizedJsonPath(widget.input ?? ""); + const outputPath = getNormalizedJsonPath(widget.output ?? ""); + const isSingleOutputKey = + ctx.output != null && + Object.keys(ctx.output).length === 1 && + Object.keys(ctx.output)[0] === "output"; + + const human = traverseNaiveJsonPath(ctx.input, inputPath); + let ai = traverseNaiveJsonPath(ctx.output, outputPath); + + if (isSingleOutputKey) { + ai = traverseNaiveJsonPath(ai, ["output", ...outputPath]) ?? ai; + } + + ai = getMessageContent(ai); if (typeof human === "string" && typeof ai === "string") { props.handleChange(props.path, [...data, [human, ai]]); } diff --git a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx index 34120352..cec9b48c 100644 --- a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx +++ b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx @@ -12,7 +12,7 @@ import { } from "@jsonforms/core"; import { AutosizeTextarea } from "./AutosizeTextarea"; import { useStreamCallback } from "../useStreamCallback"; -import { traverseNaiveJsonPath } from "../utils/path"; +import { getNormalizedJsonPath, traverseNaiveJsonPath } from "../utils/path"; import { isJsonSchemaExtra } from "../utils/schema"; import * as ToggleGroup from "@radix-ui/react-toggle-group"; @@ -122,8 +122,20 @@ export const ChatMessagesControlRenderer = withJsonFormsControlProps( const widget = props.schema.extra.widget; if (!("input" in widget) && !("output" in widget)) return; - const human = traverseNaiveJsonPath(ctx.input, widget.input ?? ""); - const ai = traverseNaiveJsonPath(ctx.output, widget.output ?? ""); + const inputPath = getNormalizedJsonPath(widget.input ?? ""); + const outputPath = getNormalizedJsonPath(widget.output ?? ""); + + const human = traverseNaiveJsonPath(ctx.input, inputPath); + let ai = traverseNaiveJsonPath(ctx.output, outputPath); + + const isSingleOutputKey = + ctx.output != null && + Object.keys(ctx.output).length === 1 && + Object.keys(ctx.output)[0] === "output"; + + if (isSingleOutputKey) { + ai = traverseNaiveJsonPath(ai, ["output", ...outputPath]) ?? ai; + } const humanMsg = constructMessage(human, "human"); const aiMsg = constructMessage(ai, "ai"); diff --git a/langserve/playground/src/utils/messages.ts b/langserve/playground/src/utils/messages.ts new file mode 100644 index 00000000..aaea838a --- /dev/null +++ b/langserve/playground/src/utils/messages.ts @@ -0,0 +1,7 @@ +export function getMessageContent(x: unknown) { + if (typeof x === "string") return x; + if (typeof x === "object" && x != null) { + if ("content" in x && typeof x.content === "string") return x.content; + } + return null; +} diff --git a/langserve/playground/src/utils/path.ts b/langserve/playground/src/utils/path.ts index 1def533b..16a8114d 100644 --- a/langserve/playground/src/utils/path.ts +++ b/langserve/playground/src/utils/path.ts @@ -2,11 +2,18 @@ function isAccessibleObject(x: unknown): x is Record { return typeof x === "object" && x != null; } +export function getNormalizedJsonPath( + path: string | number | Array +) { + return Array.isArray(path) ? path : [path]; +} + export function traverseNaiveJsonPath( x: unknown, path: string | number | Array ) { - const queue = Array.isArray(path) ? path : [path]; + const queue = getNormalizedJsonPath(path); + let tmp: unknown = x; while (queue.length > 0) { const first = queue.shift()!; From a51a6c0c09ddcf880d412e8df4685499fbd1aced Mon Sep 17 00:00:00 2001 From: David Duong Date: Tue, 28 Nov 2023 20:30:38 +0100 Subject: [PATCH 15/23] Add feedback buttons to stream_log runs (#203) https://github.com/langchain-ai/langserve/assets/1443449/9e5f7dae-6759-4018-b0f6-1701912eb25e TODO: - [x] We need to expose the ability to get and remove a specific run based off an ID, otherwise multiple clicking will send multiple feedbacks - [x] Hide buttons if LangSmith not configured or feedback endpoint not exposed --------- Co-authored-by: Eugene Yurtsev --- .../conversational_retrieval_chain/server.py | 2 +- langserve/playground.py | 4 + .../{index-65de8f9b.js => index-1ccbfbf6.js} | 116 +++++++++--------- .../playground/dist/assets/index-52e8ab2f.css | 1 + .../playground/dist/assets/index-8968db79.css | 1 - langserve/playground/dist/index.html | 5 +- langserve/playground/index.html | 1 + langserve/playground/src/App.tsx | 21 +++- .../playground/src/assets/CircleSpinIcon.svg | 15 +++ .../playground/src/assets/ThumbsDownIcon.svg | 6 + .../playground/src/assets/ThumbsUpIcon.svg | 6 + .../ChatMessagesControlRenderer.tsx | 6 - .../src/components/IntermediateSteps.tsx | 19 ++- .../feedback/CorrectnessFeedback.tsx | 89 ++++++++++++++ langserve/playground/src/useSchemas.tsx | 15 +++ langserve/playground/vite.config.ts | 2 +- langserve/server.py | 20 ++- 17 files changed, 251 insertions(+), 78 deletions(-) rename langserve/playground/dist/assets/{index-65de8f9b.js => index-1ccbfbf6.js} (57%) create mode 100644 langserve/playground/dist/assets/index-52e8ab2f.css delete mode 100644 langserve/playground/dist/assets/index-8968db79.css create mode 100644 langserve/playground/src/assets/CircleSpinIcon.svg create mode 100644 langserve/playground/src/assets/ThumbsDownIcon.svg create mode 100644 langserve/playground/src/assets/ThumbsUpIcon.svg create mode 100644 langserve/playground/src/components/feedback/CorrectnessFeedback.tsx diff --git a/examples/conversational_retrieval_chain/server.py b/examples/conversational_retrieval_chain/server.py index 956f3520..47f4117f 100755 --- a/examples/conversational_retrieval_chain/server.py +++ b/examples/conversational_retrieval_chain/server.py @@ -106,7 +106,7 @@ class ChatHistory(BaseModel): # /invoke # /batch # /stream -add_routes(app, chain) +add_routes(app, chain, enable_feedback_endpoint=True) if __name__ == "__main__": import uvicorn diff --git a/langserve/playground.py b/langserve/playground.py index c5f915be..17c1f103 100644 --- a/langserve/playground.py +++ b/langserve/playground.py @@ -53,6 +53,7 @@ async def serve_playground( config_keys: Sequence[str], base_url: str, file_path: str, + feedback_enabled: bool, ) -> Response: """Serve the playground.""" local_file_path = os.path.abspath( @@ -82,6 +83,9 @@ async def serve_playground( runnable.config_schema(include=config_keys).schema() ), LANGSERVE_INPUT_SCHEMA=json.dumps(input_schema.schema()), + LANGSERVE_FEEDBACK_ENABLED=json.dumps( + "true" if feedback_enabled else "false" + ), ) else: response = f.buffer.read() diff --git a/langserve/playground/dist/assets/index-65de8f9b.js b/langserve/playground/dist/assets/index-1ccbfbf6.js similarity index 57% rename from langserve/playground/dist/assets/index-65de8f9b.js rename to langserve/playground/dist/assets/index-1ccbfbf6.js index e48a1676..f4816ab7 100644 --- a/langserve/playground/dist/assets/index-65de8f9b.js +++ b/langserve/playground/dist/assets/index-1ccbfbf6.js @@ -1,4 +1,4 @@ -var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jd=(e,t,n)=>(q7(e,typeof t!="symbol"?t+"":t,n),n);function Y7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var CI={exports:{}},ay={},$I={exports:{}},an={};/** +var J7=Object.defineProperty;var X7=(e,t,n)=>t in e?J7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zd=(e,t,n)=>(X7(e,typeof t!="symbol"?t+"":t,n),n);function Q7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ez(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _I={exports:{}},ly={},EI={exports:{}},an={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yp=Symbol.for("react.element"),J7=Symbol.for("react.portal"),Z7=Symbol.for("react.fragment"),X7=Symbol.for("react.strict_mode"),Q7=Symbol.for("react.profiler"),ez=Symbol.for("react.provider"),tz=Symbol.for("react.context"),nz=Symbol.for("react.forward_ref"),rz=Symbol.for("react.suspense"),oz=Symbol.for("react.memo"),az=Symbol.for("react.lazy"),OT=Symbol.iterator;function iz(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var SI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_I=Object.assign,EI={};function id(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}id.prototype.isReactComponent={};id.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PI(){}PI.prototype=id.prototype;function n$(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||SI}var r$=n$.prototype=new PI;r$.constructor=n$;_I(r$,id.prototype);r$.isPureReactComponent=!0;var RT=Array.isArray,TI=Object.prototype.hasOwnProperty,o$={current:null},kI={key:!0,ref:!0,__self:!0,__source:!0};function OI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)TI.call(t,r)&&!kI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1t in e?G7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dz=$,fz=Symbol.for("react.element"),pz=Symbol.for("react.fragment"),hz=Object.prototype.hasOwnProperty,mz=dz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vz={key:!0,ref:!0,__self:!0,__source:!0};function RI(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)hz.call(t,r)&&!vz.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:fz,type:e,key:a,ref:i,props:o,_owner:mz.current}}ay.Fragment=pz;ay.jsx=RI;ay.jsxs=RI;CI.exports=ay;var O=CI.exports,ow={},DI={exports:{}},Xo={},MI={exports:{}},II={};/** + */var vz=$,gz=Symbol.for("react.element"),yz=Symbol.for("react.fragment"),bz=Object.prototype.hasOwnProperty,xz=vz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wz={key:!0,ref:!0,__self:!0,__source:!0};function II(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)bz.call(t,r)&&!wz.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:gz,type:e,key:a,ref:i,props:o,_owner:xz.current}}ly.Fragment=yz;ly.jsx=II;ly.jsxs=II;_I.exports=ly;var R=_I.exports,lw={},AI={exports:{}},Xo={},NI={exports:{}},jI={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(W,J){var X=W.length;W.push(J);e:for(;0>>1,K=W[j];if(0>>1;jo(N,X))Bo(Z,N)?(W[j]=Z,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(Z,X))W[j]=Z,W[B]=X,j=B;else break e}}return J}function o(W,J){var X=W.sortIndex-J.sortIndex;return X!==0?X:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=W)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-W)}}function _(W,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var X=p;p=J;try{return W.apply(this,arguments)}finally{p=X}}}})(II);MI.exports=II;var gz=MI.exports;/** + */(function(e){function t(W,Z){var X=W.length;W.push(Z);e:for(;0>>1,K=W[j];if(0>>1;jo(N,X))Bo(J,N)?(W[j]=J,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(J,X))W[j]=J,W[B]=X,j=B;else break e}}return Z}function o(W,Z){var X=W.sortIndex-Z.sortIndex;return X!==0?X:W.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var Z=n(c);Z!==null;){if(Z.callback===null)r(c);else if(Z.startTime<=W)r(c),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var Z=n(c);Z!==null&&Q(C,Z.startTime-W)}}function _(W,Z){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(Z),f=n(l);f!==null&&(!(f.expirationTime>Z)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=Z);Z=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(Z)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-Z),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,O=-1;function F(){return!(e.unstable_now()-OW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var Z=p;return function(){var X=p;p=Z;try{return W.apply(this,arguments)}finally{p=X}}}})(jI);NI.exports=jI;var Cz=NI.exports;/** * @license React * react-dom.production.min.js * @@ -30,44 +30,44 @@ var G7=Object.defineProperty;var q7=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var AI=$,Ko=gz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aw=Object.prototype.hasOwnProperty,yz=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,MT={},IT={};function bz(e){return aw.call(IT,e)?!0:aw.call(MT,e)?!1:yz.test(e)?IT[e]=!0:(MT[e]=!0,!1)}function xz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wz(e,t,n,r){if(t===null||typeof t>"u"||xz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jr[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jr[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jr[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jr[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jr[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jr[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jr[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jr[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jr[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var i$=/[\-:]([a-z])/g;function s$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i$,s$);jr[t]=new so(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!1,!1)});jr.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jr[e]=new so(e,1,!1,e.toLowerCase(),null,!0,!0)});function l$(e,t,n,r){var o=jr.hasOwnProperty(t)?jr[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cw=Object.prototype.hasOwnProperty,$z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,AT={},NT={};function Sz(e){return cw.call(NT,e)?!0:cw.call(AT,e)?!1:$z.test(e)?NT[e]=!0:(AT[e]=!0,!1)}function _z(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ez(e,t,n,r){if(t===null||typeof t>"u"||_z(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lr[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var u$=/[\-:]([a-z])/g;function d$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function f$(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{vb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Cz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=gb(e.type,!1),e;case 11:return e=gb(e.type.render,!1),e;case 1:return e=gb(e.type,!0),e;default:return""}}function cw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case iw:return"Profiler";case c$:return"StrictMode";case sw:return"Suspense";case lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case LI:return(e.displayName||"Context")+".Consumer";case jI:return(e._context.displayName||"Context")+".Provider";case u$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d$:return t=e.displayName||null,t!==null?t:cw(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return cw(e(t))}catch{}}return null}function $z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cw(t);case 8:return t===c$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function el(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sz(e){var t=zI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Em(e){e._valueTracker||(e._valueTracker=Sz(e))}function VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function NT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=el(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function BI(e,t){t=t.checked,t!=null&&l$(e,"checked",t,!1)}function dw(e,t){BI(e,t);var n=el(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fw(e,t.type,n):t.hasOwnProperty("defaultValue")&&fw(e,t.type,el(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fw(e,t,n){(t!=="number"||Zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function up(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_z=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){_z.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function GI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function qI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=GI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ez=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mw(e,t){if(t){if(Ez[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gw=null;function f$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yw=null,Eu=null,Pu=null;function zT(e){if(e=Zp(e)){if(typeof yw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=uy(t),yw(e.stateNode,e.type,t))}}function YI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function KI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,zT(e),t)for(e=0;e>>=0,e===0?32:31-(jz(e)/Lz|0)|0}var Tm=64,km=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Kp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function Bz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),KT=String.fromCharCode(32),JT=!1;function mA(e,t){switch(e){case"keyup":return vV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function yV(e,t){switch(e){case"compositionend":return vA(t);case"keypress":return t.which!==32?null:(JT=!0,KT);case"textInput":return e=t.data,e===KT&&JT?null:e;default:return null}}function bV(e,t){if(du)return e==="compositionend"||!x$&&mA(e,t)?(e=pA(),Sv=g$=Ls=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ek(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wA(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zv(e.document)}return t}function w$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TV(e){var t=wA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&w$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=tk(n,a);var i=tk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Sw=null,Vf=null,_w=!1;function nk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_w||fu==null||fu!==Zv(r)||(r=fu,"selectionStart"in r&&w$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&vp(Vf,r)||(Vf=r,r=og(Sw,"onSelect"),0mu||(e.current=Rw[mu],Rw[mu]=null,mu--)}function Dn(e,t){mu++,Rw[mu]=e.current,e.current=t}var tl={},qr=sl(tl),Co=sl(!1),Jl=tl;function zu(e,t){var n=e.type.contextTypes;if(!n)return tl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function ig(){Ln(Co),Ln(qr)}function ck(e,t,n){if(qr.current!==tl)throw Error(at(168));Dn(qr,t),Dn(Co,n)}function OA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,$z(e)||"Unknown",o));return Kn({},n,r)}function sg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tl,Jl=qr.current,Dn(qr,e),Dn(Co,Co.current),!0}function uk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=OA(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(qr),Dn(qr,e)):Ln(Co),Dn(Co,n)}var Wi=null,dy=!1,Rb=!1;function RA(e){Wi===null?Wi=[e]:Wi.push(e)}function zV(e){dy=!0,RA(e)}function ll(){if(!Rb&&Wi!==null){Rb=!0;var e=0,t=Cn;try{var n=Wi;for(Cn=1;e>=i,o-=i,qi=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R,E=I}if(k===w.length)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(R.done)return n(g,E),zn&&Rl(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return zn&&Rl(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),S===null?_=R:S.sibling=R,S=R);return e&&E.forEach(function(U){return t(g,U)}),zn&&Rl(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _m:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&gk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Dv(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Fb(w,g.mode,C),y.return=g,g=y}return i(g);case Ms:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Zd(w))return v(g,y,w,C);Nm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Lb(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=FA(!0),zA=FA(!1),Xp={},yi=sl(Xp),xp=sl(Xp),wp=sl(Xp);function Bl(e){if(e===Xp)throw Error(at(174));return e}function O$(e,t){switch(Dn(wp,t),Dn(xp,e),Dn(yi,Xp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hw(t,e)}Ln(yi),Dn(yi,t)}function Uu(){Ln(yi),Ln(xp),Ln(wp)}function VA(e){Bl(wp.current);var t=Bl(yi.current),n=hw(t,e.type);t!==n&&(Dn(xp,e),Dn(yi,n))}function R$(e){xp.current===e&&(Ln(yi),Ln(xp))}var qn=sl(0);function pg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Db=[];function D$(){for(var e=0;en?n:4,e(!0);var r=Mb.transition;Mb.transition={};try{e(!1),t()}finally{Cn=n,Mb.transition=r}}function r3(){return wa().memoizedState}function WV(e,t,n){var r=Zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o3(e))a3(t,n);else if(n=AA(e,t,n,r),n!==null){var o=oo();Ha(n,e,r,o),i3(n,t,r)}}function HV(e,t,n){var r=Zs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o3(e))a3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,qa(s,i)){var l=t.interleaved;l===null?(o.next=o,T$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=AA(e,t,o,r),n!==null&&(o=oo(),Ha(n,e,r,o),i3(n,t,r))}}function o3(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function a3(e,t){Bf=hg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h$(e,n)}}var mg={readContext:xa,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},GV={readContext:xa,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tv(4194308,4,XA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tv(4,2,e,t)},useMemo:function(e,t){var n=si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=WV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:yk,useDebugValue:j$,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=yk(!1),t=e[0];return e=UV.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=si();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),kr===null)throw Error(at(349));Xl&30||WA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,bk(GA.bind(null,r,a,e),[e]),r.flags|=2048,Sp(9,HA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=si(),t=kr.identifierPrefix;if(zn){var n=Yi,r=qi;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cp++,0")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{wb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Pz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=Cb(e.type,!1),e;case 11:return e=Cb(e.type.render,!1),e;case 1:return e=Cb(e.type,!0),e;default:return""}}function pw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case uw:return"Profiler";case p$:return"StrictMode";case dw:return"Suspense";case fw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VI:return(e.displayName||"Context")+".Consumer";case zI:return(e._context.displayName||"Context")+".Provider";case h$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m$:return t=e.displayName||null,t!==null?t:pw(e.type)||"Memo";case Is:t=e._payload,e=e._init;try{return pw(e(t))}catch{}}return null}function Tz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pw(t);case 8:return t===p$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kz(e){var t=UI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function km(e){e._valueTracker||(e._valueTracker=kz(e))}function WI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function eg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function HI(e,t){t=t.checked,t!=null&&f$(e,"checked",t,!1)}function mw(e,t){HI(e,t);var n=tl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vw(e,t.type,n):t.hasOwnProperty("defaultValue")&&vw(e,t.type,tl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vw(e,t,n){(t!=="number"||eg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rz=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){Rz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function KI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function ZI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=KI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Oz=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bw(e,t){if(t){if(Oz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function xw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ww=null;function v$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cw=null,Eu=null,Pu=null;function BT(e){if(e=Qp(e)){if(typeof Cw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=py(t),Cw(e.stateNode,e.type,t))}}function JI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function XI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,BT(e),t)for(e=0;e>>=0,e===0?32:31-(Bz(e)/Uz|0)|0}var Om=64,Dm=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function og(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function qz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),JT=String.fromCharCode(32),XT=!1;function yA(e,t){switch(e){case"keyup":return wV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function $V(e,t){switch(e){case"compositionend":return bA(t);case"keypress":return t.which!==32?null:(XT=!0,JT);case"textInput":return e=t.data,e===JT&&XT?null:e;default:return null}}function SV(e,t){if(du)return e==="compositionend"||!S$&&yA(e,t)?(e=vA(),Pv=w$=Fs=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nk(n)}}function $A(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$A(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SA(){for(var e=window,t=eg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eg(e.document)}return t}function _$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MV(e){var t=SA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$A(n.ownerDocument.documentElement,n)){if(r!==null&&_$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=rk(n,a);var i=rk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Tw=null,Vf=null,kw=!1;function ok(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kw||fu==null||fu!==eg(r)||(r=fu,"selectionStart"in r&&_$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&gp(Vf,r)||(Vf=r,r=sg(Tw,"onSelect"),0mu||(e.current=Aw[mu],Aw[mu]=null,mu--)}function Dn(e,t){mu++,Aw[mu]=e.current,e.current=t}var nl={},Yr=sl(nl),Co=sl(!1),Zl=nl;function zu(e,t){var n=e.type.contextTypes;if(!n)return nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function cg(){Ln(Co),Ln(Yr)}function dk(e,t,n){if(Yr.current!==nl)throw Error(at(168));Dn(Yr,t),Dn(Co,n)}function MA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,Tz(e)||"Unknown",o));return Kn({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nl,Zl=Yr.current,Dn(Yr,e),Dn(Co,Co.current),!0}function fk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=MA(e,t,Zl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(Yr),Dn(Yr,e)):Ln(Co),Dn(Co,n)}var Gi=null,hy=!1,Nb=!1;function IA(e){Gi===null?Gi=[e]:Gi.push(e)}function HV(e){hy=!0,IA(e)}function ll(){if(!Nb&&Gi!==null){Nb=!0;var e=0,t=Cn;try{var n=Gi;for(Cn=1;e>=i,o-=i,Ki=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var O=p(g,E,w[k],C);if(O===null){E===null&&(E=I);break}e&&E&&O.alternate===null&&t(g,E),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O,E=I}if(k===w.length)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,O.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(O.done)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;!O.done;k++,O=w.next())O=f(g,O.value,C),O!==null&&(y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return zn&&Ol(g,k),_}for(E=r(g,E);!O.done;k++,O=w.next())O=m(E,g,k,O.value,C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?k:O.key),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return e&&E.forEach(function(U){return t(g,U)}),zn&&Ol(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Tm:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Is&&bk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Av(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Wb(w,g.mode,C),y.return=g,g=y}return i(g);case Is:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Jd(w))return v(g,y,w,C);Fm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Ub(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=BA(!0),UA=BA(!1),eh={},xi=sl(eh),wp=sl(eh),Cp=sl(eh);function Bl(e){if(e===eh)throw Error(at(174));return e}function I$(e,t){switch(Dn(Cp,t),Dn(wp,e),Dn(xi,eh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yw(t,e)}Ln(xi),Dn(xi,t)}function Uu(){Ln(xi),Ln(wp),Ln(Cp)}function WA(e){Bl(Cp.current);var t=Bl(xi.current),n=yw(t,e.type);t!==n&&(Dn(wp,e),Dn(xi,n))}function A$(e){wp.current===e&&(Ln(xi),Ln(wp))}var qn=sl(0);function vg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jb=[];function N$(){for(var e=0;en?n:4,e(!0);var r=Lb.transition;Lb.transition={};try{e(!1),t()}finally{Cn=n,Lb.transition=r}}function i4(){return wa().memoizedState}function KV(e,t,n){var r=Xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s4(e))l4(t,n);else if(n=LA(e,t,n,r),n!==null){var o=ao();Ha(n,e,r,o),c4(n,t,r)}}function ZV(e,t,n){var r=Xs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s4(e))l4(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ka(s,i)){var l=t.interleaved;l===null?(o.next=o,D$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=LA(e,t,o,r),n!==null&&(o=ao(),Ha(n,e,r,o),c4(n,t,r))}}function s4(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function l4(e,t){Bf=gg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,y$(e,n)}}var yg={readContext:xa,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},JV={readContext:xa,useCallback:function(e,t){return ci().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:wk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ov(4194308,4,t4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ov(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ov(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=KV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=ci();return e={current:e},t.memoizedState=e},useState:xk,useDebugValue:V$,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=xk(!1),t=e[0];return e=YV.bind(null,e[1]),ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=ci();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Rr===null)throw Error(at(349));Xl&30||qA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,wk(KA.bind(null,r,a,e),[e]),r.flags|=2048,_p(9,YA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ci(),t=Rr.identifierPrefix;if(zn){var n=Zi,r=Ki;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$p++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[di]=t,e[bp]=r,m3(e,t,!1,!1),t.stateNode=e;e:{switch(i=vw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=pg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Vr(t),null}else 2*lr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=lr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return U$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function eB(e,t){switch($$(t),t.tag){case 1:return $o(t.type)&&ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(qr),D$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return P$(t.type._context),null;case 22:case 23:return U$(),null;case 24:return null;default:return null}}var Lm=!1,Hr=!1,tB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function Uw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Tk=!1;function nB(e,t){if(Ew=ng,e=wA(),w$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pw={focusedElem:e,selectionRange:n},ng=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Tk,Tk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Uw(t,n,a)}o=o.next}while(o!==r)}}function hy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ww(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y3(e){var t=e.alternate;t!==null&&(e.alternate=null,y3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[di],delete t[bp],delete t[Ow],delete t[LV],delete t[FV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b3(e){return e.tag===5||e.tag===3||e.tag===4}function kk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ag));else if(r!==4&&(e=e.child,e!==null))for(Hw(e,t,n),e=e.sibling;e!==null;)Hw(e,t,n),e=e.sibling}function Gw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gw(e,t,n),e=e.sibling;e!==null;)Gw(e,t,n),e=e.sibling}var Mr=null,Na=!1;function _s(e,t,n){for(n=n.child;n!==null;)x3(e,t,n),n=n.sibling}function x3(e,t,n){if(gi&&typeof gi.onCommitFiberUnmount=="function")try{gi.onCommitFiberUnmount(iy,n)}catch{}switch(n.tag){case 5:Hr||bu(n,t);case 6:var r=Mr,o=Na;Mr=null,_s(e,t,n),Mr=r,Na=o,Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mr.removeChild(n.stateNode));break;case 18:Mr!==null&&(Na?(e=Mr,n=n.stateNode,e.nodeType===8?Ob(e.parentNode,n):e.nodeType===1&&Ob(e,n),hp(e)):Ob(Mr,n.stateNode));break;case 4:r=Mr,o=Na,Mr=n.stateNode.containerInfo,Na=!0,_s(e,t,n),Mr=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Uw(n,t,i),o=o.next}while(o!==r)}_s(e,t,n);break;case 1:if(!Hr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:n.mode&1?(Hr=(r=Hr)||n.memoizedState!==null,_s(e,t,n),Hr=r):_s(e,t,n);break;default:_s(e,t,n)}}function Ok(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tB),t.forEach(function(r){var o=dB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=lr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oB(r/1960))-r,10e?16:e,Fs===null)var r=!1;else{if(e=Fs,Fs=null,yg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;llr()-V$?Hl(e,0):z$|=n),So(e,t)}function T3(e,t){t===0&&(e.mode&1?(t=km,km<<=1,!(km&130023424)&&(km=4194304)):t=1);var n=oo();e=rs(e,t),e!==null&&(Kp(e,t,n),So(e,n))}function uB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T3(e,n)}function dB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),T3(e,n)}var k3;k3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,XV(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&DA(t,cg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kv(e,t),e=t.pendingProps;var o=zu(t,qr.current);ku(t,n),o=I$(null,t,r,e,o,n);var a=A$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,sg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,k$(t),o.updater=fy,t.stateNode=o,o._reactInternals=t,Nw(t,r,e,n),t=Fw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&C$(t),no(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pB(r),e=Aa(r,e),o){case 0:t=Lw(null,t,r,e,n);break e;case 1:t=_k(null,t,r,e,n);break e;case 11:t=$k(null,t,r,e,n);break e;case 14:t=Sk(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Lw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 3:e:{if(f3(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,NA(e,t),fg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Ek(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Ek(e,t,r,n,o);break e}else for(Wo=Ys(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=zA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=os(e,t,n);break e}no(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Mw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Tw(r,o)?i=null:a!==null&&Tw(r,a)&&(t.flags|=32),d3(e,t),no(e,t,i,n),t.child;case 6:return e===null&&Mw(t),null;case 13:return p3(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):no(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),$k(e,t,r,o,n);case 7:return no(e,t,t.pendingProps,n),t.child;case 8:return no(e,t,t.pendingProps.children,n),t.child;case 12:return no(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(ug,r._currentValue),r._currentValue=i,a!==null)if(qa(a.value,i)){if(a.children===o.children&&!Co.current){t=os(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ji(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Iw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Iw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}no(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,no(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Sk(e,t,r,o,n);case 15:return c3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),kv(e,t),t.tag=1,$o(r)?(e=!0,sg(t)):e=!1,ku(t,n),LA(t,r,o),Nw(t,r,o,n),Fw(null,t,r,!0,e,n);case 19:return h3(e,t,n);case 22:return u3(e,t,n)}throw Error(at(156,t.tag))};function O3(e,t){return nA(e,t)}function fB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new fB(e,t,n,r)}function H$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pB(e){if(typeof e=="function")return H$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===u$)return 11;if(e===d$)return 14}return 2}function Xs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")H$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case c$:i=8,o|=8;break;case iw:return e=va(12,n,t,o|2),e.elementType=iw,e.lanes=a,e;case sw:return e=va(13,n,t,o),e.elementType=sw,e.lanes=a,e;case lw:return e=va(19,n,t,o),e.elementType=lw,e.lanes=a,e;case FI:return vy(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jI:i=10;break e;case LI:i=9;break e;case u$:i=11;break e;case d$:i=14;break e;case Ms:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function vy(e,t,n,r){return e=va(22,e,r,t),e.elementType=FI,e.lanes=n,e.stateNode={isHidden:!1},e}function Lb(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Fb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bb(0),this.expirationTimes=bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G$(e,t,n,r,o,a,i,s,l){return e=new hB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},k$(a),e}function mB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I3)}catch(e){console.error(e)}}I3(),DI.exports=Xo;var cd=DI.exports;const Of=Vt(cd);var Lk=cd;ow.createRoot=Lk.createRoot,ow.hydrateRoot=Lk.hydrateRoot;const xB=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var J$={exports:{}};J$.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(J$);var Z$=J$.exports;function X$(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(Z$.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Q$(e){const{basePath:t}=X$(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const wB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[pi]=t,e[xp]=r,y4(e,t,!1,!1),t.stateNode=e;e:{switch(i=xw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=vg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Br(t),null}else 2*sr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return q$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function aB(e,t){switch(P$(t),t.tag){case 1:return $o(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(Yr),N$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return A$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return O$(t.type._context),null;case 22:case 23:return q$(),null;case 24:return null;default:return null}}var Vm=!1,Gr=!1,iB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function qw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Rk=!1;function sB(e,t){if(Rw=ag,e=SA(),_$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ow={focusedElem:e,selectionRange:n},ag=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Rk,Rk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&qw(t,n,a)}o=o.next}while(o!==r)}}function gy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function w4(e){var t=e.alternate;t!==null&&(e.alternate=null,w4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[xp],delete t[Iw],delete t[UV],delete t[WV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C4(e){return e.tag===5||e.tag===3||e.tag===4}function Ok(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lg));else if(r!==4&&(e=e.child,e!==null))for(Kw(e,t,n),e=e.sibling;e!==null;)Kw(e,t,n),e=e.sibling}function Zw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zw(e,t,n),e=e.sibling;e!==null;)Zw(e,t,n),e=e.sibling}var Ir=null,Na=!1;function Es(e,t,n){for(n=n.child;n!==null;)$4(e,t,n),n=n.sibling}function $4(e,t,n){if(bi&&typeof bi.onCommitFiberUnmount=="function")try{bi.onCommitFiberUnmount(cy,n)}catch{}switch(n.tag){case 5:Gr||bu(n,t);case 6:var r=Ir,o=Na;Ir=null,Es(e,t,n),Ir=r,Na=o,Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ir.removeChild(n.stateNode));break;case 18:Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?Ab(e.parentNode,n):e.nodeType===1&&Ab(e,n),mp(e)):Ab(Ir,n.stateNode));break;case 4:r=Ir,o=Na,Ir=n.stateNode.containerInfo,Na=!0,Es(e,t,n),Ir=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Gr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&qw(n,t,i),o=o.next}while(o!==r)}Es(e,t,n);break;case 1:if(!Gr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}Es(e,t,n);break;case 21:Es(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,Es(e,t,n),Gr=r):Es(e,t,n);break;default:Es(e,t,n)}}function Dk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iB),t.forEach(function(r){var o=vB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cB(r/1960))-r,10e?16:e,zs===null)var r=!1;else{if(e=zs,zs=null,wg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-H$?Hl(e,0):W$|=n),So(e,t)}function O4(e,t){t===0&&(e.mode&1?(t=Dm,Dm<<=1,!(Dm&130023424)&&(Dm=4194304)):t=1);var n=ao();e=os(e,t),e!==null&&(Jp(e,t,n),So(e,n))}function mB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),O4(e,n)}function vB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),O4(e,n)}var D4;D4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,rB(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&AA(t,fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dv(e,t),e=t.pendingProps;var o=zu(t,Yr.current);ku(t,n),o=L$(null,t,r,e,o,n);var a=F$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,ug(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,M$(t),o.updater=my,t.stateNode=o,o._reactInternals=t,zw(t,r,e,n),t=Uw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&E$(t),ro(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=yB(r),e=Aa(r,e),o){case 0:t=Bw(null,t,r,e,n);break e;case 1:t=Pk(null,t,r,e,n);break e;case 11:t=_k(null,t,r,e,n);break e;case 14:t=Ek(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Bw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Pk(e,t,r,o,n);case 3:e:{if(m4(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,FA(e,t),mg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Tk(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Tk(e,t,r,n,o);break e}else for(Wo=Ks(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=UA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=as(e,t,n);break e}ro(e,t,r,n)}t=t.child}return t;case 5:return WA(t),e===null&&jw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Dw(r,o)?i=null:a!==null&&Dw(r,a)&&(t.flags|=32),h4(e,t),ro(e,t,i,n),t.child;case 6:return e===null&&jw(t),null;case 13:return v4(e,t,n);case 4:return I$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):ro(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 7:return ro(e,t,t.pendingProps,n),t.child;case 8:return ro(e,t,t.pendingProps.children,n),t.child;case 12:return ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(pg,r._currentValue),r._currentValue=i,a!==null)if(Ka(a.value,i)){if(a.children===o.children&&!Co.current){t=as(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Lw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Lw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}ro(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,ro(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Ek(e,t,r,o,n);case 15:return f4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Dv(e,t),t.tag=1,$o(r)?(e=!0,ug(t)):e=!1,ku(t,n),VA(t,r,o),zw(t,r,o,n),Uw(null,t,r,!0,e,n);case 19:return g4(e,t,n);case 22:return p4(e,t,n)}throw Error(at(156,t.tag))};function M4(e,t){return aA(e,t)}function gB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new gB(e,t,n,r)}function K$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yB(e){if(typeof e=="function")return K$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h$)return 11;if(e===m$)return 14}return 2}function Qs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Av(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")K$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case p$:i=8,o|=8;break;case uw:return e=va(12,n,t,o|2),e.elementType=uw,e.lanes=a,e;case dw:return e=va(13,n,t,o),e.elementType=dw,e.lanes=a,e;case fw:return e=va(19,n,t,o),e.elementType=fw,e.lanes=a,e;case BI:return by(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zI:i=10;break e;case VI:i=9;break e;case h$:i=11;break e;case m$:i=14;break e;case Is:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function by(e,t,n,r){return e=va(22,e,r,t),e.elementType=BI,e.lanes=n,e.stateNode={isHidden:!1},e}function Ub(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Wb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sb(0),this.expirationTimes=Sb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Z$(e,t,n,r,o,a,i,s,l){return e=new bB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},M$(a),e}function xB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j4)}catch(e){console.error(e)}}j4(),AI.exports=Xo;var cd=AI.exports;const Rf=Vt(cd);var zk=cd;lw.createRoot=zk.createRoot,lw.hydrateRoot=zk.hydrateRoot;const _B=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var eS={exports:{}};eS.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(eS);var tS=eS.exports;function nS(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(tS.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function th(e){const{basePath:t}=nS(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const EB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:R(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,Z){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,Z){Z(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function R(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,Z,re){var ce=!0;function xe(me,ue){Z.push(ue),D(N,me,Z,re),Z.pop()}o.isFunction(re)&&(ce=re(N,B,Z)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,Z=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],Z.push(B))})),Z}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var Z,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,B)),K.filter(Z,B)&&(re=J(B),q[re]=Z),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function J(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,Z,re){var ce,xe,me=Promise.resolve(),ue=J(Z.subDocPath),se=k(Z.location),Ce=i.dirname(Z.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,Z),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(Z.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):Z.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],Z=[],re=new a.Graph,ce=k(K.location),xe=ce+J(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){Z.indexOf(se)===-1&&Z.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);Z.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+J(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return J(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** +*/l=function(){var u,f,p,m=Object.prototype.toString,b=o!==void 0?function(O){return o(O)}:setTimeout;try{Object.defineProperty({},"x",{}),u=function(O,F,U,G){return Object.defineProperty(O,F,{value:U,writable:!0,configurable:G!==!1})}}catch{u=function(F,U,G){return F[U]=G,F}}function v(O,F){p.add(O,F),f||(f=b(p.drain))}function x(O){var F,U=c(O);return O==null||U!="object"&&U!="function"||(F=O.then),typeof F=="function"&&F}function g(){for(var O=0;O0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(O){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=O,F.state=2,F.chain.length>0&&v(g,F))}function _(O,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:O(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,J){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(J||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+Z(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,J){J(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function O(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,J;return o.isArray(N.filter)||o.isString(N.filter)?(J=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return J.indexOf(re.type)>-1||J.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,J,re){var ce=!0;function xe(me,ue){J.push(ue),D(N,me,J,re),J.pop()}o.isFunction(re)&&(ce=re(N,B,J)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,J=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],J.push(B))})),J}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var J,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),J=Y(N),o.isUndefined(K.refPostProcessor)||(J=K.refPostProcessor(J,B)),K.filter(J,B)&&(re=Z(B),q[re]=J),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=O(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function Z(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,J,re){var ce,xe,me=Promise.resolve(),ue=Z(J.subDocPath),se=k(J.location),Ce=i.dirname(J.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,J),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(J.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):J.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(J)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],J=[],re=new a.Graph,ce=k(K.location),xe=ce+Z(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){J.indexOf(se)===-1&&J.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);J.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+Z(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:Z(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var J=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(J.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return Z(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(J){return{refs:J.refs,resolved:J.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[R]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[R]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Ri=Un&&Un.isDate,Qa=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ei=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function z2(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function F8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var z8=p1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),V8=p1({"&":"&","<":"<",">":">",'"':""","'":"'"});function B8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function g1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function V2(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function ms(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),vs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:vs.defaults(ut.Object(),Ke,vs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ti=Ke.Math,Mn=Ke.Object,y1=Ke.RegExp,H8=Ke.String,aa=Ke.TypeError,Nh=ht.prototype,G8=mr.prototype,Rc=Mn.prototype,jh=Ke["__core-js_shared__"],Lh=G8.toString,wn=Rc.hasOwnProperty,q8=0,B2=(qe=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Fh=Rc.toString,Y8=Lh.call(Mn),K8=ut._,J8=y1("^"+Lh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zh=Pn?Ke.Buffer:void 0,gs=Ke.Symbol,Vh=Ke.Uint8Array,U2=zh?zh.allocUnsafe:void 0,Bh=V2(Mn.getPrototypeOf,Mn),W2=Mn.create,H2=Rc.propertyIsEnumerable,Uh=Nh.splice,G2=gs?gs.isConcatSpreadable:void 0,Ad=gs?gs.iterator:void 0,bl=gs?gs.toStringTag:void 0,Wh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),Z8=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,X8=Ft&&Ft.now!==ut.Date.now&&Ft.now,Q8=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Hh=ti.ceil,Gh=ti.floor,b1=Mn.getOwnPropertySymbols,eF=zh?zh.isBuffer:void 0,q2=Ke.isFinite,tF=Nh.join,nF=V2(Mn.keys,Mn),vr=ti.max,Lr=ti.min,rF=Ft.now,oF=Ke.parseInt,Y2=ti.random,aF=Nh.reverse,x1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),w1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),qh=jd&&new jd,Mc={},iF=Sl(x1),sF=Sl(Nd),lF=Sl(w1),cF=Sl(Dc),uF=Sl(jd),Yh=gs?gs.prototype:void 0,Fd=Yh?Yh.valueOf:void 0,K2=Yh?Yh.toString:void 0;function ee(d){if(Zn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return JP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(W2)return W2(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Kh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Re=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Ze){var st=Ze.length,It=new Ze.constructor(st);return st&&typeof Ze[0]=="string"&&wn.call(Ze,"index")&&(It.index=Ze.index,It.input=Ze.input),It}(d),!be)return fo(d,de)}else{var ot=Fr(d),Ct=ot==v||ot==x;if(Cs(d))return CP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Re||Ct?{}:VP(d),!be)return Re?function(Ze,st){return ri(Ze,FP(Ze),st)}(d,function(Ze,st){return Ze&&ri(st,ho(st),Ze)}(de,d)):function(Ze,st){return ri(Ze,G1(Ze),st)}(d,X2(de,d))}else{if(!ve[ot])return H?d:{};de=function(Ze,st,It){var wt=Ze.constructor;switch(st){case I:return F1(Ze);case p:case m:return new wt(+Ze);case R:return function(jt,Xt){var Pt=Xt?F1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Ze,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return $P(Ze,It);case g:return new wt;case y:case S:return new wt(Ze);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Ze);case _:return new wt;case E:return At=Ze,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),hT(d)?d.forEach(function(Ze){de.add(sa(Ze,h,P,Ze,d,ae))}):fT(d)&&d.forEach(function(Ze,st){de.set(st,sa(Ze,h,P,st,d,ae))});var Rt=We?void 0:(Ge?Re?U1:B1:Re?ho:Pr)(d);return Zr(Rt||d,function(Ze,st){Rt&&(Ze=d[st=Ze]),zd(de,st,sa(Ze,h,P,st,d,ae))}),de}function Q2(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function eP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Di,de=!0,be=d.length,Re=[],Ge=h.length;if(!be)return Re;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Mi.prototype.set=function(d,h){var P=this.__data__,A=Jh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ii.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Mi),string:new xl}},Ii.prototype.delete=function(d){var h=lm(this,d).delete(d);return this.size-=h?1:0,h},Ii.prototype.get=function(d){return lm(this,d).get(d)},Ii.prototype.has=function(d){return lm(this,d).has(d)},Ii.prototype.set=function(d,h){var P=lm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Mi,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Mi){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ii(A)}return P.set(d,h),this.size=P.size,this};var ys=PP(ni),tP=PP(_1,!0);function hF(d,h){var P=!0;return ys(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function Zh(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Rr(be,h-1,P,A,H):uo(H,be):A||(H[H.length]=be)}return H}var S1=TP(),rP=TP(!0);function ni(d,h){return d&&S1(d,h,Pr)}function _1(d,h){return d&&rP(d,h,Pr)}function Xh(d,h){return Ao(h,function(P){return Fi(d[P])})}function Ac(d,h){for(var P=0,A=(h=xs(h,d)).length;d!=null&&Ph}function mF(d,h){return d!=null&&wn.call(d,h)}function vF(d,h){return d!=null&&h in Mn(d)}function P1(d,h,P){for(var A=P?Pc:Di,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Re=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Re=Lr(We.length,Re),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Rt;var Ze=Re[Ge];return Rt*(Ze=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function pP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Uh.call(be,Re,1),Uh.call(d,Re,1);return d}function hP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;Li(H)?Uh.call(d,H,1):A1(d,H)}}return d}function D1(d,h){return d+Gh(Y2()*(h-d+1))}function M1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Gh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return J1(WP(d,h,mo),d+"")}function yF(d){return Z2(zc(d))}function bF(d,h){var P=zc(d);return cm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=xs(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:SF(d);if(Ge)return Ah(Ge);de=!1,H=Id,Re=new wl}else Re=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var wP=Z8||function(d){return ut.clearTimeout(d)};function CP(d,h){if(h)return d.slice();var P=d.length,A=U2?U2(P):new d.constructor(P);return d.copy(A),A}function F1(d){var h=new d.constructor(d.byteLength);return new Vh(h).set(new Vh(d)),h}function $P(d,h){var P=h?F1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function SP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Re=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Re&&!be&&!Ge||A&&de&&Re||!P&&Re||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&Qr(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function RP(d){return ji(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&sm(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Rebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",Z=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[O]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[O]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Mi=Un&&Un.isDate,ti=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ni=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function BE(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function W8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var H8=y1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),G8=y1({"&":"&","<":"<",">":">",'"':""","'":"'"});function q8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function C1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function UE(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function vs(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),gs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:gs.defaults(ut.Object(),Ke,gs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ri=Ke.Math,Mn=Ke.Object,$1=Ke.RegExp,Z8=Ke.String,aa=Ke.TypeError,Fh=ht.prototype,J8=mr.prototype,Oc=Mn.prototype,zh=Ke["__core-js_shared__"],Vh=J8.toString,wn=Oc.hasOwnProperty,X8=0,WE=(qe=/[^.]+$/.exec(zh&&zh.keys&&zh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Bh=Oc.toString,Q8=Vh.call(Mn),eF=ut._,tF=$1("^"+Vh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uh=Pn?Ke.Buffer:void 0,ys=Ke.Symbol,Wh=Ke.Uint8Array,HE=Uh?Uh.allocUnsafe:void 0,Hh=UE(Mn.getPrototypeOf,Mn),GE=Mn.create,qE=Oc.propertyIsEnumerable,Gh=Fh.splice,YE=ys?ys.isConcatSpreadable:void 0,Ad=ys?ys.iterator:void 0,bl=ys?ys.toStringTag:void 0,qh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),nF=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,rF=Ft&&Ft.now!==ut.Date.now&&Ft.now,oF=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Yh=ri.ceil,Kh=ri.floor,S1=Mn.getOwnPropertySymbols,aF=Uh?Uh.isBuffer:void 0,KE=Ke.isFinite,iF=Fh.join,sF=UE(Mn.keys,Mn),vr=ri.max,Fr=ri.min,lF=Ft.now,cF=Ke.parseInt,ZE=ri.random,uF=Fh.reverse,_1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),E1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),Zh=jd&&new jd,Mc={},dF=Sl(_1),fF=Sl(Nd),pF=Sl(E1),hF=Sl(Dc),mF=Sl(jd),Jh=ys?ys.prototype:void 0,Fd=Jh?Jh.valueOf:void 0,JE=Jh?Jh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return XP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(GE)return GE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Xh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Oe=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&wn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!be)return po(d,de)}else{var ot=zr(d),Ct=ot==v||ot==x;if($s(d))return SP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Oe||Ct?{}:UP(d),!be)return Oe?function(Je,st){return ai(Je,VP(Je),st)}(d,function(Je,st){return Je&&ai(st,mo(st),Je)}(de,d)):function(Je,st){return ai(Je,J1(Je),st)}(d,eP(de,d))}else{if(!ve[ot])return H?d:{};de=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return W1(Je);case p:case m:return new wt(+Je);case O:return function(jt,Xt){var Pt=Xt?W1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return _P(Je,It);case g:return new wt;case y:case S:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),vT(d)?d.forEach(function(Je){de.add(sa(Je,h,P,Je,d,ae))}):hT(d)&&d.forEach(function(Je,st){de.set(st,sa(Je,h,P,st,d,ae))});var Ot=We?void 0:(Ge?Oe?Y1:q1:Oe?mo:Pr)(d);return Xr(Ot||d,function(Je,st){Ot&&(Je=d[st=Je]),zd(de,st,sa(Je,h,P,st,d,ae))}),de}function tP(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function nP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Ii,de=!0,be=d.length,Oe=[],Ge=h.length;if(!be)return Oe;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Ai.prototype.set=function(d,h){var P=this.__data__,A=Qh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ni.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Ai),string:new xl}},Ni.prototype.delete=function(d){var h=dm(this,d).delete(d);return this.size-=h?1:0,h},Ni.prototype.get=function(d){return dm(this,d).get(d)},Ni.prototype.has=function(d){return dm(this,d).has(d)},Ni.prototype.set=function(d,h){var P=dm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Ai,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ai){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ni(A)}return P.set(d,h),this.size=P.size,this};var bs=kP(oi),rP=kP(R1,!0);function bF(d,h){var P=!0;return bs(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function em(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Dr(be,h-1,P,A,H):fo(H,be):A||(H[H.length]=be)}return H}var k1=RP(),aP=RP(!0);function oi(d,h){return d&&k1(d,h,Pr)}function R1(d,h){return d&&aP(d,h,Pr)}function tm(d,h){return Ao(h,function(P){return Vi(d[P])})}function Ac(d,h){for(var P=0,A=(h=ws(h,d)).length;d!=null&&Ph}function xF(d,h){return d!=null&&wn.call(d,h)}function wF(d,h){return d!=null&&h in Mn(d)}function D1(d,h,P){for(var A=P?Pc:Ii,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Oe=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Oe=Fr(We.length,Oe),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Ot;var Je=Oe[Ge];return Ot*(Je=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function mP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Gh.call(be,Oe,1),Gh.call(d,Oe,1);return d}function vP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;zi(H)?Gh.call(d,H,1):z1(d,H)}}return d}function j1(d,h){return d+Kh(ZE()*(h-d+1))}function L1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Kh(h/2))&&(d+=d);while(h);return P}function Jt(d,h){return tb(GP(d,h,vo),d+"")}function $F(d){return QE(zc(d))}function SF(d,h){var P=zc(d);return fm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=ws(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:kF(d);if(Ge)return Lh(Ge);de=!1,H=Id,Oe=new wl}else Oe=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var $P=nF||function(d){return ut.clearTimeout(d)};function SP(d,h){if(h)return d.slice();var P=d.length,A=HE?HE(P):new d.constructor(P);return d.copy(A),A}function W1(d){var h=new d.constructor(d.byteLength);return new Wh(h).set(new Wh(d)),h}function _P(d,h){var P=h?W1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function EP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Oe=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Oe&&!be&&!Ge||A&&de&&Oe||!P&&Oe||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&eo(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function MP(d){return Fi(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&um(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Oebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ /* [wrapped with `+ae+`] */ -`)}(A,function(H,ae){return Zr(c,function(de){var be="_."+de[0];ae&de[1]&&!Di(H,be)&&H.push(be)}),H.sort()}(function(H){var ae=H.match(De);return ae?ae[1].split(Be):[]}(A),P)))}function YP(d){var h=0,P=0;return function(){var A=rF(),H=16-(A-P);if(P=A,H>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function cm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,nT(d,P)});function rT(d){var h=ee(d);return h.__chain__=!0,h}function um(d,h){return h(d)}var GF=ji(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return $1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Li(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:um,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),qF=nm(function(d,h,P){wn.call(d,P)?++d[P]:Ai(d,P,1)}),YF=OP(ZP),KF=OP(XP);function oT(d,h){return(Ht(d)?Zr:ys)(d,Ot(h,3))}function aT(d,h){return(Ht(d)?Mh:tP)(d,Ot(h,3))}var JF=nm(function(d,h,P){wn.call(d,P)?d[P].push(h):Ai(d,P,[h])}),ZF=Zt(function(d,h,P){var A=-1,H=typeof h=="function",ae=po(d)?ht(d.length):[];return ys(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),XF=nm(function(d,h,P){Ai(d,P,h)});function dm(d,h){return(Ht(d)?kn:lP)(d,Ot(h,3))}var QF=nm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),e7=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Qr(d,h[0],h[1])?h=[]:P>2&&Qr(h[0],h[1],h[2])&&(h=[h[0]]),fP(d,Rr(h,1),[])}),fm=X8||function(){return ut.Date.now()};function iT(d,h,P){return h=P?void 0:h,Ni(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function sT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var Q1=Zt(function(d,h,P){var A=1;if(P.length){var H=ms(P,Lc(Q1));A|=32}return Ni(d,A,h,P,H)}),lT=Zt(function(d,h,P){var A=3;if(P.length){var H=ms(P,Lc(lT));A|=32}return Ni(h,A,d,P,H)});function cT(d,h,P){var A,H,ae,de,be,Re,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Rt(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Ze(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=fm();if(Ze(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Re);return ot?Lr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=fm(),jt=Ze(At);if(A=arguments,H=this,Re=At,jt){if(be===void 0)return Rt(Re);if(ot)return wP(be),be=qd(st,h),$t(Re)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&wP(be),Ge=0,A=Re=H=be=void 0},wt.flush=function(){return be===void 0?de:It(fm())},wt}var t7=Zt(function(d,h){return eP(d,1,h)}),n7=Zt(function(d,h,P){return eP(d,ua(h)||0,P)});function pm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(pm.Cache||Ii),P}function hm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}pm.Cache=Ii;var r7=$F(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Ot())):kn(Rr(h,1),No(Ot()))).length;return Zt(function(A){for(var H=-1,ae=Lr(A.length,P);++H=h}),_l=aP(function(){return arguments}())?aP:function(d){return Zn(d)&&wn.call(d,"callee")&&!H2.call(d,"callee")},Ht=ht.isArray,s7=Mo?No(Mo):function(d){return Zn(d)&&Xr(d)==I};function po(d){return d!=null&&mm(d.length)&&!Fi(d)}function ar(d){return Zn(d)&&po(d)}var Cs=eF||db,l7=Ri?No(Ri):function(d){return Zn(d)&&Xr(d)==m};function tb(d){if(!Zn(d))return!1;var h=Xr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Fi(d){if(!Hn(d))return!1;var h=Xr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function dT(d){return typeof d=="number"&&d==Gt(d)}function mm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Zn(d){return d!=null&&i(d)=="object"}var fT=Qa?No(Qa):function(d){return Zn(d)&&Fr(d)==g};function pT(d){return typeof d=="number"||Zn(d)&&Xr(d)==y}function Yd(d){if(!Zn(d)||Xr(d)!=w)return!1;var h=Bh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Lh.call(P)==Y8}var nb=Jr?No(Jr):function(d){return Zn(d)&&Xr(d)==C},hT=Io?No(Io):function(d){return Zn(d)&&Fr(d)==_};function vm(d){return typeof d=="string"||!Ht(d)&&Zn(d)&&Xr(d)==S}function Lo(d){return i(d)=="symbol"||Zn(d)&&Xr(d)==E}var Fc=ei?No(ei):function(d){return Zn(d)&&mm(d.length)&&!!ye[Xr(d)]},c7=im(O1),u7=im(function(d,h){return d<=h});function mT(d){if(!d)return[];if(po(d))return vm(d)?Ta(d):fo(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=Fr(d);return(h==g?g1:h==_?Ah:zc)(d)}function zi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=zi(d),P=h%1;return h==h?P?h-P:h:0}function vT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function gT(d){return ri(d,ho(d))}function gn(d){return d==null?"":jo(d)}var d7=Nc(function(d,h){if(Gd(h)||po(h))ri(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),yT=Nc(function(d,h){ri(h,ho(h),d)}),gm=Nc(function(d,h,P,A){ri(h,ho(h),d,A)}),f7=Nc(function(d,h,P,A){ri(h,Pr(h),d,A)}),p7=ji($1),h7=Zt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&Qr(h[0],h[1],H)&&(A=1);++P1),ae}),ri(d,U1(d),P),A&&(P=sa(P,7,_F));for(var H=h.length;H--;)A1(P,h[H]);return P}),w7=ji(function(d,h){return d==null?{}:function(P,A){return pP(P,A,function(H,ae){return ob(P,ae)})}(d,h)});function xT(d,h){if(d==null)return{};var P=kn(U1(d),function(A){return[A]});return h=Ot(h),pP(d,P,function(A,H){return h(A,H[0])})}var wT=AP(Pr),CT=AP(ho);function zc(d){return d==null?[]:v1(d,Pr(d))}var C7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?$T(h):h)});function $T(d){return ab(gn(d).toLowerCase())}function ST(d){return(d=gn(d))&&d.replace(Te,z8).replace(Bn,"")}var $7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),S7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),_7=kP("toLowerCase"),E7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),P7=jc(function(d,h,P){return d+(P?" ":"")+ab(h)}),T7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ab=kP("toUpperCase");function _T(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var ET=Zt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return tb(P)?P:new cn(P)}}),k7=ji(function(d,h){return Zr(h,function(P){P=oi(P),Ai(d,P,Q1(d[P],d))}),d});function ib(d){return function(){return d}}var O7=RP(),R7=RP(!0);function mo(d){return d}function sb(d){return sP(typeof d=="function"?d:sa(d,1))}var D7=Zt(function(d,h){return function(P){return Bd(P,d,h)}}),M7=Zt(function(d,h){return function(P){return Bd(d,P,h)}});function lb(d,h,P){var A=Pr(h),H=Xh(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=Xh(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Fi(d);return Zr(H,function(be){var Re=h[be];d[be]=Re,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=fo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Re.apply(d,uo([this.value()],arguments))})}),d}function cb(){}var I7=z1(kn),A7=z1(yl),N7=z1(d1);function PT(d){return q1(d)?f1(oi(d)):function(h){return function(P){return Ac(P,h)}}(d)}var j7=MP(),L7=MP(!0);function ub(){return[]}function db(){return!1}var F7=om(function(d,h){return d+h},0),z7=V1("ceil"),V7=om(function(d,h){return d/h},1),B7=V1("floor"),fb,U7=om(function(d,h){return d*h},1),W7=V1("round"),H7=om(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=iT,ee.assign=d7,ee.assignIn=yT,ee.assignInWith=gm,ee.assignWith=f7,ee.at=p7,ee.before=sT,ee.bind=Q1,ee.bindAll=k7,ee.bindKey=lT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=rT,ee.chunk=function(d,h,P){h=(P?Qr(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Hh(A/h));HGe?0:Ge+be),(Re=Re===void 0||Re>Ge?Ge:Gt(Re))<0&&(Re+=Ge),Re=be>Re?0:vT(Re);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!nb(h))&&!(h=jo(h))&&kc(d)?ws(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Zt(function(P){var A=P[h],H=ws(P,0,h);return A&&uo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?tm(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),cT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=um,ee.toArray=mT,ee.toPairs=wT,ee.toPairsIn=CT,ee.toPath=function(d){return Ht(d)?kn(d,oi):Lo(d)?[d]:fo(KP(gn(d)))},ee.toPlainObject=gT,ee.transform=function(d,h,P){var A=Ht(d),H=A||Cs(d)||Fc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Fi(ae)?Ic(Bh(d)):{}}return(H?Zr:ni)(d,function(de,be,Re){return h(P,de,be,Re)}),P},ee.unary=function(d){return iT(d,1)},ee.union=jF,ee.unionBy=LF,ee.unionWith=FF,ee.uniq=function(d){return d&&d.length?bs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?bs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?bs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||A1(d,h)},ee.unzip=X1,ee.unzipWith=nT,ee.update=function(d,h,P){return d==null?d:yP(d,h,L1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:yP(d,h,L1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:v1(d,ho(d))},ee.without=zF,ee.words=_T,ee.wrap=function(d,h){return eb(L1(h),d)},ee.xor=VF,ee.xorBy=BF,ee.xorWith=UF,ee.zip=WF,ee.zipObject=function(d,h){return xP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return xP(d||[],h||[],Wd)},ee.zipWith=HF,ee.entries=wT,ee.entriesIn=CT,ee.extend=yT,ee.extendWith=gm,lb(ee,ee),ee.add=F7,ee.attempt=ET,ee.camelCase=C7,ee.capitalize=$T,ee.ceil=z7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||Q2(d,h,Pr(h))},ee.deburr=ST,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=V7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Oa,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,V8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:hF;return P&&Qr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=YF,ee.findIndex=ZP,ee.findKey=function(d,h){return A2(d,Ot(h,3),ni)},ee.findLast=KF,ee.findLastIndex=XP,ee.findLastKey=function(d,h){return A2(d,Ot(h,3),_1)},ee.floor=B7,ee.forEach=oT,ee.forEachRight=aT,ee.forIn=function(d,h){return d==null?d:S1(d,Ot(h,3),ho)},ee.forInRight=function(d,h){return d==null?d:rP(d,Ot(h,3),ho)},ee.forOwn=function(d,h){return d&&ni(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&_1(d,Ot(h,3))},ee.get=rb,ee.gt=a7,ee.gte=i7,ee.has=function(d,h){return d!=null&&zP(d,h,mF)},ee.hasIn=ob,ee.head=eT,ee.identity=mo,ee.includes=function(d,h,P,A){d=po(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),vm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=zi(h),P===void 0?(P=h,h=0):P=zi(P),function(A,H,ae){return A>=Lr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=hT,ee.isString=vm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Zn(d)&&Fr(d)==k},ee.isWeakSet=function(d){return Zn(d)&&Xr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":tF.call(d,h)},ee.kebabCase=$7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Lr(H,A-1)),h==h?function(ae,de,be){for(var Re=be+1;Re--;)if(ae[Re]===de)return Re;return Re}(d,h,H):Ih(d,N2,H,!0)},ee.lowerCase=S7,ee.lowerFirst=_7,ee.lt=c7,ee.lte=u7,ee.max=function(d){return d&&d.length?Zh(d,mo,E1):void 0},ee.maxBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),E1):void 0},ee.mean=function(d){return j2(d,mo)},ee.meanBy=function(d,h){return j2(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Zh(d,mo,O1):void 0},ee.minBy=function(d,h){return d&&d.length?Zh(d,Ot(h,2),O1):void 0},ee.stubArray=ub,ee.stubFalse=db,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=U7,ee.nth=function(d,h){return d&&d.length?dP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=K8),this},ee.noop=cb,ee.now=fm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return am(Gh(H),P)+d+am(Hh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Oc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=Y2();return Lr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return D1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?u1:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,ys)},ee.reduceRight=function(d,h,P){var A=Ht(d)?N8:L2,H=arguments.length<3;return A(d,Ot(h,4),P,H,tP)},ee.repeat=function(d,h,P){return h=(P?Qr(d,h,P):h===void 0)?1:Gt(h),M1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=xs(h,d)).length;for(H||(H=1,d=void 0);++A0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function fm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,oT(d,P)});function aT(d){var h=ee(d);return h.__chain__=!0,h}function pm(d,h){return h(d)}var JF=Fi(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return T1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&zi(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:pm,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),XF=am(function(d,h,P){wn.call(d,P)?++d[P]:ji(d,P,1)}),QF=DP(QP),e7=DP(eT);function iT(d,h){return(Ht(d)?Xr:bs)(d,Rt(h,3))}function sT(d,h){return(Ht(d)?Nh:rP)(d,Rt(h,3))}var t7=am(function(d,h,P){wn.call(d,P)?d[P].push(h):ji(d,P,[h])}),n7=Jt(function(d,h,P){var A=-1,H=typeof h=="function",ae=ho(d)?ht(d.length):[];return bs(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),r7=am(function(d,h,P){ji(d,P,h)});function hm(d,h){return(Ht(d)?kn:uP)(d,Rt(h,3))}var o7=am(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),a7=Jt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&eo(d,h[0],h[1])?h=[]:P>2&&eo(h[0],h[1],h[2])&&(h=[h[0]]),hP(d,Dr(h,1),[])}),mm=rF||function(){return ut.Date.now()};function lT(d,h,P){return h=P?void 0:h,Li(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function cT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var ob=Jt(function(d,h,P){var A=1;if(P.length){var H=vs(P,Lc(ob));A|=32}return Li(d,A,h,P,H)}),uT=Jt(function(d,h,P){var A=3;if(P.length){var H=vs(P,Lc(uT));A|=32}return Li(h,A,d,P,H)});function dT(d,h,P){var A,H,ae,de,be,Oe,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Ot(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Je(At){var jt=At-Oe;return Oe===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=mm();if(Je(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Oe);return ot?Fr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=mm(),jt=Je(At);if(A=arguments,H=this,Oe=At,jt){if(be===void 0)return Ot(Oe);if(ot)return $P(be),be=qd(st,h),$t(Oe)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&$P(be),Ge=0,A=Oe=H=be=void 0},wt.flush=function(){return be===void 0?de:It(mm())},wt}var i7=Jt(function(d,h){return nP(d,1,h)}),s7=Jt(function(d,h,P){return nP(d,ua(h)||0,P)});function vm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(vm.Cache||Ni),P}function gm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}vm.Cache=Ni;var l7=TF(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Rt())):kn(Dr(h,1),No(Rt()))).length;return Jt(function(A){for(var H=-1,ae=Fr(A.length,P);++H=h}),_l=sP(function(){return arguments}())?sP:function(d){return Jn(d)&&wn.call(d,"callee")&&!qE.call(d,"callee")},Ht=ht.isArray,f7=Mo?No(Mo):function(d){return Jn(d)&&Qr(d)==I};function ho(d){return d!=null&&ym(d.length)&&!Vi(d)}function ar(d){return Jn(d)&&ho(d)}var $s=aF||vb,p7=Mi?No(Mi):function(d){return Jn(d)&&Qr(d)==m};function ib(d){if(!Jn(d))return!1;var h=Qr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Vi(d){if(!Hn(d))return!1;var h=Qr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function pT(d){return typeof d=="number"&&d==Gt(d)}function ym(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var hT=ti?No(ti):function(d){return Jn(d)&&zr(d)==g};function mT(d){return typeof d=="number"||Jn(d)&&Qr(d)==y}function Yd(d){if(!Jn(d)||Qr(d)!=w)return!1;var h=Hh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Vh.call(P)==Q8}var sb=Jr?No(Jr):function(d){return Jn(d)&&Qr(d)==C},vT=Io?No(Io):function(d){return Jn(d)&&zr(d)==_};function bm(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Qr(d)==S}function Lo(d){return i(d)=="symbol"||Jn(d)&&Qr(d)==E}var Fc=ni?No(ni):function(d){return Jn(d)&&ym(d.length)&&!!ye[Qr(d)]},h7=cm(A1),m7=cm(function(d,h){return d<=h});function gT(d){if(!d)return[];if(ho(d))return bm(d)?Ta(d):po(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=zr(d);return(h==g?C1:h==_?Lh:zc)(d)}function Bi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Bi(d),P=h%1;return h==h?P?h-P:h:0}function yT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function bT(d){return ai(d,mo(d))}function gn(d){return d==null?"":jo(d)}var v7=Nc(function(d,h){if(Gd(h)||ho(h))ai(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),xT=Nc(function(d,h){ai(h,mo(h),d)}),xm=Nc(function(d,h,P,A){ai(h,mo(h),d,A)}),g7=Nc(function(d,h,P,A){ai(h,Pr(h),d,A)}),y7=Fi(T1),b7=Jt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&eo(h[0],h[1],H)&&(A=1);++P1),ae}),ai(d,Y1(d),P),A&&(P=sa(P,7,RF));for(var H=h.length;H--;)z1(P,h[H]);return P}),E7=Fi(function(d,h){return d==null?{}:function(P,A){return mP(P,A,function(H,ae){return cb(P,ae)})}(d,h)});function CT(d,h){if(d==null)return{};var P=kn(Y1(d),function(A){return[A]});return h=Rt(h),mP(d,P,function(A,H){return h(A,H[0])})}var $T=jP(Pr),ST=jP(mo);function zc(d){return d==null?[]:w1(d,Pr(d))}var P7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?_T(h):h)});function _T(d){return ub(gn(d).toLowerCase())}function ET(d){return(d=gn(d))&&d.replace(Te,H8).replace(Bn,"")}var T7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),k7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),R7=OP("toLowerCase"),O7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),D7=jc(function(d,h,P){return d+(P?" ":"")+ub(h)}),M7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ub=OP("toUpperCase");function PT(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var TT=Jt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return ib(P)?P:new cn(P)}}),I7=Fi(function(d,h){return Xr(h,function(P){P=ii(P),ji(d,P,ob(d[P],d))}),d});function db(d){return function(){return d}}var A7=MP(),N7=MP(!0);function vo(d){return d}function fb(d){return cP(typeof d=="function"?d:sa(d,1))}var j7=Jt(function(d,h){return function(P){return Bd(P,d,h)}}),L7=Jt(function(d,h){return function(P){return Bd(d,P,h)}});function pb(d,h,P){var A=Pr(h),H=tm(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=tm(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Vi(d);return Xr(H,function(be){var Oe=h[be];d[be]=Oe,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=po(this.__actions__);return ot.push({func:Oe,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Oe.apply(d,fo([this.value()],arguments))})}),d}function hb(){}var F7=H1(kn),z7=H1(yl),V7=H1(v1);function kT(d){return X1(d)?g1(ii(d)):function(h){return function(P){return Ac(P,h)}}(d)}var B7=AP(),U7=AP(!0);function mb(){return[]}function vb(){return!1}var W7=sm(function(d,h){return d+h},0),H7=G1("ceil"),G7=sm(function(d,h){return d/h},1),q7=G1("floor"),gb,Y7=sm(function(d,h){return d*h},1),K7=G1("round"),Z7=sm(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=lT,ee.assign=v7,ee.assignIn=xT,ee.assignInWith=xm,ee.assignWith=g7,ee.at=y7,ee.before=cT,ee.bind=ob,ee.bindAll=I7,ee.bindKey=uT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=aT,ee.chunk=function(d,h,P){h=(P?eo(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Yh(A/h));HGe?0:Ge+be),(Oe=Oe===void 0||Oe>Ge?Ge:Gt(Oe))<0&&(Oe+=Ge),Oe=be>Oe?0:yT(Oe);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!sb(h))&&!(h=jo(h))&&kc(d)?Cs(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Jt(function(P){var A=P[h],H=Cs(P,0,h);return A&&fo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?om(d,Rt(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?om(d,Rt(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),dT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=pm,ee.toArray=gT,ee.toPairs=$T,ee.toPairsIn=ST,ee.toPath=function(d){return Ht(d)?kn(d,ii):Lo(d)?[d]:po(JP(gn(d)))},ee.toPlainObject=bT,ee.transform=function(d,h,P){var A=Ht(d),H=A||$s(d)||Fc(d);if(h=Rt(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Vi(ae)?Ic(Hh(d)):{}}return(H?Xr:oi)(d,function(de,be,Oe){return h(P,de,be,Oe)}),P},ee.unary=function(d){return lT(d,1)},ee.union=BF,ee.unionBy=UF,ee.unionWith=WF,ee.uniq=function(d){return d&&d.length?xs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?xs(d,Rt(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?xs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||z1(d,h)},ee.unzip=rb,ee.unzipWith=oT,ee.update=function(d,h,P){return d==null?d:xP(d,h,U1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:xP(d,h,U1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:w1(d,mo(d))},ee.without=HF,ee.words=PT,ee.wrap=function(d,h){return ab(U1(h),d)},ee.xor=GF,ee.xorBy=qF,ee.xorWith=YF,ee.zip=KF,ee.zipObject=function(d,h){return CP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return CP(d||[],h||[],Wd)},ee.zipWith=ZF,ee.entries=$T,ee.entriesIn=ST,ee.extend=xT,ee.extendWith=xm,pb(ee,ee),ee.add=W7,ee.attempt=TT,ee.camelCase=P7,ee.capitalize=_T,ee.ceil=H7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||tP(d,h,Pr(h))},ee.deburr=ET,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=G7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Ra,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,G8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:bF;return P&&eo(d,h,P)&&(h=void 0),A(d,Rt(h,3))},ee.find=QF,ee.findIndex=QP,ee.findKey=function(d,h){return jE(d,Rt(h,3),oi)},ee.findLast=e7,ee.findLastIndex=eT,ee.findLastKey=function(d,h){return jE(d,Rt(h,3),R1)},ee.floor=q7,ee.forEach=iT,ee.forEachRight=sT,ee.forIn=function(d,h){return d==null?d:k1(d,Rt(h,3),mo)},ee.forInRight=function(d,h){return d==null?d:aP(d,Rt(h,3),mo)},ee.forOwn=function(d,h){return d&&oi(d,Rt(h,3))},ee.forOwnRight=function(d,h){return d&&R1(d,Rt(h,3))},ee.get=lb,ee.gt=u7,ee.gte=d7,ee.has=function(d,h){return d!=null&&BP(d,h,xF)},ee.hasIn=cb,ee.head=nT,ee.identity=vo,ee.includes=function(d,h,P,A){d=ho(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),bm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=Bi(h),P===void 0?(P=h,h=0):P=Bi(P),function(A,H,ae){return A>=Fr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=vT,ee.isString=bm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&zr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Qr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":iF.call(d,h)},ee.kebabCase=T7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Fr(H,A-1)),h==h?function(ae,de,be){for(var Oe=be+1;Oe--;)if(ae[Oe]===de)return Oe;return Oe}(d,h,H):jh(d,LE,H,!0)},ee.lowerCase=k7,ee.lowerFirst=R7,ee.lt=h7,ee.lte=m7,ee.max=function(d){return d&&d.length?em(d,vo,O1):void 0},ee.maxBy=function(d,h){return d&&d.length?em(d,Rt(h,2),O1):void 0},ee.mean=function(d){return FE(d,vo)},ee.meanBy=function(d,h){return FE(d,Rt(h,2))},ee.min=function(d){return d&&d.length?em(d,vo,A1):void 0},ee.minBy=function(d,h){return d&&d.length?em(d,Rt(h,2),A1):void 0},ee.stubArray=mb,ee.stubFalse=vb,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=Y7,ee.nth=function(d,h){return d&&d.length?pP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=eF),this},ee.noop=hb,ee.now=mm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return lm(Kh(H),P)+d+lm(Yh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=ZE();return Fr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return j1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?m1:zE,H=arguments.length<3;return A(d,Rt(h,4),P,H,bs)},ee.reduceRight=function(d,h,P){var A=Ht(d)?V8:zE,H=arguments.length<3;return A(d,Rt(h,4),P,H,rP)},ee.repeat=function(d,h,P){return h=(P?eo(d,h,P):h===void 0)?1:Gt(h),L1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=ws(h,d)).length;for(H||(H=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=Lr(d,4294967295);d-=4294967295;for(var H=m1(A,h=Ot(h));++P=ae)return d;var be=P-Oc(A);if(be<1)return A;var Re=de?ws(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Re+A;if(de&&(be+=Re.length-be),nb(H)){if(d.slice(be).search(H)){var Ge,We=Re;for(H.global||(H=y1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Re=Re.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Re.lastIndexOf(H);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,W8):d},ee.uniqueId=function(d){var h=++q8;return gn(d)+h},ee.upperCase=T7,ee.upperFirst=ab,ee.each=oT,ee.eachRight=aT,ee.first=eT,lb(ee,(fb={},ni(ee,function(d,h){wn.call(ee.prototype,h)||(fb[h]=d)}),fb),{chain:!1}),ee.VERSION="4.17.15",Zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Zr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Lr(P,A.__takeCount__):A.__views__.push({size:Lr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Zr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Zr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Zr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(mo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(hm(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ni(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Re=de instanceof rn,Ge=be[0],We=Re||Ht(de),ot=function(It){var wt=H.apply(ee,uo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Re=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Ze=Re&&!$t;if(!ae&&We){de=Ze?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:um,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Rt&&Ze?d.apply(this,be):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Zr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Nh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),ni(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[rm(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=fo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=fo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=fo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,eo=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Kh;){var A=JP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:um,args:[Z1],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(Z1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return bP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=vs,(a=(function(){return vs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=vs)._=vs,yt._=vs):ut._=vs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,z,V){var Y,Q=1&F,W=2&F,J=4&F;if(U&&(Y=z?U(R,G,z,V):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var j=b(R),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(R),!Q)return W?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[j])return z?R:{};Y=x(R,j,Q)}}V||(V=new r);var q=V.get(R);if(q)return q;V.set(R,Y),S(R)?R.forEach(function(B){Y.add(I(B,F,U,B,R,V))}):C(R)&&R.forEach(function(B,Z){Y.set(Z,I(B,F,U,Z,R,V))});var D=J?W?m:p:W?keysIn:E,N=X?void 0:D(R);return o(N||R,function(B,Z){N&&(B=R[Z=B]),a(Y,Z,I(B,F,U,Z,R,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function R(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=R(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=J(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,J).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=Z(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=J(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var A3={exports:{}},N3={};/** +}`;var Je=TT(function(){return mr(be,$t+"return "+ot).apply(void 0,Oe)});if(Je.source=ot,ib(Je))throw Je;return Je},ee.times=function(d,h){if((d=Gt(d))<1||d>9007199254740991)return[];var P=4294967295,A=Fr(d,4294967295);d-=4294967295;for(var H=x1(A,h=Rt(h));++P=ae)return d;var be=P-Rc(A);if(be<1)return A;var Oe=de?Cs(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Oe+A;if(de&&(be+=Oe.length-be),sb(H)){if(d.slice(be).search(H)){var Ge,We=Oe;for(H.global||(H=$1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Oe=Oe.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Oe.lastIndexOf(H);Ct>-1&&(Oe=Oe.slice(0,Ct))}return Oe+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,K8):d},ee.uniqueId=function(d){var h=++X8;return gn(d)+h},ee.upperCase=M7,ee.upperFirst=ub,ee.each=iT,ee.eachRight=sT,ee.first=nT,pb(ee,(gb={},oi(ee,function(d,h){wn.call(ee.prototype,h)||(gb[h]=d)}),gb),{chain:!1}),ee.VERSION="4.17.15",Xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Xr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Fr(P,A.__takeCount__):A.__views__.push({size:Fr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Xr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Rt(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Xr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Xr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(vo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Jt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(gm(Rt(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},oi(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Oe=de instanceof rn,Ge=be[0],We=Oe||Ht(de),ot=function(It){var wt=H.apply(ee,fo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Oe=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Ot=ae&&!Ct,Je=Oe&&!$t;if(!ae&&We){de=Je?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:pm,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Ot&&Je?d.apply(this,be):(st=this.thru(ot),Ot?A?st.value()[0]:st.value():st)})}),Xr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Fh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),oi(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[im(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=po(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=po(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=po(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,to=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Xh;){var A=XP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:pm,args:[nb],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(nb)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return wP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=gs,(a=(function(){return gs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=gs)._=gs,yt._=gs):ut._=gs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(O,F,U,G,z,V){var Y,Q=1&F,W=2&F,Z=4&F;if(U&&(Y=z?U(O,G,z,V):U(O)),Y!==void 0)return Y;if(!_(O))return O;var X=y(O);if(X){if(Y=v(O),!Q)return c(O,Y)}else{var j=b(O),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(O))return l(O,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(O),!Q)return W?f(O,s(Y,O)):u(O,i(Y,O))}else{if(!k[j])return z?O:{};Y=x(O,j,Q)}}V||(V=new r);var q=V.get(O);if(q)return q;V.set(O,Y),S(O)?O.forEach(function(B){Y.add(I(B,F,U,B,O,V))}):C(O)&&O.forEach(function(B,J){Y.set(J,I(B,F,U,J,O,V))});var D=Z?W?m:p:W?keysIn:E,N=X?void 0:D(O);return o(N||O,function(B,J){N&&(B=O[J=B]),a(Y,J,I(B,F,U,J,O,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,O=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var O in this.header)this.header[O]!=null&&this.header.hasOwnProperty(O)&&_.setRequestHeader(O,this.header[O]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function O(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=O(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function Z(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=Z(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,Z).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function J(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,Z).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=J(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,Z)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=Z(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var L4={exports:{}},F4={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -75,18 +75,18 @@ Possible causes: the network is offline, Origin is not allowed by Access-Control * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gu=$;function CB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $B=typeof Object.is=="function"?Object.is:CB,SB=Gu.useState,_B=Gu.useEffect,EB=Gu.useLayoutEffect,PB=Gu.useDebugValue;function TB(e,t){var n=t(),r=SB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return EB(function(){o.value=n,o.getSnapshot=t,zb(o)&&a({inst:o})},[e,n,t]),_B(function(){return zb(o)&&a({inst:o}),e(function(){zb(o)&&a({inst:o})})},[e]),PB(n),n}function zb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$B(e,n)}catch{return!0}}function kB(e,t){return t()}var OB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kB:TB;N3.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:OB;A3.exports=N3;var RB=A3.exports;const zs=()=>{},yo=zs(),Vb=Object,pn=e=>e===yo,Ki=e=>typeof e=="function",nl=(e,t)=>({...e,...t}),DB=e=>Ki(e.then),Vm=new WeakMap;let MB=0;const Ep=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Vb(e)===e&&!r&&n!=RegExp){if(o=Vm.get(e),o)return o;if(o=++MB+"~",Vm.set(e,o),n==Array){for(o="@",a=0;awy&&typeof window.requestAnimationFrame!=eS,j3=(e,t)=>{const n=Hi.get(e);return[()=>!pn(t)&&e.get(t)||Bb,r=>{if(!pn(t)){const o=e.get(t);t in Bm||(Bm[t]=o),n[5](t,nl(o,r),o||Bb)}},n[6],()=>!pn(t)&&t in Bm?Bm[t]:!pn(t)&&e.get(t)||Bb]};let Xw=!0;const AB=()=>Xw,[Qw,eC]=wy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zs,zs],NB=()=>{const e=Zw&&document.visibilityState;return pn(e)||e!=="hidden"},jB=e=>(Zw&&document.addEventListener("visibilitychange",e),Qw("focus",e),()=>{Zw&&document.removeEventListener("visibilitychange",e),eC("focus",e)}),LB=e=>{const t=()=>{Xw=!0,e()},n=()=>{Xw=!1};return Qw("online",t),Qw("offline",n),()=>{eC("online",t),eC("offline",n)}},FB={isOnline:AB,isVisible:NB},zB={initFocus:jB,initReconnect:LB},Fk=!M.useId,Pp=!wy||"Deno"in window,VB=e=>IB()?window.requestAnimationFrame(e):setTimeout(e,1),Ub=Pp?$.useEffect:$.useLayoutEffect,Wb=typeof navigator<"u"&&navigator.connection,zk=!Pp&&Wb&&(["slow-2g","2g"].includes(Wb.effectiveType)||Wb.saveData),tS=e=>{if(Ki(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ep(e):"",[e,t]};let BB=0;const tC=()=>++BB,L3=0,F3=1,z3=2,UB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:UB,FOCUS_EVENT:L3,MUTATE_EVENT:z3,RECONNECT_EVENT:F3};async function V3(...e){const[t,n,r,o]=e,a=nl({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ki(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=tS(m);if(!b)return;const[v,x]=j3(t,b),[g,y,w,C]=Hi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](z3).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=tC();y[b]=[k,0];const I=!pn(l),R=v(),F=R.data,U=R._c,G=pn(U)?F:U;if(I&&(l=Ki(l)?l(G,F):l,x({data:l,_c:G})),Ki(S))try{S=S(G)}catch(z){E=z}if(S&&DB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:yo}));if(i&&!E)if(Ki(i)){const z=i(S,G);x({data:z,error:yo,_c:yo})}else x({data:S,error:yo,_c:yo});if(y[b][1]=tC(),Promise.resolve(_()).then(()=>{x({_c:yo})}),E){if(f)throw E;return}return S}}const Vk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},WB=(e,t)=>{if(!Hi.has(e)){const n=nl(zB,t),r={},o=V3.bind(yo,e);let a=zs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!Hi.has(e)&&(Hi.set(e,[r,{},{},{},o,l,s]),!Pp)){const u=n.initFocus(setTimeout.bind(yo,Vk.bind(yo,r,L3))),f=n.initReconnect(setTimeout.bind(yo,Vk.bind(yo,r,F3)));a=()=>{u&&u(),f&&f(),Hi.delete(e)}}};return c(),[e,o,c,a]}return[e,Hi.get(e)[4]]},HB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},GB=(e,t)=>Ep(e)==Ep(t),[B3,qB]=WB(new Map),YB=nl({onLoadingSlow:zs,onSuccess:zs,onError:zs,onErrorRetry:HB,onDiscarded:zs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:zk?5e3:3e3,compare:GB,isPaused:()=>!1,cache:B3,mutate:qB,fallback:{}},FB),KB=(e,t)=>{const n=nl(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=nl(o,i))}return n},JB=$.createContext({}),ZB="$inf$",U3=wy&&window.__SWR_DEVTOOLS_USE__,XB=U3?window.__SWR_DEVTOOLS_USE__:[],QB=()=>{U3&&(window.__SWR_DEVTOOLS_REACT__=M)},eU=e=>Ki(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],tU=()=>nl(YB,$.useContext(JB)),nU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=tS(t),[,,,s]=Hi.get(B3);if(i.startsWith(ZB))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),rU=XB.concat(nU),oU=e=>function(...n){const r=tU(),[o,a,i]=eU(n),s=KB(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(rU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},aU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};QB();const Bk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hb={dedupe:!0},iU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=Hi.get(r),[g,y]=tS(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[R,F,U,G]=j3(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=nl(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=R(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(R());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=RB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),J=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:J&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),Z=!!(g&&t&&J&&B),re=pn(W.isValidating)?Z:W.isValidating,ce=pn(W.isLoading)?Z:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>Fk?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(R().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(R().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),tC()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=yo;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=R().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ki(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>V3(r,_.current,...ue),[]);if(Ub(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Ub(()=>{if(!g)return;const ue=xe.bind(yo,Hb);let se=0;const fe=aU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Pp?ue():VB(ue)),()=>{C.current=!0,fe()}},[g]),Ub(()=>{let ue;function se(){const fe=Ki(c)?c(R().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!R().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Hb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!Fk&&Pp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Bk(se)}if(pn(q)){const se=xe(Hb);pn(N)||(se.status="fulfilled",se.value=!0),Bk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},W3=oU(iU),Cg=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Cy=e=>JSON.parse(JSON.stringify(e)),nS=(e,t)=>{e=Cy(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];Cg(r)&&Cg(o)?e[n]=nS(o,r):e[n]=r}return e},H3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return Cg(o)?Cy(o):o},sU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=sU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=H3(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:Cg(e.definitions)&&(t=nS(t,e.definitions)),ru(Cy(e),t)}function lU(){return W3(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await wg(window.CONFIG_SCHEMA);else{const t=await fetch(Q$("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await wg(n)}return e==null?null:{schema:e,defaults:$g(e)}})}function cU(e){return W3(["/input_schema",e],async([,t])=>{const n=t?`/c/${Z$.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await wg(window.INPUT_SCHEMA);else{const o=await fetch(Q$(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await wg(a)}return r==null?null:{schema:r,defaults:$g(r)}},{keepPreviousData:!0})}/*! + */var Gu=$;function PB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TB=typeof Object.is=="function"?Object.is:PB,kB=Gu.useState,RB=Gu.useEffect,OB=Gu.useLayoutEffect,DB=Gu.useDebugValue;function MB(e,t){var n=t(),r=kB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return OB(function(){o.value=n,o.getSnapshot=t,Hb(o)&&a({inst:o})},[e,n,t]),RB(function(){return Hb(o)&&a({inst:o}),e(function(){Hb(o)&&a({inst:o})})},[e]),DB(n),n}function Hb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!TB(e,n)}catch{return!0}}function IB(e,t){return t()}var AB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IB:MB;F4.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:AB;L4.exports=F4;var NB=L4.exports;const Vs=()=>{},kr=Vs(),Gb=Object,pn=e=>e===kr,Ji=e=>typeof e=="function",Ga=(e,t)=>({...e,...t}),jB=e=>Ji(e.then),Wm=new WeakMap;let LB=0;const Pp=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Gb(e)===e&&!r&&n!=RegExp){if(o=Wm.get(e),o)return o;if(o=++LB+"~",Wm.set(e,o),n==Array){for(o="@",a=0;aSy&&typeof window.requestAnimationFrame!=rS,z4=(e,t)=>{const n=qi.get(e);return[()=>!pn(t)&&e.get(t)||qb,r=>{if(!pn(t)){const o=e.get(t);t in Hm||(Hm[t]=o),n[5](t,Ga(o,r),o||qb)}},n[6],()=>!pn(t)&&t in Hm?Hm[t]:!pn(t)&&e.get(t)||qb]};let nC=!0;const zB=()=>nC,[rC,oC]=Sy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Vs,Vs],VB=()=>{const e=tC&&document.visibilityState;return pn(e)||e!=="hidden"},BB=e=>(tC&&document.addEventListener("visibilitychange",e),rC("focus",e),()=>{tC&&document.removeEventListener("visibilitychange",e),oC("focus",e)}),UB=e=>{const t=()=>{nC=!0,e()},n=()=>{nC=!1};return rC("online",t),rC("offline",n),()=>{oC("online",t),oC("offline",n)}},WB={isOnline:zB,isVisible:VB},HB={initFocus:BB,initReconnect:UB},aC=!M.useId,Tp=!Sy||"Deno"in window,GB=e=>FB()?window.requestAnimationFrame(e):setTimeout(e,1),Gf=Tp?$.useEffect:$.useLayoutEffect,Yb=typeof navigator<"u"&&navigator.connection,Vk=!Tp&&Yb&&(["slow-2g","2g"].includes(Yb.effectiveType)||Yb.saveData),_y=e=>{if(Ji(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Pp(e):"",[e,t]};let qB=0;const kp=()=>++qB,V4=0,B4=1,U4=2,YB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:YB,FOCUS_EVENT:V4,MUTATE_EVENT:U4,RECONNECT_EVENT:B4};async function W4(...e){const[t,n,r,o]=e,a=Ga({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ji(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=_y(m);if(!b)return;const[v,x]=z4(t,b),[g,y,w,C]=qi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](U4).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=kp();y[b]=[k,0];const I=!pn(l),O=v(),F=O.data,U=O._c,G=pn(U)?F:U;if(I&&(l=Ji(l)?l(G,F):l,x({data:l,_c:G})),Ji(S))try{S=S(G)}catch(z){E=z}if(S&&jB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:kr}));if(i&&!E)if(Ji(i)){const z=i(S,G);x({data:z,error:kr,_c:kr})}else x({data:S,error:kr,_c:kr});if(y[b][1]=kp(),Promise.resolve(_()).then(()=>{x({_c:kr})}),E){if(f)throw E;return}return S}}const Bk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},KB=(e,t)=>{if(!qi.has(e)){const n=Ga(HB,t),r={},o=W4.bind(kr,e);let a=Vs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!qi.has(e)&&(qi.set(e,[r,{},{},{},o,l,s]),!Tp)){const u=n.initFocus(setTimeout.bind(kr,Bk.bind(kr,r,V4))),f=n.initReconnect(setTimeout.bind(kr,Bk.bind(kr,r,B4)));a=()=>{u&&u(),f&&f(),qi.delete(e)}}};return c(),[e,o,c,a]}return[e,qi.get(e)[4]]},ZB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},JB=(e,t)=>Pp(e)==Pp(t),[H4,XB]=KB(new Map),QB=Ga({onLoadingSlow:Vs,onSuccess:Vs,onError:Vs,onErrorRetry:ZB,onDiscarded:Vs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vk?5e3:3e3,compare:JB,isPaused:()=>!1,cache:H4,mutate:XB,fallback:{}},WB),eU=(e,t)=>{const n=Ga(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=Ga(o,i))}return n},tU=$.createContext({}),nU="$inf$",G4=Sy&&window.__SWR_DEVTOOLS_USE__,rU=G4?window.__SWR_DEVTOOLS_USE__:[],oU=()=>{G4&&(window.__SWR_DEVTOOLS_REACT__=M)},q4=e=>Ji(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Y4=()=>Ga(QB,$.useContext(tU)),aU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=_y(t),[,,,s]=qi.get(H4);if(i.startsWith(nU))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),iU=rU.concat(aU),sU=e=>function(...n){const r=Y4(),[o,a,i]=q4(n),s=eU(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(iU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},lU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},cU=(e,t)=>(...n)=>{const[r,o,a]=q4(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};oU();const Uk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Kb={dedupe:!0},uU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=qi.get(r),[g,y]=_y(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[O,F,U,G]=z4(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=Ga(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=O(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(O());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=NB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),Z=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:Z&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),J=!!(g&&t&&Z&&B),re=pn(W.isValidating)?J:W.isValidating,ce=pn(W.isLoading)?J:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>aC?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(O().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(O().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),kp()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=kr;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=O().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ji(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>W4(r,_.current,...ue),[]);if(Gf(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Gf(()=>{if(!g)return;const ue=xe.bind(kr,Kb);let se=0;const fe=lU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Tp?ue():GB(ue)),()=>{C.current=!0,fe()}},[g]),Gf(()=>{let ue;function se(){const fe=Ji(c)?c(O().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!O().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Kb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!aC&&Tp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Uk(se)}if(pn(q)){const se=xe(Kb);pn(N)||(se.status="fulfilled",se.value=!0),Uk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},Ey=sU(uU),_g=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Py=e=>JSON.parse(JSON.stringify(e)),oS=(e,t)=>{e=Py(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];_g(r)&&_g(o)?e[n]=oS(o,r):e[n]=r}return e},K4=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return _g(o)?Py(o):o},dU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=dU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=K4(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:_g(e.definitions)&&(t=oS(t,e.definitions)),ru(Py(e),t)}function fU(){return Ey(["/feedback"],async()=>window.FEEDBACK_ENABLED?window.FEEDBACK_ENABLED==="true":(await fetch(th("/feedback"),{method:"HEAD"})).ok)}function pU(){return Ey(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await Sg(window.CONFIG_SCHEMA);else{const t=await fetch(th("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await Sg(n)}return e==null?null:{schema:e,defaults:Eg(e)}})}function hU(e){return Ey(["/input_schema",e],async([,t])=>{const n=t?`/c/${tS.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await Sg(window.INPUT_SCHEMA);else{const o=await fetch(th(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await Sg(a)}return r==null?null:{schema:r,defaults:Eg(r)}},{keepPreviousData:!0})}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var uU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dU=Object.prototype.hasOwnProperty;function nC(e,t){return dU.call(e,t)}function rC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function G3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function aC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!oC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);oC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=pU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&aC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=Y3([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Y3(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)$y(Ho(t),Ho(e),n||!0);else{n=n||_g;for(var r=0;r=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Z4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function cC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!lC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);lC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=yU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&cC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=X4([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function X4(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ty(Ho(t),Ho(e),n||!0);else{n=n||Tg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function oS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=rC(t),i=rC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(nC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function TU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Wk(){return{data:"",event:"",id:"",retry:void 0}}var kU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=sC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=OU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??DU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await _U(E.body,EU(PU(k=>{k?m[Hk]=k:delete m[Hk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function DU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(sC)))throw new Error(`Expected content-type to be ${sC}, Actual: ${t}`)}function MU(e,t){return $y(e,t,!0,!1).newDocument}function IU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await RU(Q$("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=MU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},openWhenHidden:!0,onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const K3=$.createContext(null);function AU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function J3(e,t){const n=$.useContext(K3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>NU(n,t))}function as(...e){return $.useCallback(Z3(...e),e)}function Sy(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jU(o,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const lC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},LU=lp["useId".toString()]||(()=>{});let FU=0;function Mv(e){const[t,n]=$.useState(LU());return lC(()=>{e||n(r=>r??String(FU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Qp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function zU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const kp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(BU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(cC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(cC,T({},r,{ref:t}),n)});kp.displayName="Slot";const cC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...UU(r,n.props),ref:t?Z3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});cC.displayName="SlotClone";const VU=({children:e})=>$.createElement($.Fragment,null,e);function BU(e){return $.isValidElement(e)&&e.type===VU}function UU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const WU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=WU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?kp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uC="dismissableLayer.update",qU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside";let Gk;const KU=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JU=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(KU),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=as(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=ZU(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=XU(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return GU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Gk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(uC,k),()=>document.removeEventListener(uC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ao(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ZU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){X3(qU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&X3(YU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qk(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function X3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?HU(o,a):o.dispatchEvent(a)}const Gb="focusScope.autoFocusOnMount",qb="focusScope.autoFocusOnUnmount",Yk={bubbles:!1,cancelable:!0},QU=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=as(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Rs(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Rs(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rs(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Gb,Yk);s.addEventListener(Gb,c),s.dispatchEvent(g),g.defaultPrevented||(eW(aW(Q3(s)),{select:!0}),document.activeElement===v&&Rs(s))}return()=>{s.removeEventListener(Gb,c),setTimeout(()=>{const g=new CustomEvent(qb,Yk);s.addEventListener(qb,u),s.dispatchEvent(g),g.defaultPrevented||Rs(v??document.body,{select:!0}),s.removeEventListener(qb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=tW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Rs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Rs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rs(r,{select:t}),document.activeElement!==n)return}function tW(e){const t=Q3(e),n=Kk(t,e),r=Kk(t.reverse(),e);return[n,r]}function Q3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kk(e,t){for(const n of e)if(!nW(n,{upTo:t}))return n}function nW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rW(e){return e instanceof HTMLInputElement&&"select"in e}function Rs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rW(e)&&t&&e.select()}}const Jk=oW();function oW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zk(e,t),e.unshift(t)},remove(t){var n;e=Zk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aW(e){return e.filter(t=>t.tagName!=="A")}const iW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function sW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _y=e=>{const{present:t,children:n}=e,r=lW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=as(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};_y.displayName="Presence";function lW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Um(r.current);a.current=s==="mounted"?c:"none"},[s]),lC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Um(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),lC(()=>{if(t){const c=f=>{const m=Um(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Um(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Um(e){return(e==null?void 0:e.animationName)||"none"}let Yb=0;function cW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xk()),Yb++,()=>{Yb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yb--}},[])}function Xk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EW;var t=PW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kW=rN(),OW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(dW,` { + */var aS=new WeakMap,wU=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),CU=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function $U(e){return aS.get(e)}function SU(e,t){return e.observers.get(t)}function _U(e,t){e.observers.delete(t.callback)}function EU(e,t){t.unobserve()}function PU(e,t){var n=[],r,o=$U(e);if(!o)o=new wU(e),aS.set(e,o);else{var a=SU(o,t);r=a&&a.observer}if(r)return r;if(r={},o.value=Ho(e),t){r.callback=t,r.next=null;var i=function(){uC(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=n,r.object=e,r.unobserve=function(){uC(r),clearTimeout(r.next),_U(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new CU(t,r)),r}function uC(e,t){t===void 0&&(t=!1);var n=aS.get(e.object);iS(n.value,e.object,e.patches,"",t),e.patches.length&&Ty(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function iS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=sC(t),i=sC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(iC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?iS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function MU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Hk(){return{data:"",event:"",id:"",retry:void 0}}var IU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=dC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=AU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??jU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await RU(E.body,OU(DU(k=>{k?m[Gk]=k:delete m[Gk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function jU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(dC)))throw new Error(`Expected content-type to be ${dC}, Actual: ${t}`)}function LU(e,t){return Ty(e,t,!0,!1).newDocument}function FU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await NU(th("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=LU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},openWhenHidden:!0,onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const Q4=$.createContext(null);function zU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function e3(e,t){const n=$.useContext(Q4),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>VU(n,t))}function is(...e){return $.useCallback(t3(...e),e)}function ky(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,BU(o,...t)]}function BU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const fC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},UU=cp["useId".toString()]||(()=>{});let WU=0;function Nv(e){const[t,n]=$.useState(UU());return fC(()=>{e||n(r=>r??String(WU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function nh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function HU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Op=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(qU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(pC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(pC,T({},r,{ref:t}),n)});Op.displayName="Slot";const pC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...YU(r,n.props),ref:t?t3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});pC.displayName="SlotClone";const GU=({children:e})=>$.createElement($.Fragment,null,e);function qU(e){return $.isValidElement(e)&&e.type===GU}function YU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const KU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zo=KU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Op:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ZU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function JU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const hC="dismissableLayer.update",XU="dismissableLayer.pointerDownOutside",QU="dismissableLayer.focusOutside";let qk;const eW=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tW=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(eW),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=is(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=nW(k=>{const I=k.target,O=[...u.branches].some(F=>F.contains(I));!_||O||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=rW(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return JU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Yk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Yk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(hC,k),()=>document.removeEventListener(hC,k)},[]),$.createElement(Zo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:io(e.onFocusCapture,E.onFocusCapture),onBlurCapture:io(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:io(e.onPointerDownCapture,S.onPointerDownCapture)}))});function nW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){n3(XU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&n3(QU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yk(){const e=new CustomEvent(hC);document.dispatchEvent(e)}function n3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ZU(o,a):o.dispatchEvent(a)}const Zb="focusScope.autoFocusOnMount",Jb="focusScope.autoFocusOnUnmount",Kk={bubbles:!1,cancelable:!0},oW=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=is(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Ds(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Ds(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Ds(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Zb,Kk);s.addEventListener(Zb,c),s.dispatchEvent(g),g.defaultPrevented||(aW(uW(r3(s)),{select:!0}),document.activeElement===v&&Ds(s))}return()=>{s.removeEventListener(Zb,c),setTimeout(()=>{const g=new CustomEvent(Jb,Kk);s.addEventListener(Jb,u),s.dispatchEvent(g),g.defaultPrevented||Ds(v??document.body,{select:!0}),s.removeEventListener(Jb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=iW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ds(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ds(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Zo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function aW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ds(r,{select:t}),document.activeElement!==n)return}function iW(e){const t=r3(e),n=Zk(t,e),r=Zk(t.reverse(),e);return[n,r]}function r3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zk(e,t){for(const n of e)if(!sW(n,{upTo:t}))return n}function sW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function lW(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lW(e)&&t&&e.select()}}const Jk=cW();function cW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xk(e,t),e.unshift(t)},remove(t){var n;e=Xk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Xk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function uW(e){return e.filter(t=>t.tagName!=="A")}const dW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Rf.createPortal($.createElement(Zo.div,T({},o,{ref:t})),r):null});function fW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Ry=e=>{const{present:t,children:n}=e,r=pW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=is(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};Ry.displayName="Presence";function pW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=fW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Gm(r.current);a.current=s==="mounted"?c:"none"},[s]),fC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Gm(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fC(()=>{if(t){const c=f=>{const m=Gm(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Gm(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Gm(e){return(e==null?void 0:e.animationName)||"none"}let Xb=0;function hW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Qk()),Xb++,()=>{Xb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Xb--}},[])}function Qk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var hi=function(){return hi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return OW;var t=DW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IW=s3(),AW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(vW,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } @@ -103,30 +103,30 @@ Possible causes: the network is offline, Origin is not allowed by Access-Control `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` } - .`).concat(Iv,` { + .`).concat(jv,` { right: `).concat(s,"px ").concat(r,`; } - .`).concat(Av,` { + .`).concat(Lv,` { margin-right: `).concat(s,"px ").concat(r,`; } - .`).concat(Iv," .").concat(Iv,` { + .`).concat(jv," .").concat(jv,` { right: 0 `).concat(r,`; } - .`).concat(Av," .").concat(Av,` { + .`).concat(Lv," .").concat(Lv,` { margin-right: 0 `).concat(r,`; } body { - `).concat(fW,": ").concat(s,`px; + `).concat(gW,": ").concat(s,`px; } -`)},RW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return TW(o)},[o]);return $.createElement(kW,{styles:OW(a,!t,o,n?"":"!important")})},dC=!1;if(typeof window<"u")try{var Wm=Object.defineProperty({},"passive",{get:function(){return dC=!0,!0}});window.addEventListener("test",Wm,Wm),window.removeEventListener("test",Wm,Wm)}catch{dC=!1}var Uc=dC?{passive:!1}:!1,DW=function(e){return e.tagName==="TEXTAREA"},oN=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DW(e)&&n[t]==="visible")},MW=function(e){return oN(e,"overflowY")},IW=function(e){return oN(e,"overflowX")},eO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=aN(e,n);if(r){var o=iN(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},AW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aN=function(e,t){return e==="v"?MW(t):IW(t)},iN=function(e,t){return e==="v"?AW(t):NW(t)},jW=function(e,t){return e==="h"&&t==="rtl"?-1:1},LW=function(e,t,n,r,o){var a=jW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=iN(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&aN(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Hm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tO=function(e){return[e.deltaX,e.deltaY]},nO=function(e){return e&&"current"in e?e.current:e},FW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zW=function(e){return` +`)},NW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return MW(o)},[o]);return $.createElement(IW,{styles:AW(a,!t,o,n?"":"!important")})},mC=!1;if(typeof window<"u")try{var qm=Object.defineProperty({},"passive",{get:function(){return mC=!0,!0}});window.addEventListener("test",qm,qm),window.removeEventListener("test",qm,qm)}catch{mC=!1}var Uc=mC?{passive:!1}:!1,jW=function(e){return e.tagName==="TEXTAREA"},l3=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jW(e)&&n[t]==="visible")},LW=function(e){return l3(e,"overflowY")},FW=function(e){return l3(e,"overflowX")},tR=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=c3(e,n);if(r){var o=u3(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},zW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},VW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},c3=function(e,t){return e==="v"?LW(t):FW(t)},u3=function(e,t){return e==="v"?zW(t):VW(t)},BW=function(e,t){return e==="h"&&t==="rtl"?-1:1},UW=function(e,t,n,r,o){var a=BW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=u3(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&c3(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Ym=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nR=function(e){return[e.deltaX,e.deltaY]},rR=function(e){return e&&"current"in e?e.current:e},WW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},HW=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},VW=0,Wc=[];function BW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(VW++)[0],a=$.useState(function(){return rN()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=uW([e.lockRef.current],(e.shards||[]).map(nO),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Hm(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=eO(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=eO(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return LW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?tO(x):Hm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&FW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(nO).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Hm(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,tO(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Hm(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:zW(o)}):null,m?$.createElement(RW,{gapMode:"margin"}):null)}const UW=bW(nN,BW);var sN=$.forwardRef(function(e,t){return $.createElement(Ey,fi({},e,{ref:t,sideCar:UW}))});sN.classNames=Ey.classNames;const WW=sN;var HW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Gm=new WeakMap,qm={},Zb=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},GW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lN(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qW=function(e,t,n,r){var o=GW(t,Array.isArray(e)?e:[e]);qm[n]||(qm[n]=new WeakMap);var a=qm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Gm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),Zb++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Gm.has(f)||f.removeAttribute(r),Gm.delete(f)),m||f.removeAttribute(n)}),Zb--,Zb||(Hc=new WeakMap,Hc=new WeakMap,Gm=new WeakMap,qm={})}},YW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||HW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qW(r,o,n,"aria-hidden")):function(){return null}};const cN="Dialog",[uN,BFe]=Sy(cN),[KW,Ja]=uN(cN),JW=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=Qp({prop:r,defaultProp:o,onChange:a});return $.createElement(KW,{scope:t,triggerRef:s,contentRef:l,contentId:Mv(),titleId:Mv(),descriptionId:Mv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},ZW="DialogTrigger",XW=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(ZW,n),a=as(t,o.triggerRef);return $.createElement(Jo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":aS(o.open)},r,{ref:a,onClick:ao(e.onClick,o.onOpenToggle)}))}),dN="DialogPortal",[QW,fN]=uN(dN,{forceMount:void 0}),eH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(dN,t);return $.createElement(QW,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(_y,{present:n||a.open},$.createElement(iW,{asChild:!0,container:o},i))))},fC="DialogOverlay",tH=$.forwardRef((e,t)=>{const n=fN(fC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(fC,e.__scopeDialog);return a.modal?$.createElement(_y,{present:r||a.open},$.createElement(nH,T({},o,{ref:t}))):null}),nH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(fC,n);return $.createElement(WW,{as:kp,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Jo.div,T({"data-state":aS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Op="DialogContent",rH=$.forwardRef((e,t)=>{const n=fN(Op,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(Op,e.__scopeDialog);return $.createElement(_y,{present:r||a.open},a.modal?$.createElement(oH,T({},o,{ref:t})):$.createElement(aH,T({},o,{ref:t})))}),oH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(null),o=as(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return YW(a)},[]),$.createElement(pN,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ao(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:ao(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:ao(e.onFocusOutside,a=>a.preventDefault())}))}),aH=$.forwardRef((e,t)=>{const n=Ja(Op,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(pN,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),pN=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(Op,n),l=$.useRef(null),c=as(t,l);return cW(),$.createElement($.Fragment,null,$.createElement(QU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(JU,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),iH="DialogTitle",sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(iH,n);return $.createElement(Jo.h2,T({id:o.titleId},r,{ref:t}))}),lH="DialogDescription",cH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(lH,n);return $.createElement(Jo.p,T({id:o.descriptionId},r,{ref:t}))}),uH="DialogClose",dH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(uH,n);return $.createElement(Jo.button,T({type:"button"},r,{ref:t,onClick:ao(e.onClick,()=>o.onOpenChange(!1))}))});function aS(e){return e?"open":"closed"}const fH=JW,pH=XW,hH=eH,mH=tH,vH=rH,gH=sH,yH=cH,bH=dH;var hN=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),iS=()=>M.useContext(hN);function xH(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}xH(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var wH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function pC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function CH(){return sS(/^Mac/)}function $H(){return sS(/^iPhone/)}function SH(){return sS(/^iPad/)||CH()&&navigator.maxTouchPoints>1}function mN(){return $H()||SH()}function sS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Xb=typeof document<"u"&&window.visualViewport;function rO(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vN(e){for(rO(e)&&(e=e.parentElement);e&&!rO(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var _H=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ym=0,Qb;function EH(e={}){let{isDisabled:t}=e;wH(()=>{if(!t)return Ym++,Ym===1&&(mN()?Qb=TH():Qb=PH()),()=>{Ym--,Ym===0&&Qb()}},[t])}function PH(){return pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"))}function TH(){let e,t=0,n=f=>{e=vN(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Pg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Pg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Xb&&(Xb.height{oO(p)}):Xb.addEventListener("resize",()=>oO(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=pC(Eg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Eg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=pC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Eg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oO(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vN(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Pg(e){return e instanceof HTMLInputElement&&!_H.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function kH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OH(...e){return t=>e.forEach(n=>kH(n,t))}function gN(...e){return $.useCallback(OH(...e),e)}var Es=null;function RH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Es===null&&e){Es={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Es!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Es.position,document.body.style.top=Es.top,document.body.style.left=Es.left,document.body.style.height=Es.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Es=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var yN=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&yN.set(e,r)}function Km(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yN.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Jm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function DH(e){return 8*(Math.log(e+1)-2)}var Rn={DURATION:.5,EASE:[.32,.72,0,1]},bN=.4;function xN(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=xN(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function IH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=MH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=xN(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function AH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=IH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)bN&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var NH=.25,jH=500,aO=8,El=16,iO=26;function wN({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=NH,scrollLockTimeout:c=jH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=AH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});EH({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Ve}=RH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-iO)/window.innerWidth}function De(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,mN()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Jm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(R){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!J.current&&!Be(Pe.target,it))return;if(J.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=DH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Pg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-iO),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Km(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Jm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`},!0)}function He(Pe){if(!R||!D.current)return;J.current&&Pg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=Jm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>bN){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${aO}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})):(Km(Te,"overflow"),Km(Te,"transform"),Km(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${Rn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rn.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Jm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${Rn.DURATION}s cubic-bezier(${Rn.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(fH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(hN.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var CN=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=iS(),c=gN(n,r),u=o&&o.length>0;return M.createElement(mH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});CN.displayName="Drawer.Overlay";var $N=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=iS(),y=gN(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(vH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});$N.displayName="Drawer.Content";function LH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=iS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(wN,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:wN,NestedRoot:LH,Content:$N,Overlay:CN,Trigger:pH,Portal:hH,Close:bH,Title:gH,Description:yH};const SN=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),FH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),zH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),VH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ex=2e3;function tx(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(VH,{}):O.jsx(zH,{})})}function BH(e){const t=$.useMemo(()=>Z$.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${X$(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +`)},GW=0,Wc=[];function qW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(GW++)[0],a=$.useState(function(){return s3()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=mW([e.lockRef.current],(e.shards||[]).map(rR),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Ym(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=tR(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=tR(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return UW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?nR(x):Ym(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&WW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(rR).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Ym(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,nR(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Ym(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:HW(o)}):null,m?$.createElement(NW,{gapMode:"margin"}):null)}const YW=SW(i3,qW);var d3=$.forwardRef(function(e,t){return $.createElement(Oy,hi({},e,{ref:t,sideCar:YW}))});d3.classNames=Oy.classNames;const KW=d3;var ZW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Km=new WeakMap,Zm={},tx=0,f3=function(e){return e&&(e.host||f3(e.parentNode))},JW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=f3(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},XW=function(e,t,n,r){var o=JW(t,Array.isArray(e)?e:[e]);Zm[n]||(Zm[n]=new WeakMap);var a=Zm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Km.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),tx++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Km.has(f)||f.removeAttribute(r),Km.delete(f)),m||f.removeAttribute(n)}),tx--,tx||(Hc=new WeakMap,Hc=new WeakMap,Km=new WeakMap,Zm={})}},QW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||ZW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),XW(r,o,n,"aria-hidden")):function(){return null}};const p3="Dialog",[h3,QFe]=ky(p3),[eH,Xa]=h3(p3),tH=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=nh({prop:r,defaultProp:o,onChange:a});return $.createElement(eH,{scope:t,triggerRef:s,contentRef:l,contentId:Nv(),titleId:Nv(),descriptionId:Nv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},nH="DialogTrigger",rH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(nH,n),a=is(t,o.triggerRef);return $.createElement(Zo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sS(o.open)},r,{ref:a,onClick:io(e.onClick,o.onOpenToggle)}))}),m3="DialogPortal",[oH,v3]=h3(m3,{forceMount:void 0}),aH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Xa(m3,t);return $.createElement(oH,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(Ry,{present:n||a.open},$.createElement(dW,{asChild:!0,container:o},i))))},vC="DialogOverlay",iH=$.forwardRef((e,t)=>{const n=v3(vC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(vC,e.__scopeDialog);return a.modal?$.createElement(Ry,{present:r||a.open},$.createElement(sH,T({},o,{ref:t}))):null}),sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(vC,n);return $.createElement(KW,{as:Op,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Zo.div,T({"data-state":sS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Dp="DialogContent",lH=$.forwardRef((e,t)=>{const n=v3(Dp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(Dp,e.__scopeDialog);return $.createElement(Ry,{present:r||a.open},a.modal?$.createElement(cH,T({},o,{ref:t})):$.createElement(uH,T({},o,{ref:t})))}),cH=$.forwardRef((e,t)=>{const n=Xa(Dp,e.__scopeDialog),r=$.useRef(null),o=is(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return QW(a)},[]),$.createElement(g3,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:io(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:io(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:io(e.onFocusOutside,a=>a.preventDefault())}))}),uH=$.forwardRef((e,t)=>{const n=Xa(Dp,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(g3,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),g3=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Xa(Dp,n),l=$.useRef(null),c=is(t,l);return hW(),$.createElement($.Fragment,null,$.createElement(oW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(tW,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),dH="DialogTitle",fH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(dH,n);return $.createElement(Zo.h2,T({id:o.titleId},r,{ref:t}))}),pH="DialogDescription",hH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(pH,n);return $.createElement(Zo.p,T({id:o.descriptionId},r,{ref:t}))}),mH="DialogClose",vH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(mH,n);return $.createElement(Zo.button,T({type:"button"},r,{ref:t,onClick:io(e.onClick,()=>o.onOpenChange(!1))}))});function sS(e){return e?"open":"closed"}const gH=tH,yH=rH,bH=aH,xH=iH,wH=lH,CH=fH,$H=hH,SH=vH;var y3=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lS=()=>M.useContext(y3);function _H(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}_H(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var EH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function gC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function PH(){return cS(/^Mac/)}function TH(){return cS(/^iPhone/)}function kH(){return cS(/^iPad/)||PH()&&navigator.maxTouchPoints>1}function b3(){return TH()||kH()}function cS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var nx=typeof document<"u"&&window.visualViewport;function oR(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function x3(e){for(oR(e)&&(e=e.parentElement);e&&!oR(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var RH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Jm=0,rx;function OH(e={}){let{isDisabled:t}=e;EH(()=>{if(!t)return Jm++,Jm===1&&(b3()?rx=MH():rx=DH()),()=>{Jm--,Jm===0&&rx()}},[t])}function DH(){return gC(kg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),kg(document.documentElement,"overflow","hidden"))}function MH(){let e,t=0,n=f=>{e=x3(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Rg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Rg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",nx&&(nx.height{aR(p)}):nx.addEventListener("resize",()=>aR(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=gC(kg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),kg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=gC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function kg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function aR(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=x3(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Rg(e){return e instanceof HTMLInputElement&&!RH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function IH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function AH(...e){return t=>e.forEach(n=>IH(n,t))}function w3(...e){return $.useCallback(AH(...e),e)}var Ps=null;function NH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Ps===null&&e){Ps={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Ps!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Ps.position,document.body.style.top=Ps.top,document.body.style.left=Ps.left,document.body.style.height=Ps.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Ps=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var C3=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&C3.set(e,r)}function Xm(e,t){if(!e||!(e instanceof HTMLElement))return;let n=C3.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Qm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function jH(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},$3=.4;function S3(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function LH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=S3(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function FH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=LH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=S3(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function zH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=FH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,O)=>typeof I!="number"||typeof O!="number"?I:Math.abs(O-_)$3&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var VH=.25,BH=500,iR=8,El=16,sR=26;function _3({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=VH,scrollLockTimeout:c=BH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[O,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),Z=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),J=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=zH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:J});OH({isDisabled:!y||O||!v||U||!C});let{restorePositionSetting:Ve}=NH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-sR)/window.innerWidth}function De(Pe){var Te;!u&&!i||O||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,b3()&&window.addEventListener("touchend",()=>Z.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Qm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(O){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!Z.current&&!Be(Pe.target,it))return;if(Z.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=jH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Rg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-sR),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Xm(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Qm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${iR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function He(Pe){if(!O||!D.current)return;Z.current&&Rg(Pe.target)&&Pe.target.blur(),Z.current=!1,F(!1),Q.current=new Date;let Te=Qm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>$3){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${iR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(Xm(Te,"overflow"),Xm(Te,"transform"),Xm(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Qm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(gH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(y3.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var E3=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lS(),c=w3(n,r),u=o&&o.length>0;return M.createElement(xH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});E3.displayName="Drawer.Overlay";var P3=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lS(),y=w3(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(wH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});P3.displayName="Drawer.Content";function UH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(_3,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:_3,NestedRoot:UH,Content:P3,Overlay:E3,Trigger:yH,Portal:bH,Close:SH,Title:CH,Description:$H};const T3=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),WH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),HH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),GH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ox=2e3;function ax(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),R.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?R.jsx(GH,{}):R.jsx(HH,{})})}function qH(e){const t=$.useMemo(()=>tS.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${nS(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` from langserve import RemoteRunnable chain = RemoteRunnable("${r}") @@ -136,31 +136,31 @@ import { RemoteRunnable } from "langchain/runnables/remote"; const chain = new RemoteRunnable({ url: \`${a}\` }); const result = await chain.invoke({ ... }); -`;return O.jsxs(lf.Root,{children:[O.jsx(lf.Trigger,{asChild:!0,children:e.children}),O.jsxs(lf.Portal,{children:[O.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},R=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return R(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,J=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=R(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return R(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function EN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var kN="!";function XH(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function QH(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function eG(e){return{cache:ZH(e.cacheSize),splitModifiers:XH(e),...GH(e)}}var tG=/\s+/;function nG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(tG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=QH(l).join(":"),v=c?b+kN:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function rG(){for(var e=arguments.length,t=new Array(e),n=0;nn(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(WH,{className:Zi("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:DN(a.final_output)??"..."})]},a.id))})]})}class Tg{constructor(t){Jd(this,"content");Jd(this,"name");Jd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Tg({content:this.content+t.content,additional_kwargs:Tg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function xG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function wG(e){return e.length>0&&e.every(t=>xG(t))}function CG(e){var t;if(wG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Tg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(DN).join("")||"..."}var $G=typeof xo=="object"&&xo&&xo.Object===Object&&xo,MN=$G,SG=MN,_G=typeof self=="object"&&self&&self.Object===Object&&self,EG=SG||_G||Function("return this")(),lo=EG,PG=lo,TG=PG.Symbol,ud=TG,uO=ud,IN=Object.prototype,kG=IN.hasOwnProperty,OG=IN.toString,df=uO?uO.toStringTag:void 0;function RG(e){var t=kG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=OG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var DG=RG,MG=Object.prototype,IG=MG.toString;function AG(e){return IG.call(e)}var NG=AG,dO=ud,jG=DG,LG=NG,FG="[object Null]",zG="[object Undefined]",fO=dO?dO.toStringTag:void 0;function VG(e){return e==null?e===void 0?zG:FG:fO&&fO in Object(e)?jG(e):LG(e)}var cl=VG;function BG(e){return e!=null&&typeof e=="object"}var ea=BG,UG=cl,WG=ea,HG="[object Symbol]";function GG(e){return typeof e=="symbol"||WG(e)&&UG(e)==HG}var dd=GG,qG=dd;function YG(e,t,n){for(var r=-1,o=e.length;++rt}var ZG=JG;function XG(){this.__data__=[],this.size=0}var QG=XG;function eq(e,t){return e===t||e!==e&&t!==t}var eh=eq,tq=eh;function nq(e,t){for(var n=e.length;n--;)if(tq(e[n][0],t))return n;return-1}var Py=nq,rq=Py,oq=Array.prototype,aq=oq.splice;function iq(e){var t=this.__data__,n=rq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aq.call(t,n,1),--this.size,!0}var sq=iq,lq=Py;function cq(e){var t=this.__data__,n=lq(t,e);return n<0?void 0:t[n][1]}var uq=cq,dq=Py;function fq(e){return dq(this.__data__,e)>-1}var pq=fq,hq=Py;function mq(e,t){var n=this.__data__,r=hq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var vq=mq,gq=QG,yq=sq,bq=uq,xq=pq,wq=vq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&zK?new NK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=FJ}var hS=zJ,VJ=cl,BJ=hS,UJ=ea,WJ="[object Arguments]",HJ="[object Array]",GJ="[object Boolean]",qJ="[object Date]",YJ="[object Error]",KJ="[object Function]",JJ="[object Map]",ZJ="[object Number]",XJ="[object Object]",QJ="[object RegExp]",eZ="[object Set]",tZ="[object String]",nZ="[object WeakMap]",rZ="[object ArrayBuffer]",oZ="[object DataView]",aZ="[object Float32Array]",iZ="[object Float64Array]",sZ="[object Int8Array]",lZ="[object Int16Array]",cZ="[object Int32Array]",uZ="[object Uint8Array]",dZ="[object Uint8ClampedArray]",fZ="[object Uint16Array]",pZ="[object Uint32Array]",Nn={};Nn[aZ]=Nn[iZ]=Nn[sZ]=Nn[lZ]=Nn[cZ]=Nn[uZ]=Nn[dZ]=Nn[fZ]=Nn[pZ]=!0;Nn[WJ]=Nn[HJ]=Nn[rZ]=Nn[GJ]=Nn[oZ]=Nn[qJ]=Nn[YJ]=Nn[KJ]=Nn[JJ]=Nn[ZJ]=Nn[XJ]=Nn[QJ]=Nn[eZ]=Nn[tZ]=Nn[nZ]=!1;function hZ(e){return UJ(e)&&BJ(e.length)&&!!Nn[VJ(e)]}var mZ=hZ;function vZ(e){return function(t){return e(t)}}var mS=vZ,Rg={exports:{}};Rg.exports;(function(e,t){var n=MN,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Rg,Rg.exports);var vS=Rg.exports,gZ=mZ,yZ=mS,wO=vS,CO=wO&&wO.isTypedArray,bZ=CO?yZ(CO):gZ,Dy=bZ,xZ=SJ,wZ=nh,CZ=cr,$Z=rh,SZ=oh,_Z=Dy,EZ=Object.prototype,PZ=EZ.hasOwnProperty;function TZ(e,t){var n=CZ(e),r=!n&&wZ(e),o=!n&&!r&&$Z(e),a=!n&&!r&&!o&&_Z(e),i=n||r||o||a,s=i?xZ(e.length,String):[],l=s.length;for(var c in e)(t||PZ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||SZ(c,l)))&&s.push(c);return s}var GN=TZ,kZ=Object.prototype;function OZ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kZ;return e===n}var My=OZ;function RZ(e,t){return function(n){return e(t(n))}}var qN=RZ,DZ=qN,MZ=DZ(Object.keys,Object),IZ=MZ,AZ=My,NZ=IZ,jZ=Object.prototype,LZ=jZ.hasOwnProperty;function FZ(e){if(!AZ(e))return NZ(e);var t=[];for(var n in Object(e))LZ.call(e,n)&&n!="constructor"&&t.push(n);return t}var gS=FZ,zZ=th,VZ=hS;function BZ(e){return e!=null&&VZ(e.length)&&!zZ(e)}var cs=BZ,UZ=GN,WZ=gS,HZ=cs;function GZ(e){return HZ(e)?UZ(e):WZ(e)}var Pi=GZ;const qZ=Vt(Pi);var YZ=BN,KZ=pS,JZ=Pi;function ZZ(e){return YZ(e,JZ,KZ)}var YN=ZZ,$O=YN,XZ=1,QZ=Object.prototype,eX=QZ.hasOwnProperty;function tX(e,t,n,r,o,a){var i=n&XZ,s=$O(e),l=s.length,c=$O(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:eX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:Gte(e,t,n)}var Yte=qte,Kte="\\ud800-\\udfff",Jte="\\u0300-\\u036f",Zte="\\ufe20-\\ufe2f",Xte="\\u20d0-\\u20ff",Qte=Jte+Zte+Xte,ene="\\ufe0e\\ufe0f",tne="\\u200d",nne=RegExp("["+tne+Kte+Qte+ene+"]");function rne(e){return nne.test(e)}var C4=rne;function one(e){return e.split("")}var ane=one,$4="\\ud800-\\udfff",ine="\\u0300-\\u036f",sne="\\ufe20-\\ufe2f",lne="\\u20d0-\\u20ff",cne=ine+sne+lne,une="\\ufe0e\\ufe0f",dne="["+$4+"]",wC="["+cne+"]",CC="\\ud83c[\\udffb-\\udfff]",fne="(?:"+wC+"|"+CC+")",S4="[^"+$4+"]",_4="(?:\\ud83c[\\udde6-\\uddff]){2}",E4="[\\ud800-\\udbff][\\udc00-\\udfff]",pne="\\u200d",P4=fne+"?",T4="["+une+"]?",hne="(?:"+pne+"(?:"+[S4,_4,E4].join("|")+")"+T4+P4+")*",mne=T4+P4+hne,vne="(?:"+[S4+wC+"?",wC,_4,E4,dne].join("|")+")",gne=RegExp(CC+"(?="+CC+")|"+vne+mne,"g");function yne(e){return e.match(gne)||[]}var bne=yne,xne=ane,wne=C4,Cne=bne;function $ne(e){return wne(e)?Cne(e):xne(e)}var Sne=$ne,_ne=Yte,Ene=C4,Pne=Sne,Tne=yd;function kne(e){return function(t){t=Tne(t);var n=Ene(t)?Pne(t):void 0,r=n?n[0]:t.charAt(0),o=n?_ne(n,1).join(""):t.slice(1);return r[e]()+o}}var One=kne,Rne=One,Dne=Rne("toUpperCase"),Mne=Dne,Ine=Wte,Ane=Mne,Nne=Ine(function(e,t,n){return e+(n?" ":"")+Ane(t)}),k4=Nne;const Ny=Vt(k4);var jne=pc,Lne=function(){try{var e=jne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O4=Lne,UO=O4;function Fne(e,t,n){t=="__proto__"&&UO?UO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CS=Fne,zne=CS,Vne=eh;function Bne(e,t,n){(n!==void 0&&!Vne(e[t],n)||n===void 0&&!(t in e))&&zne(e,t,n)}var R4=Bne;function Une(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Wne=Une,Hne=Wne,Gne=Hne(),D4=Gne,Dg={exports:{}};Dg.exports;(function(e,t){var n=lo,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Dg,Dg.exports);var M4=Dg.exports,WO=FN;function qne(e){var t=new e.constructor(e.byteLength);return new WO(t).set(new WO(e)),t}var $S=qne,Yne=$S;function Kne(e,t){var n=t?Yne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var I4=Kne;function Jne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=boe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V4=Coe,$oe=yoe,Soe=V4,_oe=Soe($oe),TS=_oe,Eoe=Iy,Poe=z4,Toe=TS;function koe(e,t){return Toe(Poe(e,t,Eoe),e+"")}var B4=koe,Ooe=eh,Roe=cs,Doe=oh,Moe=ta;function Ioe(e,t,n){if(!Moe(n))return!1;var r=typeof t;return(r=="number"?Roe(n)&&Doe(t,n.length):r=="string"&&t in n)?Ooe(n[t],e):!1}var U4=Ioe,Aoe=B4,Noe=U4;function joe(e){return Aoe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Noe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,ce&&ce<=Z?re:ix(re,Z)):re}},mixin:function(N){return function(B){var Z=this;if(!C(Z))return N(Z,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,Z.prototype[ce]])}),N(Z,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?Z.prototype[ce[0]]=xe:delete Z.prototype[ce[0]]}),Z}},nthArg:function(N){return function(B){var Z=B<0?1:k(B)+1;return x(N(B),Z)}},rearg:function(N){return function(B,Z){var re=Z?Z.length:0;return x(N(B,Z),re)}},runInContext:function(N){return function(B){return $C(e,N(B),r)}}};function U(N,B){if(i.cap){var Z=br.iterateeRearg[N];if(Z)return X(B,Z);var re=!o&&br.iterateeAry[N];if(re)return J(B,re)}return B}function G(N,B,Z){return l||i.curry&&Z>1?x(B,Z):B}function z(N,B,Z){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,Z):bse(B,ce)}return B}function V(N,B,Z){return i.rearg&&Z>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[Z]):B}function Y(N,B){B=I(B);for(var Z=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Yse,`{ +`;return R.jsxs(lf.Root,{children:[R.jsx(lf.Trigger,{asChild:!0,children:e.children}),R.jsxs(lf.Portal,{children:[R.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),R.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:R.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[R.jsx("h3",{className:"text-xl font-medium",children:"Share"}),R.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),R.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},O=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return O(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,Z=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=O(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return O(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function R3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var M3="!";function rG(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function oG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function aG(e){return{cache:nG(e.cacheSize),splitModifiers:rG(e),...JH(e)}}var iG=/\s+/;function sG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(iG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=oG(l).join(":"),v=c?b+M3:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function lG(){for(var e=arguments.length,t=new Array(e),n=0;n$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M7 22V11M2 13V20C2 21.1046 2.89543 22 4 22H17.4262C18.907 22 20.1662 20.9197 20.3914 19.4562L21.4683 12.4562C21.7479 10.6389 20.3418 9 18.5032 9H15C14.4477 9 14 8.55228 14 8V4.46584C14 3.10399 12.896 2 11.5342 2C11.2093 2 10.915 2.1913 10.7831 2.48812L7.26394 10.4061C7.10344 10.7673 6.74532 11 6.35013 11H4C2.89543 11 2 11.8954 2 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_G=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M17 2V13M22 9.8V5.2C22 4.07989 22 3.51984 21.782 3.09202C21.5903 2.71569 21.2843 2.40973 20.908 2.21799C20.4802 2 19.9201 2 18.8 2H8.11802C6.65654 2 5.92579 2 5.33559 2.26743C4.81541 2.50314 4.37331 2.88242 4.06125 3.36072C3.70718 3.90339 3.59606 4.62564 3.37383 6.07012L2.85076 9.47012C2.55765 11.3753 2.4111 12.3279 2.69381 13.0691C2.94195 13.7197 3.40866 14.2637 4.01393 14.6079C4.70354 15 5.66734 15 7.59494 15H8.40001C8.96006 15 9.24009 15 9.454 15.109C9.64216 15.2049 9.79514 15.3578 9.89101 15.546C10 15.7599 10 16.0399 10 16.6V19.5342C10 20.896 11.104 22 12.4658 22C12.7907 22 13.085 21.8087 13.217 21.5119L16.5777 13.9502C16.7306 13.6062 16.807 13.4343 16.9278 13.3082C17.0346 13.1967 17.1657 13.1115 17.311 13.0592C17.4753 13 17.6634 13 18.0398 13H18.8C19.9201 13 20.4802 13 20.908 12.782C21.2843 12.5903 21.5903 12.2843 21.782 11.908C22 11.4802 22 10.9201 22 9.8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dR=e=>$.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),$.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})),fR=aC?e=>{e()}:M.startTransition,EG=e=>{const[,t]=$.useState({}),n=$.useRef(!1),r=$.useRef(e),o=$.useRef({data:!1,error:!1,isValidating:!1}),a=$.useCallback(i=>{let s=!1;const l=r.current;for(const c in i){const u=c;l[u]!==i[u]&&(l[u]=i[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return Gf(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,a]},PG=()=>(e,t,n={})=>{const{mutate:r}=Y4(),o=$.useRef(e),a=$.useRef(t),i=$.useRef(n),s=$.useRef(0),[l,c,u]=EG({data:kr,error:kr,isMutating:!1}),f=l.current,p=$.useCallback(async(b,v)=>{const[x,g]=_y(o.current);if(!a.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!x)throw new Error("Can’t trigger the mutation: missing key.");const y=Ga(Ga({populateCache:!1,throwOnError:!0},i.current),v),w=kp();s.current=w,u({isMutating:!0});try{const k=await r(x,a.current(g,{arg:b}),Ga(y,{throwOnError:!0}));if(s.current<=w){var C,_;fR(()=>u({data:k,isMutating:!1,error:void 0})),(C=(_=y).onSuccess)==null||C.call(_,k,x,y)}return k}catch(k){if(s.current<=w){var S,E;if(fR(()=>u({error:k,isMutating:!1})),(S=(E=y).onError)==null||S.call(E,k,x,y),y.throwOnError)throw k}}},[]),m=$.useCallback(()=>{s.current=kp(),u({data:kr,error:kr,isMutating:!1})},[]);return Gf(()=>{o.current=e,a.current=t,i.current=n}),{trigger:p,reset:m,get data(){return c.data=!0,f.data},get error(){return c.error=!0,f.error},get isMutating(){return c.isMutating=!0,f.isMutating}}},TG=cU(Ey,PG),kG=e=>{const[t,n]=$.useState(null),r=TG(["feedback",e],async([,o],{arg:a})=>{const i={run_id:o,key:a.key,score:a.score};n(a);const s=await fetch(th("/feedback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok)throw new Error(`Failed request ${s.status}`);return await s.json()});return{lastArg:r.isMutating?t:null,mutation:r}};function j3(e){var n,r,o,a;const t=kG(e.runId);return e.runId==null?null:R.jsxs(R.Fragment,{children:[R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((n=t.mutation.data)==null?void 0:n.score)===1&&"text-teal-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==1&&t.mutation.trigger({key:"correctness",score:1})},children:((r=t.lastArg)==null?void 0:r.score)===1?R.jsx(dR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(SG,{className:"w-4 h-4"})}),R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((o=t.mutation.data)==null?void 0:o.score)===-1&&"text-red-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==-1&&t.mutation.trigger({key:"correctness",score:-1})},children:((a=t.lastArg)==null?void 0:a.score)===-1?R.jsx(dR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(_G,{className:"w-4 h-4"})})]})}function RG(e){const[t,n]=$.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return R.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[R.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[R.jsxs("span",{children:["Intermediate steps"," ",R.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),R.jsx(KH,{className:qa("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&R.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>R.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("strong",{className:"text-sm font-medium",children:a.name}),R.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),R.jsxs("div",{className:"bg-ls-gray-400 rounded-lg p-3 relative group",children:[R.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm",children:N3(a.final_output)??"..."}),e.feedbackEnabled&&a.id?R.jsx("div",{className:"absolute right-3 top-3 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(j3,{runId:a.id},a.id)}):null]})]},a.id))})]})}class Og{constructor(t){Zd(this,"content");Zd(this,"name");Zd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Og({content:this.content+t.content,additional_kwargs:Og._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function OG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function DG(e){return e.length>0&&e.every(t=>OG(t))}function MG(e){var t;if(DG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Og(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(N3).join("")||"..."}var IG=typeof xo=="object"&&xo&&xo.Object===Object&&xo,L3=IG,AG=L3,NG=typeof self=="object"&&self&&self.Object===Object&&self,jG=AG||NG||Function("return this")(),co=jG,LG=co,FG=LG.Symbol,ud=FG,pR=ud,F3=Object.prototype,zG=F3.hasOwnProperty,VG=F3.toString,df=pR?pR.toStringTag:void 0;function BG(e){var t=zG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=VG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var UG=BG,WG=Object.prototype,HG=WG.toString;function GG(e){return HG.call(e)}var qG=GG,hR=ud,YG=UG,KG=qG,ZG="[object Null]",JG="[object Undefined]",mR=hR?hR.toStringTag:void 0;function XG(e){return e==null?e===void 0?JG:ZG:mR&&mR in Object(e)?YG(e):KG(e)}var cl=XG;function QG(e){return e!=null&&typeof e=="object"}var ea=QG,eq=cl,tq=ea,nq="[object Symbol]";function rq(e){return typeof e=="symbol"||tq(e)&&eq(e)==nq}var dd=rq,oq=dd;function aq(e,t,n){for(var r=-1,o=e.length;++rt}var lq=sq;function cq(){this.__data__=[],this.size=0}var uq=cq;function dq(e,t){return e===t||e!==e&&t!==t}var rh=dq,fq=rh;function pq(e,t){for(var n=e.length;n--;)if(fq(e[n][0],t))return n;return-1}var Dy=pq,hq=Dy,mq=Array.prototype,vq=mq.splice;function gq(e){var t=this.__data__,n=hq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vq.call(t,n,1),--this.size,!0}var yq=gq,bq=Dy;function xq(e){var t=this.__data__,n=bq(t,e);return n<0?void 0:t[n][1]}var wq=xq,Cq=Dy;function $q(e){return Cq(this.__data__,e)>-1}var Sq=$q,_q=Dy;function Eq(e,t){var n=this.__data__,r=_q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Pq=Eq,Tq=uq,kq=yq,Rq=wq,Oq=Sq,Dq=Pq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&JK?new qK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=ZZ}var vS=JZ,XZ=cl,QZ=vS,eJ=ea,tJ="[object Arguments]",nJ="[object Array]",rJ="[object Boolean]",oJ="[object Date]",aJ="[object Error]",iJ="[object Function]",sJ="[object Map]",lJ="[object Number]",cJ="[object Object]",uJ="[object RegExp]",dJ="[object Set]",fJ="[object String]",pJ="[object WeakMap]",hJ="[object ArrayBuffer]",mJ="[object DataView]",vJ="[object Float32Array]",gJ="[object Float64Array]",yJ="[object Int8Array]",bJ="[object Int16Array]",xJ="[object Int32Array]",wJ="[object Uint8Array]",CJ="[object Uint8ClampedArray]",$J="[object Uint16Array]",SJ="[object Uint32Array]",Nn={};Nn[vJ]=Nn[gJ]=Nn[yJ]=Nn[bJ]=Nn[xJ]=Nn[wJ]=Nn[CJ]=Nn[$J]=Nn[SJ]=!0;Nn[tJ]=Nn[nJ]=Nn[hJ]=Nn[rJ]=Nn[mJ]=Nn[oJ]=Nn[aJ]=Nn[iJ]=Nn[sJ]=Nn[lJ]=Nn[cJ]=Nn[uJ]=Nn[dJ]=Nn[fJ]=Nn[pJ]=!1;function _J(e){return eJ(e)&&QZ(e.length)&&!!Nn[XZ(e)]}var EJ=_J;function PJ(e){return function(t){return e(t)}}var gS=PJ,Ig={exports:{}};Ig.exports;(function(e,t){var n=L3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Ig,Ig.exports);var yS=Ig.exports,TJ=EJ,kJ=gS,SR=yS,_R=SR&&SR.isTypedArray,RJ=_R?kJ(_R):TJ,jy=RJ,OJ=AZ,DJ=ah,MJ=lr,IJ=ih,AJ=sh,NJ=jy,jJ=Object.prototype,LJ=jJ.hasOwnProperty;function FJ(e,t){var n=MJ(e),r=!n&&DJ(e),o=!n&&!r&&IJ(e),a=!n&&!r&&!o&&NJ(e),i=n||r||o||a,s=i?OJ(e.length,String):[],l=s.length;for(var c in e)(t||LJ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||AJ(c,l)))&&s.push(c);return s}var J3=FJ,zJ=Object.prototype;function VJ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zJ;return e===n}var Ly=VJ;function BJ(e,t){return function(n){return e(t(n))}}var X3=BJ,UJ=X3,WJ=UJ(Object.keys,Object),HJ=WJ,GJ=Ly,qJ=HJ,YJ=Object.prototype,KJ=YJ.hasOwnProperty;function ZJ(e){if(!GJ(e))return qJ(e);var t=[];for(var n in Object(e))KJ.call(e,n)&&n!="constructor"&&t.push(n);return t}var bS=ZJ,JJ=oh,XJ=vS;function QJ(e){return e!=null&&XJ(e.length)&&!JJ(e)}var us=QJ,eX=J3,tX=bS,nX=us;function rX(e){return nX(e)?eX(e):tX(e)}var ki=rX;const oX=Vt(ki);var aX=q3,iX=mS,sX=ki;function lX(e){return aX(e,sX,iX)}var Q3=lX,ER=Q3,cX=1,uX=Object.prototype,dX=uX.hasOwnProperty;function fX(e,t,n,r,o,a){var i=n&cX,s=ER(e),l=s.length,c=ER(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:dX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:rne(e,t,n)}var ane=one,ine="\\ud800-\\udfff",sne="\\u0300-\\u036f",lne="\\ufe20-\\ufe2f",cne="\\u20d0-\\u20ff",une=sne+lne+cne,dne="\\ufe0e\\ufe0f",fne="\\u200d",pne=RegExp("["+fne+ine+une+dne+"]");function hne(e){return pne.test(e)}var P5=hne;function mne(e){return e.split("")}var vne=mne,T5="\\ud800-\\udfff",gne="\\u0300-\\u036f",yne="\\ufe20-\\ufe2f",bne="\\u20d0-\\u20ff",xne=gne+yne+bne,wne="\\ufe0e\\ufe0f",Cne="["+T5+"]",_C="["+xne+"]",EC="\\ud83c[\\udffb-\\udfff]",$ne="(?:"+_C+"|"+EC+")",k5="[^"+T5+"]",R5="(?:\\ud83c[\\udde6-\\uddff]){2}",O5="[\\ud800-\\udbff][\\udc00-\\udfff]",Sne="\\u200d",D5=$ne+"?",M5="["+wne+"]?",_ne="(?:"+Sne+"(?:"+[k5,R5,O5].join("|")+")"+M5+D5+")*",Ene=M5+D5+_ne,Pne="(?:"+[k5+_C+"?",_C,R5,O5,Cne].join("|")+")",Tne=RegExp(EC+"(?="+EC+")|"+Pne+Ene,"g");function kne(e){return e.match(Tne)||[]}var Rne=kne,One=vne,Dne=P5,Mne=Rne;function Ine(e){return Dne(e)?Mne(e):One(e)}var Ane=Ine,Nne=ane,jne=P5,Lne=Ane,Fne=yd;function zne(e){return function(t){t=Fne(t);var n=jne(t)?Lne(t):void 0,r=n?n[0]:t.charAt(0),o=n?Nne(n,1).join(""):t.slice(1);return r[e]()+o}}var Vne=zne,Bne=Vne,Une=Bne("toUpperCase"),Wne=Une,Hne=tne,Gne=Wne,qne=Hne(function(e,t,n){return e+(n?" ":"")+Gne(t)}),I5=qne;const Vy=Vt(I5);var Yne=pc,Kne=function(){try{var e=Yne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),A5=Kne,GR=A5;function Zne(e,t,n){t=="__proto__"&&GR?GR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var SS=Zne,Jne=SS,Xne=rh;function Qne(e,t,n){(n!==void 0&&!Xne(e[t],n)||n===void 0&&!(t in e))&&Jne(e,t,n)}var N5=Qne;function ere(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var tre=ere,nre=tre,rre=nre(),j5=rre,Ag={exports:{}};Ag.exports;(function(e,t){var n=co,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Ag,Ag.exports);var L5=Ag.exports,qR=W3;function ore(e){var t=new e.constructor(e.byteLength);return new qR(t).set(new qR(e)),t}var _S=ore,are=_S;function ire(e,t){var n=t?are(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var F5=ire;function sre(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=Roe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var G5=Moe,Ioe=koe,Aoe=G5,Noe=Aoe(Ioe),RS=Noe,joe=Fy,Loe=H5,Foe=RS;function zoe(e,t){return Foe(Loe(e,t,joe),e+"")}var q5=zoe,Voe=rh,Boe=us,Uoe=sh,Woe=ta;function Hoe(e,t,n){if(!Woe(n))return!1;var r=typeof t;return(r=="number"?Boe(n)&&Uoe(t,n.length):r=="string"&&t in n)?Voe(n[t],e):!1}var Y5=Hoe,Goe=q5,qoe=Y5;function Yoe(e){return Goe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&qoe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?J-2:1,ce&&ce<=J?re:ux(re,J)):re}},mixin:function(N){return function(B){var J=this;if(!C(J))return N(J,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,J.prototype[ce]])}),N(J,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?J.prototype[ce[0]]=xe:delete J.prototype[ce[0]]}),J}},nthArg:function(N){return function(B){var J=B<0?1:k(B)+1;return x(N(B),J)}},rearg:function(N){return function(B,J){var re=J?J.length:0;return x(N(B,J),re)}},runInContext:function(N){return function(B){return PC(e,N(B),r)}}};function U(N,B){if(i.cap){var J=br.iterateeRearg[N];if(J)return X(B,J);var re=!o&&br.iterateeAry[N];if(re)return Z(B,re)}return B}function G(N,B,J){return l||i.curry&&J>1?x(B,J):B}function z(N,B,J){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,J):Rse(B,ce)}return B}function V(N,B,J){return i.rearg&&J>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[J]):B}function Y(N,B){B=I(B);for(var J=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++J1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ale,`{ /* [wrapped with `+t+`] */ -`)}var Jse=Kse;function Zse(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var s5=sle,lle=kS,cle=s5,ule=1,dle=2,fle=8,ple=16,hle=32,mle=64,vle=128,gle=256,yle=512,ble=[["ary",vle],["bind",ule],["bindKey",dle],["curry",fle],["curryRight",ple],["flip",yle],["partial",hle],["partialRight",mle],["rearg",gle]];function xle(e,t){return lle(ble,function(n){var r="_."+n[0];t&n[1]&&!cle(e,r)&&e.push(r)}),e.sort()}var wle=xle,Cle=qse,$le=Jse,Sle=TS,_le=wle;function Ele(e,t,n){var r=t+"";return Sle(e,$le(r,_le(Cle(r),n)))}var l5=Ele,Ple=r5(),Tle=o5,kle=l5,Ole=1,Rle=2,Dle=4,Mle=8,xR=32,wR=64;function Ile(e,t,n,r,o,a,i,s,l,c){var u=t&Mle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?xR:wR,t&=~(u?wR:xR),t&Dle||(t&=~(Ole|Rle));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Ple(e)&&Tle(x,v),x.placeholder=r,kle(x,e,t)}var c5=Ile;function Ale(e){var t=e;return t.placeholder}var u5=Ale,Nle=ih,jle=oh,Lle=Math.min;function Fle(e,t){for(var n=e.length,r=Lle(t.length,n),o=Nle(e);r--;){var a=t[r];e[r]=jle(a,n)?o[a]:void 0}return e}var zle=Fle,CR="__lodash_placeholder__";function Vle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?m5(s,t-1,n,r,o):Mue(o,s):r||(o[o.length]=s)}return o}var v5=m5,Aue=v5;function Nue(e){var t=e==null?0:e.length;return t?Aue(e,1):[]}var jue=Nue,Lue=jue,Fue=z4,zue=TS;function Vue(e){return zue(Fue(e,void 0,Lue),e+"")}var jS=Vue,Bue=AS,Uue=jS,Wue=256,Hue=Uue(function(e,t){return Bue(e,Wue,void 0,void 0,void 0,t)}),Gue=Hue,que=gd,Yue=ih,Kue=cr,Jue=dd,Zue=n4,Xue=mc,Que=yd;function ede(e){return Kue(e)?que(e,Xue):Jue(e)?[e]:Yue(Zue(Que(e)))}var tde=ede,nde={ary:oue,assign:W4,clone:lue,curry:due,forEach:kS,isArray:cr,isError:yue,isFunction:th,isWeakMap:$ue,iteratee:Tue,keys:gS,rearg:Gue,toInteger:lh,toPath:tde},rde=xse,ode=nde;function ade(e,t,n){return rde(ode,e,t,n)}var xd=ade,Cx,jR;function ide(){if(jR)return Cx;jR=1;var e=ES,t=ah,n=oh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Hde=Wde,Gde=Hde,qde=o4,Yde=lh,Kde=yd;function Jde(e,t,n){e=Kde(e),t=qde(t);var r=e.length;n=n===void 0?r:Gde(Yde(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var Zde=Jde;const Xde=Vt(Zde);function Qde(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var efe=Qde,tfe=s4,nfe=LS,rfe=vc,ofe=efe,afe=cr;function ife(e,t,n){var r=afe(e)?tfe:ofe,o=arguments.length<3;return r(e,rfe(t),n,o,nfe)}var sfe=ife;const SC=Vt(sfe);var lfe=gd;function cfe(e,t){return lfe(t,function(n){return[n,e[n]]})}var ufe=cfe;function dfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ffe=dfe,pfe=ufe,hfe=hc,mfe=zN,vfe=ffe,gfe="[object Map]",yfe="[object Set]";function bfe(e){return function(t){var n=hfe(t);return n==gfe?mfe(t):n==yfe?vfe(t):pfe(t,e(t))}}var xfe=bfe,wfe=xfe,Cfe=Pi,$fe=wfe(Cfe),Sfe=$fe;const _fe=Vt(Sfe);var Efe=cl,Pfe=cr,Tfe=ea,kfe="[object String]";function Ofe(e){return typeof e=="string"||!Pfe(e)&&Tfe(e)&&Efe(e)==kfe}var Rfe=Ofe,Dfe=gd;function Mfe(e,t){return Dfe(t,function(n){return e[n]})}var Ife=Mfe,Afe=Ife,Nfe=Pi;function jfe(e){return e==null?[]:Afe(e,Nfe(e))}var Lfe=jfe,Ffe=i5,zfe=cs,Vfe=Rfe,Bfe=lh,Ufe=Lfe,Wfe=Math.max;function Hfe(e,t,n,r){e=zfe(e)?e:Ufe(e),n=n&&!r?Bfe(n):0;var o=e.length;return n<0&&(n=Wfe(o+n,0)),Vfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ffe(e,t,n)>-1}var Gfe=Hfe;const w5=Vt(Gfe);var qfe=vc,Yfe=cs,Kfe=Pi;function Jfe(e){return function(t,n,r){var o=Object(t);if(!Yfe(t)){var a=qfe(n);t=Kfe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var Zfe=Jfe,Xfe=a5,Qfe=vc,epe=lh,tpe=Math.max;function npe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:epe(n);return o<0&&(o=tpe(r+o,0)),Xfe(e,Qfe(t),o)}var rpe=npe,ope=Zfe,ape=rpe,ipe=ope(ape),spe=ipe;const FS=Vt(spe);var lpe=Math.ceil,cpe=Math.max;function upe(e,t,n,r){for(var o=-1,a=cpe(lpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var dpe=upe,fpe=dpe,ppe=U4,Sx=h5;function hpe(e){return function(t,n,r){return r&&typeof r!="number"&&ppe(t,n,r)&&(n=r=void 0),t=Sx(t),n===void 0?(n=t,t=0):n=Sx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(EC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rp,n=EC;var r=Rp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=EC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,Z){super(D,B,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let Z=B.length;for(;Z--;){const re=B[Z];re.optimizeNames(D,N)||(V(D,re.names),B.splice(Z,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,Z){super(),this.varKind=D,this.name=N,this.from=B,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:Z,to:re}=this;return`for(${N} ${B}=${Z}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,Z){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,Z;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,Z){const re=this._scope.toName(N);return B!==void 0&&Z&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,Z]of D)N.length>1&&N.push(","),N.push(B),(B!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>Z(ce))}forOf(D,N,B,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",Z,re,N),()=>B(re))}forIn(D,N,B,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return B&&(this._currNode=Z.finally=new R,this.code(B)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,Z){return this._blockNode(new S(D,N,B)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function Z(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const J=j(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=Rp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(R,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Br=Jt,Tpe={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ti.default=Tpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ti;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(ch);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const kpe=ch,Ope=Jt,Rpe=Ti,Dpe={message:"boolean schema is false"};function Mpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?$5(e,!1):typeof n=="object"&&n.$async===!0?t.return(Rpe.default.data):(t.assign((0,Ope._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Mpe;function Ipe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),$5(e)):n.var(t,!0)}qu.boolOrEmptySchema=Ipe;function $5(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,kpe.reportError)(o,Dpe,void 0,t)}var uh={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Ape=["string","number","integer","boolean","null","object","array"],Npe=new Set(Ape);function jpe(e){return typeof e=="string"&&Npe.has(e)}tc.isJSONType=jpe;function Lpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Lpe;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.shouldUseRule=Xi.shouldUseGroup=Xi.schemaHasRulesForType=void 0;function Fpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&S5(e,r)}Xi.schemaHasRulesForType=Fpe;function S5(e,t){return t.rules.some(n=>_5(e,n))}Xi.shouldUseGroup=S5;function _5(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Xi.shouldUseRule=_5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Xi,r=ch,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,S,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),R=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(R,E))),S.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${R} !== undefined`,()=>{S.assign(E,R),m(w,R)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null - || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null - || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(R,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(uh);var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.assignDefaults=void 0;const Gc=Jt,zpe=dn;function Vpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)FR(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>FR(e,a,o.default))}zy.assignDefaults=Vpe;function FR(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,zpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var vi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Jt,zS=dn,Ts=Ti,Bpe=dn;function Upe(e,t){const{gen:n,data:r,it:o}=e;n.if(BS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Upe;function Wpe({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(BS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=Wpe;function Hpe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Hpe;function E5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=E5;function VS(e,t,n){return(0,jn._)`${E5(e)}.call(${t}, ${n})`}Qt.isOwnProperty=VS;function Gpe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${VS(e,t,n)}`:o}Qt.propertyInData=Gpe;function BS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(VS(e,t,n))):o}Qt.noPropertyInData=BS;function P5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=P5;function qpe(e,t){return P5(t).filter(n=>!(0,zS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=qpe;function Ype({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[Ts.default.instancePath,(0,jn.strConcat)(Ts.default.instancePath,a)],[Ts.default.parentData,i.parentData],[Ts.default.parentDataProperty,i.parentDataProperty],[Ts.default.rootData,Ts.default.rootData]];i.opts.dynamicRef&&f.push([Ts.default.dynamicAnchors,Ts.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=Ype;const Kpe=(0,jn._)`new RegExp`;function Jpe({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?Kpe:(0,Bpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=Jpe;function Zpe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:zS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=Zpe;function Xpe(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,zS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=Xpe;Object.defineProperty(vi,"__esModule",{value:!0});vi.validateKeywordUsage=vi.validSchemaType=vi.funcKeywordCode=vi.macroKeywordCode=void 0;const ro=Jt,jl=Ti,Qpe=Qt,ehe=ch;function the(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=T5(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:ro.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}vi.macroKeywordCode=the;function nhe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;ohe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=T5(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&zR(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&zR(e),x(()=>rhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,ro._)`await `),y=>r.assign(f,!1).if((0,ro._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,ro._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,ro._)`${u}.errors`;return r.assign(g,null),v(ro.nil),g}function v(g=t.async?(0,ro._)`await `:ro.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,ro._)`${g}${(0,Qpe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,ro.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}vi.funcKeywordCode=nhe;function zR(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,ro._)`${r.parentData}[${r.parentDataProperty}]`))}function rhe(e,t){const{gen:n}=e;n.if((0,ro._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,ro._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,ro._)`${jl.default.vErrors}.length`),(0,ehe.extendErrors)(e)},()=>e.error())}function ohe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function T5(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ro.stringify)(n)})}function ahe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}vi.validSchemaType=ahe;function ihe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}vi.validateKeywordUsage=ihe;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.extendSubschemaMode=Qs.extendSubschemaData=Qs.getSubschema=void 0;const pi=Jt,k5=dn;function she(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,pi._)`${e.schemaPath}${(0,pi.getProperty)(t)}${(0,pi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,k5.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Qs.getSubschema=she;function lhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,pi._)`${t.data}${(0,pi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,pi.str)`${c}${(0,k5.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,pi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof pi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Qs.extendSubschemaData=lhe;function che(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}Qs.extendSubschemaMode=che;var Ar={},O5=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},R5={exports:{}},Vs=R5.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};jv(t,r,o,e,"",e)};Vs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function jv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Vs.arrayKeywords)for(var p=0;pt+=D5(r)),t===1/0))return 1/0}return t}function M5(e,t="",n){n!==!1&&(t=Ru(t));const r=e.parse(t);return I5(e,r)}Ar.getFullPath=M5;function I5(e,t){return e.serialize(t).split("#")[0]+"#"}Ar._getFullPath=I5;const yhe=/#\/?$/;function Ru(e){return e?e.replace(yhe,""):""}Ar.normalizeId=Ru;function bhe(e,t,n){return n=Ru(n),e.resolve(t,n)}Ar.resolveUrl=bhe;const xhe=/^[a-z_][-a-z0-9._]*$/i;function whe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ru(e[n]||t),a={"":o},i=M5(r,o,!1),s={},l=new Set;return hhe(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ru(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ru(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!xhe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!phe(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ar.getSchemaRefs=whe;Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getData=Ga.KeywordCxt=Ga.validateFunctionCode=void 0;const A5=qu,VR=uh,US=Xi,Ig=uh,Che=zy,Gf=vi,_x=Qs,St=Jt,Lt=Ti,$he=Ar,Qi=dn,pf=ch;function She(e){if(L5(e)&&(F5(e),j5(e))){Phe(e);return}N5(e,()=>(0,A5.topBoolOrEmptySchema)(e))}Ga.validateFunctionCode=She;function N5({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${BR(n,o)}`),Ehe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${_he(o)}`,r.$async,()=>e.code(BR(n,o)).code(a))}function _he(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Ehe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Phe(e){const{schema:t,opts:n,gen:r}=e;N5(e,()=>{n.$comment&&t.$comment&&V5(e),Dhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&The(e),z5(e),Ahe(e)})}function The(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function BR(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function khe(e,t){if(L5(e)&&(F5(e),j5(e))){Ohe(e,t);return}(0,A5.boolOrEmptySchema)(e,t)}function j5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function L5(e){return typeof e.schema!="boolean"}function Ohe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&V5(e),Mhe(e),Ihe(e);const a=r.const("_errs",Lt.default.errors);z5(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function F5(e){(0,Qi.checkUnknownRules)(e),Rhe(e)}function z5(e,t){if(e.opts.jtd)return UR(e,[],!1,t);const n=(0,VR.getSchemaTypes)(e.schema),r=(0,VR.coerceAndCheckDataType)(e,n);UR(e,n,!r,t)}function Rhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Qi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Dhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Qi.checkStrictMode)(e,"default is ignored in the schema root")}function Mhe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,$he.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ihe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ahe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Nhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Nhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function UR(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Qi.schemaHasRulesButRef)(a,u))){o.block(()=>W5(e,"$ref",u.all.$ref.definition));return}l.jtd||jhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,US.shouldUseGroup)(a,p)&&(p.type?(o.if((0,Ig.checkDataType)(p.type,i,l.strictNumbers)),WR(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,Ig.reportTypeError)(e)),o.endIf()):WR(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function WR(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Che.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,US.shouldUseRule)(r,a)&&W5(e,a.keyword,a.definition,t.type)})}function jhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Lhe(e,t),e.opts.allowUnionTypes||Fhe(e,t),zhe(e,e.dataTypes))}function Lhe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{B5(e.dataTypes,n)||WS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Bhe(e,t)}}function Fhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&WS(e,"use allowUnionTypes to allow union type keyword")}function zhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,US.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Vhe(t,i))&&WS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Vhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function B5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Bhe(e,t){const n=[];for(const r of e.dataTypes)B5(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function WS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Qi.checkStrictMode)(e,t,e.opts.strictTypes)}class U5{constructor(t,n,r){if((0,Gf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",H5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Gf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,Ig.checkDataTypes)(l,n,a.opts.strictNumbers,Ig.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,_x.getSubschema)(this.it,t);(0,_x.extendSubschemaData)(r,this.it,t),(0,_x.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return khe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Qi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Qi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ga.KeywordCxt=U5;function W5(e,t,n,r){const o=new U5(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Gf.funcKeywordCode)(o,n):"macro"in n?(0,Gf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Gf.funcKeywordCode)(o,n)}const Uhe=/^\/(?:[^~]|~0|~1)*$/,Whe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function H5(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Uhe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Whe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Qi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ga.getData=H5;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});class Hhe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}dh.default=Hhe;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});const Ex=Ar;class Ghe extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Ex.resolveUrl)(t,n,r),this.missingSchema=(0,Ex.normalizeId)((0,Ex.getFullPath)(t,this.missingRef))}}fh.default=Ghe;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Jt,qhe=dh,Pl=Ti,Fa=Ar,HR=dn,Yhe=Ga;class Vy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Vy;function HS(e){const t=G5.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:qhe.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Yhe.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=HS;function Khe(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=Xhe.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Vy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Jhe.call(this,a)}bo.resolveRef=Khe;function Jhe(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:HS.call(this,e)}function G5(e){for(const t of this._compilations)if(Zhe(t,e))return t}bo.getCompilingSchema=G5;function Zhe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Xhe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||By.call(this,e,t)}function By(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Px.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=By.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Px.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||HS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Vy({schema:s,schemaId:l,root:e,baseId:o})}return Px.call(this,n,i)}}bo.resolveSchema=By;const Qhe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Px(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,HR.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Qhe.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,HR.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=By.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Vy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const eme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",tme="Meta-schema for $data reference (JSON AnySchema extension proposal)",nme="object",rme=["$data"],ome={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ame=!1,ime={$id:eme,description:tme,type:nme,required:rme,properties:ome,additionalProperties:ame};var GS={},TC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(R[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(uo){Ie=!0,rt=uo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&QaU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ei=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Zr;!(Io=(Zr=gl.next()).done);Io=!0){var Mh=Zr.value;if(Mhb&&z("overflow"),Mh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Di=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Ri=Wt.slice(0,Un.index),Qa=Wt.slice(Un.index+Un.length);Mo=Ri.join(":")+"::"+Qa.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,Z,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=R.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return Z.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function Z({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const Z of N)B=B[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[Z];ce&&xe&&(B[Z]=J(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:Z}=this.opts;if(typeof j=="object")B=j[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:Z,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function R(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const Z={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,Z,j.before):B.rules.push(Z),N.all[X]=Z,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=J(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,W]}}})(C5);var qS={},YS={},KS={};Object.defineProperty(KS,"__esModule",{value:!0});const lme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};KS.default=lme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const cme=fh,GR=Qt,vo=Jt,qc=Ti,qR=bo,Qm=dn,ume={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=qR.resolveRef.call(l,c,o,n);if(u===void 0)throw new cme.default(r.opts.uriResolver,o,n);if(u instanceof qR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Lv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Lv(e,(0,vo._)`${b}.validate`,c,c.$async)}function p(b){const v=Y5(e,b);Lv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,vo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:vo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function Y5(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,vo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=Y5;function Lv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:vo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,vo._)`await ${(0,GR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,vo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,GR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,vo._)`${b}.errors`;o.assign(qc.default.vErrors,(0,vo._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,vo._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Qm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,vo._)`${b}.evaluated.props`);a.props=Qm.mergeEvaluated.props(o,g,a.props,vo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Qm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,vo._)`${b}.evaluated.items`);a.items=Qm.mergeEvaluated.items(o,g,a.items,vo.Name)}}}nc.callRef=Lv;nc.default=ume;Object.defineProperty(YS,"__esModule",{value:!0});const dme=KS,fme=nc,pme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",dme.default,fme.default];YS.default=pme;var JS={},ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const Ag=Jt,ks=Ag.operators,Ng={maximum:{okStr:"<=",ok:ks.LTE,fail:ks.GT},minimum:{okStr:">=",ok:ks.GTE,fail:ks.LT},exclusiveMaximum:{okStr:"<",ok:ks.LT,fail:ks.GTE},exclusiveMinimum:{okStr:">",ok:ks.GT,fail:ks.LTE}},hme={message:({keyword:e,schemaCode:t})=>(0,Ag.str)`must be ${Ng[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ag._)`{comparison: ${Ng[e].okStr}, limit: ${t}}`},mme={keyword:Object.keys(Ng),type:"number",schemaType:"number",$data:!0,error:hme,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Ag._)`${n} ${Ng[t].fail} ${r} || isNaN(${n})`)}};ZS.default=mme;var XS={};Object.defineProperty(XS,"__esModule",{value:!0});const qf=Jt,vme={message:({schemaCode:e})=>(0,qf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qf._)`{multipleOf: ${e}}`},gme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,qf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,qf._)`${i} !== parseInt(${i})`;e.fail$data((0,qf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};XS.default=gme;var QS={},e_={};Object.defineProperty(e_,"__esModule",{value:!0});function K5(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},wme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xme,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,yme.useFunc)(e.gen,bme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};QS.default=wme;var t_={};Object.defineProperty(t_,"__esModule",{value:!0});const Cme=Qt,jg=Jt,$me={message:({schemaCode:e})=>(0,jg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,jg._)`{pattern: ${e}}`},Sme={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$me,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,jg._)`(new RegExp(${o}, ${i}))`:(0,Cme.usePattern)(e,r);e.fail$data((0,jg._)`!${s}.test(${t})`)}};t_.default=Sme;var n_={};Object.defineProperty(n_,"__esModule",{value:!0});const Yf=Jt,_me={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Yf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Yf._)`{limit: ${e}}`},Eme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Yf.operators.GT:Yf.operators.LT;e.fail$data((0,Yf._)`Object.keys(${n}).length ${o} ${r}`)}};n_.default=Eme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const hf=Qt,Kf=Jt,Pme=dn,Tme={message:({params:{missingProperty:e}})=>(0,Kf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Kf._)`{missingProperty: ${e}}`},kme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Tme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Pme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Kf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Kf.not)(b),()=>{e.error(),t.break()})},Kf.nil)}}};r_.default=kme;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Jf=Jt,Ome={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Rme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};o_.default=Rme;var a_={},ph={};Object.defineProperty(ph,"__esModule",{value:!0});const J5=O5;J5.code='require("ajv/dist/runtime/equal").default';ph.default=J5;Object.defineProperty(a_,"__esModule",{value:!0});const Tx=uh,Dr=Jt,Dme=dn,Mme=ph,Ime={message:({params:{i:e,j:t}})=>(0,Dr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Dr._)`{i: ${e}, j: ${t}}`},Ame={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ime,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Tx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Dr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Dr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Dr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Tx.checkDataTypes)(c,x,s.opts.strictNumbers,Tx.DataType.Wrong),y=t.const("indices",(0,Dr._)`{}`);t.for((0,Dr._)`;${b}--;`,()=>{t.let(x,(0,Dr._)`${n}[${b}]`),t.if(g,(0,Dr._)`continue`),c.length>1&&t.if((0,Dr._)`typeof ${x} == "string"`,(0,Dr._)`${x} += "_"`),t.if((0,Dr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Dr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Dr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Dme.useFunc)(t,Mme.default),g=t.name("outer");t.label(g).for((0,Dr._)`;${b}--;`,()=>t.for((0,Dr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Dr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};a_.default=Ame;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const kC=Jt,Nme=dn,jme=ph,Lme={message:"must be equal to constant",params:({schemaCode:e})=>(0,kC._)`{allowedValue: ${e}}`},Fme={keyword:"const",$data:!0,error:Lme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,kC._)`!${(0,Nme.useFunc)(t,jme.default)}(${n}, ${o})`):e.fail((0,kC._)`${a} !== ${n}`)}};i_.default=Fme;var s_={};Object.defineProperty(s_,"__esModule",{value:!0});const Rf=Jt,zme=dn,Vme=ph,Bme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Rf._)`{allowedValues: ${e}}`},Ume={keyword:"enum",schemaType:"array",$data:!0,error:Bme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,zme.useFunc)(t,Vme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Rf.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Rf._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Rf._)`${c()}(${n}, ${m}[${b}])`:(0,Rf._)`${n} === ${v}`}}};s_.default=Ume;Object.defineProperty(JS,"__esModule",{value:!0});const Wme=ZS,Hme=XS,Gme=QS,qme=t_,Yme=n_,Kme=r_,Jme=o_,Zme=a_,Xme=i_,Qme=s_,eve=[Wme.default,Hme.default,Gme.default,qme.default,Yme.default,Kme.default,Jme.default,Zme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xme.default,Qme.default];JS.default=eve;var l_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Jt,OC=dn,tve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},nve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,OC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Z5(e,r)}};function Z5(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,OC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:OC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=Z5;Cd.default=nve;var c_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const YR=Jt,Fv=dn,rve=Qt,ove={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return X5(e,"additionalItems",t);n.items=!0,!(0,Fv.alwaysValidSchema)(n,t)&&e.ok((0,rve.validateArray)(e))}};function X5(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Fv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,YR._)`${a}.length`);n.forEach((f,p)=>{(0,Fv.alwaysValidSchema)(s,f)||(r.if((0,YR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Fv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=X5;$d.default=ove;Object.defineProperty(c_,"__esModule",{value:!0});const ave=$d,ive={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ave.validateTuple)(e,"items")};c_.default=ive;var u_={};Object.defineProperty(u_,"__esModule",{value:!0});const KR=Jt,sve=dn,lve=Qt,cve=Cd,uve={message:({params:{len:e}})=>(0,KR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KR._)`{limit: ${e}}`},dve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:uve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,sve.alwaysValidSchema)(r,t)&&(o?(0,cve.validateAdditionalItems)(e,o):e.ok((0,lve.validateArray)(e)))}};u_.default=dve;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});const fa=Jt,ev=dn,fve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},pve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,ev.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,ev.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ev.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:ev.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};d_.default=pve;var Q5={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, +`)}var sle=ile;function lle(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var fN=yle,ble=OS,xle=fN,wle=1,Cle=2,$le=8,Sle=16,_le=32,Ele=64,Ple=128,Tle=256,kle=512,Rle=[["ary",Ple],["bind",wle],["bindKey",Cle],["curry",$le],["curryRight",Sle],["flip",kle],["partial",_le],["partialRight",Ele],["rearg",Tle]];function Ole(e,t){return ble(Rle,function(n){var r="_."+n[0];t&n[1]&&!xle(e,r)&&e.push(r)}),e.sort()}var Dle=Ole,Mle=ole,Ile=sle,Ale=RS,Nle=Dle;function jle(e,t,n){var r=t+"";return Ale(e,Ile(r,Nle(Mle(r),n)))}var pN=jle,Lle=lN(),Fle=cN,zle=pN,Vle=1,Ble=2,Ule=4,Wle=8,$O=32,SO=64;function Hle(e,t,n,r,o,a,i,s,l,c){var u=t&Wle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?$O:SO,t&=~(u?SO:$O),t&Ule||(t&=~(Vle|Ble));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Lle(e)&&Fle(x,v),x.placeholder=r,zle(x,e,t)}var hN=Hle;function Gle(e){var t=e;return t.placeholder}var mN=Gle,qle=ch,Yle=sh,Kle=Math.min;function Zle(e,t){for(var n=e.length,r=Kle(t.length,n),o=qle(e);r--;){var a=t[r];e[r]=Yle(a,n)?o[a]:void 0}return e}var Jle=Zle,_O="__lodash_placeholder__";function Xle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?xN(s,t-1,n,r,o):Wue(o,s):r||(o[o.length]=s)}return o}var wN=xN,Gue=wN;function que(e){var t=e==null?0:e.length;return t?Gue(e,1):[]}var Yue=que,Kue=Yue,Zue=H5,Jue=RS;function Xue(e){return Jue(Zue(e,void 0,Kue),e+"")}var FS=Xue,Que=jS,ede=FS,tde=256,nde=ede(function(e,t){return Que(e,tde,void 0,void 0,void 0,t)}),rde=nde,ode=gd,ade=ch,ide=lr,sde=dd,lde=s5,cde=mc,ude=yd;function dde(e){return ide(e)?ode(e,cde):sde(e)?[e]:ade(lde(ude(e)))}var fde=dde,pde={ary:mue,assign:K5,clone:bue,curry:Cue,forEach:OS,isArray:lr,isError:kue,isFunction:oh,isWeakMap:Iue,iteratee:Fue,keys:bS,rearg:rde,toInteger:dh,toPath:fde},hde=Ose,mde=pde;function vde(e,t,n){return hde(mde,e,t,n)}var xd=vde,Ex,zO;function gde(){if(zO)return Ex;zO=1;var e=TS,t=lh,n=sh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var nfe=tfe,rfe=nfe,ofe=c5,afe=dh,ife=yd;function sfe(e,t,n){e=ife(e),t=ofe(t);var r=e.length;n=n===void 0?r:rfe(afe(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var lfe=sfe;const cfe=Vt(lfe);function ufe(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var dfe=ufe,ffe=f5,pfe=zS,hfe=vc,mfe=dfe,vfe=lr;function gfe(e,t,n){var r=vfe(e)?ffe:mfe,o=arguments.length<3;return r(e,hfe(t),n,o,pfe)}var yfe=gfe;const TC=Vt(yfe);var bfe=gd;function xfe(e,t){return bfe(t,function(n){return[n,e[n]]})}var wfe=xfe;function Cfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var $fe=Cfe,Sfe=wfe,_fe=hc,Efe=H3,Pfe=$fe,Tfe="[object Map]",kfe="[object Set]";function Rfe(e){return function(t){var n=_fe(t);return n==Tfe?Efe(t):n==kfe?Pfe(t):Sfe(t,e(t))}}var Ofe=Rfe,Dfe=Ofe,Mfe=ki,Ife=Dfe(Mfe),Afe=Ife;const Nfe=Vt(Afe);var jfe=cl,Lfe=lr,Ffe=ea,zfe="[object String]";function Vfe(e){return typeof e=="string"||!Lfe(e)&&Ffe(e)&&jfe(e)==zfe}var Bfe=Vfe,Ufe=gd;function Wfe(e,t){return Ufe(t,function(n){return e[n]})}var Hfe=Wfe,Gfe=Hfe,qfe=ki;function Yfe(e){return e==null?[]:Gfe(e,qfe(e))}var Kfe=Yfe,Zfe=dN,Jfe=us,Xfe=Bfe,Qfe=dh,epe=Kfe,tpe=Math.max;function npe(e,t,n,r){e=Jfe(e)?e:epe(e),n=n&&!r?Qfe(n):0;var o=e.length;return n<0&&(n=tpe(o+n,0)),Xfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Zfe(e,t,n)>-1}var rpe=npe;const EN=Vt(rpe);var ope=vc,ape=us,ipe=ki;function spe(e){return function(t,n,r){var o=Object(t);if(!ape(t)){var a=ope(n);t=ipe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var lpe=spe,cpe=uN,upe=vc,dpe=dh,fpe=Math.max;function ppe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:dpe(n);return o<0&&(o=fpe(r+o,0)),cpe(e,upe(t),o)}var hpe=ppe,mpe=lpe,vpe=hpe,gpe=mpe(vpe),ype=gpe;const VS=Vt(ype);var bpe=Math.ceil,xpe=Math.max;function wpe(e,t,n,r){for(var o=-1,a=xpe(bpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var Cpe=wpe,$pe=Cpe,Spe=Y5,Tx=bN;function _pe(e){return function(t,n,r){return r&&typeof r!="number"&&Spe(t,n,r)&&(n=r=void 0),t=Tx(t),n===void 0?(n=t,t=0):n=Tx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(RC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Mp,n=RC;var r=Mp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=RC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,J=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${J};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,J){super(D,B,J),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let J=B.length;for(;J--;){const re=B[J];re.optimizeNames(D,N)||(V(D,re.names),B.splice(J,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,J){super(),this.varKind=D,this.name=N,this.from=B,this.to=J}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:J,to:re}=this;return`for(${N} ${B}=${J}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,J){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=J}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,J;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(J=this.finally)===null||J===void 0||J.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class O extends b{render(D){return"finally"+super.render(D)}}O.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,J){const re=this._scope.toName(N);return B!==void 0&&J&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,J]of D)N.length>1&&N.push(","),N.push(B),(B!==J||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,J));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,J,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>J(ce))}forOf(D,N,B,J=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",J,re,N),()=>B(re))}forIn(D,N,B,J=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",J,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const J=new k;if(this._blockNode(J),this.code(D),N){const re=this.name("e");this._currNode=J.catch=new I(re),N(re)}return B&&(this._currNode=J.finally=new O,this.code(B)),this._endBlockNode(I,O)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,J){return this._blockNode(new S(D,N,B)),J&&this.code(J).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!J(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function J(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const Z=j(e.operators.OR);function X(...q){return q.reduce(Z)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Zt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Zt,n=Mp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const O=I.RULES.keywords;for(const F in E)O[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,O){if(!O){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(O,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(O,F,U):E(O,F,U),U):F instanceof t.Name?(E(O,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(O,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});const Ur=Zt,Fpe={data:new Ur.Name("data"),valCxt:new Ur.Name("valCxt"),instancePath:new Ur.Name("instancePath"),parentData:new Ur.Name("parentData"),parentDataProperty:new Ur.Name("parentDataProperty"),rootData:new Ur.Name("rootData"),dynamicAnchors:new Ur.Name("dynamicAnchors"),vErrors:new Ur.Name("vErrors"),errors:new Ur.Name("errors"),this:new Ur.Name("this"),self:new Ur.Name("self"),scope:new Ur.Name("scope"),json:new Ur.Name("json"),jsonPos:new Ur.Name("jsonPos"),jsonLen:new Ur.Name("jsonLen"),jsonPart:new Ur.Name("jsonPart")};Ri.default=Fpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Zt,n=dn,r=Ri;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:O,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${O}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(fh);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const zpe=fh,Vpe=Zt,Bpe=Ri,Upe={message:"boolean schema is false"};function Wpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?TN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Bpe.default.data):(t.assign((0,Vpe._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Wpe;function Hpe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),TN(e)):n.var(t,!0)}qu.boolOrEmptySchema=Hpe;function TN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,zpe.reportError)(o,Upe,void 0,t)}var ph={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Gpe=["string","number","integer","boolean","null","object","array"],qpe=new Set(Gpe);function Ype(e){return typeof e=="string"&&qpe.has(e)}tc.isJSONType=Ype;function Kpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Kpe;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.shouldUseRule=Qi.shouldUseGroup=Qi.schemaHasRulesForType=void 0;function Zpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&kN(e,r)}Qi.schemaHasRulesForType=Zpe;function kN(e,t){return t.rules.some(n=>RN(e,n))}Qi.shouldUseGroup=kN;function RN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Qi.shouldUseRule=RN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Qi,r=fh,o=Zt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const O=v(C,S,E.strictNumbers,i.Wrong);_.if(O,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),O=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(O,E))),S.if((0,o._)`${O} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${O} !== undefined`,()=>{S.assign(E,O),m(w,O)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(O,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(O,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null + || (${I} == "string" && ${E} && ${E} == +${E})`).assign(O,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null + || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(O,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(O,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(O,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(O,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" + || ${I} === "boolean" || ${E} === null`).assign(O,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(O=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,O,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(ph);var Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});Hy.assignDefaults=void 0;const Gc=Zt,Jpe=dn;function Xpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)BO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>BO(e,a,o.default))}Hy.assignDefaults=Xpe;function BO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,Jpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var yi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Zt,BS=dn,ks=Ri,Qpe=dn;function ehe(e,t){const{gen:n,data:r,it:o}=e;n.if(WS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=ehe;function the({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(WS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=the;function nhe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=nhe;function ON(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=ON;function US(e,t,n){return(0,jn._)`${ON(e)}.call(${t}, ${n})`}Qt.isOwnProperty=US;function rhe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${US(e,t,n)}`:o}Qt.propertyInData=rhe;function WS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(US(e,t,n))):o}Qt.noPropertyInData=WS;function DN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=DN;function ohe(e,t){return DN(t).filter(n=>!(0,BS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=ohe;function ahe({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[ks.default.instancePath,(0,jn.strConcat)(ks.default.instancePath,a)],[ks.default.parentData,i.parentData],[ks.default.parentDataProperty,i.parentDataProperty],[ks.default.rootData,ks.default.rootData]];i.opts.dynamicRef&&f.push([ks.default.dynamicAnchors,ks.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=ahe;const ihe=(0,jn._)`new RegExp`;function she({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?ihe:(0,Qpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=she;function lhe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:BS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=lhe;function che(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,BS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=che;Object.defineProperty(yi,"__esModule",{value:!0});yi.validateKeywordUsage=yi.validSchemaType=yi.funcKeywordCode=yi.macroKeywordCode=void 0;const oo=Zt,jl=Ri,uhe=Qt,dhe=fh;function fhe(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=MN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:oo.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}yi.macroKeywordCode=fhe;function phe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;mhe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=MN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&UO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&UO(e),x(()=>hhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,oo._)`await `),y=>r.assign(f,!1).if((0,oo._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,oo._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,oo._)`${u}.errors`;return r.assign(g,null),v(oo.nil),g}function v(g=t.async?(0,oo._)`await `:oo.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,oo._)`${g}${(0,uhe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,oo.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}yi.funcKeywordCode=phe;function UO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,oo._)`${r.parentData}[${r.parentDataProperty}]`))}function hhe(e,t){const{gen:n}=e;n.if((0,oo._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,oo._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,oo._)`${jl.default.vErrors}.length`),(0,dhe.extendErrors)(e)},()=>e.error())}function mhe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function MN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,oo.stringify)(n)})}function vhe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}yi.validSchemaType=vhe;function ghe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}yi.validateKeywordUsage=ghe;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.extendSubschemaMode=el.extendSubschemaData=el.getSubschema=void 0;const mi=Zt,IN=dn;function yhe(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}${(0,mi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,IN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}el.getSubschema=yhe;function bhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,mi._)`${t.data}${(0,mi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,mi.str)`${c}${(0,IN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof mi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}el.extendSubschemaData=bhe;function xhe(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}el.extendSubschemaMode=xhe;var Nr={},AN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},NN={exports:{}},Bs=NN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};zv(t,r,o,e,"",e)};Bs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Bs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function zv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Bs.arrayKeywords)for(var p=0;pt+=jN(r)),t===1/0))return 1/0}return t}function LN(e,t="",n){n!==!1&&(t=Ou(t));const r=e.parse(t);return FN(e,r)}Nr.getFullPath=LN;function FN(e,t){return e.serialize(t).split("#")[0]+"#"}Nr._getFullPath=FN;const khe=/#\/?$/;function Ou(e){return e?e.replace(khe,""):""}Nr.normalizeId=Ou;function Rhe(e,t,n){return n=Ou(n),e.resolve(t,n)}Nr.resolveUrl=Rhe;const Ohe=/^[a-z_][-a-z0-9._]*$/i;function Dhe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ou(e[n]||t),a={"":o},i=LN(r,o,!1),s={},l=new Set;return _he(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ou(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ou(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!Ohe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!She(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Nr.getSchemaRefs=Dhe;Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getData=Ya.KeywordCxt=Ya.validateFunctionCode=void 0;const zN=qu,WO=ph,HS=Qi,jg=ph,Mhe=Hy,qf=yi,kx=el,St=Zt,Lt=Ri,Ihe=Nr,es=dn,pf=fh;function Ahe(e){if(UN(e)&&(WN(e),BN(e))){Lhe(e);return}VN(e,()=>(0,zN.topBoolOrEmptySchema)(e))}Ya.validateFunctionCode=Ahe;function VN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${HO(n,o)}`),jhe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Nhe(o)}`,r.$async,()=>e.code(HO(n,o)).code(a))}function Nhe(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function jhe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Lhe(e){const{schema:t,opts:n,gen:r}=e;VN(e,()=>{n.$comment&&t.$comment&&GN(e),Uhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Fhe(e),HN(e),Ghe(e)})}function Fhe(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function HO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function zhe(e,t){if(UN(e)&&(WN(e),BN(e))){Vhe(e,t);return}(0,zN.boolOrEmptySchema)(e,t)}function BN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function UN(e){return typeof e.schema!="boolean"}function Vhe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&GN(e),Whe(e),Hhe(e);const a=r.const("_errs",Lt.default.errors);HN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function WN(e){(0,es.checkUnknownRules)(e),Bhe(e)}function HN(e,t){if(e.opts.jtd)return GO(e,[],!1,t);const n=(0,WO.getSchemaTypes)(e.schema),r=(0,WO.coerceAndCheckDataType)(e,n);GO(e,n,!r,t)}function Bhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,es.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Uhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,es.checkStrictMode)(e,"default is ignored in the schema root")}function Whe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Ihe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Hhe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function GN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ghe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&qhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function qhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function GO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,es.schemaHasRulesButRef)(a,u))){o.block(()=>KN(e,"$ref",u.all.$ref.definition));return}l.jtd||Yhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,HS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,jg.checkDataType)(p.type,i,l.strictNumbers)),qO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,jg.reportTypeError)(e)),o.endIf()):qO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function qO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Mhe.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,HS.shouldUseRule)(r,a)&&KN(e,a.keyword,a.definition,t.type)})}function Yhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Khe(e,t),e.opts.allowUnionTypes||Zhe(e,t),Jhe(e,e.dataTypes))}function Khe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{qN(e.dataTypes,n)||GS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Qhe(e,t)}}function Zhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&GS(e,"use allowUnionTypes to allow union type keyword")}function Jhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,HS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Xhe(t,i))&&GS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Xhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function qN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Qhe(e,t){const n=[];for(const r of e.dataTypes)qN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function GS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,es.checkStrictMode)(e,t,e.opts.strictTypes)}class YN{constructor(t,n,r){if((0,qf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,es.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",ZN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,jg.checkDataTypes)(l,n,a.opts.strictNumbers,jg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,kx.getSubschema)(this.it,t);(0,kx.extendSubschemaData)(r,this.it,t),(0,kx.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return zhe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=es.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=es.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ya.KeywordCxt=YN;function KN(e,t,n,r){const o=new YN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,qf.funcKeywordCode)(o,n):"macro"in n?(0,qf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,qf.funcKeywordCode)(o,n)}const eme=/^\/(?:[^~]|~0|~1)*$/,tme=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!eme.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=tme.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,es.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ya.getData=ZN;var hh={};Object.defineProperty(hh,"__esModule",{value:!0});class nme extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}hh.default=nme;var mh={};Object.defineProperty(mh,"__esModule",{value:!0});const Rx=Nr;class rme extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Rx.resolveUrl)(t,n,r),this.missingSchema=(0,Rx.normalizeId)((0,Rx.getFullPath)(t,this.missingRef))}}mh.default=rme;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Zt,ome=hh,Pl=Ri,Fa=Nr,YO=dn,ame=Ya;class Gy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Gy;function qS(e){const t=JN.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:ome.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,ame.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=qS;function ime(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=cme.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Gy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=sme.call(this,a)}bo.resolveRef=ime;function sme(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:qS.call(this,e)}function JN(e){for(const t of this._compilations)if(lme(t,e))return t}bo.getCompilingSchema=JN;function lme(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function cme(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||qy.call(this,e,t)}function qy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Ox.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=qy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Ox.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||qS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Gy({schema:s,schemaId:l,root:e,baseId:o})}return Ox.call(this,n,i)}}bo.resolveSchema=qy;const ume=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ox(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,YO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!ume.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,YO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=qy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Gy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const dme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",fme="Meta-schema for $data reference (JSON AnySchema extension proposal)",pme="object",hme=["$data"],mme={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},vme=!1,gme={$id:dme,description:fme,type:pme,required:hme,properties:mme,additionalProperties:vme};var YS={},DC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(O[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=Z(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(fo){Ie=!0,rt=fo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&tiU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ni=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Xr;!(Io=(Xr=gl.next()).done);Io=!0){var Nh=Xr.value;if(Nhb&&z("overflow"),Nh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Ii=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Mi=Wt.slice(0,Un.index),ti=Wt.slice(Un.index+Un.length);Mo=Mi.join(":")+"::"+ti.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=J[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=J[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,J,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(J=X.strictNumbers)!==null&&J!==void 0?J:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=O.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return J.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function J({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const J of N)B=B[J];for(const J in q){const re=q[J];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[J];ce&&xe&&(B[J]=Z(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:J}=this.opts;if(typeof j=="object")B=j[J];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:J,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function O(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const J={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,J,j.before):B.rules.push(J),N.all[X]=J,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=Z(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(X){return{anyOf:[X,W]}}})(PN);var KS={},ZS={},JS={};Object.defineProperty(JS,"__esModule",{value:!0});const bme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};JS.default=bme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const xme=mh,KO=Qt,go=Zt,qc=Ri,ZO=bo,nv=dn,wme={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=ZO.resolveRef.call(l,c,o,n);if(u===void 0)throw new xme.default(r.opts.uriResolver,o,n);if(u instanceof ZO.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Vv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Vv(e,(0,go._)`${b}.validate`,c,c.$async)}function p(b){const v=QN(e,b);Vv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,go.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:go.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function QN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,go._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=QN;function Vv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:go.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,go._)`await ${(0,KO.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,go._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,KO.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,go._)`${b}.errors`;o.assign(qc.default.vErrors,(0,go._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,go._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=nv.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,go._)`${b}.evaluated.props`);a.props=nv.mergeEvaluated.props(o,g,a.props,go.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=nv.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,go._)`${b}.evaluated.items`);a.items=nv.mergeEvaluated.items(o,g,a.items,go.Name)}}}nc.callRef=Vv;nc.default=wme;Object.defineProperty(ZS,"__esModule",{value:!0});const Cme=JS,$me=nc,Sme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Cme.default,$me.default];ZS.default=Sme;var XS={},QS={};Object.defineProperty(QS,"__esModule",{value:!0});const Lg=Zt,Rs=Lg.operators,Fg={maximum:{okStr:"<=",ok:Rs.LTE,fail:Rs.GT},minimum:{okStr:">=",ok:Rs.GTE,fail:Rs.LT},exclusiveMaximum:{okStr:"<",ok:Rs.LT,fail:Rs.GTE},exclusiveMinimum:{okStr:">",ok:Rs.GT,fail:Rs.LTE}},_me={message:({keyword:e,schemaCode:t})=>(0,Lg.str)`must be ${Fg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Lg._)`{comparison: ${Fg[e].okStr}, limit: ${t}}`},Eme={keyword:Object.keys(Fg),type:"number",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Lg._)`${n} ${Fg[t].fail} ${r} || isNaN(${n})`)}};QS.default=Eme;var e_={};Object.defineProperty(e_,"__esModule",{value:!0});const Yf=Zt,Pme={message:({schemaCode:e})=>(0,Yf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Yf._)`{multipleOf: ${e}}`},Tme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Pme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Yf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Yf._)`${i} !== parseInt(${i})`;e.fail$data((0,Yf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};e_.default=Tme;var t_={},n_={};Object.defineProperty(n_,"__esModule",{value:!0});function e6(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},Dme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,kme.useFunc)(e.gen,Rme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};t_.default=Dme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const Mme=Qt,zg=Zt,Ime={message:({schemaCode:e})=>(0,zg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,zg._)`{pattern: ${e}}`},Ame={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ime,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,zg._)`(new RegExp(${o}, ${i}))`:(0,Mme.usePattern)(e,r);e.fail$data((0,zg._)`!${s}.test(${t})`)}};r_.default=Ame;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Kf=Zt,Nme={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Kf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Kf._)`{limit: ${e}}`},jme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Nme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Kf.operators.GT:Kf.operators.LT;e.fail$data((0,Kf._)`Object.keys(${n}).length ${o} ${r}`)}};o_.default=jme;var a_={};Object.defineProperty(a_,"__esModule",{value:!0});const hf=Qt,Zf=Zt,Lme=dn,Fme={message:({params:{missingProperty:e}})=>(0,Zf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Zf._)`{missingProperty: ${e}}`},zme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Fme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Lme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Zf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Zf.not)(b),()=>{e.error(),t.break()})},Zf.nil)}}};a_.default=zme;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const Jf=Zt,Vme={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Bme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};i_.default=Bme;var s_={},vh={};Object.defineProperty(vh,"__esModule",{value:!0});const t6=AN;t6.code='require("ajv/dist/runtime/equal").default';vh.default=t6;Object.defineProperty(s_,"__esModule",{value:!0});const Dx=ph,Mr=Zt,Ume=dn,Wme=vh,Hme={message:({params:{i:e,j:t}})=>(0,Mr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Mr._)`{i: ${e}, j: ${t}}`},Gme={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Hme,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Dx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Mr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Mr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Mr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Dx.checkDataTypes)(c,x,s.opts.strictNumbers,Dx.DataType.Wrong),y=t.const("indices",(0,Mr._)`{}`);t.for((0,Mr._)`;${b}--;`,()=>{t.let(x,(0,Mr._)`${n}[${b}]`),t.if(g,(0,Mr._)`continue`),c.length>1&&t.if((0,Mr._)`typeof ${x} == "string"`,(0,Mr._)`${x} += "_"`),t.if((0,Mr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Mr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Mr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Ume.useFunc)(t,Wme.default),g=t.name("outer");t.label(g).for((0,Mr._)`;${b}--;`,()=>t.for((0,Mr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Mr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};s_.default=Gme;var l_={};Object.defineProperty(l_,"__esModule",{value:!0});const MC=Zt,qme=dn,Yme=vh,Kme={message:"must be equal to constant",params:({schemaCode:e})=>(0,MC._)`{allowedValue: ${e}}`},Zme={keyword:"const",$data:!0,error:Kme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,MC._)`!${(0,qme.useFunc)(t,Yme.default)}(${n}, ${o})`):e.fail((0,MC._)`${a} !== ${n}`)}};l_.default=Zme;var c_={};Object.defineProperty(c_,"__esModule",{value:!0});const Of=Zt,Jme=dn,Xme=vh,Qme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Of._)`{allowedValues: ${e}}`},eve={keyword:"enum",schemaType:"array",$data:!0,error:Qme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Jme.useFunc)(t,Xme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Of.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Of._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Of._)`${c()}(${n}, ${m}[${b}])`:(0,Of._)`${n} === ${v}`}}};c_.default=eve;Object.defineProperty(XS,"__esModule",{value:!0});const tve=QS,nve=e_,rve=t_,ove=r_,ave=o_,ive=a_,sve=i_,lve=s_,cve=l_,uve=c_,dve=[tve.default,nve.default,rve.default,ove.default,ave.default,ive.default,sve.default,lve.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cve.default,uve.default];XS.default=dve;var u_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Zt,IC=dn,fve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},pve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:fve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,IC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}n6(e,r)}};function n6(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,IC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:IC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=n6;Cd.default=pve;var d_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const JO=Zt,Bv=dn,hve=Qt,mve={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return r6(e,"additionalItems",t);n.items=!0,!(0,Bv.alwaysValidSchema)(n,t)&&e.ok((0,hve.validateArray)(e))}};function r6(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Bv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,JO._)`${a}.length`);n.forEach((f,p)=>{(0,Bv.alwaysValidSchema)(s,f)||(r.if((0,JO._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Bv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=r6;$d.default=mve;Object.defineProperty(d_,"__esModule",{value:!0});const vve=$d,gve={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,vve.validateTuple)(e,"items")};d_.default=gve;var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const XO=Zt,yve=dn,bve=Qt,xve=Cd,wve={message:({params:{len:e}})=>(0,XO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,XO._)`{limit: ${e}}`},Cve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:wve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,yve.alwaysValidSchema)(r,t)&&(o?(0,xve.validateAdditionalItems)(e,o):e.ok((0,bve.validateArray)(e)))}};f_.default=Cve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const fa=Zt,rv=dn,$ve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},Sve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$ve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,rv.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,rv.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,rv.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:rv.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};p_.default=Sve;var o6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Zt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, missingProperty: ${f}, depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(Q5);var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const ej=Jt,hve=dn,mve={message:"property name must be valid",params:({params:e})=>(0,ej._)`{propertyName: ${e.propertyName}}`},vve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,hve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,ej.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};f_.default=vve;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});const tv=Qt,Ia=Jt,gve=Ti,nv=dn,yve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},bve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,nv.alwaysValidSchema)(i,n))return;const c=(0,tv.allSchemaProperties)(r.properties),u=(0,tv.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${gve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,nv.schemaRefOrVal)(i,r.properties,"properties");g=(0,tv.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,tv.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,nv.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:nv.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Uy.default=bve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const xve=Ga,JR=Qt,kx=dn,ZR=Uy,wve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&ZR.default.code(new xve.KeywordCxt(a,ZR.default,"additionalProperties"));const i=(0,JR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=kx.mergeEvaluated.props(t,(0,kx.toHash)(i),a.props));const s=i.filter(f=>!(0,kx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,JR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};p_.default=wve;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const XR=Qt,rv=Jt,QR=dn,eD=dn,Cve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,XR.allSchemaProperties)(n),l=s.filter(v=>(0,QR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof rv.Name)&&(a.props=(0,eD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,QR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,rv._)`${(0,XR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:eD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,rv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,rv.not)(u),()=>t.break())})})}}};h_.default=Cve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const $ve=dn,Sve={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,$ve.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};m_.default=Sve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const _ve=Qt,Eve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_ve.validateUnion,error:{message:"must match a schema in anyOf"}};v_.default=Eve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const zv=Jt,Pve=dn,Tve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,zv._)`{passingSchemas: ${e.passing}}`},kve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Tve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Pve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,zv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,zv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,zv.Name)})})}}};g_.default=kve;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Ove=dn,Rve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ove.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};y_.default=Rve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Lg=Jt,tj=dn,Dve={message:({params:e})=>(0,Lg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lg._)`{failingKeyword: ${e.ifClause}}`},Mve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,tj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=tD(r,"then"),a=tD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Lg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Lg._)`${u}`):e.setParams({ifClause:u})}}}};function tD(e,t){const n=e.schema[t];return n!==void 0&&!(0,tj.alwaysValidSchema)(e,n)}b_.default=Mve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Ive.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};x_.default=Ave;Object.defineProperty(l_,"__esModule",{value:!0});const Nve=Cd,jve=c_,Lve=$d,Fve=u_,zve=d_,Vve=Q5,Bve=f_,Uve=Uy,Wve=p_,Hve=h_,Gve=m_,qve=v_,Yve=g_,Kve=y_,Jve=b_,Zve=x_;function Xve(e=!1){const t=[Gve.default,qve.default,Yve.default,Kve.default,Jve.default,Zve.default,Bve.default,Uve.default,Vve.default,Wve.default,Hve.default];return e?t.push(jve.default,Fve.default):t.push(Nve.default,Lve.default),t.push(zve.default),t}l_.default=Xve;var w_={},C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ir=Jt,Qve={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},ege={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Qve,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};C_.default=ege;Object.defineProperty(w_,"__esModule",{value:!0});const tge=C_,nge=[tge.default];w_.default=nge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(qS,"__esModule",{value:!0});const rge=YS,oge=JS,age=l_,ige=w_,nD=Yu,sge=[rge.default,oge.default,(0,age.default)(),ige.default,nD.metadataVocabulary,nD.contentVocabulary];qS.default=sge;var $_={},nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(nj);Object.defineProperty($_,"__esModule",{value:!0});const au=Jt,RC=nj,rD=bo,lge=dn,cge={message:({params:{discrError:e,tagName:t}})=>e===RC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},uge={keyword:"discriminator",type:"object",schemaType:"object",error:cge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:RC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:RC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ga;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=dh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=fh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(_C,_C.exports);var rj=_C.exports;const yge=Vt(rj);var DC={exports:{}},oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(oj);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rj,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(aj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=oj,r=aj,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(DC,DC.exports);var bge=DC.exports;const xge=Vt(bge),Vv="additionalProperties",Bv="required",wge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Cge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Vv)},a=this.findOption(r)(Bv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=wge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const ij=(e,t={})=>{const n=o=>a=>{switch(a){case Vv:return Object.prototype.hasOwnProperty.call(t,Vv)?t[Vv]:!0;case Bv:return Object.prototype.hasOwnProperty.call(t,Bv)?t[Bv](o):Object.keys(o);default:return}};return new Cge(n).schemaObject(e)};var $i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})($i||($i={}));const sj=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",$ge=e=>e.type==="Group",lj=e=>e.elements!==void 0,Sge=e=>!!e&&typeof e=="object",_ge=e=>Sge(e)&&typeof e.scope=="string",Ege=e=>!!e&&typeof e=="object",cj=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},uj=(e,t)=>{cj(e,t,-1)},dj=(e,t)=>{cj(e,t,1)},Pge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},oD=(e={})=>tn({},Pge,e),aD=(e=oD(),t)=>{switch(t.type){case K_:return oD(t.config);default:return e}},Bi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Tge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},MC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),iD=(e,t)=>{if(t){if(kge(t.options))return t.options.ajv;if(t.options!==void 0&&Fq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?MC(e.ajv,t.schema):e.ajv:Aye()},kge=e=>e?e.ajv!==void 0:!1,sD=(e,t)=>t&&Oge(t.options)?t.options.validationMode:e.validationMode,Oge=e=>e?e.validationMode!==void 0:!1,Rge=e=>e?e.additionalErrors!==void 0:!1,lD=(e,t)=>t&&Rge(t.options)?t.options.additionalErrors:e.additionalErrors,cD=(e=Tge,t)=>{switch(t.type){case W_:{const n=iD(e,t),r=sD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data),i=lD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case H_:{const n=iD(e,t),r=sD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Bi(o,t.data)):e.data!==t.data&&(a=Bi(o,t.data));const i=lD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:b5(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case G_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Bi(r,e.data);return{...e,validator:r,errors:o}}case J_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?MC(e.ajv,t.schema).compile(t.schema):e.validator,o=Bi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Z_:return{...e,uischema:t.uischema};case q_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(aR(e.data)),r=Bi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(aR(n)),o=ude(t.path,r,e.data===void 0?{}:e.data),a=Bi(e.validator,o);return{...e,data:o,errors:a}}}case Y_:return{...e,errors:t.errors};case X_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Bi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=MC(e.ajv,e.schema).compile(e.schema),r=Bi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Dge=e=>fr(e,"data"),Mge=e=>fr(e,"schema"),Ige=e=>fr(e,"uischema"),Age=e=>fr(e,"ajv"),Nge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Fg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Nge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Gy(t),t},S_=(e,t,n)=>r=>{const o=Mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Fg(a));return Mg(r,a=>{if(Lge.indexOf(a.keyword)!==-1&&!Bg(a.parentSchema))return!1;const i=Fg(a);let s=n(i);const l=a.parentSchema;return s&&!jge(l)&&!Bg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&b5(l,t)),s})},jge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Lge=["additionalProperties","allOf","anyOf","oneOf"],fj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return S_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Fge=(e,t)=>fj(e,t,n=>n===e),zge=(e,t)=>fj(e,t,n=>n.startsWith(e+".")),__=(e,t)=>sj(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Vge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Si=(e,t,n)=>__(e,t)??Vge(n),zg=(e,t,n,r)=>`${Si(e,t,n)}.${r}`,Bge=(e,t)=>`${e}.${t}`,E_=(e,t)=>t,P_=(e,t,n)=>{var s;const r=zg(e.parentSchema,n,Fg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},T_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=zg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return F_(e.map(i=>t(i,n,o)))},Wy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!sj(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=__(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},pj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Bge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Wr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Wr||(Wr={}));const hj=[{key:Wr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Wr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Wr.removeTooltip,default:()=>"Delete"},{key:Wr.removeAriaLabel,default:()=>"Delete button"},{key:Wr.upAriaLabel,default:()=>"Move item up"},{key:Wr.up,default:()=>"Up"},{key:Wr.down,default:()=>"Down"},{key:Wr.downAriaLabel,default:()=>"Move item down"},{key:Wr.noDataMessage,default:()=>"No data"},{key:Wr.noSelection,default:()=>"No selection"},{key:Wr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Wr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Wr.deleteDialogAccept,default:()=>"Yes"},{key:Wr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:E_,translateError:P_},uD=(e=Cu,t)=>{switch(t.type){case tE:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case eE:return{...e,translate:t.translator??E_,translateError:t.errorTranslator??P_};case Q_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Uge=e=>e===void 0?E_:e.translate,Wge=e=>e===void 0?P_:e.translateError,Ku=-1,Ya=e=>!Mt(e)&&e.scope!==void 0,Yr=e=>(t,n,r)=>{if(Mt(t)||!Ya(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},k_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ya(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ka=e=>Yr(t=>!Mt(t)&&ol(t,e)),Hy=e=>Yr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,us=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Hge=e=>t=>Mt(e)||!Ya(t)?!1:Xde(t.scope,e),Gge=e=>t=>{if(Mt(e)||!Ya(t))return!1;const n=t.scope;return!Mt(n)&&Mde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,qge=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},mj=$n(_n("Control"),Ka("boolean")),Yge=$n(_n("Control"),Ka("object")),vj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),gj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),yj=$n(_n("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),O_=$n(_n("Control"),yc(Yr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),bj=$n(_n("Control"),Yr(e=>Bg(e))),xj=$n(_n("Control"),Ka("integer")),wj=$n(_n("Control"),Ka("number")),Cj=$n(_n("Control"),Ka("string")),$j=$n(_n("Control"),us("multi",!0)),Sj=$n(_n("Control"),yc(Hy("date"),us("format","date"))),_j=$n(_n("Control"),yc(Hy("time"),us("format","time"))),Ej=$n(_n("Control"),yc(Hy("date-time"),us("format","date-time"))),Pj=$n(Yr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),R_=$n(_n("Control"),Pj),Df=(e,t,n)=>{if(VN(e))return SC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?SC(_fe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},D_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Bg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},Kge=R_,Tj=$n(_n("Control"),Yr((e,t)=>Ju(e).length!==0&&!Array.isArray($a(e,"items",t))),k_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Ju(n);return r.length===1&&w5(["integer","number","boolean","string"],r[0])})),kj=$n(_n("Control"),yc(Ka("number"),Ka("integer")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),us("slider",!0)),Jge=$n(_n("Control"),Ka("integer"),us("format",!0)),Oj=e=>e.type==="Categorization",Rj=e=>e.type==="Category",M_=e=>Mt(e.elements)?!1:e.elements.map(t=>Oj(t)?M_(t):Rj(t)).reduce((t,n)=>t&&n,!0),Zge=e=>M_(e),Xge=e=>(t,n,r)=>!e(t,n,r);var Qge=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Ya,schemaMatches:Yr,schemaSubPathMatches:k_,schemaTypeIs:Ka,formatIs:Hy,uiTypeIs:_n,optionIs:us,scopeEndsWith:Hge,scopeEndIs:Gge,and:$n,or:yc,rankWith:vn,withIncreasedRank:qge,isBooleanControl:mj,isObjectControl:Yge,isAllOfControl:vj,isAnyOfControl:gj,isOneOfControl:yj,isEnumControl:O_,isOneOfEnumControl:bj,isIntegerControl:xj,isNumberControl:wj,isStringControl:Cj,isMultiLineControl:$j,isDateControl:Sj,isTimeControl:_j,isDateTimeControl:Ej,isObjectArray:Pj,isObjectArrayControl:R_,isObjectArrayWithNesting:D_,isArrayObjectControl:Kge,isPrimitiveArrayControl:Tj,isRangeControl:kj,isNumberFormatControl:Jge,isCategorization:Oj,isCategory:Rj,hasCategory:M_,categorizationHasCategory:Zge,not:Xge});const Dj=e=>(t,n,r)=>{const o=Ay(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},hh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=Dj(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},Mj=(e,t)=>n=>Fge(e,t)(n.jsonforms.core),Ij=(e,t)=>n=>zge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>Uge(fr(e,"jsonforms.i18n")),I_=()=>e=>Wge(fr(e,"jsonforms.i18n")),mh=e=>Dge(fr(e,"jsonforms.core")),Vg=e=>Mge(fr(e,"jsonforms.core")),eye=e=>Ige(fr(e,"jsonforms.core")),Sd=e=>Age(fr(e,"jsonforms.core")),A_=e=>fr(e,"jsonforms.renderers"),N_=e=>fr(e,"jsonforms.cells"),tye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},Aj=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Gy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},Nj=(e,t)=>{if(!_ge(e))return t??"";const n=Aj(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Gy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),IC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),nye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Gy);return Uv(e,r,n)},Uv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(nye(r))return Uv(e,o,n);const a=fr(e,r),i=Uv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Uv(c,[r,...o],n),s)break;return s}},rye=e=>e.type==="OR",oye=e=>e.type==="AND",aye=e=>e.type==="LEAF",iye=e=>Ppe(e,"schema"),dD=(e,t)=>Nj(e,t),AC=(e,t,n,r)=>{if(oye(t))return t.conditions.reduce((o,a)=>o&&AC(e,a,n,r),!0);if(rye(t))return t.conditions.reduce((o,a)=>o||AC(e,a,n,r),!1);if(aye(t))return IC(e,dD(t,n))===t.expectedValue;if(iye(t)){const o=IC(e,dD(t,n));return r.validate(t.schema,o)}else return!0},jj=(e,t,n,r)=>{const o=e.rule.condition;return AC(t,o,n,r)},sye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.HIDE:return!o;case $i.SHOW:return o;default:return!0}},lye=(e,t,n=void 0,r)=>{const o=jj(e,t,n,r);switch(e.rule.effect){case $i.DISABLE:return!o;case $i.ENABLE:return o;default:return!0}},j_=e=>!!(e.rule&&(e.rule.effect===$i.SHOW||e.rule.effect===$i.HIDE)),cye=e=>!!(e.rule&&(e.rule.effect===$i.ENABLE||e.rule.effect===$i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?sye(e,t,n,r):!0,uye=(e,t,n=void 0,r)=>e.rule?lye(e,t,n,r):!0,L_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&cye(n)?uye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},Lj=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),F_=e=>e==null?"":e.join(` -`),ol=(e,t)=>w5(Ju(e),t),Ju=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(VN(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=FS(e.allOf,n=>Ju(n).length!==0);if(t)return Ju(t)}return[]},Po={schema:$a,data:IC},dye=e=>Aj(e.scope).join("."),sr={compose:bc,fromScoped:dye},Ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Gy(n.substr(n.lastIndexOf("/")+1));return Ny(r)}return""},Fj=(e,t)=>{const n=e.label;if(typeof n=="boolean")return ov(Ox(e,t),n);if(typeof n=="string")return ov(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return ov(r,o)}return ov(Ox(e,t),!0)},ov=(e,t)=>({text:e,show:t}),fye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},qy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Yy=(e,t)=>e&&!t,is=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Dp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},z_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=mh(e),o=Nj(n,t.path),a=t.visible===void 0||j_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Vg(e),c=i.scope!==void 0&&fye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=Mj(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=Fj(n,u),v=b.show?b.text:"",x=rc(e),g=L_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=I_()(e),_=Si(y,n,o),S=w(zg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(zg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=T_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},pye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),hye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},mye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},vye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return z_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Dp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Si(n.schema,n.uischema,n.path))}));return{...n,options:o}},gye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?FS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(mh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},V_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},yye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=V_(e,t),l=Po.schema(r,"items",s.rootSchema),c=Ij(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||A_(e),cells:t.cells||N_(e),translations:pj(u,hj,a,i)}},bye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(uj(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(dj(r,n),r)))}}),xye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),zj={visible:!0,enabled:!0,path:"",direction:"column"},wye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":zj.direction,Cye=(e,t)=>{const n=mh(e),{uischema:r}=t,o=t.visible===void 0||j_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=L_(e,t,r,void 0,n,i),l=Ca()(e),c=Ege(r)?Wy(r,l):void 0;return{...zj,renderers:t.renderers||A_(e),cells:t.cells||N_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??wye(r),config:i,label:c}},$ye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Vg(e),rootSchema:Vg(e),uischema:t.uischema||eye(e),path:t.path,enabled:t.enabled,config:rc(e)}),B_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:tye(e)}},Sye=(e,t)=>B_(e,t,"allOf"),_ye=(e,t)=>B_(e,t,"anyOf"),Eye=(e,t)=>B_(e,t,"oneOf"),Pye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=V_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=T_(Ij(n,c)(e),I_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:pj(u,hj,i,s)}},Tye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||j_(n)?_d(t.uischema,mh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=__(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||A_(e),cells:t.cells||N_(e)}},Ky=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=mh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Vg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=L_(e,t,a,r||u,l,f);const m=Ca()(e),b=I_()(e),v=T_(Mj(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},kye=(e,t)=>{const n=Ky(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Oye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Dp(a,Ca()(e),Si(n.schema,n.uischema,n.path))))||n.schema.const&&[Dp(n.schema.const,Ca()(e),Si(n.schema,n.uischema,n.path))];return{...n,options:r}},Rye=(e,t)=>{var o;const n=Ky(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>z_(a,Ca()(e),Si(n.schema,n.uischema,n.path))));return{...n,options:r}},Dye=(e,t,n)=>e.title?e.title:n+"-"+t,Jy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:hh(a,l,r.scope,o,void 0,r,t),label:Dye(i,s,n)}}),U_=new Set,Vj=(e,t)=>t<=1?e:e+t.toString(),Mye=(e,t)=>{const n=Vj(e,t);return!U_.has(n)},Bj=e=>{e===void 0&&(e="undefined");let t=0;for(;!Mye(e,t);)t++;const n=Vj(e,t);return U_.add(n),n},Uj=e=>U_.delete(e),Iye=e=>{if(e.properties)return FS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Bg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Aye=e=>{const t=new yge({allErrors:!0,verbose:!0,strict:!1,...e});return xge(t),t},Wj=e=>({type:e,elements:[]}),Wv=e=>({type:"Control",scope:e}),Nye=(e,t)=>{if(!Mt(e)&&!lj(e)){const n=Wj(t);return n.elements.push(e),n}return e},jye=(e,t)=>{if(!Mt(t)){const n=Ny(t);if($ge(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Lye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),NC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return NC($a(a,e.$ref,a),t,n,r,o,a);if(Lye(e)){const s=Wv(n);return t.push(s),s}const i=Ju(e);if(i.length===0)return null;if(i.length>1){const s=Wv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=Wj(o);if(t.push(s),e.properties&&qZ(e.properties).length>1&&jye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),NC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Wv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Hj=(e,t="VerticalLayout",n="#",r=e)=>Nye(NC(e,[],n,"",t,r),t),ac={jsonSchema:ij,uiSchema:Hj,controlElement:Wv},W_="jsonforms/INIT",H_="jsonforms/UPDATE_CORE",G_="jsonforms/SET_AJV",q_="jsonforms/UPDATE",Y_="jsonforms/UPDATE_ERRORS",Fye="jsonforms/VALIDATE",Gj="jsonforms/ADD_RENDERER",qj="jsonforms/REMOVE_RENDERER",Yj="jsonforms/ADD_CELL",Kj="jsonforms/REMOVE_CELL",K_="jsonforms/SET_CONFIG",Jj="jsonforms/ADD_UI_SCHEMA",Zj="jsonforms/REMOVE_UI_SCHEMA",J_="jsonforms/SET_SCHEMA",Z_="jsonforms/SET_UISCHEMA",X_="jsonforms/SET_VALIDATION_MODE",Q_="jsonforms/SET_LOCALE",eE="jsonforms/SET_TRANSLATOR",tE="jsonforms/UPDATE_I18N",Xj="jsonforms/ADD_DEFAULT_DATA",Qj="jsonforms/REMOVE_DEFAULT_DATA",zye=(e,t=ij(e),n,r)=>({type:W_,data:e,schema:t,uischema:typeof n=="object"?n:Hj(t),options:r}),Vye=(e,t,n,r)=>({type:H_,data:e,schema:t,uischema:n,options:r}),Bye=(e,t)=>({type:Xj,schemaPath:e,data:t}),Uye=e=>({type:Qj,schemaPath:e}),Wye=e=>({type:G_,ajv:e}),Va=(e,t)=>({type:q_,path:e,updater:t}),Hye=e=>({type:Y_,errors:e}),Gye=(e,t)=>({type:Gj,tester:e,renderer:t}),qye=(e,t)=>({type:Yj,tester:e,cell:t}),Yye=(e,t)=>({type:Kj,tester:e,cell:t}),Kye=(e,t)=>({type:qj,tester:e,renderer:t}),Jye=e=>({type:K_,config:e}),Zye=e=>({type:X_,validationMode:e}),Xye=(e,t)=>({type:Jj,tester:e,uischema:t}),Qye=e=>({type:Zj,tester:e}),e0e=e=>({type:Q_,locale:e}),t0e=e=>({type:J_,schema:e}),n0e=(e,t)=>({type:eE,translator:e,errorTranslator:t}),r0e=(e,t,n)=>({type:tE,locale:e,translator:t,errorTranslator:n}),o0e=e=>({type:Z_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:W_,UPDATE_CORE:H_,SET_AJV:G_,UPDATE_DATA:q_,UPDATE_ERRORS:Y_,VALIDATE:Fye,ADD_RENDERER:Gj,REMOVE_RENDERER:qj,ADD_CELL:Yj,REMOVE_CELL:Kj,SET_CONFIG:K_,ADD_UI_SCHEMA:Jj,REMOVE_UI_SCHEMA:Zj,SET_SCHEMA:J_,SET_UISCHEMA:Z_,SET_VALIDATION_MODE:X_,SET_LOCALE:Q_,SET_TRANSLATOR:eE,UPDATE_I18N:tE,ADD_DEFAULT_DATA:Xj,REMOVE_DEFAULT_DATA:Qj,init:zye,updateCore:Vye,registerDefaultData:Bye,unregisterDefaultData:Uye,setAjv:Wye,update:Va,updateErrors:Hye,registerRenderer:Gye,registerCell:qye,unregisterCell:Yye,unregisterRenderer:Kye,setConfig:Jye,setValidationMode:Zye,registerUISchema:Xye,unregisterUISchema:Qye,setLocale:e0e,setSchema:t0e,setTranslator:n0e,updateI18n:r0e,setUISchema:o0e});const Ug={createLabelDescriptionFrom:Fj,convertToValidClassName:Lj};var a0e=lo,i0e=function(){return a0e.Date.now()},s0e=i0e,l0e=ta,Rx=s0e,fD=p5,c0e="Expected a function",u0e=Math.max,d0e=Math.min;function f0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(c0e);t=fD(t)||0,l0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?u0e(fD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?d0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Rx();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Rx())}function _(){var S=Rx(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var p0e=f0e;const e6=Vt(p0e);class t6 extends M.Component{constructor(t){super(t)}}class n6 extends t6{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class r6 extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const h0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},o6=M.createContext({core:h0e,renderers:[]}),m0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},v0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(cD,void 0,()=>cD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(aD,void 0,()=>aD(void 0,Yc.setConfig(t.config)));m0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(uD,void 0,()=>{var _,S,E;return uD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(e6((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(o6.Provider,{value:v},e)},xc=()=>$.useContext(o6),g0e=(e,t)=>Pye({jsonforms:{...e}},t),y0e=(e,t)=>yye({jsonforms:{...e}},t),b0e=(e,t)=>Cye({jsonforms:{...e}},t),x0e=(e,t)=>Ed({jsonforms:{...e}},t),w0e=(e,t)=>{var o;const n=hye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},C0e=(e,t)=>{var o;const n=mye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},$0e=(e,t)=>{var o;const n=vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},S0e=(e,t)=>V_({jsonforms:{...e}},t),_0e=(e,t)=>({...Sye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>pye(e),[e]),E0e=(e,t)=>{const n=_ye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},P0e=(e,t)=>{const n=Eye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},T0e=(e,t)=>$ye({jsonforms:{...e}},t),a6=e=>({...Do(e),...$.useMemo(()=>bye(e),[e])}),k0e=(e,t)=>gye({jsonforms:{...e}},t),O0e=(e,t)=>Ky({jsonforms:{...e}},t),R0e=(e,t)=>{var o;const n=Oye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},D0e=(e,t)=>{var o;const n=Rye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>kye({jsonforms:{...e}},t),I0e=e=>({...Do(e),...$.useMemo(()=>xye(e),[e])}),A0e=(e,t)=>Tye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},N0e=e=>function({ctx:n,props:r}){const o=T0e(n,r);return M.createElement(e,Object.assign({},r,o))},j0e=e=>function({ctx:n,props:r}){const o=x0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},L0e=e=>function({ctx:n,props:r}){const o=b0e(n,r);return M.createElement(e,Object.assign({},r,o))},F0e=e=>function({ctx:n,props:r}){const o=P0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},z0e=e=>function({ctx:n,props:r}){const o=E0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},V0e=e=>function({ctx:n,props:r}){const o=_0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},B0e=e=>function({ctx:n,props:r}){const o=S0e(n,r);return M.createElement(e,Object.assign({},r,o))},U0e=e=>function({ctx:n,props:r}){const o=g0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},W0e=e=>function({ctx:n,props:r}){const o=y0e(n,r),a=a6(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},H0e=e=>function({ctx:n,props:r}){const o=k0e(n,r);return M.createElement(e,Object.assign({},r,o))},G0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},q0e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Y0e=e=>function({ctx:n,props:r}){const o=R0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},K0e=e=>function({ctx:n,props:r}){const o=w0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},J0e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Z0e=e=>function({ctx:n,props:r}){const o=C0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},X0e=e=>function({ctx:n,props:r}){const o=$0e(n,r),a=I0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},i6=(e,t=!0)=>_r(N0e(t?M.memo(e):e)),co=(e,t=!0)=>_r(j0e(t?M.memo(e):e)),ds=(e,t=!0)=>_r(L0e(t?M.memo(e):e)),e1e=(e,t=!0)=>_r(F0e(t?M.memo(e):e)),s6=(e,t=!0)=>_r(z0e(t?M.memo(e):e)),t1e=(e,t=!0)=>_r(V0e(t?M.memo(e):e)),n1e=(e,t=!0)=>_r(B0e(t?M.memo(e):e)),Zy=(e,t=!0)=>_r(U0e(t?M.memo(e):e)),l6=(e,t=!0)=>_r(W0e(t?M.memo(e):e)),r1e=(e,t=!0)=>_r(H0e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(G0e(t?M.memo(e):e)),o1e=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),c6=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),nE=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),a1e=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),rE=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),i1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),u6=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class d6 extends M.Component{constructor(t){super(t),this.state={id:Ya(t.uischema)?Bj(t.uischema.scope):void 0}}componentWillUnmount(){Ya(this.props.uischema)&&Uj(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(s1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const s1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>Ay(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(r6,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class l1e extends d6{constructor(t){super(t)}}const ko=i6(d6);i6(l1e);const f6=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(v0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},c1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>Ay(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(r6,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=o1e(c1e),u1e={black:"#000",white:"#fff"},Mp=u1e,d1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=d1e,f1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jc=f1e,p1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zc=p1e,h1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=h1e,m1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=m1e,v1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=v1e,g1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y1e=g1e;function Gi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function p6(e){if(!Gi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=p6(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Gi(e)&&Gi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gi(t[o])&&o in e&&Gi(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Gi(t[o])?p6(t[o]):t[o]:r[o]=t[o])}),r}var h6={exports:{}},b1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x1e=b1e,w1e=x1e;function m6(){}function v6(){}v6.resetWarningCache=m6;var C1e=function(){function e(r,o,a,i,s,l){if(l!==w1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v6,resetWarningCache:m6};return n.PropTypes=n,n};h6.exports=C1e();var $1e=h6.exports;const L=Vt($1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function vh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function _1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function _i(e){return Vn(e).defaultView||window}function E1e(e,t){return()=>null}function Ip(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const P1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Jn=P1e;let pD=0;function T1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(pD+=1,n(`mui-${pD}`))},[t]),r}const hD=lp["useId".toString()];function Za(e){if(hD!==void 0){const t=hD();return e??t}return T1e(e)}function k1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Jn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ip(n,t)})},e)}let Xy=!0,jC=!1,mD;const O1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function R1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function D1e(e){e.metaKey||e.altKey||e.ctrlKey||(Xy=!0)}function Dx(){Xy=!1}function M1e(){this.visibilityState==="hidden"&&jC&&(Xy=!0)}function I1e(e){e.addEventListener("keydown",D1e,!0),e.addEventListener("mousedown",Dx,!0),e.addEventListener("pointerdown",Dx,!0),e.addEventListener("touchstart",Dx,!0),e.addEventListener("visibilitychange",M1e,!0)}function A1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xy||R1e(t)}function Qy(){const e=$.useCallback(o=>{o!=null&&I1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(jC=!0,window.clearTimeout(mD),mD=window.setTimeout(()=>{jC=!1},100),t.current=!1,!0):!1}function r(o){return A1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function g6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function y6(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function N1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(y6()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const j1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},oE=j1e,L1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},F1e=L1e;function aE(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=aE(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const vD=e=>e,z1e=()=>{let e=vD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vD}}},V1e=z1e(),b6=V1e,B1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=B1e[t];return r?`${n}-${r}`:`${b6.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const e0="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function x6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var U1e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W1e=x6(function(e){return U1e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function H1e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ir(Td,--Oo):0,Zu--,ur===10&&(Zu=1,n0--),ur}function Yo(){return ur=Oo2||Np(ur)>3?"":" "}function obe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gh(e,Hv()+(t<6&&bi()==32&&Yo()==32))}function FC(e){for(;Yo();)switch(ur){case e:return Oo;case 34:case 39:e!==34&&e!==39&&FC(ur);break;case 40:e===41&&FC(e);break;case 92:Yo();break}return Oo}function abe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&bi()===47)break;return"/*"+gh(t,Oo-1)+"*"+t0(e===47?e:Yo())}function ibe(e){for(;!Np(bi());)Yo();return gh(e,Oo)}function sbe(e){return E6(qv("",null,null,null,[""],e=_6(e),0,[0],e))}function qv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ir(E,f-1)==58){LC(E+=mn(Gv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Gv(y);break;case 9:case 10:case 13:case 32:E+=rbe(b);break;case 92:E+=obe(Hv()-1,7);continue;case 47:switch(bi()){case 42:case 47:av(lbe(abe(Yo(),Hv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=ci(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&ci(E)-f&&av(m>32?yD(E+";",r,n,f-1):yD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(av(S=gD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)qv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ir(E,3)===110?100:p){case 100:case 108:case 109:case 115:qv(e,S,S,r&&av(gD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:qv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+ci(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&nbe()==125)continue}switch(E+=t0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ci(E)-1)*g,g=1;break;case 64:bi()===45&&(E+=Gv(Yo())),p=bi(),u=f=ci(w=E+=ibe(Hv())),y++;break;case 45:b===45&&ci(E)==2&&(v=0)}}return a}function gD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=lE(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return r0(e,t,n,o===0?iE:s,l,c,u)}function lbe(e,t,n){return r0(e,t,n,w6,t0(tbe()),Ap(e,2,-2),0)}function yD(e,t,n,r){return r0(e,t,n,sE,Ap(e,0,r),Ap(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=lE(e),o=0;o6)switch(Ir(e,t+1)){case 109:if(Ir(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Hg+(Ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LC(e,"stretch")?P6(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ir(e,t+1)!==115)break;case 6444:switch(Ir(e,ci(e)-3-(~LC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ir(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(Ir(e,t+11)){case 114:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Ur+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Ur+e+e}return e}var gbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sE:t.return=P6(t.value,t.length);break;case C6:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case iE:if(t.length)return ebe(t.props,function(a){switch(Q1e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Hg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Hg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Ur+"input-$1")]})],o)}return""})}},ybe=[gbe],bbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||ybe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(o6);var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const a6=Zt,_ve=dn,Eve={message:"property name must be valid",params:({params:e})=>(0,a6._)`{propertyName: ${e.propertyName}}`},Pve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Eve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,_ve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,a6.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};h_.default=Pve;var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});const ov=Qt,Ia=Zt,Tve=Ri,av=dn,kve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},Rve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:kve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,av.alwaysValidSchema)(i,n))return;const c=(0,ov.allSchemaProperties)(r.properties),u=(0,ov.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${Tve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,av.schemaRefOrVal)(i,r.properties,"properties");g=(0,ov.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,ov.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,av.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:av.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Yy.default=Rve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const Ove=Ya,QO=Qt,Mx=dn,eD=Yy,Dve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&eD.default.code(new Ove.KeywordCxt(a,eD.default,"additionalProperties"));const i=(0,QO.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Mx.mergeEvaluated.props(t,(0,Mx.toHash)(i),a.props));const s=i.filter(f=>!(0,Mx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,QO.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};m_.default=Dve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const tD=Qt,iv=Zt,nD=dn,rD=dn,Mve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,tD.allSchemaProperties)(n),l=s.filter(v=>(0,nD.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof iv.Name)&&(a.props=(0,rD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,nD.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,iv._)`${(0,tD.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:rD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,iv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,iv.not)(u),()=>t.break())})})}}};v_.default=Mve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Ive.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};g_.default=Ave;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Nve=Qt,jve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nve.validateUnion,error:{message:"must match a schema in anyOf"}};y_.default=jve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Uv=Zt,Lve=dn,Fve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Uv._)`{passingSchemas: ${e.passing}}`},zve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Fve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Lve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Uv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Uv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Uv.Name)})})}}};b_.default=zve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Vve=dn,Bve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Vve.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};x_.default=Bve;var w_={};Object.defineProperty(w_,"__esModule",{value:!0});const Vg=Zt,i6=dn,Uve={message:({params:e})=>(0,Vg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Vg._)`{failingKeyword: ${e.ifClause}}`},Wve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Uve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,i6.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=oD(r,"then"),a=oD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Vg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Vg._)`${u}`):e.setParams({ifClause:u})}}}};function oD(e,t){const n=e.schema[t];return n!==void 0&&!(0,i6.alwaysValidSchema)(e,n)}w_.default=Wve;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});const Hve=dn,Gve={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Hve.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};C_.default=Gve;Object.defineProperty(u_,"__esModule",{value:!0});const qve=Cd,Yve=d_,Kve=$d,Zve=f_,Jve=p_,Xve=o6,Qve=h_,ege=Yy,tge=m_,nge=v_,rge=g_,oge=y_,age=b_,ige=x_,sge=w_,lge=C_;function cge(e=!1){const t=[rge.default,oge.default,age.default,ige.default,sge.default,lge.default,Qve.default,ege.default,Xve.default,tge.default,nge.default];return e?t.push(Yve.default,Zve.default):t.push(qve.default,Kve.default),t.push(Jve.default),t}u_.default=cge;var $_={},S_={};Object.defineProperty(S_,"__esModule",{value:!0});const ir=Zt,uge={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},dge={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:uge,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};S_.default=dge;Object.defineProperty($_,"__esModule",{value:!0});const fge=S_,pge=[fge.default];$_.default=pge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(KS,"__esModule",{value:!0});const hge=ZS,mge=XS,vge=u_,gge=$_,aD=Yu,yge=[hge.default,mge.default,(0,vge.default)(),gge.default,aD.metadataVocabulary,aD.contentVocabulary];KS.default=yge;var __={},s6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(s6);Object.defineProperty(__,"__esModule",{value:!0});const au=Zt,AC=s6,iD=bo,bge=dn,xge={message:({params:{discrError:e,tagName:t}})=>e===AC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},wge={keyword:"discriminator",type:"object",schemaType:"object",error:xge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:AC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:AC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ya;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Zt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=hh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=mh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(kC,kC.exports);var l6=kC.exports;const kge=Vt(l6);var NC={exports:{}},c6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,O){return{validate:I,compare:O}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const O=r.exec(I);if(!O)return!1;const F=+O[1],U=+O[2],G=+O[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,O){if(I&&O)return I>O?1:IO?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(c6);var u6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=l6,n=Zt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(u6);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=c6,r=u6,o=Zt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(NC,NC.exports);var Rge=NC.exports;const Oge=Vt(Rge),Wv="additionalProperties",Hv="required",Dge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Mge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Wv)},a=this.findOption(r)(Hv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Dge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const d6=(e,t={})=>{const n=o=>a=>{switch(a){case Wv:return Object.prototype.hasOwnProperty.call(t,Wv)?t[Wv]:!0;case Hv:return Object.prototype.hasOwnProperty.call(t,Hv)?t[Hv](o):Object.keys(o);default:return}};return new Mge(n).schemaObject(e)};var _i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(_i||(_i={}));const f6=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Ige=e=>e.type==="Group",p6=e=>e.elements!==void 0,Age=e=>!!e&&typeof e=="object",Nge=e=>Age(e)&&typeof e.scope=="string",jge=e=>!!e&&typeof e=="object",h6=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},m6=(e,t)=>{h6(e,t,-1)},v6=(e,t)=>{h6(e,t,1)},Lge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},sD=(e={})=>tn({},Lge,e),lD=(e=sD(),t)=>{switch(t.type){case J_:return sD(t.config);default:return e}},Wi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Fge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},jC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),cD=(e,t)=>{if(t){if(zge(t.options))return t.options.ajv;if(t.options!==void 0&&Zq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?jC(e.ajv,t.schema):e.ajv:Gye()},zge=e=>e?e.ajv!==void 0:!1,uD=(e,t)=>t&&Vge(t.options)?t.options.validationMode:e.validationMode,Vge=e=>e?e.validationMode!==void 0:!1,Bge=e=>e?e.additionalErrors!==void 0:!1,dD=(e,t)=>t&&Bge(t.options)?t.options.additionalErrors:e.additionalErrors,fD=(e=Fge,t)=>{switch(t.type){case G_:{const n=cD(e,t),r=uD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data),i=dD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case q_:{const n=cD(e,t),r=uD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data)):e.data!==t.data&&(a=Wi(o,t.data));const i=dD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:SN(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case Y_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Wi(r,e.data);return{...e,validator:r,errors:o}}case X_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?jC(e.ajv,t.schema).compile(t.schema):e.validator,o=Wi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Q_:return{...e,uischema:t.uischema};case K_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(lO(e.data)),r=Wi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(lO(n)),o=wde(t.path,r,e.data===void 0?{}:e.data),a=Wi(e.validator,o);return{...e,data:o,errors:a}}}case Z_:return{...e,errors:t.errors};case e2:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Wi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=jC(e.ajv,e.schema).compile(e.schema),r=Wi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Uge=e=>fr(e,"data"),Wge=e=>fr(e,"schema"),Hge=e=>fr(e,"uischema"),Gge=e=>fr(e,"ajv"),qge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Bg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=qge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Jy(t),t},E_=(e,t,n)=>r=>{const o=Ng(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Bg(a));return Ng(r,a=>{if(Kge.indexOf(a.keyword)!==-1&&!Hg(a.parentSchema))return!1;const i=Bg(a);let s=n(i);const l=a.parentSchema;return s&&!Yge(l)&&!Hg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&SN(l,t)),s})},Yge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Kge=["additionalProperties","allOf","anyOf","oneOf"],g6=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return E_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Zge=(e,t)=>g6(e,t,n=>n===e),Jge=(e,t)=>g6(e,t,n=>n.startsWith(e+".")),P_=(e,t)=>f6(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Xge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ei=(e,t,n)=>P_(e,t)??Xge(n),Ug=(e,t,n,r)=>`${Ei(e,t,n)}.${r}`,Qge=(e,t)=>`${e}.${t}`,T_=(e,t)=>t,k_=(e,t,n)=>{var s;const r=Ug(e.parentSchema,n,Bg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},R_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Ug(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return V_(e.map(i=>t(i,n,o)))},Ky=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!f6(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=P_(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},y6=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Qge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Hr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Hr||(Hr={}));const b6=[{key:Hr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Hr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Hr.removeTooltip,default:()=>"Delete"},{key:Hr.removeAriaLabel,default:()=>"Delete button"},{key:Hr.upAriaLabel,default:()=>"Move item up"},{key:Hr.up,default:()=>"Up"},{key:Hr.down,default:()=>"Down"},{key:Hr.downAriaLabel,default:()=>"Move item down"},{key:Hr.noDataMessage,default:()=>"No data"},{key:Hr.noSelection,default:()=>"No selection"},{key:Hr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Hr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Hr.deleteDialogAccept,default:()=>"Yes"},{key:Hr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:T_,translateError:k_},pD=(e=Cu,t)=>{switch(t.type){case r2:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case n2:return{...e,translate:t.translator??T_,translateError:t.errorTranslator??k_};case t2:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},eye=e=>e===void 0?T_:e.translate,tye=e=>e===void 0?k_:e.translateError,Ku=-1,Za=e=>!Mt(e)&&e.scope!==void 0,Kr=e=>(t,n,r)=>{if(Mt(t)||!Za(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},O_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Za(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ja=e=>Kr(t=>!Mt(t)&&ol(t,e)),Zy=e=>Kr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,ds=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},nye=e=>t=>Mt(e)||!Za(t)?!1:cfe(t.scope,e),rye=e=>t=>{if(Mt(e)||!Za(t))return!1;const n=t.scope;return!Mt(n)&&Wde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,oye=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},x6=$n(_n("Control"),Ja("boolean")),aye=$n(_n("Control"),Ja("object")),w6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),C6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),$6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),D_=$n(_n("Control"),yc(Kr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),S6=$n(_n("Control"),Kr(e=>Hg(e))),_6=$n(_n("Control"),Ja("integer")),E6=$n(_n("Control"),Ja("number")),P6=$n(_n("Control"),Ja("string")),T6=$n(_n("Control"),ds("multi",!0)),k6=$n(_n("Control"),yc(Zy("date"),ds("format","date"))),R6=$n(_n("Control"),yc(Zy("time"),ds("format","time"))),O6=$n(_n("Control"),yc(Zy("date-time"),ds("format","date-time"))),D6=$n(Kr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),O_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),M_=$n(_n("Control"),D6),Df=(e,t,n)=>{if(G3(e))return TC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?TC(Nfe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},I_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Hg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},iye=M_,M6=$n(_n("Control"),Kr((e,t)=>Zu(e).length!==0&&!Array.isArray($a(e,"items",t))),O_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Zu(n);return r.length===1&&EN(["integer","number","boolean","string"],r[0])})),I6=$n(_n("Control"),yc(Ja("number"),Ja("integer")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),ds("slider",!0)),sye=$n(_n("Control"),Ja("integer"),ds("format",!0)),A6=e=>e.type==="Categorization",N6=e=>e.type==="Category",A_=e=>Mt(e.elements)?!1:e.elements.map(t=>A6(t)?A_(t):N6(t)).reduce((t,n)=>t&&n,!0),lye=e=>A_(e),cye=e=>(t,n,r)=>!e(t,n,r);var uye=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Za,schemaMatches:Kr,schemaSubPathMatches:O_,schemaTypeIs:Ja,formatIs:Zy,uiTypeIs:_n,optionIs:ds,scopeEndsWith:nye,scopeEndIs:rye,and:$n,or:yc,rankWith:vn,withIncreasedRank:oye,isBooleanControl:x6,isObjectControl:aye,isAllOfControl:w6,isAnyOfControl:C6,isOneOfControl:$6,isEnumControl:D_,isOneOfEnumControl:S6,isIntegerControl:_6,isNumberControl:E6,isStringControl:P6,isMultiLineControl:T6,isDateControl:k6,isTimeControl:R6,isDateTimeControl:O6,isObjectArray:D6,isObjectArrayControl:M_,isObjectArrayWithNesting:I_,isArrayObjectControl:iye,isPrimitiveArrayControl:M6,isRangeControl:I6,isNumberFormatControl:sye,isCategorization:A6,isCategory:N6,hasCategory:A_,categorizationHasCategory:lye,not:cye});const j6=e=>(t,n,r)=>{const o=zy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},gh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=j6(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},L6=(e,t)=>n=>Zge(e,t)(n.jsonforms.core),F6=(e,t)=>n=>Jge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>eye(fr(e,"jsonforms.i18n")),N_=()=>e=>tye(fr(e,"jsonforms.i18n")),yh=e=>Uge(fr(e,"jsonforms.core")),Wg=e=>Wge(fr(e,"jsonforms.core")),dye=e=>Hge(fr(e,"jsonforms.core")),Sd=e=>Gge(fr(e,"jsonforms.core")),j_=e=>fr(e,"jsonforms.renderers"),L_=e=>fr(e,"jsonforms.cells"),fye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},z6=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Jy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},V6=(e,t)=>{if(!Nge(e))return t??"";const n=z6(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Jy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),LC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),pye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Jy);return Gv(e,r,n)},Gv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(pye(r))return Gv(e,o,n);const a=fr(e,r),i=Gv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Gv(c,[r,...o],n),s)break;return s}},hye=e=>e.type==="OR",mye=e=>e.type==="AND",vye=e=>e.type==="LEAF",gye=e=>Lpe(e,"schema"),hD=(e,t)=>V6(e,t),FC=(e,t,n,r)=>{if(mye(t))return t.conditions.reduce((o,a)=>o&&FC(e,a,n,r),!0);if(hye(t))return t.conditions.reduce((o,a)=>o||FC(e,a,n,r),!1);if(vye(t))return LC(e,hD(t,n))===t.expectedValue;if(gye(t)){const o=LC(e,hD(t,n));return r.validate(t.schema,o)}else return!0},B6=(e,t,n,r)=>{const o=e.rule.condition;return FC(t,o,n,r)},yye=(e,t,n=void 0,r)=>{const o=B6(e,t,n,r);switch(e.rule.effect){case _i.HIDE:return!o;case _i.SHOW:return o;default:return!0}},bye=(e,t,n=void 0,r)=>{const o=B6(e,t,n,r);switch(e.rule.effect){case _i.DISABLE:return!o;case _i.ENABLE:return o;default:return!0}},F_=e=>!!(e.rule&&(e.rule.effect===_i.SHOW||e.rule.effect===_i.HIDE)),xye=e=>!!(e.rule&&(e.rule.effect===_i.ENABLE||e.rule.effect===_i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?yye(e,t,n,r):!0,wye=(e,t,n=void 0,r)=>e.rule?bye(e,t,n,r):!0,z_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&xye(n)?wye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},U6=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),V_=e=>e==null?"":e.join(` +`),ol=(e,t)=>EN(Zu(e),t),Zu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(G3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=VS(e.allOf,n=>Zu(n).length!==0);if(t)return Zu(t)}return[]},Po={schema:$a,data:LC},Cye=e=>z6(e.scope).join("."),cr={compose:bc,fromScoped:Cye},Ix=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Jy(n.substr(n.lastIndexOf("/")+1));return Vy(r)}return""},W6=(e,t)=>{const n=e.label;if(typeof n=="boolean")return sv(Ix(e,t),n);if(typeof n=="string")return sv(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ix(e,t),o=typeof n.show=="boolean"?n.show:!0;return sv(r,o)}return sv(Ix(e,t),!0)},sv=(e,t)=>({text:e,show:t}),$ye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},Xy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Qy=(e,t)=>e&&!t,ss=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Ip=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},B_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=yh(e),o=V6(n,t.path),a=t.visible===void 0||F_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Wg(e),c=i.scope!==void 0&&$ye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=L6(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=W6(n,u),v=b.show?b.text:"",x=rc(e),g=z_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=N_()(e),_=Ei(y,n,o),S=w(Ug(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Ug(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=R_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},Sye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),_ye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ip(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ip(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Eye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>B_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Pye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return B_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Ip(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))}));return{...n,options:o}},Tye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?VS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(yh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},U_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},kye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=U_(e,t),l=Po.schema(r,"items",s.rootSchema),c=F6(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||j_(e),cells:t.cells||L_(e),translations:y6(u,b6,a,i)}},Rye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(m6(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(v6(r,n),r)))}}),Oye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),H6={visible:!0,enabled:!0,path:"",direction:"column"},Dye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":H6.direction,Mye=(e,t)=>{const n=yh(e),{uischema:r}=t,o=t.visible===void 0||F_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=z_(e,t,r,void 0,n,i),l=Ca()(e),c=jge(r)?Ky(r,l):void 0;return{...H6,renderers:t.renderers||j_(e),cells:t.cells||L_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Dye(r),config:i,label:c}},Iye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Wg(e),rootSchema:Wg(e),uischema:t.uischema||dye(e),path:t.path,enabled:t.enabled,config:rc(e)}),W_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:fye(e)}},Aye=(e,t)=>W_(e,t,"allOf"),Nye=(e,t)=>W_(e,t,"anyOf"),jye=(e,t)=>W_(e,t,"oneOf"),Lye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=U_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=R_(F6(n,c)(e),N_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:y6(u,b6,i,s)}},Fye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||F_(n)?_d(t.uischema,yh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=P_(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||j_(e),cells:t.cells||L_(e)}},e0=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=yh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Wg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=z_(e,t,a,r||u,l,f);const m=Ca()(e),b=N_()(e),v=R_(L6(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},zye=(e,t)=>{const n=e0(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Vye=(e,t)=>{var o;const n=e0(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ip(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ip(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Bye=(e,t)=>{var o;const n=e0(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>B_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Uye=(e,t,n)=>e.title?e.title:n+"-"+t,t0=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:gh(a,l,r.scope,o,void 0,r,t),label:Uye(i,s,n)}}),H_=new Set,G6=(e,t)=>t<=1?e:e+t.toString(),Wye=(e,t)=>{const n=G6(e,t);return!H_.has(n)},q6=e=>{e===void 0&&(e="undefined");let t=0;for(;!Wye(e,t);)t++;const n=G6(e,t);return H_.add(n),n},Y6=e=>H_.delete(e),Hye=e=>{if(e.properties)return VS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Hg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Gye=e=>{const t=new kge({allErrors:!0,verbose:!0,strict:!1,...e});return Oge(t),t},K6=e=>({type:e,elements:[]}),qv=e=>({type:"Control",scope:e}),qye=(e,t)=>{if(!Mt(e)&&!p6(e)){const n=K6(t);return n.elements.push(e),n}return e},Yye=(e,t)=>{if(!Mt(t)){const n=Vy(t);if(Ige(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Kye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),zC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return zC($a(a,e.$ref,a),t,n,r,o,a);if(Kye(e)){const s=qv(n);return t.push(s),s}const i=Zu(e);if(i.length===0)return null;if(i.length>1){const s=qv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=K6(o);if(t.push(s),e.properties&&oX(e.properties).length>1&&Yye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),zC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=qv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Z6=(e,t="VerticalLayout",n="#",r=e)=>qye(zC(e,[],n,"",t,r),t),ac={jsonSchema:d6,uiSchema:Z6,controlElement:qv},G_="jsonforms/INIT",q_="jsonforms/UPDATE_CORE",Y_="jsonforms/SET_AJV",K_="jsonforms/UPDATE",Z_="jsonforms/UPDATE_ERRORS",Zye="jsonforms/VALIDATE",J6="jsonforms/ADD_RENDERER",X6="jsonforms/REMOVE_RENDERER",Q6="jsonforms/ADD_CELL",ej="jsonforms/REMOVE_CELL",J_="jsonforms/SET_CONFIG",tj="jsonforms/ADD_UI_SCHEMA",nj="jsonforms/REMOVE_UI_SCHEMA",X_="jsonforms/SET_SCHEMA",Q_="jsonforms/SET_UISCHEMA",e2="jsonforms/SET_VALIDATION_MODE",t2="jsonforms/SET_LOCALE",n2="jsonforms/SET_TRANSLATOR",r2="jsonforms/UPDATE_I18N",rj="jsonforms/ADD_DEFAULT_DATA",oj="jsonforms/REMOVE_DEFAULT_DATA",Jye=(e,t=d6(e),n,r)=>({type:G_,data:e,schema:t,uischema:typeof n=="object"?n:Z6(t),options:r}),Xye=(e,t,n,r)=>({type:q_,data:e,schema:t,uischema:n,options:r}),Qye=(e,t)=>({type:rj,schemaPath:e,data:t}),e0e=e=>({type:oj,schemaPath:e}),t0e=e=>({type:Y_,ajv:e}),Va=(e,t)=>({type:K_,path:e,updater:t}),n0e=e=>({type:Z_,errors:e}),r0e=(e,t)=>({type:J6,tester:e,renderer:t}),o0e=(e,t)=>({type:Q6,tester:e,cell:t}),a0e=(e,t)=>({type:ej,tester:e,cell:t}),i0e=(e,t)=>({type:X6,tester:e,renderer:t}),s0e=e=>({type:J_,config:e}),l0e=e=>({type:e2,validationMode:e}),c0e=(e,t)=>({type:tj,tester:e,uischema:t}),u0e=e=>({type:nj,tester:e}),d0e=e=>({type:t2,locale:e}),f0e=e=>({type:X_,schema:e}),p0e=(e,t)=>({type:n2,translator:e,errorTranslator:t}),h0e=(e,t,n)=>({type:r2,locale:e,translator:t,errorTranslator:n}),m0e=e=>({type:Q_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:G_,UPDATE_CORE:q_,SET_AJV:Y_,UPDATE_DATA:K_,UPDATE_ERRORS:Z_,VALIDATE:Zye,ADD_RENDERER:J6,REMOVE_RENDERER:X6,ADD_CELL:Q6,REMOVE_CELL:ej,SET_CONFIG:J_,ADD_UI_SCHEMA:tj,REMOVE_UI_SCHEMA:nj,SET_SCHEMA:X_,SET_UISCHEMA:Q_,SET_VALIDATION_MODE:e2,SET_LOCALE:t2,SET_TRANSLATOR:n2,UPDATE_I18N:r2,ADD_DEFAULT_DATA:rj,REMOVE_DEFAULT_DATA:oj,init:Jye,updateCore:Xye,registerDefaultData:Qye,unregisterDefaultData:e0e,setAjv:t0e,update:Va,updateErrors:n0e,registerRenderer:r0e,registerCell:o0e,unregisterCell:a0e,unregisterRenderer:i0e,setConfig:s0e,setValidationMode:l0e,registerUISchema:c0e,unregisterUISchema:u0e,setLocale:d0e,setSchema:f0e,setTranslator:p0e,updateI18n:h0e,setUISchema:m0e});const Gg={createLabelDescriptionFrom:W6,convertToValidClassName:U6};var v0e=co,g0e=function(){return v0e.Date.now()},y0e=g0e,b0e=ta,Ax=y0e,mD=yN,x0e="Expected a function",w0e=Math.max,C0e=Math.min;function $0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(x0e);t=mD(t)||0,b0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?w0e(mD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?C0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Ax();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Ax())}function _(){var S=Ax(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var S0e=$0e;const aj=Vt(S0e);class ij extends M.Component{constructor(t){super(t)}}class sj extends ij{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class lj extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const _0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},cj=M.createContext({core:_0e,renderers:[]}),E0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},P0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(fD,void 0,()=>fD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(lD,void 0,()=>lD(void 0,Yc.setConfig(t.config)));E0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(pD,void 0,()=>{var _,S,E;return pD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(aj((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(cj.Provider,{value:v},e)},xc=()=>$.useContext(cj),T0e=(e,t)=>Lye({jsonforms:{...e}},t),k0e=(e,t)=>kye({jsonforms:{...e}},t),R0e=(e,t)=>Mye({jsonforms:{...e}},t),O0e=(e,t)=>Ed({jsonforms:{...e}},t),D0e=(e,t)=>{var o;const n=_ye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>{var o;const n=Eye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},I0e=(e,t)=>{var o;const n=Pye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},A0e=(e,t)=>U_({jsonforms:{...e}},t),N0e=(e,t)=>({...Aye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>Sye(e),[e]),j0e=(e,t)=>{const n=Nye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},L0e=(e,t)=>{const n=jye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},F0e=(e,t)=>Iye({jsonforms:{...e}},t),uj=e=>({...Do(e),...$.useMemo(()=>Rye(e),[e])}),z0e=(e,t)=>Tye({jsonforms:{...e}},t),V0e=(e,t)=>e0({jsonforms:{...e}},t),B0e=(e,t)=>{var o;const n=Vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},U0e=(e,t)=>{var o;const n=Bye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},W0e=(e,t)=>zye({jsonforms:{...e}},t),H0e=e=>({...Do(e),...$.useMemo(()=>Oye(e),[e])}),G0e=(e,t)=>Fye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},q0e=e=>function({ctx:n,props:r}){const o=F0e(n,r);return M.createElement(e,Object.assign({},r,o))},Y0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},K0e=e=>function({ctx:n,props:r}){const o=R0e(n,r);return M.createElement(e,Object.assign({},r,o))},Z0e=e=>function({ctx:n,props:r}){const o=L0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},J0e=e=>function({ctx:n,props:r}){const o=j0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},X0e=e=>function({ctx:n,props:r}){const o=N0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},e1e=e=>function({ctx:n,props:r}){const o=T0e(n,r),a=uj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},t1e=e=>function({ctx:n,props:r}){const o=k0e(n,r),a=uj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},n1e=e=>function({ctx:n,props:r}){const o=z0e(n,r);return M.createElement(e,Object.assign({},r,o))},r1e=e=>function({ctx:n,props:r}){const o=V0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},o1e=e=>function({ctx:n,props:r}){const o=W0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},a1e=e=>function({ctx:n,props:r}){const o=B0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},i1e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},s1e=e=>function({ctx:n,props:r}){const o=U0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},l1e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},c1e=e=>function({ctx:n,props:r}){const o=I0e(n,r),a=H0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},u1e=e=>function({ctx:n,props:r}){const o=G0e(n,r);return M.createElement(e,Object.assign({},r,o))},dj=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),uo=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),fs=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),d1e=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),fj=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),f1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),p1e=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),n0=(e,t=!0)=>_r(e1e(t?M.memo(e):e)),pj=(e,t=!0)=>_r(t1e(t?M.memo(e):e)),h1e=(e,t=!0)=>_r(n1e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(r1e(t?M.memo(e):e)),m1e=(e,t=!0)=>_r(o1e(t?M.memo(e):e)),hj=(e,t=!0)=>_r(a1e(t?M.memo(e):e)),o2=(e,t=!0)=>_r(i1e(t?M.memo(e):e)),v1e=(e,t=!0)=>_r(s1e(t?M.memo(e):e)),a2=(e,t=!0)=>_r(l1e(t?M.memo(e):e)),g1e=(e,t=!0)=>_r(c1e(t?M.memo(e):e)),mj=(e,t=!0)=>_r(u1e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class vj extends M.Component{constructor(t){super(t),this.state={id:Za(t.uischema)?q6(t.uischema.scope):void 0}}componentWillUnmount(){Za(this.props.uischema)&&Y6(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(y1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const y1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>zy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(lj,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class b1e extends vj{constructor(t){super(t)}}const ko=dj(vj);dj(b1e);const gj=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(P0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},x1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>zy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(lj,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=m1e(x1e),w1e={black:"#000",white:"#fff"},Ap=w1e,C1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=C1e,$1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Zc=$1e,S1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jc=S1e,_1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=_1e,E1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=E1e,P1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=P1e,T1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},k1e=T1e;function Yi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function yj(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yj(e[n])}),t}function qr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Yi(t[o])&&o in e&&Yi(e[o])?r[o]=qr(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?yj(t[o]):t[o]:r[o]=t[o])}),r}var bj={exports:{}},R1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O1e=R1e,D1e=O1e;function xj(){}function wj(){}wj.resetWarningCache=xj;var M1e=function(){function e(r,o,a,i,s,l){if(l!==D1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wj,resetWarningCache:xj};return n.PropTypes=n,n};bj.exports=M1e();var I1e=bj.exports;const L=Vt(I1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function bh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function N1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function Pi(e){return Vn(e).defaultView||window}function j1e(e,t){return()=>null}function Np(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const L1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Zn=L1e;let vD=0;function F1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(vD+=1,n(`mui-${vD}`))},[t]),r}const gD=cp["useId".toString()];function Qa(e){if(gD!==void 0){const t=gD();return e??t}return F1e(e)}function z1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Zn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Np(n,t)})},e)}let r0=!0,VC=!1,yD;const V1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function B1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&V1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function U1e(e){e.metaKey||e.altKey||e.ctrlKey||(r0=!0)}function Nx(){r0=!1}function W1e(){this.visibilityState==="hidden"&&VC&&(r0=!0)}function H1e(e){e.addEventListener("keydown",U1e,!0),e.addEventListener("mousedown",Nx,!0),e.addEventListener("pointerdown",Nx,!0),e.addEventListener("touchstart",Nx,!0),e.addEventListener("visibilitychange",W1e,!0)}function G1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return r0||B1e(t)}function o0(){const e=$.useCallback(o=>{o!=null&&H1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(VC=!0,window.clearTimeout(yD),yD=window.setTimeout(()=>{VC=!1},100),t.current=!1,!0):!1}function r(o){return G1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Cj(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function $j(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function q1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch($j()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Y1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},i2=Y1e,K1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Z1e=K1e;function s2(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=s2(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const bD=e=>e,J1e=()=>{let e=bD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bD}}},X1e=J1e(),Sj=X1e,Q1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=Q1e[t];return r?`${n}-${r}`:`${Sj.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const a0="$$material";function Re(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function _j(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ebe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tbe=_j(function(e){return ebe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function nbe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ar(Td,--Ro):0,Ju--,ur===10&&(Ju=1,s0--),ur}function Yo(){return ur=Ro2||Lp(ur)>3?"":" "}function mbe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return xh(e,Yv()+(t<6&&wi()==32&&Yo()==32))}function UC(e){for(;Yo();)switch(ur){case e:return Ro;case 34:case 39:e!==34&&e!==39&&UC(ur);break;case 40:e===41&&UC(e);break;case 92:Yo();break}return Ro}function vbe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&wi()===47)break;return"/*"+xh(t,Ro-1)+"*"+i0(e===47?e:Yo())}function gbe(e){for(;!Lp(wi());)Yo();return xh(e,Ro)}function ybe(e){return Oj(Zv("",null,null,null,[""],e=Rj(e),0,[0],e))}function Zv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ar(E,f-1)==58){BC(E+=mn(Kv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Kv(y);break;case 9:case 10:case 13:case 32:E+=hbe(b);break;case 92:E+=mbe(Yv()-1,7);continue;case 47:switch(wi()){case 42:case 47:lv(bbe(vbe(Yo(),Yv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=di(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&di(E)-f&&lv(m>32?wD(E+";",r,n,f-1):wD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(lv(S=xD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Zv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ar(E,3)===110?100:p){case 100:case 108:case 109:case 115:Zv(e,S,S,r&&lv(xD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Zv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+di(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&pbe()==125)continue}switch(E+=i0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(di(E)-1)*g,g=1;break;case 64:wi()===45&&(E+=Kv(Yo())),p=wi(),u=f=di(w=E+=gbe(Yv())),y++;break;case 45:b===45&&di(E)==2&&(v=0)}}return a}function xD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=u2(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return l0(e,t,n,o===0?l2:s,l,c,u)}function bbe(e,t,n){return l0(e,t,n,Ej,i0(fbe()),jp(e,2,-2),0)}function wD(e,t,n,r){return l0(e,t,n,c2,jp(e,0,r),jp(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=u2(e),o=0;o6)switch(Ar(e,t+1)){case 109:if(Ar(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Yg+(Ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~BC(e,"stretch")?Dj(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ar(e,t+1)!==115)break;case 6444:switch(Ar(e,di(e)-3-(~BC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ar(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Ar(e,t+11)){case 114:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Wr+e+e}return e}var Tbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case c2:t.return=Dj(t.value,t.length);break;case Pj:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case l2:if(t.length)return dbe(t.props,function(a){switch(ube(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Yg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Yg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Wr+"input-$1")]})],o)}return""})}},kbe=[Tbe],Rbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kbe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dbe=/[A-Z]|^ms/g,Mbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I6=function(t){return t.charCodeAt(1)===45},xD=function(t){return t!=null&&typeof t!="boolean"},Mx=x6(function(e){return I6(e)?e:e.replace(Dbe,"-$&").toLowerCase()}),wD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mbe,function(r,o,a){return ui={name:o,styles:a,next:ui},o})}return Rbe[t]!==1&&!I6(t)&&typeof n=="number"&&n!==0?n+"px":n};function jp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ui={name:n.name,styles:n.styles,next:ui},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ui={name:r.name,styles:r.styles,next:ui},r=r.next;var o=n.styles+";";return o}return Ibe(e,t,n)}case"function":{if(e!==void 0){var a=ui,i=n(e);return ui=a,jp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Ibe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Fbe:zbe},_D=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Vbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return D6(n,r,o),Nbe(function(){return M6(n,r,o)}),null},Bbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=_D(t,n,r),l=s||SD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Wbe(o)?n:o):t;return O.jsx(jbe,{styles:r})}/** + */var Or=typeof Symbol=="function"&&Symbol.for,d2=Or?Symbol.for("react.element"):60103,f2=Or?Symbol.for("react.portal"):60106,c0=Or?Symbol.for("react.fragment"):60107,u0=Or?Symbol.for("react.strict_mode"):60108,d0=Or?Symbol.for("react.profiler"):60114,f0=Or?Symbol.for("react.provider"):60109,p0=Or?Symbol.for("react.context"):60110,p2=Or?Symbol.for("react.async_mode"):60111,h0=Or?Symbol.for("react.concurrent_mode"):60111,m0=Or?Symbol.for("react.forward_ref"):60112,v0=Or?Symbol.for("react.suspense"):60113,Obe=Or?Symbol.for("react.suspense_list"):60120,g0=Or?Symbol.for("react.memo"):60115,y0=Or?Symbol.for("react.lazy"):60116,Dbe=Or?Symbol.for("react.block"):60121,Mbe=Or?Symbol.for("react.fundamental"):60117,Ibe=Or?Symbol.for("react.responder"):60118,Abe=Or?Symbol.for("react.scope"):60119;function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d2:switch(e=e.type,e){case p2:case h0:case c0:case d0:case u0:case v0:return e;default:switch(e=e&&e.$$typeof,e){case p0:case m0:case y0:case g0:case f0:return e;default:return t}}case f2:return t}}}function Ij(e){return na(e)===h0}Sn.AsyncMode=p2;Sn.ConcurrentMode=h0;Sn.ContextConsumer=p0;Sn.ContextProvider=f0;Sn.Element=d2;Sn.ForwardRef=m0;Sn.Fragment=c0;Sn.Lazy=y0;Sn.Memo=g0;Sn.Portal=f2;Sn.Profiler=d0;Sn.StrictMode=u0;Sn.Suspense=v0;Sn.isAsyncMode=function(e){return Ij(e)||na(e)===p2};Sn.isConcurrentMode=Ij;Sn.isContextConsumer=function(e){return na(e)===p0};Sn.isContextProvider=function(e){return na(e)===f0};Sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d2};Sn.isForwardRef=function(e){return na(e)===m0};Sn.isFragment=function(e){return na(e)===c0};Sn.isLazy=function(e){return na(e)===y0};Sn.isMemo=function(e){return na(e)===g0};Sn.isPortal=function(e){return na(e)===f2};Sn.isProfiler=function(e){return na(e)===d0};Sn.isStrictMode=function(e){return na(e)===u0};Sn.isSuspense=function(e){return na(e)===v0};Sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c0||e===h0||e===d0||e===u0||e===v0||e===Obe||typeof e=="object"&&e!==null&&(e.$$typeof===y0||e.$$typeof===g0||e.$$typeof===f0||e.$$typeof===p0||e.$$typeof===m0||e.$$typeof===Mbe||e.$$typeof===Ibe||e.$$typeof===Abe||e.$$typeof===Dbe)};Sn.typeOf=na;Mj.exports=Sn;var Nbe=Mj.exports,Aj=Nbe,jbe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lbe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nj={};Nj[Aj.ForwardRef]=jbe;Nj[Aj.Memo]=Lbe;var Fbe=!0;function zbe(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var jj=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Fbe===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Lj=function(t,n,r){jj(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Vbe(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ube=/[A-Z]|^ms/g,Wbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fj=function(t){return t.charCodeAt(1)===45},$D=function(t){return t!=null&&typeof t!="boolean"},jx=_j(function(e){return Fj(e)?e:e.replace(Ube,"-$&").toLowerCase()}),SD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Wbe,function(r,o,a){return fi={name:o,styles:a,next:fi},o})}return Bbe[t]!==1&&!Fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return fi={name:n.name,styles:n.styles,next:fi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)fi={name:r.name,styles:r.styles,next:fi},r=r.next;var o=n.styles+";";return o}return Hbe(e,t,n)}case"function":{if(e!==void 0){var a=fi,i=n(e);return fi=a,Fp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Hbe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Zbe:Jbe},TD=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jj(n,r,o),qbe(function(){return Lj(n,r,o)}),null},Qbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=TD(t,n,r),l=s||PD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(txe(o)?n:o):t;return R.jsx(Ybe,{styles:r})}/** * @mui/styled-engine v5.14.14 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function Gbe(e,t){return zC(e,t)}const qbe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ybe=["values","unit","step"],Kbe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function Jbe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Ybe),a=Kbe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${mE[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ED;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ED;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mE).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function L6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function F6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Qbe(e,...t){const n=L6(e),r=[n,...t].reduce((o,a)=>Gr(o,a),{});return F6(Object.keys(n),r)}function exe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||exe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function h0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=h0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=h0(l,r)||{};return Ro(i,s,f=>{let p=Gg(c,o,f);return f===p&&typeof f=="string"&&(p=Gg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function txe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nxe={m:"margin",p:"padding"},rxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oxe=txe(e=>{if(e.length>2)if(PD[e])e=PD[e];else return[e];const[t,n]=e.split(""),r=nxe[t],o=rxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...gE];function yh(e,t,n,r){var o;const a=(o=h0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function yE(e){return yh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function axe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function ixe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=oxe(n),a=axe(o,r),i=e[n];return Ro(e,i,a)}function z6(e,t){const n=yE(e.theme);return Object.keys(e).map(r=>ixe(e,t,r,n)).reduce(Zf,{})}function Xn(e){return z6(e,vE)}Xn.propTypes={};Xn.filterProps=vE;function Qn(e){return z6(e,gE)}Qn.propTypes={};Qn.filterProps=gE;function sxe(e=8){if(e.mui)return e;const t=yE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function m0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Zf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function hi(e){return typeof e!="number"?e:`${e}px solid`}const lxe=bn({prop:"border",themeKey:"borders",transform:hi}),cxe=bn({prop:"borderTop",themeKey:"borders",transform:hi}),uxe=bn({prop:"borderRight",themeKey:"borders",transform:hi}),dxe=bn({prop:"borderBottom",themeKey:"borders",transform:hi}),fxe=bn({prop:"borderLeft",themeKey:"borders",transform:hi}),pxe=bn({prop:"borderColor",themeKey:"palette"}),hxe=bn({prop:"borderTopColor",themeKey:"palette"}),mxe=bn({prop:"borderRightColor",themeKey:"palette"}),vxe=bn({prop:"borderBottomColor",themeKey:"palette"}),gxe=bn({prop:"borderLeftColor",themeKey:"palette"}),v0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Ro(e,e.borderRadius,n)}return null};v0.propTypes={};v0.filterProps=["borderRadius"];m0(lxe,cxe,uxe,dxe,fxe,pxe,hxe,mxe,vxe,gxe,v0);const g0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Ro(e,e.gap,n)}return null};g0.propTypes={};g0.filterProps=["gap"];const y0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Ro(e,e.columnGap,n)}return null};y0.propTypes={};y0.filterProps=["columnGap"];const b0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Ro(e,e.rowGap,n)}return null};b0.propTypes={};b0.filterProps=["rowGap"];const yxe=bn({prop:"gridColumn"}),bxe=bn({prop:"gridRow"}),xxe=bn({prop:"gridAutoFlow"}),wxe=bn({prop:"gridAutoColumns"}),Cxe=bn({prop:"gridAutoRows"}),$xe=bn({prop:"gridTemplateColumns"}),Sxe=bn({prop:"gridTemplateRows"}),_xe=bn({prop:"gridTemplateAreas"}),Exe=bn({prop:"gridArea"});m0(g0,y0,b0,yxe,bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe);function Iu(e,t){return t==="grey"?t:e}const Pxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Txe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),kxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});m0(Pxe,Txe,kxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Oxe=bn({prop:"width",transform:Uo}),bE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||mE[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Ro(e,e.maxWidth,t)}return null};bE.filterProps=["maxWidth"];const Rxe=bn({prop:"minWidth",transform:Uo}),Dxe=bn({prop:"height",transform:Uo}),Mxe=bn({prop:"maxHeight",transform:Uo}),Ixe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Axe=bn({prop:"boxSizing"});m0(Oxe,bE,Rxe,Dxe,Mxe,Ixe,Axe);const Nxe={border:{themeKey:"borders",transform:hi},borderTop:{themeKey:"borders",transform:hi},borderRight:{themeKey:"borders",transform:hi},borderBottom:{themeKey:"borders",transform:hi},borderLeft:{themeKey:"borders",transform:hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:g0},rowGap:{style:b0},columnGap:{style:y0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:bE},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},x0=Nxe;function jxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Lxe(e,t){return typeof e=="function"?e(t):e}function Fxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=h0(o,c)||{};return f?f(i):Ro(i,r,b=>{let v=Gg(p,u,b);return b===v&&typeof b=="string"&&(v=Gg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:x0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=L6(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Lxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Zf(p,e(m,b,a,i));else{const v=Ro({theme:a},b,x=>({[m]:x}));jxe(v,b)?p[m]=t({sx:b,theme:a}):p=Zf(p,v)}else p=Zf(p,e(m,b,a,i))}),F6(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const V6=Fxe();V6.filterProps=["sx"];const xE=V6,zxe=["breakpoints","palette","spacing","shape"];function w0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,zxe),s=Jbe(n),l=sxe(o);let c=Gr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},Xbe,a)},i);return c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}function Vxe(e){return Object.keys(e).length===0}function wE(e=null){const t=$.useContext(pE);return!t||Vxe(t)?e:t}const Bxe=w0();function bh(e=Bxe){return wE(e)}function Uxe({styles:e,themeId:t,defaultTheme:n={}}){const r=bh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Hbe,{styles:o})}const Wxe=["sx"],Hxe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:x0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function CE(e){const{sx:t}=e,n=Oe(e,Wxe),{systemProps:r,otherProps:o}=Hxe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Gi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const Gxe=["variant"];function TD(e){return e.length===0}function B6(e){const{variant:t}=e,n=Oe(e,Gxe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=TD(r)?e[o]:Fe(e[o]):r+=`${TD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const qxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yxe(e){return Object.keys(e).length===0}function Kxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Jxe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qg=e=>{const t={};return e&&e.forEach(n=>{const r=B6(n.props);t[r]=n.style}),t},Zxe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),qg(n)},Yg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[B6(a.props)])}),o},Xxe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Yg(e,t,a)};function Xf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qxe=w0(),ewe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yv({defaultTheme:e,theme:t,themeId:n}){return Yxe(t)?e:t[n]||t}function twe(e){return e?(t,n)=>n[e]:null}const kD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Yv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Yg(t,qg(a),a);return[o,...i]}return o};function U6(e={}){const{themeId:t,defaultTheme:n=Qxe,rootShouldForwardProp:r=Xf,slotShouldForwardProp:o=Xf}=e,a=i=>xE(T({},i,{theme:Yv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{qbe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=twe(ewe(c))}=s,m=Oe(s,qxe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Xf;c==="Root"||c==="root"?g=r:c?g=o:Kxe(i)&&(g=void 0);const y=Gbe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>kD({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Gi(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let z=R;return Yg(G,qg(U),U).forEach(Y=>{z=Gr(z,Y)}),z}),F}return R}):[];let E=C;if(Gi(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Yg(F,qg(R),R).forEach(z=>{U=Gr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>kD({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t})),U=Jxe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},R,{theme:F})):V}),p(R,G)}return null}),l&&!b&&S.push(R=>{const F=Yv(T({},R,{defaultTheme:n,themeId:t}));return Xxe(R,Zxe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const nwe=U6(),rwe=nwe;function $E(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:aE(t.components[n].defaultProps,r)}function W6({props:e,name:t,defaultTheme:n,themeId:r}){let o=bh(n);return r&&(o=o[r]||o),$E({theme:o,name:t,props:e})}function SE(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function owe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(owe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function C0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function awe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),C0({type:s,values:l})}function OD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(awe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iwe(e,t){const n=OD(e),r=OD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=SE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,C0(e)}function $0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return C0(e)}function S0(e,t){if(e=lc(e),t=SE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return C0(e)}const swe=["component","direction","spacing","divider","children","className","useFlexGap"],lwe=w0(),cwe=rwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function uwe(e){return W6({props:e,name:"MuiStack",defaultTheme:lwe})}function dwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pwe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Ro({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=yE(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Gr(n,Ro({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fwe(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=Qbe(t.breakpoints,n),n};function hwe(e={}){const{createStyledComponent:t=cwe,useThemeProps:n=uwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(pwe);return $.forwardRef(function(l,c){const u=n(l),f=CE(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,swe),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?dwe(x,v):x}))})}function mwe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vwe=["mode","contrastThreshold","tonalOffset"],RD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mp.white,default:Mp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ix={text:{primary:Mp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S0(e.main,o):t==="dark"&&(e.dark=$0(e.main,a)))}function gwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function ywe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[500],light:Jc[300],dark:Jc[700]}}function bwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function xwe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function wwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Cwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function $we(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,vwe),a=e.primary||gwe(t),i=e.secondary||ywe(t),s=e.error||bwe(t),l=e.info||xwe(t),c=e.success||wwe(t),u=e.warning||Cwe(t);function f(v){return iwe(v,Ix.text.primary)>=n?Ix.text.primary:RD.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return DD(v,"light",y,r),DD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Ix,light:RD};return Gr(T({common:T({},Mp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:y1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Swe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _we(e){return Math.round(e*1e5)/1e5}const MD={textTransform:"uppercase"},ID='"Roboto", "Helvetica", "Arial", sans-serif';function Ewe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ID,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,Swe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===ID?{letterSpacing:`${_we(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,MD),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,MD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Pwe=.2,Twe=.14,kwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Pwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Twe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kwe})`].join(",")}const Owe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Rwe=Owe,Dwe=["duration","easing","delay"],Mwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AD(e){return`${Math.round(e)}ms`}function Iwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Awe(e){const t=T({},Mwe,e.easing),n=T({},H6,e.duration);return T({getAutoHeightDuration:Iwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,Dwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:AD(i)} ${s} ${typeof l=="string"?l:AD(l)}`).join(",")}},e,{easing:t,duration:n})}const Nwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jwe=Nwe,Lwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Lwe);if(e.vars)throw new Error(al(18));const s=$we(r),l=w0(e);let c=Gr(l,{mixins:mwe(l.breakpoints,n),palette:s,shadows:Rwe.slice(),typography:Ewe(s,a),transitions:Awe(o),zIndex:T({},jwe)});return c=Gr(c,i),c=t.reduce((u,f)=>Gr(u,f),c),c.unstable_sxConfig=T({},x0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return xE({sx:f,theme:this})},c}const zwe=Fwe(),_0=zwe;function rr(){const e=bh(_0);return e[e0]||e}function Je({props:e,name:t}){return W6({props:e,name:t,defaultTheme:_0,themeId:e0})}const ra=e=>Xf(e)&&e!=="classes",_E=Xf,Vwe=U6({themeId:e0,defaultTheme:_0,rootShouldForwardProp:ra}),he=Vwe,Bwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ND=Bwe;function Uwe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wwe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hwe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,Uwe,r)},Gwe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),G6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Wwe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Hwe(v);return O.jsxs(Gwe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});G6.muiName="SvgIcon";const VC=G6;function or(e,t){function n(r,o){return O.jsx(VC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=VC.muiName,$.memo($.forwardRef(n))}const qwe={configure:e=>{b6.configure(e)}},Ywe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:Wg,createSvgIcon:or,debounce:vh,deprecatedPropType:_1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:_i,requirePropFactory:E1e,setRef:Ip,unstable_ClassNameGenerator:qwe,unstable_useEnhancedEffect:Jn,unstable_useId:Za,unsupportedProp:k1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Qy},Symbol.toStringTag,{value:"Module"}));var En={};/** + */function rxe(e,t){return WC(e,t)}const oxe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},axe=["values","unit","step"],ixe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function sxe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Re(e,axe),a=ixe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${g2[e]}px)`};function Oo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||kD;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||kD;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||g2).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function Uj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Wj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uxe(e,...t){const n=Uj(e),r=[n,...t].reduce((o,a)=>qr(o,a),{});return Wj(Object.keys(n),r)}function dxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||dxe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function b0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Kg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=b0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=b0(l,r)||{};return Oo(i,s,f=>{let p=Kg(c,o,f);return f===p&&typeof f=="string"&&(p=Kg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function fxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pxe={m:"margin",p:"padding"},hxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mxe=fxe(e=>{if(e.length>2)if(RD[e])e=RD[e];else return[e];const[t,n]=e.split(""),r=pxe[t],o=hxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),y2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],b2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...y2,...b2];function wh(e,t,n,r){var o;const a=(o=b0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function x2(e){return wh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vxe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function gxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=mxe(n),a=vxe(o,r),i=e[n];return Oo(e,i,a)}function Hj(e,t){const n=x2(e.theme);return Object.keys(e).map(r=>gxe(e,t,r,n)).reduce(Xf,{})}function Xn(e){return Hj(e,y2)}Xn.propTypes={};Xn.filterProps=y2;function Qn(e){return Hj(e,b2)}Qn.propTypes={};Qn.filterProps=b2;function yxe(e=8){if(e.mui)return e;const t=x2({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function x0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Xf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function vi(e){return typeof e!="number"?e:`${e}px solid`}const bxe=bn({prop:"border",themeKey:"borders",transform:vi}),xxe=bn({prop:"borderTop",themeKey:"borders",transform:vi}),wxe=bn({prop:"borderRight",themeKey:"borders",transform:vi}),Cxe=bn({prop:"borderBottom",themeKey:"borders",transform:vi}),$xe=bn({prop:"borderLeft",themeKey:"borders",transform:vi}),Sxe=bn({prop:"borderColor",themeKey:"palette"}),_xe=bn({prop:"borderTopColor",themeKey:"palette"}),Exe=bn({prop:"borderRightColor",themeKey:"palette"}),Pxe=bn({prop:"borderBottomColor",themeKey:"palette"}),Txe=bn({prop:"borderLeftColor",themeKey:"palette"}),w0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Oo(e,e.borderRadius,n)}return null};w0.propTypes={};w0.filterProps=["borderRadius"];x0(bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe,Pxe,Txe,w0);const C0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Oo(e,e.gap,n)}return null};C0.propTypes={};C0.filterProps=["gap"];const $0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Oo(e,e.columnGap,n)}return null};$0.propTypes={};$0.filterProps=["columnGap"];const S0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Oo(e,e.rowGap,n)}return null};S0.propTypes={};S0.filterProps=["rowGap"];const kxe=bn({prop:"gridColumn"}),Rxe=bn({prop:"gridRow"}),Oxe=bn({prop:"gridAutoFlow"}),Dxe=bn({prop:"gridAutoColumns"}),Mxe=bn({prop:"gridAutoRows"}),Ixe=bn({prop:"gridTemplateColumns"}),Axe=bn({prop:"gridTemplateRows"}),Nxe=bn({prop:"gridTemplateAreas"}),jxe=bn({prop:"gridArea"});x0(C0,$0,S0,kxe,Rxe,Oxe,Dxe,Mxe,Ixe,Axe,Nxe,jxe);function Iu(e,t){return t==="grey"?t:e}const Lxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Fxe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),zxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});x0(Lxe,Fxe,zxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Vxe=bn({prop:"width",transform:Uo}),w2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||g2[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Oo(e,e.maxWidth,t)}return null};w2.filterProps=["maxWidth"];const Bxe=bn({prop:"minWidth",transform:Uo}),Uxe=bn({prop:"height",transform:Uo}),Wxe=bn({prop:"maxHeight",transform:Uo}),Hxe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Gxe=bn({prop:"boxSizing"});x0(Vxe,w2,Bxe,Uxe,Wxe,Hxe,Gxe);const qxe={border:{themeKey:"borders",transform:vi},borderTop:{themeKey:"borders",transform:vi},borderRight:{themeKey:"borders",transform:vi},borderBottom:{themeKey:"borders",transform:vi},borderLeft:{themeKey:"borders",transform:vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:C0},rowGap:{style:S0},columnGap:{style:$0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:w2},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_0=qxe;function Yxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Kxe(e,t){return typeof e=="function"?e(t):e}function Zxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=b0(o,c)||{};return f?f(i):Oo(i,r,b=>{let v=Kg(p,u,b);return b===v&&typeof b=="string"&&(v=Kg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:_0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=Uj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Kxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Xf(p,e(m,b,a,i));else{const v=Oo({theme:a},b,x=>({[m]:x}));Yxe(v,b)?p[m]=t({sx:b,theme:a}):p=Xf(p,v)}else p=Xf(p,e(m,b,a,i))}),Wj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Gj=Zxe();Gj.filterProps=["sx"];const C2=Gj,Jxe=["breakpoints","palette","spacing","shape"];function E0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Re(e,Jxe),s=sxe(n),l=yxe(o);let c=qr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},cxe,a)},i);return c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},_0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return C2({sx:f,theme:this})},c}function Xxe(e){return Object.keys(e).length===0}function $2(e=null){const t=$.useContext(m2);return!t||Xxe(t)?e:t}const Qxe=E0();function Ch(e=Qxe){return $2(e)}function ewe({styles:e,themeId:t,defaultTheme:n={}}){const r=Ch(n),o=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(nxe,{styles:o})}const twe=["sx"],nwe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function S2(e){const{sx:t}=e,n=Re(e,twe),{systemProps:r,otherProps:o}=nwe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Yi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const rwe=["variant"];function OD(e){return e.length===0}function qj(e){const{variant:t}=e,n=Re(e,rwe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=OD(r)?e[o]:Fe(e[o]):r+=`${OD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const owe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function awe(e){return Object.keys(e).length===0}function iwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const swe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Zg=e=>{const t={};return e&&e.forEach(n=>{const r=qj(n.props);t[r]=n.style}),t},lwe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Zg(n)},Jg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[qj(a.props)])}),o},cwe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Jg(e,t,a)};function Qf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uwe=E0(),dwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jv({defaultTheme:e,theme:t,themeId:n}){return awe(t)?e:t[n]||t}function fwe(e){return e?(t,n)=>n[e]:null}const DD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Jv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Jg(t,Zg(a),a);return[o,...i]}return o};function Yj(e={}){const{themeId:t,defaultTheme:n=uwe,rootShouldForwardProp:r=Qf,slotShouldForwardProp:o=Qf}=e,a=i=>C2(T({},i,{theme:Jv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{oxe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=fwe(dwe(c))}=s,m=Re(s,owe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Qf;c==="Root"||c==="root"?g=r:c?g=o:iwe(i)&&(g=void 0);const y=rxe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return F=>DD({styledArg:O,props:F,defaultTheme:n,themeId:t});if(Yi(O)){let F=O,U;return O&&O.variants&&(U=O.variants,delete F.variants,F=G=>{let z=O;return Jg(G,Zg(U),U).forEach(Y=>{z=qr(z,Y)}),z}),F}return O}):[];let E=C;if(Yi(C)){let O;C&&C.variants&&(O=C.variants,delete E.variants,E=F=>{let U=C;return Jg(F,Zg(O),O).forEach(z=>{U=qr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=O=>DD({styledArg:C,props:O,defaultTheme:n,themeId:t}));l&&p&&S.push(O=>{const F=Jv(T({},O,{defaultTheme:n,themeId:t})),U=swe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},O,{theme:F})):V}),p(O,G)}return null}),l&&!b&&S.push(O=>{const F=Jv(T({},O,{defaultTheme:n,themeId:t}));return cwe(O,lwe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const O=new Array(k).fill("");E=[...C,...O],E.raw=[...C.raw,...O]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const pwe=Yj(),hwe=pwe;function _2(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:s2(t.components[n].defaultProps,r)}function Kj({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ch(n);return r&&(o=o[r]||o),_2({theme:o,name:t,props:e})}function E2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(mwe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function P0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vwe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),P0({type:s,values:l})}function MD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(vwe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gwe(e,t){const n=MD(e),r=MD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=E2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,P0(e)}function T0(e,t){if(e=lc(e),t=E2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return P0(e)}function k0(e,t){if(e=lc(e),t=E2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return P0(e)}const ywe=["component","direction","spacing","divider","children","className","useFlexGap"],bwe=E0(),xwe=hwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wwe(e){return Kj({props:e,name:"MuiStack",defaultTheme:bwe})}function Cwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Swe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Oo({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=x2(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=qr(n,Oo({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${$we(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=uxe(t.breakpoints,n),n};function _we(e={}){const{createStyledComponent:t=xwe,useThemeProps:n=wwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(Swe);return $.forwardRef(function(l,c){const u=n(l),f=S2(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Re(f,ywe),C={direction:m,spacing:b,useFlexGap:y},_=o();return R.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?Cwe(x,v):x}))})}function Ewe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pwe=["mode","contrastThreshold","tonalOffset"],ID={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ap.white,default:Ap.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lx={text:{primary:Ap.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ap.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function AD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=k0(e.main,o):t==="dark"&&(e.dark=T0(e.main,a)))}function Twe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[700],light:Jc[400],dark:Jc[800]}}function kwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[500],light:Zc[300],dark:Zc[700]}}function Rwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function Owe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function Dwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Mwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function Iwe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Re(e,Pwe),a=e.primary||Twe(t),i=e.secondary||kwe(t),s=e.error||Rwe(t),l=e.info||Owe(t),c=e.success||Dwe(t),u=e.warning||Mwe(t);function f(v){return gwe(v,Lx.text.primary)>=n?Lx.text.primary:ID.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return AD(v,"light",y,r),AD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Lx,light:ID};return qr(T({common:T({},Ap),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:k1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Awe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Nwe(e){return Math.round(e*1e5)/1e5}const ND={textTransform:"uppercase"},jD='"Roboto", "Helvetica", "Arial", sans-serif';function jwe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=jD,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Re(n,Awe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===jD?{letterSpacing:`${Nwe(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,ND),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,ND),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Lwe=.2,Fwe=.14,zwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fwe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zwe})`].join(",")}const Vwe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Bwe=Vwe,Uwe=["duration","easing","delay"],Wwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Zj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function LD(e){return`${Math.round(e)}ms`}function Hwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Gwe(e){const t=T({},Wwe,e.easing),n=T({},Zj,e.duration);return T({getAutoHeightDuration:Hwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Re(a,Uwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:LD(i)} ${s} ${typeof l=="string"?l:LD(l)}`).join(",")}},e,{easing:t,duration:n})}const qwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ywe=qwe,Kwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Re(e,Kwe);if(e.vars)throw new Error(al(18));const s=Iwe(r),l=E0(e);let c=qr(l,{mixins:Ewe(l.breakpoints,n),palette:s,shadows:Bwe.slice(),typography:jwe(s,a),transitions:Gwe(o),zIndex:T({},Ywe)});return c=qr(c,i),c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},_0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return C2({sx:f,theme:this})},c}const Jwe=Zwe(),R0=Jwe;function rr(){const e=Ch(R0);return e[a0]||e}function Ze({props:e,name:t}){return Kj({props:e,name:t,defaultTheme:R0,themeId:a0})}const ra=e=>Qf(e)&&e!=="classes",P2=Qf,Xwe=Yj({themeId:a0,defaultTheme:R0,rootShouldForwardProp:ra}),he=Xwe,Qwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},FD=Qwe;function eCe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tCe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nCe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,eCe,r)},rCe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Jj=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Re(r,tCe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=nCe(v);return R.jsxs(rCe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?R.jsx("title",{children:f}):null]}))});Jj.muiName="SvgIcon";const HC=Jj;function or(e,t){function n(r,o){return R.jsx(HC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=HC.muiName,$.memo($.forwardRef(n))}const oCe={configure:e=>{Sj.configure(e)}},aCe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:qg,createSvgIcon:or,debounce:bh,deprecatedPropType:N1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:Pi,requirePropFactory:j1e,setRef:Np,unstable_ClassNameGenerator:oCe,unstable_useEnhancedEffect:Zn,unstable_useId:Qa,unsupportedProp:z1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:o0},Symbol.toStringTag,{value:"Module"}));var En={};/** * @license React * react-is.production.min.js * @@ -168,7 +168,7 @@ const result = await chain.invoke({ ... }); * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var EE=Symbol.for("react.element"),PE=Symbol.for("react.portal"),E0=Symbol.for("react.fragment"),P0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),O0=Symbol.for("react.context"),Kwe=Symbol.for("react.server_context"),R0=Symbol.for("react.forward_ref"),D0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),I0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Jwe=Symbol.for("react.offscreen"),q6;q6=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EE:switch(e=e.type,e){case E0:case T0:case P0:case D0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case Kwe:case O0:case R0:case A0:case I0:case k0:return e;default:return t}}case PE:return t}}}En.ContextConsumer=O0;En.ContextProvider=k0;En.Element=EE;En.ForwardRef=R0;En.Fragment=E0;En.Lazy=A0;En.Memo=I0;En.Portal=PE;En.Profiler=T0;En.StrictMode=P0;En.Suspense=D0;En.SuspenseList=M0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===O0};En.isContextProvider=function(e){return Pa(e)===k0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EE};En.isForwardRef=function(e){return Pa(e)===R0};En.isFragment=function(e){return Pa(e)===E0};En.isLazy=function(e){return Pa(e)===A0};En.isMemo=function(e){return Pa(e)===I0};En.isPortal=function(e){return Pa(e)===PE};En.isProfiler=function(e){return Pa(e)===T0};En.isStrictMode=function(e){return Pa(e)===P0};En.isSuspense=function(e){return Pa(e)===D0};En.isSuspenseList=function(e){return Pa(e)===M0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===E0||e===T0||e===P0||e===D0||e===M0||e===Jwe||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===I0||e.$$typeof===k0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===q6||e.getModuleId!==void 0)};En.typeOf=Pa;function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BC(e,t)}function TE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BC(e,t)}function Zwe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Xwe(e,t){e.classList?e.classList.add(t):Zwe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Qwe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jD(e.className,t):e.setAttribute("class",jD(e.className&&e.className.baseVal||"",t))}const LD={disabled:!1},Kg=M.createContext(null);var Y6=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",UC="exiting",fs=function(e){TE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=UC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this);i&&Y6(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Of.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||LD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Of.findDOMNode(this);if(!a||LD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:UC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Kg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);fs.contextType=Kg;fs.propTypes={};function tu(){}fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};fs.UNMOUNTED=Mf;fs.EXITED=Al;fs.ENTERING=Nl;fs.ENTERED=iu;fs.EXITING=UC;const N0=fs;var eCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xwe(t,r)})},Ax=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Qwe(t,r)})},kE=function(e){TE(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function lCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const cCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],uCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,lCe,n)},dCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),fCe=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),J6=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=H6.standard,TransitionComponent:C=N0}=r,_=Oe(r,cCe),S=T({},r,{orientation:g,collapsedSize:s}),E=uCe(S),k=rr(),I=$.useRef(),R=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>Z=>{if(B){const re=V.current;Z===void 0?B(re):B(re,Z)}},W=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((B,Z)=>{R.current&&G&&(R.current.style.position="absolute"),B.style[z]=U,f&&f(B,Z)}),X=Q((B,Z)=>{const re=W();R.current&&G&&(R.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,Z)}),j=Q((B,Z)=>{B.style[z]="auto",p&&p(B,Z)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const Z=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return O.jsx(C,T({in:u,onEnter:J,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,Z)=>O.jsx(dCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},Z,{children:O.jsx(fCe,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:R,children:O.jsx(pCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});J6.muiSupportAuto=!0;const hCe=J6;function mCe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const vCe=["className","component","elevation","square","variant"],gCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,mCe,o)},yCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",ND(t.elevation))}, ${Tt("#fff",ND(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),bCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,vCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=gCe(u);return O.jsx(yCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),ps=bCe,xCe=$.createContext({}),Z6=xCe;function wCe(e){return tt("MuiAccordion",e)}const CCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),iv=CCe,$Ce=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],SCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},wCe,t)},_Ce=he(ps,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${iv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${iv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${iv.expanded}`]:{margin:"16px 0"}})),ECe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=hCe,TransitionProps:m}=r,b=Oe(r,$Ce),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=SCe(_);return O.jsxs(_Ce,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Z6.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),PCe=ECe;function TCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const kCe=["className"],OCe=e=>{const{classes:t}=e;return Qe({root:["root"]},TCe,t)},RCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),DCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,kCe),i=r,s=OCe(i);return O.jsx(RCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),MCe=DCe;function ICe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const ACe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=ACe,NCe=["center","classes","className"];let j0=e=>e,FD,zD,VD,BD;const WC=550,jCe=80,LCe=hE(FD||(FD=j0` + */var T2=Symbol.for("react.element"),k2=Symbol.for("react.portal"),O0=Symbol.for("react.fragment"),D0=Symbol.for("react.strict_mode"),M0=Symbol.for("react.profiler"),I0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),iCe=Symbol.for("react.server_context"),N0=Symbol.for("react.forward_ref"),j0=Symbol.for("react.suspense"),L0=Symbol.for("react.suspense_list"),F0=Symbol.for("react.memo"),z0=Symbol.for("react.lazy"),sCe=Symbol.for("react.offscreen"),Xj;Xj=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T2:switch(e=e.type,e){case O0:case M0:case D0:case j0:case L0:return e;default:switch(e=e&&e.$$typeof,e){case iCe:case A0:case N0:case z0:case F0:case I0:return e;default:return t}}case k2:return t}}}En.ContextConsumer=A0;En.ContextProvider=I0;En.Element=T2;En.ForwardRef=N0;En.Fragment=O0;En.Lazy=z0;En.Memo=F0;En.Portal=k2;En.Profiler=M0;En.StrictMode=D0;En.Suspense=j0;En.SuspenseList=L0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===A0};En.isContextProvider=function(e){return Pa(e)===I0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T2};En.isForwardRef=function(e){return Pa(e)===N0};En.isFragment=function(e){return Pa(e)===O0};En.isLazy=function(e){return Pa(e)===z0};En.isMemo=function(e){return Pa(e)===F0};En.isPortal=function(e){return Pa(e)===k2};En.isProfiler=function(e){return Pa(e)===M0};En.isStrictMode=function(e){return Pa(e)===D0};En.isSuspense=function(e){return Pa(e)===j0};En.isSuspenseList=function(e){return Pa(e)===L0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O0||e===M0||e===D0||e===j0||e===L0||e===sCe||typeof e=="object"&&e!==null&&(e.$$typeof===z0||e.$$typeof===F0||e.$$typeof===I0||e.$$typeof===A0||e.$$typeof===N0||e.$$typeof===Xj||e.getModuleId!==void 0)};En.typeOf=Pa;function GC(e,t){return GC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},GC(e,t)}function R2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,GC(e,t)}function lCe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function cCe(e,t){e.classList?e.classList.add(t):lCe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uCe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zD(e.className,t):e.setAttribute("class",zD(e.className&&e.className.baseVal||"",t))}const VD={disabled:!1},Xg=M.createContext(null);var Qj=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",qC="exiting",ps=function(e){R2(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=qC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Rf.findDOMNode(this);i&&Qj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Rf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||VD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Rf.findDOMNode(this);if(!a||VD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:qC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Rf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Re(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Xg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ps.contextType=Xg;ps.propTypes={};function tu(){}ps.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};ps.UNMOUNTED=Mf;ps.EXITED=Al;ps.ENTERING=Nl;ps.ENTERED=iu;ps.EXITING=qC;const V0=ps;var dCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return cCe(t,r)})},Fx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return uCe(t,r)})},O2=function(e){R2(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function bCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],wCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,bCe,n)},CCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),$Ce=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),SCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),t9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Zj.standard,TransitionComponent:C=V0}=r,_=Re(r,xCe),S=T({},r,{orientation:g,collapsedSize:s}),E=wCe(S),k=rr(),I=$.useRef(),O=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>J=>{if(B){const re=V.current;J===void 0?B(re):B(re,J)}},W=()=>O.current?O.current[G?"clientWidth":"clientHeight"]:0,Z=Q((B,J)=>{O.current&&G&&(O.current.style.position="absolute"),B.style[z]=U,f&&f(B,J)}),X=Q((B,J)=>{const re=W();O.current&&G&&(O.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,J)}),j=Q((B,J)=>{B.style[z]="auto",p&&p(B,J)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const J=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(J);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return R.jsx(C,T({in:u,onEnter:Z,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,J)=>R.jsx(CCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},J,{children:R.jsx($Ce,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:O,children:R.jsx(SCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});t9.muiSupportAuto=!0;const _Ce=t9;function ECe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PCe=["className","component","elevation","square","variant"],TCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,ECe,o)},kCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",FD(t.elevation))}, ${Tt("#fff",FD(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),RCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Re(r,PCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=TCe(u);return R.jsx(kCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),hs=RCe,OCe=$.createContext({}),n9=OCe;function DCe(e){return tt("MuiAccordion",e)}const MCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),cv=MCe,ICe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ACe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},DCe,t)},NCe=he(hs,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${cv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${cv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${cv.expanded}`]:{margin:"16px 0"}})),jCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=_Ce,TransitionProps:m}=r,b=Re(r,ICe),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=ACe(_);return R.jsxs(NCe,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[R.jsx(n9.Provider,{value:C,children:y}),R.jsx(p,T({in:v,timeout:"auto"},m,{children:R.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),LCe=jCe;function FCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const zCe=["className"],VCe=e=>{const{classes:t}=e;return Qe({root:["root"]},FCe,t)},BCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),UCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Re(r,zCe),i=r,s=VCe(i);return R.jsx(BCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),WCe=UCe;function HCe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),R.jsx("span",{className:p,style:m,children:R.jsx("span",{className:b})})}const GCe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=GCe,qCe=["center","classes","className"];let B0=e=>e,BD,UD,WD,HD;const YC=550,YCe=80,KCe=v2(BD||(BD=B0` 0% { transform: scale(0); opacity: 0.1; @@ -178,7 +178,7 @@ const result = await chain.invoke({ ... }); transform: scale(1); opacity: 0.3; } -`)),FCe=hE(zD||(zD=j0` +`)),ZCe=v2(UD||(UD=B0` 0% { opacity: 1; } @@ -186,7 +186,7 @@ const result = await chain.invoke({ ... }); 100% { opacity: 0; } -`)),zCe=hE(VD||(VD=j0` +`)),JCe=v2(WD||(WD=B0` 0% { transform: scale(1); } @@ -198,7 +198,7 @@ const result = await chain.invoke({ ... }); 100% { transform: scale(1); } -`)),VCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BCe=he(ICe,{name:"MuiTouchRipple",slot:"Ripple"})(BD||(BD=j0` +`)),XCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),QCe=he(HCe,{name:"MuiTouchRipple",slot:"Ripple"})(HD||(HD=B0` opacity: 0; position: absolute; @@ -241,15 +241,15 @@ const result = await chain.invoke({ ... }); animation-iteration-count: infinite; animation-delay: 200ms; } -`),pa.rippleVisible,LCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,FCe,WC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,zCe,({theme:e})=>e.transitions.easing.easeInOut),UCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,NCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(BCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:WC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},jCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(VCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:O.jsx(DE,{component:null,exit:!0,children:l})}))}),WCe=UCe;function HCe(e){return tt("MuiButtonBase",e)}const GCe=et("MuiButtonBase",["root","disabled","focusVisible"]),qCe=GCe,YCe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KCe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},HCe,o);return n&&r&&(i.root+=` ${r}`),i},JCe=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qCe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Oe(r,YCe),Q=$.useRef(null),W=$.useRef(null),J=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=Qy(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,Z]=$.useState(!1);$.useEffect(()=>{Z(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",R),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=KCe(ze);return O.jsxs(JCe,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?O.jsx(WCe,T({ref:J,center:a},G)):null]}))}),Sa=ZCe;function XCe(e){return tt("MuiAccordionSummary",e)}const QCe=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=QCe,e$e=["children","className","expandIcon","focusVisibleClassName","onClick"],t$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},XCe,t)},n$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),r$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),o$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),a$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,e$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(Z6),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=t$e(v);return O.jsxs(n$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(r$e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(o$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),i$e=a$e;function s$e(e){return tt("MuiIconButton",e)}const l$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c$e=l$e,u$e=["edge","children","className","color","disabled","disableFocusRipple","size"],d$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,s$e,t)},f$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),p$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,u$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=d$e(p);return O.jsx(f$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=p$e,h$e=or(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function m$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const v$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,m$e,i)},y$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x$e=e=>b$e[e]||e,w$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=x$e(r.color),a=CE(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=UD}=a,b=Oe(a,v$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||UD[p])||"span",g=g$e(v);return O.jsx(y$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=w$e;function C$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const $$e=["className","color","enableColorOnDark","position"],S$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,C$e,r)},sv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_$e=he(ps,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:sv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),E$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,$$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=S$e(c);return O.jsx(_$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),P$e=E$e;function xi(e){return typeof e=="string"}function If(e,t,n){return e===void 0||xi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function T$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const k$e={disableDefaultClasses:!1},O$e=$.createContext(k$e);function R$e(e){const{disableDefaultClasses:t}=$.useContext(O$e);return n=>t?"":e(n)}function Qf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function WD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Qf(T({},o,r)),s=WD(r),l=WD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const M$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,M$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=D$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function I$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=oE({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const A$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function N$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function L$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j$e(e))}function F$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(A$e)).forEach((r,o)=>{const a=N$e(r);a===-1||!L$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function z$e(){return!0}function X6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=F$e,isEnabled:i=z$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs($.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",ME="auto",xh=[_o,_a,Ea,Eo],Qu="start",Lp="end",V$e="clippingParents",Q6="viewport",gf="popper",B$e="reference",HD=xh.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+Lp])},[]),eL=[].concat(xh,[ME]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+Lp])},[]),U$e="beforeRead",W$e="read",H$e="afterRead",G$e="beforeMain",q$e="main",Y$e="afterMain",K$e="beforeWrite",J$e="write",Z$e="afterWrite",X$e=[U$e,W$e,H$e,G$e,q$e,Y$e,K$e,J$e,Z$e];function Ei(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IE(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ei(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function eSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ei(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const tSe={name:"applyStyles",enabled:!0,phase:"write",fn:Q$e,effect:eSe,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Kl=Math.max,Jg=Math.min,ed=Math.round;function HC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tL(){return!/^((?!chrome|android).)*safari/i.test(HC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Zo(e):window,s=i.visualViewport,l=!tL()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function AE(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ss(e){return Zo(e).getComputedStyle(e)}function nSe(e){return["table","td","th"].indexOf(Ei(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return Ei(e)==="html"?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||fl(e)}function GD(e){return!ya(e)||ss(e).position==="fixed"?null:e.offsetParent}function rSe(e){var t=/firefox/i.test(HC()),n=/Trident/i.test(HC());if(n&&ya(e)){var r=ss(e);if(r.position==="fixed")return null}var o=L0(e);for(IE(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ei(o))<0;){var a=ss(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function wh(e){for(var t=Zo(e),n=GD(e);n&&nSe(n)&&ss(n).position==="static";)n=GD(n);return n&&(Ei(n)==="html"||Ei(n)==="body"&&ss(n).position==="static")?t:n||rSe(e)||t}function NE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ep(e,t,n){return Kl(e,Jg(t,n))}function oSe(e,t,n){var r=ep(e,t,n);return r>n?n:r}function rL(){return{top:0,right:0,bottom:0,left:0}}function oL(e){return Object.assign({},rL(),e)}function aL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oL(typeof t!="number"?t:aL(t,xh))};function iSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=wi(n.placement),l=NE(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=aSe(o.padding,n),p=AE(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=wh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=ep(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function sSe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nL(t.elements.popper,o)&&(t.elements.arrow=o))}const lSe={name:"arrow",enabled:!0,phase:"main",fn:iSe,effect:sSe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var cSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function qD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=wh(n),E="clientHeight",k="clientWidth";if(S===Zo(n)&&(S=fl(n),ss(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===Lp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===Lp){w=Ea;var R=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&cSe),U=u===!0?uSe({x:m,y:v},Zo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function dSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:wi(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fSe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dSe,data:{}};var lv={passive:!0};function pSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lv)}),s&&l.addEventListener("resize",n.update,lv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lv)}),s&&l.removeEventListener("resize",n.update,lv)}}const hSe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pSe,data:{}};var mSe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(e){return e.replace(/left|right|bottom|top/g,function(t){return mSe[t]})}var vSe={start:"end",end:"start"};function YD(e){return e.replace(/start|end/g,function(t){return vSe[t]})}function jE(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LE(e){return td(fl(e)).left+jE(e).scrollLeft}function gSe(e,t){var n=Zo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=tL();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+LE(e),y:l}}function ySe(e){var t,n=fl(e),r=jE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+LE(e),l=-r.scrollTop;return ss(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function FE(e){var t=ss(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iL(e){return["html","body","#document"].indexOf(Ei(e))>=0?e.ownerDocument.body:ya(e)&&FE(e)?e:iL(L0(e))}function tp(e,t){var n;t===void 0&&(t=[]);var r=iL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Zo(r),i=o?[a].concat(a.visualViewport||[],FE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(tp(L0(i)))}function GC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KD(e,t,n){return t===Q6?GC(gSe(e,n)):cc(t)?bSe(t,n):GC(ySe(fl(e)))}function xSe(e){var t=tp(L0(e)),n=["absolute","fixed"].indexOf(ss(e).position)>=0,r=n&&ya(e)?wh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&nL(o,r)&&Ei(o)!=="body"}):[]}function wSe(e,t,n,r){var o=t==="clippingParents"?xSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=KD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Jg(u.right,l.right),l.bottom=Jg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},KD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sL(e){var t=e.reference,n=e.element,r=e.placement,o=r?wi(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?NE(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Lp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Fp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?V$e:s,c=n.rootBoundary,u=c===void 0?Q6:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=oL(typeof x!="number"?x:aL(x,xh)),y=p===gf?B$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=wSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=sL({reference:S,element:w,strategy:"absolute",placement:o}),k=GC(Object.assign({},w,E)),I=p===gf?k:S,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(R).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";R[G]+=U[V]*z})}return R}function CSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?eL:l,u=nd(r),f=u?s?HD:HD.filter(function(b){return nd(b)===u}):xh,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Fp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function $Se(e){if(wi(e)===ME)return[];var t=Kv(e);return[YD(e),t,YD(t)]}function SSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=wi(x),y=g===x,w=l||(y||!b?[Kv(x)]:$Se(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(wi(N)===ME?CSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,V=z?"width":"height",Y=Fp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Kv(Q));var W=Kv(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[W]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const _Se={name:"flip",enabled:!0,phase:"main",fn:SSe,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZD(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function ESe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Fp(t,{elementContext:"reference"}),s=Fp(t,{altBoundary:!0}),l=JD(i,r),c=JD(s,o,a),u=ZD(l),f=ZD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const PSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ESe};function TSe(e,t,n){var r=wi(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function kSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=eL.reduce(function(u,f){return u[f]=TSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const OSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kSe};function RSe(e){var t=e.state,n=e.name;t.modifiersData[n]=sL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DSe={name:"popperOffsets",enabled:!0,phase:"read",fn:RSe,data:{}};function MSe(e){return e==="x"?"y":"x"}function ISe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Fp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=wi(t.placement),y=nd(t.placement),w=!y,C=NE(g),_=MSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],J=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?AE(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rL(),B=N[z],Z=N[V],re=ep(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-R.mainAxis:j-re-B-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,me=t.elements.arrow&&wh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=ep(m?Jg(W,Ce):W,Q,m?Kl(J,fe):J);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+R.altAxis,ze=Ye?ge+E[we]+k[we]-Me-R.altAxis:He,Pe=m&&Ye?oSe(je,ge,ze):ep(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const ASe={name:"preventOverflow",enabled:!0,phase:"main",fn:ISe,requiresIfExists:["offset"]};function NSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jSe(e){return e===Zo(e)||!ya(e)?jE(e):NSe(e)}function LSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&LSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ei(t)!=="body"||FE(a))&&(s=jSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=LE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function zSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function VSe(e){var t=zSe(e);return X$e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function USe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XD={placement:"bottom",modifiers:[],strategy:"absolute"};function QD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(qSe(o)||document.body)},[o,a]),Jn(()=>{if(i&&!a)return Ip(n,i),()=>{Ip(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return O.jsx($.Fragment,{children:r})}return O.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function YSe(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const KSe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JSe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZSe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function qC(e){return typeof e=="function"?e():e}function XSe(e){return e.nodeType!==void 0}const QSe=()=>Qe({root:["root"]},R$e(YSe)),e_e={},t_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,KSe),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Jn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=ZSe(u,i),[E,k]=$.useState(S),[I,R]=$.useState(qC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&R(qC(o))},[o]),Jn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=GSe(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=QSe(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),n_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=e_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,JSe),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=qC(r);E=R&&XSe(R)?Vn(R).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return O.jsx(lL,{disablePortal:s,container:E,children:O.jsx(t_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function r_e(e){const t=Vn(e);return t.body===e?_i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eM(e){return parseInt(_i(e).getComputedStyle(e).paddingRight,10)||0}function o_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!o_e(i);s&&l&&np(i,o)})}function Nx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r_e(r)){const i=g6(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${eM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=_i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function i_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&np(t.modalRef,!1);const o=i_e(n);tM(n,t.mount,t.modalRef,o,!0);const a=Nx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Nx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=a_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,n),tM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l_e(e){return typeof e=="function"?e():e}function c_e(e){return e?e.props.hasOwnProperty("in"):!1}const u_e=new s_e;function d_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=u_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=c_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=l_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&np(b.current,w))}),R=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{R()},[R]),$.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Qf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Wg(Y,l==null?void 0:l.props.onEnter),onExited:Wg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const f_e=2;function cL(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function nM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},g_e=e=>e;let fv;function jx(){return fv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fv=CSS.supports("touch-action","none"):fv=!0),fv}function y_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=g_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[R,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(R);let z=G?R.slice().sort(cL):[R];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:X}=Qy(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));J(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},Z=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Jn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=p_e(gt,l,s),v)Le=m_e(Le,v,l);else{const te=nM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=nM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=rM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=cv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});uv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>f_e&&k(!0),U&&!dv(ze,R)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=cv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;jx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=cv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});uv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!dv(Te,R)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:jx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:jx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=cv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});uv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!dv(it,R)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=Zg(G?z[0]:l,l,s),De=Zg(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=Qf(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:v_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=Qf(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:Z(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},F1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=Qf(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const b_e=["onChange","maxRows","minRows","style","value"];function pv(e){return parseInt(e,10)||0}const x_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const w_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,b_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=_i(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=S.boxSizing,I=pv(S.paddingBottom)+pv(S.paddingTop),R=pv(S.borderBottomWidth)+pv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+R:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();oM(C)||v(_=>g(_,C))},[x]);Jn(()=>{const C=()=>{const F=x();oM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=vh(_),k=u.current,I=_i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Jn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs($.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},x_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function aM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function C_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=aM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=aM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Lx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function __e(e){const{unstable_isActiveElementInListbox:t=S_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=$_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:J,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Za(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),Z=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&R(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=oE({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?Z.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Lx(fe,rt=>R(ve,rt))!==-1)return;const Ie=Lx(Pe,rt=>R(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Ip(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Lx(xt,ut=>R(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-iM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:iM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){Z.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(Z.current.focus(),j&&B.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&R(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const E_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],P_e=he(n_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T_e=$.forwardRef(function(t,n){var r;const o=wE(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,E_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(P_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),Ch=T_e;function k_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const O_e=["className","color","component","disableGutters","disableSticky","inset"],R_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,k_e,t)},D_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),uL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,O_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=R_e(f);return O.jsx(D_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});uL.muiSkipListHighlight=!0;const M_e=uL,I_e=or(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function A_e(e){return tt("MuiChip",e)}const N_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=N_e,j_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,A_e,t)},F_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),z_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sM(e){return e.key==="Backspace"||e.key==="Delete"}const V_e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,j_e),S=$.useRef(null),E=sn(S,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&sM(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&sM(J)?b(J):J.key==="Escape"&&S.current&&S.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=L_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):O.jsx(I_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),O.jsxs(F_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,O.jsx(z_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),dL=V_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const B_e=$.createContext(void 0),F0=B_e;function ki(){return $.useContext(F0)}function U_e(e){return O.jsx(Uxe,T({},e,{defaultTheme:_0,themeId:e0}))}function lM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(lM(e.value)&&e.value!==""||t&&lM(e.defaultValue)&&e.defaultValue!=="")}function W_e(e){return e.startAdornment}function H_e(e){return tt("MuiInputBase",e)}const G_e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=G_e,q_e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],z0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},V0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Y_e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,H_e,t)},B0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),U0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_e=O.jsx(U_e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),J_e=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:J={},startAdornment:X,type:j="text",value:K}=o,q=Oe(o,q_e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),Z=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,Z),[ce,xe]=$.useState(!1),me=ki(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{Xg(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Jn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),R&&R(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=w_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=Y_e(He),Me=J.root||c.Root||B0,je=W.root||u.root||{},ze=J.input||c.Input||U0;return we=T({},we,(r=W.input)!=null?r:u.input),O.jsxs($.Fragment,{children:[!m&&K_e,O.jsxs(Me,T({},je,!xi(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,O.jsx(F0.Provider,{value:null,children:O.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!xi(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),zE=J_e;function Z_e(e){return tt("MuiInput",e)}const X_e=T({},Vo,et("MuiInput",["root","underline","input"])),js=X_e;function Q_e(e){return tt("MuiOutlinedInput",e)}const eEe=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),li=eEe;function tEe(e){return tt("MuiFilledInput",e)}const nEe=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=nEe,fL=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rEe(e){return tt("MuiAutocomplete",e)}const oEe=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=oEe;var cM,uM;const aEe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iEe=["ref"],sEe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,rEe,t)},lEe=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${js.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${js.root}.${Vo.sizeSmall}`]:{[`& .${js.input}`]:{padding:"2px 4px 3px 0"}},[`& .${li.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${li.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),cEe=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uEe=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dEe=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),fEe=he(Ch,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),pEe=he(ps,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),hEe=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mEe=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vEe=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gEe=he(M_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yEe=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),bEe=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=cM||(cM=O.jsx(h$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:ce=ps,PopperComponent:xe=Ch,popupIcon:me=uM||(uM=O.jsx(fL,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Oe(s,aEe),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=__e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Oe(dt,iEe),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=sEe(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>O.jsx(dL,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(O.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>O.jsxs("li",{children:[O.jsx(gEe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),O.jsx(yEe,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>O.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs($.Fragment,{children:[O.jsx(lEe,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:O.jsxs(cEe,{className:Kt.endAdornment,ownerState:Ut,children:[nt?O.jsx(uEe,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(dEe,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?O.jsx(fEe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:O.jsxs(pEe,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?O.jsx(hEe,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?O.jsx(mEe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?O.jsx(vEe,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),xEe=bEe,wEe=or(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CEe(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $Ee=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],SEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CEe,t)},_Ee=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),EEe=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),PEe=he(wEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TEe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const kEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,$Ee);let b=null;const v=TEe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=SEe(y);return g?b=O.jsx(EEe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(PEe,{ownerState:y,className:w.fallback}),O.jsx(_Ee,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),pL=kEe,OEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],REe={entering:{opacity:1},entered:{opacity:1}},DEe=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=N0}=t,w=Oe(t,OEe),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{K6(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),R=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},REe[z],x,s.props.style),ref:_},V))}))}),kd=DEe;function MEe(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const IEe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AEe=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},MEe,t)},NEe=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),jEe=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Oe(i,IEe),w=T({},i,{component:c,invisible:p}),C=AEe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(NEe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),hL=jEe;function LEe(e){return tt("MuiBadge",e)}const FEe=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=FEe,zEe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fx=10,zx=4,VEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,LEe,i)},BEe=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),UEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fx*2,lineHeight:1,padding:"0 6px",height:Fx*2,borderRadius:Fx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:zx,height:zx*2,minWidth:zx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),WEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,zEe),{badgeContent:R,invisible:F,max:U,displayValue:G}=I$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=oE({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=V?z:c,X=J!=="dot"?G:void 0,j=T({},c,{badgeContent:R,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:J}),K=VEe(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:BEe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:UEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),mL=WEe;function HEe(e){return tt("MuiButton",e)}const GEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hv=GEe,qEe=$.createContext({}),YEe=qEe,KEe=$.createContext(void 0),JEe=KEe,ZEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],XEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,HEe,i);return T({},i,l)},vL=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),QEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hv.disabled}`]:{boxShadow:"none"}}),e2e=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},vL(e))),t2e=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},vL(e))),n2e=$.forwardRef(function(t,n){const r=$.useContext(YEe),o=$.useContext(JEe),a=aE(r,t),i=Je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,ZEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=XEe(S),k=y&&O.jsx(e2e,{className:E.startIcon,ownerState:S,children:y}),I=b&&O.jsx(t2e,{className:E.endIcon,ownerState:S,children:b}),R=o||"";return O.jsxs(QEe,T({ownerState:S,className:Ne(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=n2e;function r2e(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const o2e=["className","raised"],a2e=e=>{const{classes:t}=e;return Qe({root:["root"]},r2e,t)},i2e=he(ps,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),s2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,o2e),s=T({},r,{raised:a}),l=a2e(s);return O.jsx(i2e,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),l2e=s2e;function c2e(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const u2e=["className","component"],d2e=e=>{const{classes:t}=e;return Qe({root:["root"]},c2e,t)},f2e=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),p2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,u2e),s=T({},r,{component:a}),l=d2e(s);return O.jsx(f2e,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),h2e=p2e;function m2e(e){return tt("MuiCardHeader",e)}const v2e=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dM=v2e,g2e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],y2e=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m2e,t)},b2e=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${dM.title}`]:t.title,[`& .${dM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),x2e=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),w2e=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),C2e=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),$2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,g2e),b=T({},r,{component:s,disableTypography:l}),v=y2e(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=O.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=O.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(b2e,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(x2e,{className:v.avatar,ownerState:b,children:a}),O.jsxs(C2e,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(w2e,{className:v.action,ownerState:b,children:o})]}))}),S2e=$2e;function _2e(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E2e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],P2e=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,_2e,t)},T2e=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),k2e=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O2e=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Oe(t,E2e),[I,R]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=ki(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=P2e(Q);return O.jsxs(T2e,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(k2e,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),VE=O2e,R2e=or(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),D2e=or(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M2e=or(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I2e(e){return tt("MuiCheckbox",e)}const A2e=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vx=A2e,N2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],j2e=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,I2e,t);return T({},t,i)},L2e=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vx.checked}, &.${Vx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),F2e=O.jsx(D2e,{}),z2e=O.jsx(R2e,{}),V2e=O.jsx(M2e,{}),B2e=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=F2e,color:s="primary",icon:l=z2e,indeterminate:c=!1,indeterminateIcon:u=V2e,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,N2e),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=j2e(g);return O.jsx(L2e,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),U2e=B2e;function W2e(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const H2e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],G2e=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W2e,r)},q2e=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Y2e=he(hL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),K2e=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({name:"MuiModal",props:t}),{BackdropComponent:u=Y2e,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Oe(c,H2e),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=d_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=G2e(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=J();B.onEnter=se,B.onExited=Ce}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:q2e,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:Z,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(lL,{ref:X,container:v,disablePortal:S,children:O.jsxs(Z,T({},me,{children:[!I&&u?O.jsx(re,T({},ue)):null,O.jsx(X6,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),gL=K2e;function J2e(e){return tt("MuiDialog",e)}const Z2e=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rp=Z2e,X2e=$.createContext({}),yL=X2e,Q2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ePe=he(hL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,J2e,t)},nPe=he(gL,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),rPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),oPe=he(ps,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${rp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),aPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ps,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,Q2e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=tPe(R),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Za(s),Y=$.useMemo(()=>({titleId:V}),[V]);return O.jsx(nPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:ePe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:R},I,{children:O.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(rPe,{className:Ne(F.container),onMouseDown:G,ownerState:R,children:O.jsx(oPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:R,children:O.jsx(yL.Provider,{value:Y,children:u})}))})}))}))}),W0=aPe;function iPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const sPe=["className","disableSpacing"],lPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},iPe,t)},cPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),uPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,sPe),s=T({},r,{disableSpacing:a}),l=lPe(s);return O.jsx(cPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),H0=uPe;function dPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function fPe(e){return tt("MuiDialogTitle",e)}const pPe=et("MuiDialogTitle",["root"]),hPe=pPe,mPe=["className","dividers"],vPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},dPe,t)},gPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${hPe.root} + &`]:{paddingTop:0}})),yPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,mPe),s=T({},r,{dividers:a}),l=vPe(s);return O.jsx(gPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),G0=yPe;function bPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const xPe=["children","className"],wPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},bPe,t);return T({},t,r)},CPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Pe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,xPe),i=wPe(a);return O.jsx(CPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),BE=$Pe,SPe=["className","id"],_Pe=e=>{const{classes:t}=e;return Qe({root:["root"]},fPe,t)},EPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,SPe),s=r,l=_Pe(s),{titleId:c=a}=$.useContext(yL);return O.jsx(EPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),UE=PPe;function TPe(e){return tt("MuiDivider",e)}const kPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fM=kPe,OPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},TPe,r)},DPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,OPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=RPe(v);return O.jsx(DPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(MPe,{className:x.wrapper,ownerState:v,children:a}):null}))});bL.muiSkipListHighlight=!0;const pM=bL,IPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],APe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},tEe,t);return T({},t,o)},NPe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),jPe=he(U0,{name:"MuiFilledInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,IPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=APe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Gr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:NPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:jPe;return O.jsx(zE,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});xL.muiName="Input";const wL=xL;function LPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,LPe,t)},VPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),BPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,FPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=zPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&W_e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(Xg(z.props,!0)||Xg(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,R,f,p,F,b,v,x]);return O.jsx(F0.Provider,{value:U,children:O.jsx(VPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),$h=BPe,UPe=hwe({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Je({props:e,name:"MuiStack"})}),WPe=UPe;function HPe(e){return tt("MuiFormControlLabel",e)}const GPe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=GPe,qPe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YPe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,HPe,t)},KPe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JPe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),ZPe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,qPe),x=ki(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=YPe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=O.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),O.jsxs(KPe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?O.jsxs(WPe,{direction:"row",alignItems:"center",children:[k,O.jsxs(JPe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),q0=ZPe;function XPe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const QPe=["className","row"],eTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},XPe,t)},tTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,QPe),s=ki(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=eTe(c);return O.jsx(tTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),CL=nTe;function rTe(e){return tt("MuiFormHelperText",e)}const oTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hM=oTe;var mM;const aTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,rTe,t)},sTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,aTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iTe(u);return O.jsx(sTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?mM||(mM=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=lTe;function cTe(e){return tt("MuiFormLabel",e)}const uTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),op=uTe,dTe=["children","className","color","component","disabled","error","filled","focused","required"],fTe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,cTe,t)},pTe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${op.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),hTe=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),mTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,dTe),l=ki(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fTe(u);return O.jsxs(pTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(hTe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),WE=mTe,vTe=$.createContext(),vM=vTe;function gTe(e){return tt("MuiGrid",e)}const yTe=[0,1,2,3,4,5,6,7,8,9,10],bTe=["column-reverse","column","row-reverse","row"],xTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zp=et("MuiGrid",["root","container","item","zeroMinWidth",...yTe.map(e=>`spacing-xs-${e}`),...bTe.map(e=>`direction-xs-${e}`),...xTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),wTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function CTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function $Te({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${zp.item}`]={maxWidth:"none"}),o})}function $L({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function STe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${zp.item}`]:{paddingTop:0}}})}return o}function _Te({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=$L({breakpoints:e.breakpoints.values,values:a})),o=Ro({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${zp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zp.item}`]:{paddingLeft:0}}})}return o}function ETe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const PTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=ETe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),$Te,STe,_Te,CTe);function TTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const kTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,gTe,t)},OTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=CE(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,wTe),y=m||b,w=l||b,C=$.useContext(vM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&(S[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=kTe(k);return O.jsx(vM.Provider,{value:_,children:O.jsx(PTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=OTe,RTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function YC(e){return`scale(${e}, ${e**2})`}const DTe={entering:{opacity:1,transform:YC(1)},entered:{opacity:1,transform:"none"}},Bx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SL=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=N0}=t,g=Oe(t,RTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{K6(V);const{duration:Q,delay:W,easing:J}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Bx?X:X*.666,delay:W,easing:J})].join(","),l&&l(V,Y)}),R=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=J):J=Y,V.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:Bx?J:J*.666,delay:Bx?Q:Q||J*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=YC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:YC(.75),visibility:V==="exited"&&!s?"hidden":void 0},DTe[V],b,a.props.style),ref:S},Y))}))});SL.muiSupportAuto=!0;const Qg=SL;function MTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Jn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const _L=lp["useSyncExternalStore"];function ITe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return _L(l,s,i)}function Sh(e,t={}){const n=wE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=$E({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(_L!==void 0?ITe:MTe)(l,o,a,i,s)}const ATe=["initialWidth","width"],Bs=["xs","sm","md","lg","xl"],NTe=(e,t,n=!0)=>n?Bs.indexOf(e)<=Bs.indexOf(t):Bs.indexOf(e)n?Bs.indexOf(t)<=Bs.indexOf(e):Bs.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=$E({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,ATe),[m,b]=$.useState(!1);Jn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Sh(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},FTe=LTe;function zTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,BTe,t)},HTe=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function GTe(e){const{children:t,className:n,only:r}=e,o=Oe(e,UTe),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=WTe(s);return O.jsx(HTe,{className:Ne(l.root,n),ownerState:s,children:t})}const qTe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,qTe);return t==="js"?O.jsx(VTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(GTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const YTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KTe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},Z_e,t);return T({},t,o)},JTe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...z0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${js.disabled}, .${js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${js.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZTe=he(U0,{name:"MuiInput",slot:"Input",overridesResolver:V0})({}),EL=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,YTe),y=KTe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Gr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:JTe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:ZTe;return O.jsx(zE,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});EL.muiName="Input";const hs=EL;function XTe(e){return tt("MuiInputAdornment",e)}const QTe=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gM=QTe;var yM;const eke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,XTe,t)},rke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gM.positionStart}&:not(.${gM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,eke),p=ki()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=nke(b);return O.jsx(F0.Provider,{value:null,children:O.jsx(rke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(yn,{color:"text.secondary",children:o}):O.jsxs($.Fragment,{children:[c==="start"?yM||(yM=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),HE=oke;function ake(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ike=["disableAnimation","margin","shrink","variant","className"],ske=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,ake,t);return T({},t,c)},lke=he(WE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cke=$.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,ike),l=ki();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=ske(f);return O.jsx(lke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),PL=cke,uke=$.createContext({}),es=uke;function dke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const fke=["children","className","component","dense","disablePadding","subheader"],pke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dke,t)},hke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),mke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,fke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=pke(p);return O.jsx(es.Provider,{value:f,children:O.jsxs(hke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),GE=mke;function vke(e){return tt("MuiListItem",e)}const gke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=gke,yke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bke=yke;function xke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const wke=["className"],Cke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},xke,n)},$ke=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TL=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,wke),i=$.useContext(es),s=T({},r,{disableGutters:i.disableGutters}),l=Cke(s);return O.jsx($ke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});TL.muiName="ListItemSecondaryAction";const kL=TL,Ske=["className"],_ke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Eke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Pke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},vke,r)},Tke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:Eke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),kke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Oe(r.ContainerProps,Ske),I=Oe(r,_ke),R=$.useContext(es),F=$.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=$.useRef(null);Jn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Pke(V),Q=sn(U,n),W=E.root||u.Root||Tke,J=S.root||f.root||{},X=T({className:Ne(Y.root,J.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),O.jsx(es.Provider,{value:F,children:O.jsxs(kke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[O.jsx(W,T({},J,!xi(W)&&{as:j,ownerState:T({},V,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(es.Provider,{value:F,children:O.jsxs(W,T({},J,{as:j,ref:Q},!xi(W)&&{ownerState:T({},V,J.ownerState)},X,{children:[G,C&&O.jsx(kL,{children:C})]}))})}),OL=Oke;function Rke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Dke=["className"],Mke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rke,n)},Ike=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ake=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,Dke),i=$.useContext(es),s=T({},r,{alignItems:i.alignItems}),l=Mke(s);return O.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),Nke=Ake,jke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),bM=jke;function Lke(e){return tt("MuiListItemText",e)}const Fke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ey=Fke,zke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Lke,t)},Bke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.primary}`]:t.primary},{[`& .${ey.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Uke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,zke),{dense:m}=$.useContext(es);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Vke(x);return b!=null&&b.type!==yn&&!i&&(b=O.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=O.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(Bke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),Wke=Uke,Hke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ux(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RL(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Gke=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,Hke),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,Ux);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,xM);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,Ux);else if(_==="End")w.preventDefault(),xf(C,null,c,l,xM);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=S&&!E.repeating&&RL(S,E);E.previousKeyMatched&&(R||xf(C,S,!1,l,Ux,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return O.jsx(GE,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),qE=Gke;function qke(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const Yke=["onEntering"],Kke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jke=["slotProps"];function wM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $M(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Wx(e){return typeof e=="function"?e():e}const Zke=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},qke,t)},Xke=he(gL,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=he(ps,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qke=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=Qg,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Yke),F=Oe(i,Kke),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),Y=Zke(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Wx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+wM(fe,c.vertical),left:fe.left+CM(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:wM(se,_.vertical),horizontal:CM(se,_.horizontal)}),[_.horizontal,_.vertical]),J=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:$M(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=_i(Wx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:$M(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=J(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[J]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=vh(()=>{K()}),Ce=_i(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Wx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:Xke,re=(a=w==null?void 0:w.paper)!=null?a:DL,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Oe(xe,Jke);return O.jsx(Z,T({},ue,!xi(Z)&&{slotProps:me,disableScrollLock:I},{children:O.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},ce,{children:p}))}))}))}),eOe=Qke;function tOe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const nOe=["onEntering"],rOe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],oOe={vertical:"top",horizontal:"right"},aOe={vertical:"top",horizontal:"left"},iOe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},tOe,t)},sOe=he(eOe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lOe=he(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cOe=he(qE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),uOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,nOe),_=Oe(a,rOe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=iOe(k),R=i&&!c&&p,F=$.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,S),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;$.Children.map(s,(J,X)=>{$.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:lOe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(sOe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?oOe:aOe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(cOe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:R,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),dOe=uOe;function fOe(e){return tt("MuiMenuItem",e)}const pOe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=pOe,hOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},fOe,i);return T({},i,l)},gOe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mOe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fM.inset}`]:{marginLeft:52},[`& .${ey.root}`]:{marginTop:0,marginBottom:0},[`& .${ey.inset}`]:{paddingLeft:36},[`& .${bM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bM.root} svg`]:{fontSize:"1.25rem"}}))),yOe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,hOe),b=$.useContext(es),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Jn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=vOe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(es.Provider,{value:v,children:O.jsx(gOe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),ty=yOe;function bOe(e){return tt("MuiNativeSelect",e)}const xOe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=xOe,wOe=["className","disabled","error","IconComponent","inputRef","variant"],COe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,bOe,t)},ML=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${YE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$Oe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${YE.multiple}`]:t.multiple}]}})(ML),IL=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${YE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),SOe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),_Oe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,wOe),u=T({},t,{disabled:o,variant:l,error:a}),f=COe(u);return O.jsxs($.Fragment,{children:[O.jsx($Oe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(SOe,{as:i,ownerState:u,className:f.icon})]})}),EOe=_Oe;var SM;const POe=["children","classes","className","label","notched"],TOe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kOe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function OOe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,POe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(TOe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(kOe,{ownerState:i,children:a?O.jsx("span",{children:n}):SM||(SM=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const ROe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],DOe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Q_e,t);return T({},t,r)},MOe=he(B0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:z0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${li.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${li.focused} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${li.error} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${li.disabled} .${li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),IOe=he(OOe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),AOe=he(U0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:V0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,ROe),y=DOe(l),w=ki(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:MOe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:AOe;return O.jsx(zE,T({slots:{root:S,input:E},renderSuffix:k=>O.jsx(IOe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});AL.muiName="Input";const NL=AL,NOe=or(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jOe=or(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),LOe=he("span")({position:"relative",display:"flex"}),FOe=he(NOe)({transform:"scale(1)"}),zOe=he(jOe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function jL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(LOe,{className:n.root,ownerState:o,children:[O.jsx(FOe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(zOe,{fontSize:r,className:n.dot,ownerState:o})]})}const VOe=$.createContext(void 0),LL=VOe;function BOe(){return $.useContext(LL)}function UOe(e){return tt("MuiRadio",e)}const WOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_M=WOe,HOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],GOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,UOe,t))},qOe=he(VE,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_M.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_M.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function YOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const EM=O.jsx(jL,{checked:!0}),PM=O.jsx(jL,{}),KOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=EM,color:l="primary",icon:c=PM,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,HOe),v=T({},a,{color:l,size:p}),x=GOe(v),g=BOe();let y=i;const w=Wg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=YOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(qOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=PM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=EM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),JOe=KOe,ZOe=["actions","children","defaultValue","name","onChange","value"],XOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,ZOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Za(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(LL.Provider,{value:v,children:O.jsx(CL,T({role:"radiogroup",ref:m},c,{children:o}))})}),QOe=XOe;function eRe(e){return tt("MuiSelect",e)}const tRe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=tRe;var TM;const nRe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rRe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(ML,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oRe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IL),aRe=he("input",{shouldForwardProp:e=>_E(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iRe(e){return e==null||typeof e=="string"&&!e.trim()}const sRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,eRe,t)},lRe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Oe(t,nRe),[W,J]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:R,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(R!=null),[Z,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(J(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(J(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(Xg({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>kM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=kM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},KE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},pRe=he(hs,KE)(""),hRe=he(NL,KE)(""),mRe=he(wL,KE)(""),FL=$.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fL,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,uRe),R=y?EOe:cRe,F=ki(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=fRe(z),Y=Oe(V,dRe),Q=p||{standard:O.jsx(pRe,{ownerState:z}),outlined:O.jsx(hRe,{label:b,ownerState:z}),filled:O.jsx(mRe,{ownerState:z})}[G],W=sn(n,Q.ref);return O.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?Gr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});FL.muiName="Select";const zL=FL,vRe=e=>!e||!xi(e),gRe=vRe;function yRe(e){return tt("MuiSlider",e)}const bRe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=bRe,xRe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function wRe(e){const{children:t,className:n,value:r}=e,o=xRe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},O.jsxs($.Fragment,{children:[t.props.children,O.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const CRe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function OM(e){return e}const $Re=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),SRe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),_Re=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),ERe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),PRe=he(wRe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),TRe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_E(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),kRe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_E(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ORe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,yRe,i)},RRe=({children:e})=>e,DRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,R;const F=Je({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:J={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:Z=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=OM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=OM}=F,Be=Oe(F,CRe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=y_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=ORe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:$Re,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:SRe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:_Re,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:ERe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:PRe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:TRe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:kRe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:J.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:J.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:J.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:J.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:J.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:J.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:J.markLabel,xn=(R=Ce==null?void 0:Ce.input)!=null?R:J.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},gRe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return O.jsxs(Se,T({},Bn,{children:[O.jsx(_e,T({},le)),O.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=Zg(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),O.jsxs($.Fragment,{children:[O.jsx(_t,T({"data-index":Ie},Ee,!xi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!xi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=Zg(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?RRe:ft;return O.jsx(xt,T({},!xi(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:O.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:O.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),MRe=DRe;function IRe(e){return tt("MuiTooltip",e)}const ARe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Us=ARe,NRe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function jRe(e){return Math.round(e*1e5)/1e5}const LRe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,IRe,t)},FRe=he(Ch,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Us.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Us.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Us.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Us.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),zRe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jRe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Us.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Us.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Us.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Us.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),VRe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mv=!1,Hx=null,$f={x:0,y:0};function vv(e,t){return n=>{t&&t(n),e(n)}}const BRe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:Z,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=Qg,TransitionProps:se}=S,Ce=Oe(S,NRe),fe=$.isValidElement(k)?k:O.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||J,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Za(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Hx),mv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Hx),Hx=setTimeout(()=>{mv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||mv&&Q?Me.current=setTimeout(()=>{ne(yt)},mv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=Qy(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=vv(Yt,oe.onMouseOver),oe.onMouseLeave=vv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=vv(dt,oe.onFocus),oe.onBlur=vv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:Z,touch:$e.current}),pt=LRe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:FRe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:Qg,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:zRe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:VRe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:R.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:R.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:R.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:R.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),O.jsx(ye,T({as:Z??Ch,placement:B,anchorEl:J?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:O.jsxs(Ie,T({},Nt,{children:[me,E?O.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=BRe,URe=$.createContext({}),_h=URe,WRe=$.createContext({}),Y0=WRe;function HRe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const GRe=["active","children","className","component","completed","disabled","expanded","index","last"],qRe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},HRe,t)},YRe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),KRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,GRe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(_h);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=qRe(E),I=O.jsxs(YRe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(Y0.Provider,{value:S,children:v&&!x&&f!==0?O.jsxs($.Fragment,{children:[v,I]}):I})}),JRe=KRe,ZRe=or(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),XRe=or(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function QRe(e){return tt("MuiStepIcon",e)}const eDe=et("MuiStepIcon",["root","active","completed","error","text"]),Gx=eDe;var RM;const tDe=["active","className","completed","error","icon"],nDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},QRe,t)},qx=he(VC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Gx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.error}`]:{color:(e.vars||e).palette.error.main}})),rDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),oDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,tDe),u=T({},r,{active:o,completed:i,error:s}),f=nDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?O.jsx(qx,T({as:XRe,className:p,ref:n,ownerState:u},c)):i?O.jsx(qx,T({as:ZRe,className:p,ref:n,ownerState:u},c)):O.jsxs(qx,T({className:p,ref:n,ownerState:u},c,{children:[RM||(RM=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(rDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),aDe=oDe;function iDe(e){return tt("MuiStepLabel",e)}const sDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ws=sDe,lDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],cDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},iDe,t)},uDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ws.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ws.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),dDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ws.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ws.alternativeLabel}`]:{marginTop:16},[`&.${Ws.error}`]:{color:(e.vars||e).palette.error.main}})),fDe=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ws.alternativeLabel}`]:{paddingRight:0}})),pDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ws.alternativeLabel}`]:{textAlign:"center"}})),VL=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,lDe),{alternativeLabel:v,orientation:x}=$.useContext(_h),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Y0),_=c||C;let S=p;_&&!S&&(S=aDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=cDe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(uDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?O.jsx(fDe,{className:k.iconContainer,ownerState:E,children:O.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(pDe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(dDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});VL.muiName="StepLabel";const hDe=VL;function mDe(e){return tt("MuiStepButton",e)}const vDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),DM=vDe,gDe=["children","className","icon","optional"],yDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},mDe,t)},bDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${DM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),xDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,gDe),{disabled:c,active:u}=$.useContext(Y0),{orientation:f}=$.useContext(_h),p=T({},r,{orientation:f}),m=yDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):O.jsx(hDe,T({},b,{children:o}));return O.jsx(bDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),wDe=xDe;function CDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const $De=["className"],SDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,CDe,t)},_De=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),EDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),PDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,$De),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(_h),{active:l,disabled:c,completed:u}=$.useContext(Y0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=SDe(f);return O.jsx(_De,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(EDe,{className:p.line,ownerState:f})}))}),TDe=PDe;function kDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const ODe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],RDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},kDe,r)},DDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),MDe=O.jsx(TDe,{}),IDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=MDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,ODe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=RDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(_h.Provider,{value:g,children:O.jsx(DDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),ADe=IDe;function NDe(e){return tt("MuiSwitch",e)}const jDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),to=jDe,LDe=["className","color","edge","size","sx"],FDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,NDe,t);return T({},t,l)},zDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${to.thumb}`]:{width:16,height:16},[`& .${to.switchBase}`]:{padding:4,[`&.${to.checked}`]:{transform:"translateX(16px)"}}})),VDe=he(VE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${to.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${to.checked}`]:{transform:"translateX(20px)"},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${to.checked} + .${to.track}`]:{opacity:.5},[`&.${to.disabled} + .${to.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${to.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${to.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${to.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?S0(e.palette[t.color].main,.62):$0(e.palette[t.color].main,.55)}`}},[`&.${to.checked} + .${to.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),BDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),UDe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),WDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,LDe),u=T({},r,{color:a,edge:i,size:s}),f=FDe(u),p=O.jsx(UDe,{className:f.thumb,ownerState:u});return O.jsxs(zDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[O.jsx(VDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(BDe,{className:f.track,ownerState:u})]})}),HDe=WDe;function GDe(e){return tt("MuiTab",e)}const qDe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=qDe,YDe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],KDe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,GDe,t)},JDe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ZDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,YDe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=KDe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(JDe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs($.Fragment,{children:[E,f]}):O.jsxs($.Fragment,{children:[f,E]}),u]}))}),Vp=ZDe,XDe=$.createContext(),BL=XDe;function QDe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const eMe=["className","component","padding","size","stickyHeader"],tMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},QDe,t)},nMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),MM="table",rMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTable"}),{className:o,component:a=MM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,eMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=tMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(BL.Provider,{value:p,children:O.jsx(nMe,T({as:a,role:a===MM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),UL=rMe,oMe=$.createContext(),K0=oMe;function aMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const iMe=["className","component"],sMe=e=>{const{classes:t}=e;return Qe({root:["root"]},aMe,t)},lMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),cMe={variant:"body"},IM="tbody",uMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableBody"}),{className:o,component:a=IM}=r,i=Oe(r,iMe),s=T({},r,{component:a}),l=sMe(s);return O.jsx(K0.Provider,{value:cMe,children:O.jsx(lMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===IM?null:"rowgroup",ownerState:s},i))})}),WL=uMe;function dMe(e){return tt("MuiTableCell",e)}const fMe=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pMe=fMe,hMe=["align","className","component","padding","scope","size","sortDirection","variant"],mMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,dMe,t)},vMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?S0(Tt(e.palette.divider,1),.88):$0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),gMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,hMe),m=$.useContext(BL),b=$.useContext(K0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=mMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(vMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Od=gMe;function yMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const bMe=["className","component"],xMe=e=>{const{classes:t}=e;return Qe({root:["root"]},yMe,t)},wMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CMe={variant:"head"},AM="thead",$Me=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableHead"}),{className:o,component:a=AM}=r,i=Oe(r,bMe),s=T({},r,{component:a}),l=xMe(s);return O.jsx(K0.Provider,{value:CMe,children:O.jsx(wMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===AM?null:"rowgroup",ownerState:s},i))})}),HL=$Me;function SMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const _Me=["className","component","disableGutters","variant"],EMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},SMe,t)},PMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),TMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,_Me),c=T({},r,{component:a,disableGutters:i,variant:s}),u=EMe(c);return O.jsx(PMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),kMe=TMe,OMe=or(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),RMe=or(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function DMe(e){return tt("MuiTableRow",e)}const MMe=et("MuiTableRow",["root","selected","hover","head","footer"]),NM=MMe,IMe=["className","component","hover","selected"],AMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},DMe,t)},NMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jM="tr",jMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableRow"}),{className:o,component:a=jM,hover:i=!1,selected:s=!1}=r,l=Oe(r,IMe),c=$.useContext(K0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=AMe(u);return O.jsx(NMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===jM?null:"row",ownerState:u},l))}),hl=jMe;function LMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function FMe(e,t,n,r={},o=()=>{}){const{ease:a=LMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const zMe=["onChange"],VMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BMe(e){const{onChange:t}=e,n=Oe(e,zMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Jn(()=>{const i=vh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=_i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:VMe,ref:o},n))}function UMe(e){return tt("MuiTabScrollButton",e)}const WMe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),HMe=WMe,GMe=["className","slots","slotProps","direction","orientation","disabled"],qMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},UMe,t)},YMe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${HMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),KMe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,GMe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=qMe(m),v=(r=s.StartScrollButtonIcon)!=null?r:OMe,x=(o=s.EndScrollButtonIcon)!=null?o:RMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(YMe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),JMe=KMe;function ZMe(e){return tt("MuiTabs",e)}const XMe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Jv=XMe,QMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],LM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,FM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},eIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},ZMe,l)},tIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jv.scrollButtons}`]:t.scrollButtons},{[`& .${Jv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Jv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),nIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),rIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),oIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),aIe=he(BMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zM={},iIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=JMe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,QMe),G=R==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=eIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,Z]=$.useState(zM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:N1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[J]:ie?ie[J]:0};if(isNaN(B[_e])||isNaN(B[J]))Z(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[J]-Xe[J]);(nt>=1||ft>=1)&&Z(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?FMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&y6()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(aIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=vh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=_i(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(zM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=O.jsx(oIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),gv(ie,Se,FM);break;case nt:te.preventDefault(),gv(ie,Se,LM);break;case"Home":te.preventDefault(),gv(ie,null,LM);break;case"End":te.preventDefault(),gv(ie,null,FM);break}},ne=ze();return O.jsxs(tIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(nIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[O.jsx(rIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),J0=iIe;function sIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const lIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cIe={standard:hs,filled:wL,outlined:NL},uIe=e=>{const{classes:t}=e;return Qe({root:["root"]},sIe,t)},dIe=he($h,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:J="outlined"}=r,X=Oe(r,lIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:J}),K=uIe(j),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Za(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,Z=cIe[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(dIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:j},X,{children:[C!=null&&C!==""&&O.jsx(PL,T({htmlFor:D,id:B},x,{children:C})),V?O.jsx(zL,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&O.jsx(pr,T({id:N},p,{children:b}))]}))}),Eh=fIe;var pIe=_S;function hIe(e){return pIe(e)?void 0:e}var mIe=hIe,vIe=gd,gIe=Ly,yIe=Ude,bIe=ah,xIe=bd,wIe=mIe,CIe=jS,$Ie=G4,SIe=1,_Ie=2,EIe=4,PIe=CIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=vIe(t,function(a){return a=bIe(a,e),r||(r=a.length>1),a}),xIe(e,$Ie(e),n),r&&(n=gIe(n,SIe|_Ie|EIe,wIe));for(var o=t.length;o--;)yIe(n,t[o]);return n}),TIe=PIe;const kIe=Vt(TIe);function OIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=UIe){var c=t?null:VIe(e);if(c)return BIe(c);i=!1,o=zIe,l=new jIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(KL);var xAe=KL.exports;const wAe=Vt(xAe);var o2={},CAe=Cc;Object.defineProperty(o2,"__esModule",{value:!0});var JL=o2.default=void 0,$Ae=CAe($c()),SAe=O,_Ae=(0,$Ae.default)((0,SAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");JL=o2.default=_Ae;var EAe=LS,PAe=cs;function TAe(e,t){var n=-1,r=PAe(e)?Array(e.length):[];return EAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var kAe=TAe,OAe=gd,RAe=vc,DAe=kAe,MAe=cr;function IAe(e,t){var n=MAe(e)?OAe:DAe;return n(e,RAe(t))}var ZL=IAe;const XL=Vt(ZL),AAe=["localeText"],KC=$.createContext(null),Ph=function(t){var n;const{localeText:r}=t,o=Oe(t,AAe),{utils:a,localeText:i}=(n=$.useContext(KC))!=null?n:{utils:void 0,localeText:void 0},s=Je({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(KC.Provider,{value:g,children:l})},NAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),QL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},jAe=QL;NAe(QL);const Sc=()=>{const e=$.useContext(KC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`),pa.rippleVisible,KCe,YC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,ZCe,YC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,JCe,({theme:e})=>e.transitions.easing.easeInOut),e$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Re(r,qCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(O=>[...O,R.jsx(QCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:YC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const O=I?null:v.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((O?O.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((O?O.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},YCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),R.jsx(XCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:R.jsx(I2,{component:null,exit:!0,children:l})}))}),t$e=e$e;function n$e(e){return tt("MuiButtonBase",e)}const r$e=et("MuiButtonBase",["root","disabled","focusVisible"]),o$e=r$e,a$e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],i$e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},n$e,o);return n&&r&&(i.root+=` ${r}`),i},s$e=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${o$e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),l$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:O,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Re(r,a$e),Q=$.useRef(null),W=$.useRef(null),Z=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=o0(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,J]=$.useState(!1);$.useEffect(()=>{J(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",O),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=i$e(ze);return R.jsxs(s$e,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?R.jsx(t$e,T({ref:Z,center:a},G)):null]}))}),Sa=l$e;function c$e(e){return tt("MuiAccordionSummary",e)}const u$e=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=u$e,d$e=["children","className","expandIcon","focusVisibleClassName","onClick"],f$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},c$e,t)},p$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),h$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),m$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),v$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Re(r,d$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(n9),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=f$e(v);return R.jsxs(p$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[R.jsx(h$e,{className:x.content,ownerState:v,children:o}),i&&R.jsx(m$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),g$e=v$e;function y$e(e){return tt("MuiIconButton",e)}const b$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),x$e=b$e,w$e=["edge","children","className","color","disabled","disableFocusRipple","size"],C$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,y$e,t)},$$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${x$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),S$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Re(r,w$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=C$e(p);return R.jsx($$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=S$e,_$e=or(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function E$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const P$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],T$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,E$e,i)},k$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),GD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},O$e=e=>R$e[e]||e,D$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),o=O$e(r.color),a=S2(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=GD}=a,b=Re(a,P$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||GD[p])||"span",g=T$e(v);return R.jsx(k$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=D$e;function M$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const I$e=["className","color","enableColorOnDark","position"],A$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,M$e,r)},uv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,N$e=he(hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:uv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:uv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:uv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:uv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),j$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Re(r,I$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=A$e(c);return R.jsx(N$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),L$e=j$e;function Ci(e){return typeof e=="string"}function If(e,t,n){return e===void 0||Ci(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function F$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const z$e={disableDefaultClasses:!1},V$e=$.createContext(z$e);function B$e(e){const{disableDefaultClasses:t}=$.useContext(V$e);return n=>t?"":e(n)}function ep(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function qD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function U$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=ep(T({},o,r)),s=qD(r),l=qD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const W$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Re(e,W$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=U$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function H$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=i2({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const G$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Y$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function K$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Y$e(e))}function Z$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(G$e)).forEach((r,o)=>{const a=q$e(r);a===-1||!K$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function J$e(){return!0}function r9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Z$e,isEnabled:i=J$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,O;const F=!!((I=x.current)!=null&&I.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",A2="auto",$h=[_o,_a,Ea,Eo],Qu="start",zp="end",X$e="clippingParents",o9="viewport",gf="popper",Q$e="reference",YD=$h.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+zp])},[]),a9=[].concat($h,[A2]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+zp])},[]),eSe="beforeRead",tSe="read",nSe="afterRead",rSe="beforeMain",oSe="main",aSe="afterMain",iSe="beforeWrite",sSe="write",lSe="afterWrite",cSe=[eSe,tSe,nSe,rSe,oSe,aSe,iSe,sSe,lSe];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function N2(e){if(typeof ShadowRoot>"u")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uSe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ti(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function dSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ti(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const fSe={name:"applyStyles",enabled:!0,phase:"write",fn:uSe,effect:dSe,requires:["computeStyles"]};function $i(e){return e.split("-")[0]}var Kl=Math.max,Qg=Math.min,ed=Math.round;function KC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function i9(){return!/^((?!chrome|android).)*safari/i.test(KC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Jo(e):window,s=i.visualViewport,l=!i9()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function j2(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function s9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&N2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ls(e){return Jo(e).getComputedStyle(e)}function pSe(e){return["table","td","th"].indexOf(Ti(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function U0(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(N2(e)?e.host:null)||fl(e)}function KD(e){return!ya(e)||ls(e).position==="fixed"?null:e.offsetParent}function hSe(e){var t=/firefox/i.test(KC()),n=/Trident/i.test(KC());if(n&&ya(e)){var r=ls(e);if(r.position==="fixed")return null}var o=U0(e);for(N2(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ti(o))<0;){var a=ls(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Sh(e){for(var t=Jo(e),n=KD(e);n&&pSe(n)&&ls(n).position==="static";)n=KD(n);return n&&(Ti(n)==="html"||Ti(n)==="body"&&ls(n).position==="static")?t:n||hSe(e)||t}function L2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tp(e,t,n){return Kl(e,Qg(t,n))}function mSe(e,t,n){var r=tp(e,t,n);return r>n?n:r}function l9(){return{top:0,right:0,bottom:0,left:0}}function c9(e){return Object.assign({},l9(),e)}function u9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,c9(typeof t!="number"?t:u9(t,$h))};function gSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=$i(n.placement),l=L2(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=vSe(o.padding,n),p=j2(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=Sh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=tp(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function ySe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||s9(t.elements.popper,o)&&(t.elements.arrow=o))}const bSe={name:"arrow",enabled:!0,phase:"main",fn:gSe,effect:ySe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var xSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function ZD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=Sh(n),E="clientHeight",k="clientWidth";if(S===Jo(n)&&(S=fl(n),ls(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===zp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===zp){w=Ea;var O=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=O-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&xSe),U=u===!0?wSe({x:m,y:v},Jo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function CSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:$i(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const $Se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CSe,data:{}};var dv={passive:!0};function SSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Jo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,dv)}),s&&l.addEventListener("resize",n.update,dv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dv)}),s&&l.removeEventListener("resize",n.update,dv)}}const _Se={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SSe,data:{}};var ESe={left:"right",right:"left",bottom:"top",top:"bottom"};function Xv(e){return e.replace(/left|right|bottom|top/g,function(t){return ESe[t]})}var PSe={start:"end",end:"start"};function JD(e){return e.replace(/start|end/g,function(t){return PSe[t]})}function F2(e){var t=Jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function z2(e){return td(fl(e)).left+F2(e).scrollLeft}function TSe(e,t){var n=Jo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=i9();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+z2(e),y:l}}function kSe(e){var t,n=fl(e),r=F2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z2(e),l=-r.scrollTop;return ls(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function V2(e){var t=ls(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d9(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:ya(e)&&V2(e)?e:d9(U0(e))}function np(e,t){var n;t===void 0&&(t=[]);var r=d9(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Jo(r),i=o?[a].concat(a.visualViewport||[],V2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(np(U0(i)))}function ZC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function RSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XD(e,t,n){return t===o9?ZC(TSe(e,n)):cc(t)?RSe(t,n):ZC(kSe(fl(e)))}function OSe(e){var t=np(U0(e)),n=["absolute","fixed"].indexOf(ls(e).position)>=0,r=n&&ya(e)?Sh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&s9(o,r)&&Ti(o)!=="body"}):[]}function DSe(e,t,n,r){var o=t==="clippingParents"?OSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=XD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Qg(u.right,l.right),l.bottom=Qg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},XD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function f9(e){var t=e.reference,n=e.element,r=e.placement,o=r?$i(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?L2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case zp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Vp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?X$e:s,c=n.rootBoundary,u=c===void 0?o9:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=c9(typeof x!="number"?x:u9(x,$h)),y=p===gf?Q$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=DSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=f9({reference:S,element:w,strategy:"absolute",placement:o}),k=ZC(Object.assign({},w,E)),I=p===gf?k:S,O={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(O).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";O[G]+=U[V]*z})}return O}function MSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?a9:l,u=nd(r),f=u?s?YD:YD.filter(function(b){return nd(b)===u}):$h,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Vp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[$i(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function ISe(e){if($i(e)===A2)return[];var t=Xv(e);return[JD(e),t,JD(t)]}function ASe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=$i(x),y=g===x,w=l||(y||!b?[Xv(x)]:ISe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat($i(N)===A2?MSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],O=0;O=0,V=z?"width":"height",Y=Vp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Xv(Q));var W=Xv(Q),Z=[];if(a&&Z.push(Y[U]<=0),s&&Z.push(Y[Q]<=0,Y[W]<=0),Z.every(function(D){return D})){I=F,k=!1;break}E.set(F,Z)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(J){var re=E.get(J);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const NSe={name:"flip",enabled:!0,phase:"main",fn:ASe,requiresIfExists:["offset"],data:{_skip:!1}};function QD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eM(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function jSe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Vp(t,{elementContext:"reference"}),s=Vp(t,{altBoundary:!0}),l=QD(i,r),c=QD(s,o,a),u=eM(l),f=eM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const LSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jSe};function FSe(e,t,n){var r=$i(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function zSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=a9.reduce(function(u,f){return u[f]=FSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const VSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zSe};function BSe(e){var t=e.state,n=e.name;t.modifiersData[n]=f9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const USe={name:"popperOffsets",enabled:!0,phase:"read",fn:BSe,data:{}};function WSe(e){return e==="x"?"y":"x"}function HSe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Vp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=$i(t.placement),y=nd(t.placement),w=!y,C=L2(g),_=WSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],Z=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?j2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:l9(),B=N[z],J=N[V],re=tp(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-O.mainAxis:j-re-B-O.mainAxis,xe=w?-E[Y]/2+X+re+J+O.mainAxis:K+re+J+O.mainAxis,me=t.elements.arrow&&Sh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=tp(m?Qg(W,Ce):W,Q,m?Kl(Z,fe):Z);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+O.altAxis,ze=Ye?ge+E[we]+k[we]-Me-O.altAxis:He,Pe=m&&Ye?mSe(je,ge,ze):tp(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const GSe={name:"preventOverflow",enabled:!0,phase:"main",fn:HSe,requiresIfExists:["offset"]};function qSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YSe(e){return e===Jo(e)||!ya(e)?F2(e):qSe(e)}function KSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&KSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ti(t)!=="body"||V2(a))&&(s=YSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=z2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function JSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function XSe(e){var t=JSe(e);return cSe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function QSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function e_e(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var tM={placement:"bottom",modifiers:[],strategy:"absolute"};function nM(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(o_e(o)||document.body)},[o,a]),Zn(()=>{if(i&&!a)return Np(n,i),()=>{Np(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return R.jsx($.Fragment,{children:r})}return R.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function a_e(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const i_e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],s_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function l_e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function JC(e){return typeof e=="function"?e():e}function c_e(e){return e.nodeType!==void 0}const u_e=()=>Qe({root:["root"]},B$e(a_e)),d_e={},f_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Re(t,i_e),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Zn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=l_e(u,i),[E,k]=$.useState(S),[I,O]=$.useState(JC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&O(JC(o))},[o]),Zn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=r_e(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=u_e(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return R.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),p_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=d_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Re(t,s_e),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const O=JC(r);E=O&&c_e(O)?Vn(O).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return R.jsx(p9,{disablePortal:s,container:E,children:R.jsx(f_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function h_e(e){const t=Vn(e);return t.body===e?Pi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function rp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rM(e){return parseInt(Pi(e).getComputedStyle(e).paddingRight,10)||0}function m_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function oM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!m_e(i);s&&l&&rp(i,o)})}function zx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function v_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(h_e(r)){const i=Cj(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${rM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=Pi(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function g_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class y_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&rp(t.modalRef,!1);const o=g_e(n);oM(n,t.mount,t.modalRef,o,!0);const a=zx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=zx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=v_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=zx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&rp(t.modalRef,n),oM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&rp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function b_e(e){return typeof e=="function"?e():e}function x_e(e){return e?e.props.hasOwnProperty("in"):!1}const w_e=new y_e;function C_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=w_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=x_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=b_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&rp(b.current,w))}),O=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{O()},[O]),$.useEffect(()=>{u?E():(!y||!a)&&O()},[u,O,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=ep(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&O()};return{onEnter:qg(Y,l==null?void 0:l.props.onEnter),onExited:qg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const $_e=2;function h9(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function aM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T_e=e=>e;let mv;function Vx(){return mv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?mv=CSS.supports("touch-action","none"):mv=!0),mv}function k_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=T_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[O,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(O);let z=G?O.slice().sort(h9):[O];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:Z,ref:X}=o0(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));Z(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},J=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Zn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=S_e(gt,l,s),v)Le=E_e(Le,v,l);else{const te=aM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=aM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=iM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=fv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});pv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>$_e&&k(!0),U&&!hv(ze,O)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=fv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;Vx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=fv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});pv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!hv(Te,O)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:Vx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:Vx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=fv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});pv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!hv(it,O)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=ey(G?z[0]:l,l,s),De=ey(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=ep(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:P_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=ep(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:J(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},Z1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=ep(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const R_e=["onChange","maxRows","minRows","style","value"];function vv(e){return parseInt(e,10)||0}const O_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const D_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Re(t,R_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=Pi(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=S.boxSizing,I=vv(S.paddingBottom)+vv(S.paddingTop),O=vv(S.borderBottomWidth)+vv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+O:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();sM(C)||v(_=>g(_,C))},[x]);Zn(()=>{const C=()=>{const F=x();sM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=bh(_),k=u.current,I=Pi(k);I.addEventListener("resize",E);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(_),O.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),O&&O.disconnect()}},[x]),Zn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},O_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function lM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=lM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=lM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Bx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function N_e(e){const{unstable_isActiveElementInListbox:t=A_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=I_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:O=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:Z,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Qa(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),J=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&O(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=i2({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?J.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)J.current.value=Ue;else{const Nt=D(Pe[xt]);J.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&J.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Bx(fe,rt=>O(ve,rt))!==-1)return;const Ie=Bx(Pe,rt=>O(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Np(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Bx(xt,ut=>O(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&J.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-cM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:cM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){J.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(J.current.focus(),j&&B.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&O(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const j_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],L_e=he(p_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F_e=$.forwardRef(function(t,n){var r;const o=$2(),a=Ze({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Re(a,j_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return R.jsx(L_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),_h=F_e;function z_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const V_e=["className","color","component","disableGutters","disableSticky","inset"],B_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,z_e,t)},U_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),m9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Re(r,V_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=B_e(f);return R.jsx(U_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});m9.muiSkipListHighlight=!0;const W_e=m9,H_e=or(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function G_e(e){return tt("MuiChip",e)}const q_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=q_e,Y_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],K_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,G_e,t)},Z_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),J_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function uM(e){return e.key==="Backspace"||e.key==="Delete"}const X_e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Re(r,Y_e),S=$.useRef(null),E=sn(S,n),k=Z=>{Z.stopPropagation(),b&&b(Z)},I=Z=>{Z.currentTarget===Z.target&&uM(Z)&&Z.preventDefault(),v&&v(Z)},O=Z=>{Z.currentTarget===Z.target&&(b&&uM(Z)?b(Z):Z.key==="Escape"&&S.current&&S.current.blur()),x&&x(Z)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=K_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):R.jsx(H_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),R.jsxs(Z_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:O,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,R.jsx(J_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),v9=X_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Q_e=$.createContext(void 0),W0=Q_e;function Oi(){return $.useContext(W0)}function e2e(e){return R.jsx(ewe,T({},e,{defaultTheme:R0,themeId:a0}))}function dM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ty(e,t=!1){return e&&(dM(e.value)&&e.value!==""||t&&dM(e.defaultValue)&&e.defaultValue!=="")}function t2e(e){return e.startAdornment}function n2e(e){return tt("MuiInputBase",e)}const r2e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=r2e,o2e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],H0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},G0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},a2e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,n2e,t)},q0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Y0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),i2e=R.jsx(e2e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),s2e=$.forwardRef(function(t,n){var r;const o=Ze({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:O,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:Z={},startAdornment:X,type:j="text",value:K}=o,q=Re(o,o2e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),J=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,J),[ce,xe]=$.useState(!1),me=Oi(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{ty(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Zn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),O&&O(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=D_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=a2e(He),Me=Z.root||c.Root||q0,je=W.root||u.root||{},ze=Z.input||c.Input||Y0;return we=T({},we,(r=W.input)!=null?r:u.input),R.jsxs($.Fragment,{children:[!m&&i2e,R.jsxs(Me,T({},je,!Ci(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,R.jsx(W0.Provider,{value:null,children:R.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!Ci(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),B2=s2e;function l2e(e){return tt("MuiInput",e)}const c2e=T({},Vo,et("MuiInput",["root","underline","input"])),Ls=c2e;function u2e(e){return tt("MuiOutlinedInput",e)}const d2e=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),ui=d2e;function f2e(e){return tt("MuiFilledInput",e)}const p2e=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=p2e,g9=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function h2e(e){return tt("MuiAutocomplete",e)}const m2e=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=m2e;var fM,pM;const v2e=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],g2e=["ref"],y2e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,h2e,t)},b2e=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ls.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ls.root}.${Vo.sizeSmall}`]:{[`& .${Ls.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ui.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),x2e=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),w2e=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),C2e=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),$2e=he(_h,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),S2e=he(hs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),_2e=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),E2e=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),P2e=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),T2e=he(W_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),k2e=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),R2e=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=fM||(fM=R.jsx(_$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:O=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:Z=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:J=!1,openText:re="Open",PaperComponent:ce=hs,PopperComponent:xe=_h,popupIcon:me=pM||(pM=R.jsx(g9,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Re(s,v2e),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=N_e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Re(dt,g2e),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:O,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=y2e(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>R.jsx(v9,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(R.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>R.jsxs("li",{children:[R.jsx(T2e,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),R.jsx(k2e,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>R.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return R.jsxs($.Fragment,{children:[R.jsx(b2e,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:R.jsxs(x2e,{className:Kt.endAdornment,ownerState:Ut,children:[nt?R.jsx(w2e,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?R.jsx(C2e,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?R.jsx($2e,T({as:xe,disablePortal:O,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:R.jsxs(S2e,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?R.jsx(_2e,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?R.jsx(E2e,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?R.jsx(P2e,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),O2e=R2e,D2e=or(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function M2e(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const I2e=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],A2e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},M2e,t)},N2e=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),j2e=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),L2e=he(D2e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function F2e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const z2e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Re(r,I2e);let b=null;const v=F2e(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=A2e(y);return g?b=R.jsx(j2e,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=R.jsx(L2e,{ownerState:y,className:w.fallback}),R.jsx(N2e,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),y9=z2e,V2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B2e={entering:{opacity:1},entered:{opacity:1}},U2e=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=V0}=t,w=Re(t,V2e),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{e9(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),O=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return R.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:O,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},B2e[z],x,s.props.style),ref:_},V))}))}),kd=U2e;function W2e(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const H2e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],G2e=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},W2e,t)},q2e=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Y2e=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Re(i,H2e),w=T({},i,{component:c,invisible:p}),C=G2e(w),_=(r=b.root)!=null?r:f.root;return R.jsx(x,T({in:m,timeout:g},y,{children:R.jsx(q2e,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),b9=Y2e;function K2e(e){return tt("MuiBadge",e)}const Z2e=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=Z2e,J2e=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Ux=10,Wx=4,X2e=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,K2e,i)},Q2e=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),eEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ux*2,lineHeight:1,padding:"0 6px",height:Ux*2,borderRadius:Ux,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:Wx,height:Wx*2,minWidth:Wx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),tEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ze({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Re(c,J2e),{badgeContent:O,invisible:F,max:U,displayValue:G}=H$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=i2({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||O==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:Z=k}=V?z:c,X=Z!=="dot"?G:void 0,j=T({},c,{badgeContent:O,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:Z}),K=X2e(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:Q2e,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:eEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,J=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return R.jsxs(q,T({},J,{children:[v,R.jsx(D,T({},re,{children:X}))]}))}),x9=tEe;function nEe(e){return tt("MuiButton",e)}const rEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),gv=rEe,oEe=$.createContext({}),aEe=oEe,iEe=$.createContext(void 0),sEe=iEe,lEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,nEe,i);return T({},i,l)},w9=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),uEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gv.disabled}`]:{boxShadow:"none"}}),dEe=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w9(e))),fEe=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w9(e))),pEe=$.forwardRef(function(t,n){const r=$.useContext(aEe),o=$.useContext(sEe),a=s2(r,t),i=Ze({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Re(i,lEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=cEe(S),k=y&&R.jsx(dEe,{className:E.startIcon,ownerState:S,children:y}),I=b&&R.jsx(fEe,{className:E.endIcon,ownerState:S,children:b}),O=o||"";return R.jsxs(uEe,T({ownerState:S,className:Ne(r.className,E.root,u,O),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=pEe;function hEe(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const mEe=["className","raised"],vEe=e=>{const{classes:t}=e;return Qe({root:["root"]},hEe,t)},gEe=he(hs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),yEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Re(r,mEe),s=T({},r,{raised:a}),l=vEe(s);return R.jsx(gEe,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),bEe=yEe;function xEe(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const wEe=["className","component"],CEe=e=>{const{classes:t}=e;return Qe({root:["root"]},xEe,t)},$Ee=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),SEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Re(r,wEe),s=T({},r,{component:a}),l=CEe(s);return R.jsx($Ee,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),_Ee=SEe;function EEe(e){return tt("MuiCardHeader",e)}const PEe=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),hM=PEe,TEe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],kEe=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},EEe,t)},REe=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${hM.title}`]:t.title,[`& .${hM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),OEe=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),DEe=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),MEe=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),IEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Re(r,TEe),b=T({},r,{component:s,disableTypography:l}),v=kEe(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=R.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=R.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),R.jsxs(REe,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&R.jsx(OEe,{className:v.avatar,ownerState:b,children:a}),R.jsxs(MEe,{className:v.content,ownerState:b,children:[x,g]}),o&&R.jsx(DEe,{className:v.action,ownerState:b,children:o})]}))}),AEe=IEe;function NEe(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const jEe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],LEe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,NEe,t)},FEe=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),zEe=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),VEe=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Re(t,jEe),[I,O]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Oi(),U=Z=>{y&&y(Z),F&&F.onFocus&&F.onFocus(Z)},G=Z=>{x&&x(Z),F&&F.onBlur&&F.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const X=Z.target.checked;O(X),g&&g(Z,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=LEe(Q);return R.jsxs(FEe,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[R.jsx(zEe,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),U2=VEe,BEe=or(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),UEe=or(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),WEe=or(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function HEe(e){return tt("MuiCheckbox",e)}const GEe=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hx=GEe,qEe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],YEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,HEe,t);return T({},t,i)},KEe=he(U2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hx.checked}, &.${Hx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ZEe=R.jsx(UEe,{}),JEe=R.jsx(BEe,{}),XEe=R.jsx(WEe,{}),QEe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ZEe,color:s="primary",icon:l=JEe,indeterminate:c=!1,indeterminateIcon:u=XEe,inputProps:f,size:p="medium",className:m}=a,b=Re(a,qEe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=YEe(g);return R.jsx(KEe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),ePe=QEe;function tPe(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const nPe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],rPe=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tPe,r)},oPe=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),aPe=he(b9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iPe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ze({name:"MuiModal",props:t}),{BackdropComponent:u=aPe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:O=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Re(c,nPe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:O}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:Z,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=C_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=rPe(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=Z();B.onEnter=se,B.onExited=Ce}const J=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:oPe,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:J,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!O&&!U&&(!q||K)?null:R.jsx(p9,{ref:X,container:v,disablePortal:S,children:R.jsxs(J,T({},me,{children:[!I&&u?R.jsx(re,T({},ue)):null,R.jsx(r9,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),C9=iPe;function sPe(e){return tt("MuiDialog",e)}const lPe=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),op=lPe,cPe=$.createContext({}),$9=cPe,uPe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],dPe=he(b9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,sPe,t)},pPe=he(C9,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),mPe=he(hs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${op.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${op.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${op.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=hs,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Re(r,uPe),O=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=fPe(O),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Qa(s),Y=$.useMemo(()=>({titleId:V}),[V]);return R.jsx(pPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:dPe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:O},I,{children:R.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:R.jsx(hPe,{className:Ne(F.container),onMouseDown:G,ownerState:O,children:R.jsx(mPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:O,children:R.jsx($9.Provider,{value:Y,children:u})}))})}))}))}),K0=vPe;function gPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const yPe=["className","disableSpacing"],bPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},gPe,t)},xPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),wPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Re(r,yPe),s=T({},r,{disableSpacing:a}),l=bPe(s);return R.jsx(xPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),Z0=wPe;function CPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function $Pe(e){return tt("MuiDialogTitle",e)}const SPe=et("MuiDialogTitle",["root"]),_Pe=SPe,EPe=["className","dividers"],PPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},CPe,t)},TPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_Pe.root} + &`]:{paddingTop:0}})),kPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Re(r,EPe),s=T({},r,{dividers:a}),l=PPe(s);return R.jsx(TPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),J0=kPe;function RPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const OPe=["children","className"],DPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},RPe,t);return T({},t,r)},MPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Re(r,OPe),i=DPe(a);return R.jsx(MPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),W2=IPe,APe=["className","id"],NPe=e=>{const{classes:t}=e;return Qe({root:["root"]},$Pe,t)},jPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),LPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Re(r,APe),s=r,l=NPe(s),{titleId:c=a}=$.useContext($9);return R.jsx(jPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),H2=LPe;function FPe(e){return tt("MuiDivider",e)}const zPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mM=zPe,VPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],BPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},FPe,r)},UPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),WPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),S9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Re(r,VPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=BPe(v);return R.jsx(UPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?R.jsx(WPe,{className:x.wrapper,ownerState:v,children:a}):null}))});S9.muiSkipListHighlight=!0;const vM=S9,HPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],GPe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},f2e,t);return T({},t,o)},qPe=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...H0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),YPe=he(Y0,{name:"MuiFilledInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),_9=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Re(s,HPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=GPe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?qr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:qPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:YPe;return R.jsx(B2,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});_9.muiName="Input";const E9=_9;function KPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],JPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,KPe,t)},XPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),QPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Re(r,ZPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=JPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&t2e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(ty(z.props,!0)||ty(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const O=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:O,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,O,f,p,F,b,v,x]);return R.jsx(W0.Provider,{value:U,children:R.jsx(XPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),Eh=QPe,eTe=_we({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ze({props:e,name:"MuiStack"})}),tTe=eTe;function nTe(e){return tt("MuiFormControlLabel",e)}const rTe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=rTe,oTe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],aTe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,nTe,t)},iTe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),sTe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),lTe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Re(a,oTe),x=Oi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=aTe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=R.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),R.jsxs(iTe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?R.jsxs(tTe,{direction:"row",alignItems:"center",children:[k,R.jsxs(sTe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),X0=lTe;function cTe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const uTe=["className","row"],dTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},cTe,t)},fTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),pTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Re(r,uTe),s=Oi(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=dTe(c);return R.jsx(fTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),P9=pTe;function hTe(e){return tt("MuiFormHelperText",e)}const mTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),gM=mTe;var yM;const vTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],gTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,hTe,t)},yTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Re(r,vTe),l=Oi(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gTe(u);return R.jsx(yTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?yM||(yM=R.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=bTe;function xTe(e){return tt("MuiFormLabel",e)}const wTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ap=wTe,CTe=["children","className","color","component","disabled","error","filled","focused","required"],$Te=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,xTe,t)},STe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ap.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),_Te=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),ETe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Re(r,CTe),l=Oi(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=$Te(u);return R.jsxs(STe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&R.jsxs(_Te,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),G2=ETe,PTe=$.createContext(),bM=PTe;function TTe(e){return tt("MuiGrid",e)}const kTe=[0,1,2,3,4,5,6,7,8,9,10],RTe=["column-reverse","column","row-reverse","row"],OTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bp=et("MuiGrid",["root","container","item","zeroMinWidth",...kTe.map(e=>`spacing-xs-${e}`),...RTe.map(e=>`direction-xs-${e}`),...OTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),DTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function MTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function ITe({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Oo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Bp.item}`]={maxWidth:"none"}),o})}function T9({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function ATe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=T9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${Bp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Bp.item}`]:{paddingTop:0}}})}return o}function NTe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=T9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${Bp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Bp.item}`]:{paddingLeft:0}}})}return o}function jTe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const LTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=jTe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),ITe,ATe,NTe,MTe);function FTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const zTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=FTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,TTe,t)},VTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=S2(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Re(a,DTe),y=m||b,w=l||b,C=$.useContext(bM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(O=>{g[O]!=null&&(S[O]=g[O],delete E[O])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=zTe(k);return R.jsx(bM.Provider,{value:_,children:R.jsx(LTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=VTe,BTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function XC(e){return`scale(${e}, ${e**2})`}const UTe={entering:{opacity:1,transform:XC(1)},entered:{opacity:1,transform:"none"}},Gx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k9=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=V0}=t,g=Re(t,BTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{e9(V);const{duration:Q,delay:W,easing:Z}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Gx?X:X*.666,delay:W,easing:Z})].join(","),l&&l(V,Y)}),O=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let Z;v==="auto"?(Z=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=Z):Z=Y,V.style.transition=[C.transitions.create("opacity",{duration:Z,delay:Q}),C.transitions.create("transform",{duration:Gx?Z:Z*.666,delay:Gx?Q:Q||Z*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=XC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),R.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:O,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:XC(.75),visibility:V==="exited"&&!s?"hidden":void 0},UTe[V],b,a.props.style),ref:S},Y))}))});k9.muiSupportAuto=!0;const ny=k9;function WTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Zn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const R9=cp["useSyncExternalStore"];function HTe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return R9(l,s,i)}function Ph(e,t={}){const n=$2(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=_2({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(R9!==void 0?HTe:WTe)(l,o,a,i,s)}const GTe=["initialWidth","width"],Us=["xs","sm","md","lg","xl"],qTe=(e,t,n=!0)=>n?Us.indexOf(e)<=Us.indexOf(t):Us.indexOf(e)n?Us.indexOf(t)<=Us.indexOf(e):Us.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=_2({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Re(c,GTe),[m,b]=$.useState(!1);Zn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:R.jsx(t,T({},g))}return a},ZTe=KTe;function JTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,QTe,t)},nke=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function rke(e){const{children:t,className:n,only:r}=e,o=Re(e,eke),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=tke(s);return R.jsx(nke,{className:Ne(l.root,n),ownerState:s,children:t})}const oke=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Re(e,oke);return t==="js"?R.jsx(XTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):R.jsx(rke,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const ake=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ike=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},l2e,t);return T({},t,o)},ske=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...H0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ls.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ls.disabled}, .${Ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ls.disabled}:before`]:{borderBottomStyle:"dotted"}})}),lke=he(Y0,{name:"MuiInput",slot:"Input",overridesResolver:G0})({}),O9=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Re(s,ake),y=ike(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?qr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:ske,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:lke;return R.jsx(B2,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});O9.muiName="Input";const ms=O9;function cke(e){return tt("MuiInputAdornment",e)}const uke=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),xM=uke;var wM;const dke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},pke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,cke,t)},hke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:fke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${xM.positionStart}&:not(.${xM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),mke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Re(r,dke),p=Oi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=pke(b);return R.jsx(W0.Provider,{value:null,children:R.jsx(hke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?R.jsx(yn,{color:"text.secondary",children:o}):R.jsxs($.Fragment,{children:[c==="start"?wM||(wM=R.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),q2=mke;function vke(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gke=["disableAnimation","margin","shrink","variant","className"],yke=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,vke,t);return T({},t,c)},bke=he(G2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ap.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xke=$.forwardRef(function(t,n){const r=Ze({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Re(r,gke),l=Oi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=yke(f);return R.jsx(bke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),D9=xke,wke=$.createContext({}),ts=wke;function Cke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const $ke=["children","className","component","dense","disablePadding","subheader"],Ske=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cke,t)},_ke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Eke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Re(r,$ke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=Ske(p);return R.jsx(ts.Provider,{value:f,children:R.jsxs(_ke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),Y2=Eke;function Pke(e){return tt("MuiListItem",e)}const Tke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=Tke,kke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Rke=kke;function Oke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const Dke=["className"],Mke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},Oke,n)},Ike=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),M9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Re(r,Dke),i=$.useContext(ts),s=T({},r,{disableGutters:i.disableGutters}),l=Mke(s);return R.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});M9.muiName="ListItemSecondaryAction";const I9=M9,Ake=["className"],Nke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],jke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Lke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Pke,r)},Fke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:jke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),zke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Re(r.ContainerProps,Ake),I=Re(r,Nke),O=$.useContext(ts),F=$.useMemo(()=>({dense:b||O.dense||!1,alignItems:o,disableGutters:x}),[o,O.dense,b,x]),U=$.useRef(null);Zn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Lke(V),Q=sn(U,n),W=E.root||u.Root||Fke,Z=S.root||f.root||{},X=T({className:Ne(Y.root,Z.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),R.jsx(ts.Provider,{value:F,children:R.jsxs(zke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[R.jsx(W,T({},Z,!Ci(W)&&{as:j,ownerState:T({},V,Z.ownerState)},X,{children:G})),G.pop()]}))})):R.jsx(ts.Provider,{value:F,children:R.jsxs(W,T({},Z,{as:j,ref:Q},!Ci(W)&&{ownerState:T({},V,Z.ownerState)},X,{children:[G,C&&R.jsx(I9,{children:C})]}))})}),A9=Vke;function Bke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Uke=["className"],Wke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Bke,n)},Hke=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Gke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Re(r,Uke),i=$.useContext(ts),s=T({},r,{alignItems:i.alignItems}),l=Wke(s);return R.jsx(Hke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),qke=Gke,Yke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),CM=Yke;function Kke(e){return tt("MuiListItemText",e)}const Zke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ry=Zke,Jke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Xke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Kke,t)},Qke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ry.primary}`]:t.primary},{[`& .${ry.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),eRe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Re(r,Jke),{dense:m}=$.useContext(ts);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Xke(x);return b!=null&&b.type!==yn&&!i&&(b=R.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=R.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),R.jsxs(Qke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),tRe=eRe,nRe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $M(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function N9(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!N9(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const rRe=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Re(t,nRe),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,qx);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,$M);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,qx);else if(_==="End")w.preventDefault(),xf(C,null,c,l,$M);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const O=S&&!E.repeating&&N9(S,E);E.previousKeyMatched&&(O||xf(C,S,!1,l,qx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return R.jsx(Y2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),K2=rRe;function oRe(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const aRe=["onEntering"],iRe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sRe=["slotProps"];function SM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _M(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function EM(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Yx(e){return typeof e=="function"?e():e}const lRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},oRe,t)},cRe=he(C9,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j9=he(hs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uRe=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=ny,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,O=Re(i.TransitionProps,aRe),F=Re(i,iRe),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:O}),Y=lRe(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Yx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+SM(fe,c.vertical),left:fe.left+_M(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:SM(se,_.vertical),horizontal:_M(se,_.horizontal)}),[_.horizontal,_.vertical]),Z=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:EM(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=Pi(Yx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:EM(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=Z(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[Z]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=bh(()=>{K()}),Ce=Pi(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Yx(l)).body:void 0),J=(o=w==null?void 0:w.root)!=null?o:cRe,re=(a=w==null?void 0:w.paper)!=null?a:j9,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:J,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Re(xe,sRe);return R.jsx(J,T({},ue,!Ci(J)&&{slotProps:me,disableScrollLock:I},{children:R.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},O,{children:R.jsx(re,T({},ce,{children:p}))}))}))}),dRe=uRe;function fRe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const pRe=["onEntering"],hRe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mRe={vertical:"top",horizontal:"right"},vRe={vertical:"top",horizontal:"left"},gRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},fRe,t)},yRe=he(dRe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bRe=he(j9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xRe=he(K2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wRe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Re(a.TransitionProps,pRe),_=Re(a,hRe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=gRe(k),O=i&&!c&&p,F=$.useRef(null),U=(Z,X)=>{F.current&&F.current.adjustStyleForScrollbar(Z,S),x&&x(Z,X)},G=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let z=-1;$.Children.map(s,(Z,X)=>{$.isValidElement(Z)&&(Z.props.disabled||(g==="selectedMenu"&&Z.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:bRe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return R.jsx(yRe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?mRe:vRe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:R.jsx(xRe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:O,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),CRe=wRe;function $Re(e){return tt("MuiMenuItem",e)}const SRe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=SRe,_Re=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ERe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},PRe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},$Re,i);return T({},i,l)},TRe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ERe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mM.inset}`]:{marginLeft:52},[`& .${ry.root}`]:{marginTop:0,marginBottom:0},[`& .${ry.inset}`]:{paddingLeft:36},[`& .${CM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${CM.root} svg`]:{fontSize:"1.25rem"}}))),kRe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Re(r,_Re),b=$.useContext(ts),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Zn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=PRe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),R.jsx(ts.Provider,{value:v,children:R.jsx(TRe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),oy=kRe;function RRe(e){return tt("MuiNativeSelect",e)}const ORe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Z2=ORe,DRe=["className","disabled","error","IconComponent","inputRef","variant"],MRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,RRe,t)},L9=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Z2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),IRe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Z2.multiple}`]:t.multiple}]}})(L9),F9=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Z2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ARe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(F9),NRe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Re(t,DRe),u=T({},t,{disabled:o,variant:l,error:a}),f=MRe(u);return R.jsxs($.Fragment,{children:[R.jsx(IRe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:R.jsx(ARe,{as:i,ownerState:u,className:f.icon})]})}),jRe=NRe;var PM;const LRe=["children","classes","className","label","notched"],FRe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zRe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function VRe(e){const{className:t,label:n,notched:r}=e,o=Re(e,LRe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return R.jsx(FRe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:R.jsx(zRe,{ownerState:i,children:a?R.jsx("span",{children:n}):PM||(PM=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const BRe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],URe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},u2e,t);return T({},t,r)},WRe=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ui.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ui.focused} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ui.error} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ui.disabled} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),HRe=he(VRe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),GRe=he(Y0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Ze({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Re(l,BRe),y=URe(l),w=Oi(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:WRe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:GRe;return R.jsx(B2,T({slots:{root:S,input:E},renderSuffix:k=>R.jsx(HRe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=R.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});z9.muiName="Input";const V9=z9,qRe=or(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),YRe=or(R.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),KRe=he("span")({position:"relative",display:"flex"}),ZRe=he(qRe)({transform:"scale(1)"}),JRe=he(YRe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function B9(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return R.jsxs(KRe,{className:n.root,ownerState:o,children:[R.jsx(ZRe,{fontSize:r,className:n.background,ownerState:o}),R.jsx(JRe,{fontSize:r,className:n.dot,ownerState:o})]})}const XRe=$.createContext(void 0),U9=XRe;function QRe(){return $.useContext(U9)}function eOe(e){return tt("MuiRadio",e)}const tOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TM=tOe,nOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],rOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,eOe,t))},oOe=he(U2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${TM.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${TM.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function aOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const kM=R.jsx(B9,{checked:!0}),RM=R.jsx(B9,{}),iOe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=kM,color:l="primary",icon:c=RM,name:u,onChange:f,size:p="medium",className:m}=a,b=Re(a,nOe),v=T({},a,{color:l,size:p}),x=rOe(v),g=QRe();let y=i;const w=qg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=aOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),R.jsx(oOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=RM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=kM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),sOe=iOe,lOe=["actions","children","defaultValue","name","onChange","value"],cOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Re(t,lOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Qa(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return R.jsx(U9.Provider,{value:v,children:R.jsx(P9,T({role:"radiogroup",ref:m},c,{children:o}))})}),uOe=cOe;function dOe(e){return tt("MuiSelect",e)}const fOe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=fOe;var OM;const pOe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hOe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(L9,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mOe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(F9),vOe=he("input",{shouldForwardProp:e=>P2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gOe(e){return e==null||typeof e=="string"&&!e.trim()}const yOe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,dOe,t)},bOe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:O,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Re(t,pOe),[W,Z]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:O,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(O!=null),[J,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(Z(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(Z(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(ty({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>DM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=DM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},J2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},SOe=he(ms,J2)(""),_Oe=he(V9,J2)(""),EOe=he(E9,J2)(""),W9=$.forwardRef(function(t,n){const r=Ze({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=g9,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Re(r,wOe),O=y?jRe:xOe,F=Oi(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=$Oe(z),Y=Re(V,COe),Q=p||{standard:R.jsx(SOe,{ownerState:z}),outlined:R.jsx(_Oe,{label:b,ownerState:z}),filled:R.jsx(EOe,{ownerState:z})}[G],W=sn(n,Q.ref);return R.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:O,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?qr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});W9.muiName="Select";const H9=W9,POe=e=>!e||!Ci(e),TOe=POe;function kOe(e){return tt("MuiSlider",e)}const ROe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=ROe,OOe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function DOe(e){const{children:t,className:n,value:r}=e,o=OOe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},R.jsxs($.Fragment,{children:[t.props.children,R.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:r})})})]})):null}const MOe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function MM(e){return e}const IOe=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),AOe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),NOe=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?k0(e.palette[t.color].main,.62):T0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),jOe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),LOe=he(DOe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),FOe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>P2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),zOe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>P2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),VOe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,kOe,i)},BOe=({children:e})=>e,UOe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,O;const F=Ze({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:Z={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:J=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=MM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=MM}=F,Be=Re(F,MOe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:J,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=k_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=VOe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:IOe,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:AOe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:NOe,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:jOe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:LOe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:FOe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:zOe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:Z.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:Z.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:Z.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:Z.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:Z.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:Z.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:Z.markLabel,xn=(O=Ce==null?void 0:Ce.input)!=null?O:Z.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},TOe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return R.jsxs(Se,T({},Bn,{children:[R.jsx(_e,T({},le)),R.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=ey(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),R.jsxs($.Fragment,{children:[R.jsx(_t,T({"data-index":Ie},Ee,!Ci(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?R.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!Ci(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=ey(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?BOe:ft;return R.jsx(xt,T({},!Ci(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:R.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:R.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),WOe=UOe;function HOe(e){return tt("MuiTooltip",e)}const GOe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ws=GOe,qOe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function YOe(e){return Math.round(e*1e5)/1e5}const KOe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,HOe,t)},ZOe=he(_h,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ws.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ws.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ws.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ws.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),JOe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${YOe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ws.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ws.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ws.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ws.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XOe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yv=!1,Kx=null,$f={x:0,y:0};function bv(e,t){return n=>{t&&t(n),e(n)}}const QOe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Ze({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:O={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:Z=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:J,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=ny,TransitionProps:se}=S,Ce=Re(S,qOe),fe=$.isValidElement(k)?k:R.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||Z,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Qa(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Kx),yv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Kx),Kx=setTimeout(()=>{yv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||yv&&Q?Me.current=setTimeout(()=>{ne(yt)},yv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=o0(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},Z?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=bv(Yt,oe.onMouseOver),oe.onMouseLeave=bv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=bv(dt,oe.onFocus),oe.onBlur=bv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:J,touch:$e.current}),pt=KOe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:ZOe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:ny,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:JOe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:XOe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:O.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:O.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:O.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:O.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:O.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:O.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:O.arrow)==null?void 0:C.className)}),Ee);return R.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),R.jsx(ye,T({as:J??_h,placement:B,anchorEl:Z?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>R.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:R.jsxs(Ie,T({},Nt,{children:[me,E?R.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=QOe,eDe=$.createContext({}),Th=eDe,tDe=$.createContext({}),Q0=tDe;function nDe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const rDe=["active","children","className","component","completed","disabled","expanded","index","last"],oDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},nDe,t)},aDe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),iDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Re(r,rDe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(Th);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=oDe(E),I=R.jsxs(aDe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return R.jsx(Q0.Provider,{value:S,children:v&&!x&&f!==0?R.jsxs($.Fragment,{children:[v,I]}):I})}),sDe=iDe,lDe=or(R.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),cDe=or(R.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function uDe(e){return tt("MuiStepIcon",e)}const dDe=et("MuiStepIcon",["root","active","completed","error","text"]),Zx=dDe;var IM;const fDe=["active","className","completed","error","icon"],pDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},uDe,t)},Jx=he(HC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Zx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.error}`]:{color:(e.vars||e).palette.error.main}})),hDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),mDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Re(r,fDe),u=T({},r,{active:o,completed:i,error:s}),f=pDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?R.jsx(Jx,T({as:cDe,className:p,ref:n,ownerState:u},c)):i?R.jsx(Jx,T({as:lDe,className:p,ref:n,ownerState:u},c)):R.jsxs(Jx,T({className:p,ref:n,ownerState:u},c,{children:[IM||(IM=R.jsx("circle",{cx:"12",cy:"12",r:"12"})),R.jsx(hDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),vDe=mDe;function gDe(e){return tt("MuiStepLabel",e)}const yDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Hs=yDe,bDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],xDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},gDe,t)},wDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Hs.alternativeLabel}`]:{flexDirection:"column"},[`&.${Hs.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),CDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Hs.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.alternativeLabel}`]:{marginTop:16},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),$De=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Hs.alternativeLabel}`]:{paddingRight:0}})),SDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Hs.alternativeLabel}`]:{textAlign:"center"}})),G9=$.forwardRef(function(t,n){var r;const o=Ze({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Re(o,bDe),{alternativeLabel:v,orientation:x}=$.useContext(Th),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Q0),_=c||C;let S=p;_&&!S&&(S=vDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=xDe(E),I=(r=f.label)!=null?r:s.label;return R.jsxs(wDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?R.jsx($De,{className:k.iconContainer,ownerState:E,children:R.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,R.jsxs(SDe,{className:k.labelContainer,ownerState:E,children:[a?R.jsx(CDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});G9.muiName="StepLabel";const _De=G9;function EDe(e){return tt("MuiStepButton",e)}const PDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),AM=PDe,TDe=["children","className","icon","optional"],kDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},EDe,t)},RDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${AM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${AM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),ODe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Re(r,TDe),{disabled:c,active:u}=$.useContext(Q0),{orientation:f}=$.useContext(Th),p=T({},r,{orientation:f}),m=kDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):R.jsx(_De,T({},b,{children:o}));return R.jsx(RDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),DDe=ODe;function MDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const IDe=["className"],ADe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,MDe,t)},NDe=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),jDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),LDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Re(r,IDe),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(Th),{active:l,disabled:c,completed:u}=$.useContext(Q0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=ADe(f);return R.jsx(NDe,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:R.jsx(jDe,{className:p.line,ownerState:f})}))}),FDe=LDe;function zDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const VDe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],BDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},zDe,r)},UDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),WDe=R.jsx(FDe,{}),HDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=WDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Re(r,VDe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=BDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return R.jsx(Th.Provider,{value:g,children:R.jsx(UDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),GDe=HDe;function qDe(e){return tt("MuiSwitch",e)}const YDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),no=YDe,KDe=["className","color","edge","size","sx"],ZDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,qDe,t);return T({},t,l)},JDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${no.thumb}`]:{width:16,height:16},[`& .${no.switchBase}`]:{padding:4,[`&.${no.checked}`]:{transform:"translateX(16px)"}}})),XDe=he(U2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${no.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${no.checked}`]:{transform:"translateX(20px)"},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${no.checked} + .${no.track}`]:{opacity:.5},[`&.${no.disabled} + .${no.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${no.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${no.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?k0(e.palette[t.color].main,.62):T0(e.palette[t.color].main,.55)}`}},[`&.${no.checked} + .${no.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),QDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),eMe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),tMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Re(r,KDe),u=T({},r,{color:a,edge:i,size:s}),f=ZDe(u),p=R.jsx(eMe,{className:f.thumb,ownerState:u});return R.jsxs(JDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[R.jsx(XDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),R.jsx(QDe,{className:f.track,ownerState:u})]})}),nMe=tMe;function rMe(e){return tt("MuiTab",e)}const oMe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=oMe,aMe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],iMe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,rMe,t)},sMe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),lMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Re(r,aMe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=iMe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=O=>{!v&&p&&p(O,y),m&&m(O)},I=O=>{x&&!v&&p&&p(O,y),b&&b(O)};return R.jsxs(sMe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?R.jsxs($.Fragment,{children:[E,f]}):R.jsxs($.Fragment,{children:[f,E]}),u]}))}),Up=lMe,cMe=$.createContext(),q9=cMe;function uMe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const dMe=["className","component","padding","size","stickyHeader"],fMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},uMe,t)},pMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),NM="table",hMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:o,component:a=NM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Re(r,dMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=fMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return R.jsx(q9.Provider,{value:p,children:R.jsx(pMe,T({as:a,role:a===NM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),Y9=hMe,mMe=$.createContext(),e1=mMe;function vMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const gMe=["className","component"],yMe=e=>{const{classes:t}=e;return Qe({root:["root"]},vMe,t)},bMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),xMe={variant:"body"},jM="tbody",wMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:o,component:a=jM}=r,i=Re(r,gMe),s=T({},r,{component:a}),l=yMe(s);return R.jsx(e1.Provider,{value:xMe,children:R.jsx(bMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===jM?null:"rowgroup",ownerState:s},i))})}),K9=wMe;function CMe(e){return tt("MuiTableCell",e)}const $Me=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),SMe=$Me,_Me=["align","className","component","padding","scope","size","sortDirection","variant"],EMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,CMe,t)},PMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?k0(Tt(e.palette.divider,1),.88):T0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${SMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),TMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Re(r,_Me),m=$.useContext(q9),b=$.useContext(e1),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=EMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),R.jsx(PMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Rd=TMe;function kMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const RMe=["className","component"],OMe=e=>{const{classes:t}=e;return Qe({root:["root"]},kMe,t)},DMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),MMe={variant:"head"},LM="thead",IMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:o,component:a=LM}=r,i=Re(r,RMe),s=T({},r,{component:a}),l=OMe(s);return R.jsx(e1.Provider,{value:MMe,children:R.jsx(DMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===LM?null:"rowgroup",ownerState:s},i))})}),Z9=IMe;function AMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const NMe=["className","component","disableGutters","variant"],jMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},AMe,t)},LMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),FMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Re(r,NMe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=jMe(c);return R.jsx(LMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),zMe=FMe,VMe=or(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),BMe=or(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UMe(e){return tt("MuiTableRow",e)}const WMe=et("MuiTableRow",["root","selected","hover","head","footer"]),FM=WMe,HMe=["className","component","hover","selected"],GMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},UMe,t)},qMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${FM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${FM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),zM="tr",YMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:o,component:a=zM,hover:i=!1,selected:s=!1}=r,l=Re(r,HMe),c=$.useContext(e1),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=GMe(u);return R.jsx(qMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===zM?null:"row",ownerState:u},l))}),hl=YMe;function KMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ZMe(e,t,n,r={},o=()=>{}){const{ease:a=KMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const JMe=["onChange"],XMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function QMe(e){const{onChange:t}=e,n=Re(e,JMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Zn(()=>{const i=bh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=Pi(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),R.jsx("div",T({style:XMe,ref:o},n))}function eIe(e){return tt("MuiTabScrollButton",e)}const tIe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nIe=tIe,rIe=["className","slots","slotProps","direction","orientation","disabled"],oIe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},eIe,t)},aIe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${nIe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),iIe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Re(a,rIe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=oIe(m),v=(r=s.StartScrollButtonIcon)!=null?r:VMe,x=(o=s.EndScrollButtonIcon)!=null?o:BMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return R.jsx(aIe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?R.jsx(v,T({},g)):R.jsx(x,T({},y))}))}),sIe=iIe;function lIe(e){return tt("MuiTabs",e)}const cIe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Qv=cIe,uIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],VM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,BM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},dIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},lIe,l)},fIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qv.scrollButtons}`]:t.scrollButtons},{[`& .${Qv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Qv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),pIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),hIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),mIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),vIe=he(QMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),UM={},gIe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=sIe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:O="standard",visibleScrollbar:F=!1}=r,U=Re(r,uIe),G=O==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",Z=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:O,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=dIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,J]=$.useState(UM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:q1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[Z]:ie?ie[Z]:0};if(isNaN(B[_e])||isNaN(B[Z]))J(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[Z]-Xe[Z]);(nt>=1||ft>=1)&&J(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?ZMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&$j()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?R.jsx(vIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?R.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?R.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=bh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=Pi(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(UM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=R.jsx(mIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:O==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),xv(ie,Se,BM);break;case nt:te.preventDefault(),xv(ie,Se,VM);break;case"Home":te.preventDefault(),xv(ie,null,VM);break;case"End":te.preventDefault(),xv(ie,null,BM);break}},ne=ze();return R.jsxs(fIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,R.jsxs(pIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[R.jsx(hIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),t1=gIe;function yIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const bIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],xIe={standard:ms,filled:E9,outlined:V9},wIe=e=>{const{classes:t}=e;return Qe({root:["root"]},yIe,t)},CIe=he(Eh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Ie=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:O,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:Z="outlined"}=r,X=Re(r,bIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:Z}),K=wIe(j),q={};Z==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Qa(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,J=xIe[Z],re=R.jsx(J,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:O,onFocus:F,placeholder:U,inputProps:g},q,y));return R.jsxs(CIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:Z,ownerState:j},X,{children:[C!=null&&C!==""&&R.jsx(D9,T({htmlFor:D,id:B},x,{children:C})),V?R.jsx(H9,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&R.jsx(pr,T({id:N},p,{children:b}))]}))}),kh=$Ie;var SIe=PS;function _Ie(e){return SIe(e)?void 0:e}var EIe=_Ie,PIe=gd,TIe=Uy,kIe=efe,RIe=lh,OIe=bd,DIe=EIe,MIe=FS,IIe=J5,AIe=1,NIe=2,jIe=4,LIe=MIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=PIe(t,function(a){return a=RIe(a,e),r||(r=a.length>1),a}),OIe(e,IIe(e),n),r&&(n=TIe(n,AIe|NIe|jIe,DIe));for(var o=t.length;o--;)kIe(n,t[o]);return n}),FIe=LIe;const zIe=Vt(FIe);function VIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=eAe){var c=t?null:XIe(e);if(c)return QIe(c);i=!1,o=JIe,l=new YIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var Z=b(Q)(Y),X=Z.year,j=Z.month,K=Z.day,q=Z.hours,D=Z.minutes,N=Z.seconds,B=Z.milliseconds,J=Z.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return J?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*J.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(eL);var OAe=eL.exports;const DAe=Vt(OAe);var iE={},MAe=Cc;Object.defineProperty(iE,"__esModule",{value:!0});var tL=iE.default=void 0,IAe=MAe($c()),AAe=R,NAe=(0,IAe.default)((0,AAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");tL=iE.default=NAe;var jAe=zS,LAe=us;function FAe(e,t){var n=-1,r=LAe(e)?Array(e.length):[];return jAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var zAe=FAe,VAe=gd,BAe=vc,UAe=zAe,WAe=lr;function HAe(e,t){var n=WAe(e)?VAe:UAe;return n(e,BAe(t))}var nL=HAe;const rL=Vt(nL),GAe=["localeText"],QC=$.createContext(null),Rh=function(t){var n;const{localeText:r}=t,o=Re(t,GAe),{utils:a,localeText:i}=(n=$.useContext(QC))!=null?n:{utils:void 0,localeText:void 0},s=Ze({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return R.jsx(QC.Provider,{value:g,children:l})},qAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),oL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},YAe=oL;qAe(oL);const Sc=()=>{const e=$.useContext(QC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=$.useMemo(()=>T({},jAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},LAe=or(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FAe=or(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),zAe=or(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),e9=or(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),VAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),BAe=or(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),UAe=or(O.jsxs($.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),WAe=or(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function HAe(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const GAe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],qAe=["ownerState"],YAe=["ownerState"],KAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JAe=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),BM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),ZAe=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},HAe,t)},t9=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Je({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Oe(c,GAe),E=c,k=ZAe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:BM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:BM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:FAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,qAe),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:zAe,J=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,YAe);return O.jsxs(KAe,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[O.jsx(F,T({},U,{children:l?O.jsx(W,T({},X)):O.jsx(V,T({},Q))})),u?O.jsx(yn,{variant:"subtitle1",component:"span",children:u}):O.jsx(JAe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},z,{children:l?O.jsx(V,T({},Q)):O.jsx(W,T({},X))}))]}))}),mi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),a2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},n9=["hours","minutes","seconds"],rd=e=>n9.includes(e),Ds=e=>n9.includes(e)||e==="meridiem",XAe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Bp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,QAe=(e,t,n,r)=>{const o=Bp(r.getHours(e),t,n);return r.setHours(e,o)},UM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Th=(e,t)=>(n,r)=>e?t.isAfter(n,r):UM(n,t)>UM(r,t),ny=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return mi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:mi(n,["minutes"])?o.minutes:mi(n,["seconds"])?o.seconds:mi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:mi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function kh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),S=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function e3e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function t3e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function e1(e,t,n,r){const o=qt(),a=XAe(e,o),i=$.useCallback(s=>{const l=e==null?null:QAe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Up=36,t1=2,n1=320,n3e=280,r1=334,r9=232,Nf=48,o1=he("div")({overflow:"hidden",width:n1,maxHeight:r1,display:"flex",flexDirection:"column",margin:"0 auto"});function r3e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Ci=36,Wp={x:od/2,y:od/2},o9={x:Wp.x,y:0},o3e=o9.x-Wp.x,a3e=o9.y-Wp.y,i3e=e=>e*(180/Math.PI),a9=(e,t,n)=>{const r=t-Wp.x,o=n-Wp.y,a=Math.atan2(o3e,a3e)-Math.atan2(r,o);let i=i3e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},s3e=(e,t,n=1)=>{const r=n*6;let{value:o}=a9(r,e,t);return o=o*n%60,o},l3e=(e,t,n)=>{const{value:r,distance:o}=a9(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},c3e,t)},f3e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),p3e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ci/2}px)`,border:`${(Ci-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function h3e(e){const t=Je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,u3e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=d3e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return O.jsx(f3e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:O.jsx(p3e,{ownerState:l,className:c.thumb})}))}function m3e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ap=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},v3e=(e,t)=>t==null||!e.isValid(t)?null:t,Kr=(e,t,n)=>t==null||!e.isValid(t)?n:t,g3e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),i2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},JC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},s2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},y3e=["year","month","day"],Nu=e=>y3e.includes(e),Hp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return mi(n,["year"])?o.year:mi(n,["month"])?o.month:mi(n,["day"])?o.dayOfMonth:mi(n,["month","year"])?`${o.month} ${o.year}`:mi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},b3e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},x3e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},m3e,t)},w3e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),C3e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$3e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S3e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),_3e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),E3e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),P3e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ci},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),WM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function T3e(e){const t=Je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=x3e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:j,offsetY:K}=J;if(j===void 0){const D=J.target.getBoundingClientRect();j=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?s3e(j,K,u):l3e(j,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Jn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(w3e,{className:Ne(g,S.root),children:[O.jsxs(C3e,{className:S.clock,children:[O.jsx(S3e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&O.jsxs($.Fragment,{children:[O.jsx(_3e,{className:S.pin}),i!=null&&O.jsx(h3e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),O.jsx($3e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&O.jsxs($.Fragment,{children:[O.jsx(E3e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),O.jsx(P3e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:O.jsx(WM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function k3e(e){return tt("MuiClockNumber",e)}const yv=et("MuiClockNumber",["root","selected","disabled"]),O3e=["className","disabled","index","inner","label","selected"],R3e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},k3e,t)},D3e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yv.disabled}`]:t.disabled},{[`&.${yv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Ci,width:Ci,position:"absolute",left:`calc((100% - ${Ci}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${yv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${yv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function i9(e){const t=Je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,O3e),c=t,u=R3e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Ci-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(D3e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Ci)/2}px`},ownerState:c},l,{children:i}))}const M3e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(i9,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(i9,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},l2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Rd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return l2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},I3e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,s2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Th((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:JC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:JC(t,i,e.maxTime))),i},s9=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},N3e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},a1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},l9=(e,t,n,r)=>{switch(n){case"month":return i2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return a1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},c9=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?c9(e,a,o.maxLength):a},j3e=(e,t,n,r,o,a,i)=>{const s=N3e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>u9(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=l9(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},c2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),d9=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},GM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),f9=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,p9=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return f9(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},F3e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},qM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=s9(e,w),_=p9(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=c9(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:L3e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=F3e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},z3e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=c2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},B3e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=i2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:f9(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=a1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},U3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=a1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},YM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>YM[i.type]-YM[s.type]).reduce((i,s)=>!a||s.modified?U3e(e,t,s,n,i):i,o),W3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,H3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},G3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:s2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,G3e);return t!=null&&r.utils.isValid(t)?t:n??A3e(r)},cleanValue:v3e,areValuesEqual:g3e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},u2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:d9(o(t),r),getValueStrFromSections:V3e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Oh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},d2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>s2(n,o,"date")}),[]);return e??a},q3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Y3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},r3e,t)},K3e=he(o1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),J3e=he(t9,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Z3e=["hours","minutes"],X3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:R=Z3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,J=Oe(o,q3e),X=u??Oh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Rd({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=d2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),Z=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=kh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Th(v,r),He=we==="hours"||we==="minutes"&&R.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,Z)||w&&$e(Z,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Bp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,Z,R]),Ve=Za(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Bp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:M3e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:HM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=Y3e(De);return O.jsxs(K3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},J,{children:[O.jsx(T3e,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(J3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function Q3e(e){return tt("MuiDigitalClock",e)}const eNe=et("MuiDigitalClock",["root","list","item"]),tNe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],nNe=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},Q3e,t)},rNe=he(o1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:r9})),oNe=he(qE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),aNe=he(ty,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),iNe=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Je({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:J,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,tNe),{value:N,handleValueChange:B,timezone:Z}=Rd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(Z),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=nNe(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:aNe,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=d2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=kh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Th(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||R!=null&&R(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,R,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return O.jsx(rNe,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:O.jsx(oNe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return O.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:J||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function sNe(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function lNe(e){return tt("MuiMultiSectionDigitalClock",e)}const cNe=et("MuiMultiSectionDigitalClock",["root","item"]),uNe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],dNe=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},lNe,t)},fNe=he(qE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:r9,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),pNe=he(ty,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),hNe=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,uNe),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=dNe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:pNe;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),O.jsx(fNe,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return O.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),mNe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},JM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},vNe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],gNe=e=>{const{classes:t}=e;return Qe({root:["root"]},sNe,t)},yNe=he(o1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),bNe=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,J=Oe(o,vNe),{value:X,handleValueChange:j,timezone:K}=Rd({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=d2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=kh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=e1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Th(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Bp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Bp($e,se,a);Ve("hours",r.setHours(B,He))},items:mNe({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:JM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:JM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=gNe(Be);return O.jsx(yNe,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},J,{children:Object.entries(De).map(([we,$e])=>O.jsx(hNe,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function xNe(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wNe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],CNe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xNe,l)},h9=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Up,height:Up,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${t1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),m9=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},$Ne=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(h9),SNe=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:m9})(({theme:e,ownerState:t})=>T({},h9({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},_Ne=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Oe(r,wNe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=CNe(k),R=qt(),F=$.useRef(null),U=sn(F,n);Jn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?O.jsx(SNe,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx($Ne,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),ENe=$.memo(_Ne);function v9(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const PNe=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=l2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>B3e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>qM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),R=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=I3e(D),Z=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),d9(B,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=qM(t,_,n,v,xe,x,w,a);return KM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:Z,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},TNe=5e3,nu=e=>e.saveQuery!=null,kNe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),TNe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>l9(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&s9(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>GM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:u9(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=p9(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=GM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=a1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ONe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ry=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ry(t.shadowRoot):t:null},f2="@media (pointer: fine)",RNe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],p2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=PNe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Oe(e.forwardedProps,RNe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=kNe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),J=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>H3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),Z=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(W3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=j3e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Jn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===ry(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=v9(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===ry(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),R==null||R(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},Rh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Kr(n.utils,e.minDate,n.defaultDates.minDate),f=Kr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},ZC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],g9=["minDateTime","maxDateTime"],DNe=[...ZC,...XC,...g9],Dd=e=>DNe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),MNe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],h2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return MNe.forEach(o),t==="date"?ZC.forEach(o):t==="time"?XC.forEach(o):t==="date-time"&&(ZC.forEach(o),XC.forEach(o),g9.forEach(o)),{forwardedProps:n,internalProps:r}},INe=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Kr(o,e.minDate,a.minDate),maxDate:Kr(o,e.maxDate,a.maxDate)})},ANe=({props:e,inputRef:t})=>{const n=INe(e),{forwardedProps:r,internalProps:o}=h2(n,"date");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:Rh,valueType:"date"})},NNe=he(W0)({[`& .${rp.container}`]:{outline:0},[`& .${rp.paper}`]:{outline:0,minWidth:n1}}),jNe=he(G0)({"&:first-of-type":{padding:0}});function LNe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:NNe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(jNe,{children:r})}))}function FNe(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const zNe="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ZM=ju&&ju[1]?parseInt(ju[1],10):null,XM=ju&&ju[2]?parseInt(ju[2],10):null,VNe=ZM&&ZM<10||XM&&XM<13||!1,y9=()=>Sh(zNe,{defaultMatches:!1})||VNe,BNe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],UNe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},FNe,t)},WNe=he(Ch,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HNe=he(ps,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function GNe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&GNe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const YNe=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,BNe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function KNe(e){var t,n,r,o;const a=Je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=ry(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=qNe(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,R=UNe(I),F=y9(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:Qg,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:X6,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:HNe,Q=(o=v==null?void 0:v.popper)!=null?o:WNe,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},W,{children:({TransitionProps:J,placement:X})=>O.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(z,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(YNe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function b9(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const JNe=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},b9,t)},ZNe=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),XNe=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),m2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=JNe(c);return s?null:O.jsxs(ZNe,{ref:n,className:Ne(u.root,a),ownerState:c,children:[O.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(XNe,{className:u.content,ownerState:c,children:o})]})});function QNe(e){return tt("MuiPickersToolbarText",e)}const QM=et("MuiPickersToolbarText",["root","selected"]),e4e=["className","selected","value"],t4e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},QNe,t)},n4e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${QM.selected}`]:{color:(e.vars||e).palette.text.primary}})),v2=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,e4e),s=t4e(r);return O.jsx(n4e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),r4e=["align","className","selected","typographyClassName","value","variant","width"],o4e=e=>{const{classes:t}=e;return Qe({root:["root"]},b9,t)},a4e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,r4e),p=o4e(r);return O.jsx(a4e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(v2,{align:o,className:s,variant:c,value:l,selected:i})}))}),i4e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},s4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},l4e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},c4e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},u4e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=i4e(e),[_,S]=$.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=l2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});v9(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,Z.value,ue),isControlled:b,closeOnSelect:c},ce=s4e(re),xe=l4e(re),me=c4e(re);if(S(ue=>T({},ue,{draft:Z.value,lastPublishedValue:ce?Z.value:ue.lastPublishedValue,lastCommittedValue:xe?Z.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(se.shortcut=Z.shortcut),k(Z.value,se)}xe&&a&&a(Z.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),W=mt((Z,re,ce)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:ce})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),j={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},d4e=["className","sx"],f4e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,d4e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=kh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Jn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Jn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function eI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const p4e=(e,t)=>{const[n,r]=$.useState(eI);return Jn(()=>{const a=()=>{r(eI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},h4e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=p4e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},x9=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};x9(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const w9=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=u4e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=f4e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=h4e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function C9(e){return tt("MuiPickersLayout",e)}const Jx=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),m4e=["onAccept","onClear","onCancel","onSetToday","actions"];function v4e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,m4e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(H0,T({},i,{children:l}))}const g4e=["items","changeImportance","isLandscape","onChange","isValid"],y4e=["getValue"];function b4e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,g4e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,y4e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(GE,T({dense:!0,sx:[{maxHeight:r1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(OL,{children:O.jsx(dL,T({},s))},s.label))}))}function x4e(e){return e.view!==null}const w4e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},C9,t)},C4e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Oh(w),k=S??C,I=w4e(e),R=(t=E==null?void 0:E.actionBar)!=null?t:v4e,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=x4e(z)&&G?O.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:b4e,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&J?O.jsx(J,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},$4e=C4e,S4e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},C9,n)},$9=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Jx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Jx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Jx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));$9.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const _4e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),S9=function(t){const n=Je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=$4e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=S4e(m);return O.jsxs($9,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(_4e,{className:b.contentWrapper,children:p==="desktop"?O.jsxs($.Fragment,{children:[o,a]}):O.jsxs($.Fragment,{children:[a,o]})}),i]})},i1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Th(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},g2=({props:e,value:t,adapter:n})=>{const r=Rh({adapter:n,value:t,props:e});return r!==null?r:i1({adapter:n,value:t,props:e})},E4e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P4e=["children","className","reduceAnimations","slideDirection","transKey","classes"],T4e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,E4e,t)},k4e=he(DE,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function O4e(e){const t=Je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,P4e),s=T4e(t),l=rr();if(o)return O.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(k4e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(tCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const _9=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Rh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},R4e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D4e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M4e=["ownerState"],I4e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},R4e,t)},E9=(Up+t1*2)*6,A4e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),j4e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),L4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),F4e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Up,height:Up,padding:0,margin:`0 ${t1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),z4e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:E9}),V4e=he(O4e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:E9}),B4e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),U4e=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${t1}px 0`,display:"flex",justifyContent:"center"});function W4e(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,D4e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:ENe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,M4e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function H4e(e){const t=Je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=I4e(t),W=rr().direction==="rtl",J=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=_9({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),Z=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":Z(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":Z(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ap({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ap({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"Home":Z(V.startOfWeek(Be)),De.preventDefault();break;case"End":Z(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":Z(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":Z(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>Z(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ap({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return O.jsx(j4e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=J==null?void 0:J(we,De))!=null?ge:we},we+Be.toString())})]}),s?O.jsx(z4e,{className:Y.loadingContainer,children:p()}):O.jsx(V4e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:O.jsx(B4e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>O.jsxs(U4e,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[R&&O.jsx(F4e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>O.jsx(W4e,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const G4e=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},q4e=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(G4e(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=_9({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},Y4e=["ownerState"],y2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,Y4e),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:WAe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs($.Fragment,{children:[O.jsx(HE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},K4e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],J4e=["inputRef"],Z4e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,K4e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,J4e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=ANe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,Z4e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),X4e=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},Q4e=({props:e,inputRef:t})=>{const n=X4e(e),{forwardedProps:r,internalProps:o}=h2(n,"time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:i1,valueType:"time"})},e5e=["slots","slotProps","components","componentsProps","InputProps","inputProps"],t5e=["inputRef"],n5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],T9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,e5e),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,t5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=Q4e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,n5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),r5e=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Kr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Kr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},o5e=({props:e,inputRef:t})=>{const n=r5e(e),{forwardedProps:r,internalProps:o}=h2(n,"date-time");return p2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:u2,validator:g2,valueType:"date-time"})},a5e=["components","componentsProps","slots","slotProps","InputProps","inputProps"],i5e=["inputRef"],s5e=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],k9=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,a5e),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Eh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,i5e);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=o5e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,s5e),{InputProps:U,fieldProps:G}=y2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),l5e=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const c5e=e=>{const{classes:t}=e;return Qe({root:["root"]},l5e,t)},u5e=he(DE,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function O9(e){const t=Je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=c5e(t),s=rr();return o?n:O.jsx(u5e,{className:Ne(i.root,r),children:O.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function d5e(e){return tt("MuiPickersMonth",e)}const bv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),f5e=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],p5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},d5e,r)},h5e=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),m5e=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${bv.disabled}`]:t.disabled},{[`&.${bv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),v5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,f5e),x=$.useRef(null),g=p5e(n);return Jn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(h5e,T({className:g.root,ownerState:n},v,{children:O.jsx(m5e,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function g5e(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const y5e=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],b5e=e=>{const{classes:t}=e;return Qe({root:["root"]},g5e,t)};function x5e(e,t){const n=qt(),r=_c(),o=Je({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Kr(n,o.minDate,r.minDate),maxDate:Kr(n,o.maxDate,r.maxDate)})}const w5e=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:n1,boxSizing:"border-box"}),C5e=$.forwardRef(function(t,n){const r=x5e(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Oe(r,y5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=b5e(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),J=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);R(se)}),Z=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>J!==null&&me!==J?J:me)},[J]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":Z((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":Z((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":Z((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":Z((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{Z(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return O.jsx(w5e,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:i2(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===J,Ve=l||N(me);return O.jsx(v5e,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function $5e(e){return tt("MuiPickersYear",e)}const xv=et("MuiPickersYear",["root","yearButton","selected","disabled"]),S5e=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],_5e=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},$5e,r)},E5e=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),P5e=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xv.disabled}`]:t.disabled},{[`&.${xv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),T5e=$.memo(function(t){const n=Je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,S5e),x=$.useRef(null),g=_5e(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(E5e,T({className:Ne(g.root,o),ownerState:n},v,{children:O.jsx(P5e,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function k5e(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const O5e=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],R5e=e=>{const{classes:t}=e;return Qe({root:["root"]},k5e,t)};function D5e(e,t){var n;const r=qt(),o=_c(),a=Je({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Kr(r,a.minDate,o.minDate),maxDate:Kr(r,a.maxDate,o.maxDate)})}const M5e=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:n1,maxHeight:n3e,boxSizing:"border-box",position:"relative"}),I5e=$.forwardRef(function(t,n){const r=D5e(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Oe(r,O5e),{value:I,handleValueChange:R,timezone:F}=Rd({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=bh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=R5e(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),J=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);R(fe)}),Z=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>J!==null&&se!==J?J:se)},[J]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":Z(Ce-_),se.preventDefault();break;case"ArrowDown":Z(Ce+_),se.preventDefault();break;case"ArrowLeft":Z(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":Z(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{Z(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===J,Ve=c||N(se);return O.jsx(T5e,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),A5e=e=>tt("MuiPickersCalendarHeader",e),N5e=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),j5e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],L5e=["ownerState"],F5e=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},A5e,t)},z5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),V5e=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),B5e=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),U5e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${N5e.switchViewIcon}`]:{transform:"rotate(180deg)"}})),W5e=he(LAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),H5e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Je({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Oe(s,j5e),I=s,R=F5e(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:U5e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:W5e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),V=Oe(z,L5e),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=e3e(u,{disableFuture:p,maxDate:b,timezone:E}),J=t3e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:O.jsxs(z5e,T({},k,{ownerState:I,className:Ne(S,R.root),ref:n,children:[O.jsxs(V5e,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(O9,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(B5e,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},V))}))]}),O.jsx(kd,{in:y==="day",children:O.jsx(t9,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),G5e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const q5e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Y5e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},G5e,t)};function K5e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=y9(),p=Je({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Kr(c,p.minDate,u.minDate),maxDate:Kr(c,p.maxDate,u.maxDate)})}const J5e=he(o1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:r1}),Z5e=he(O9,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),R9=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Za(),l=K5e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Oe(l,q5e),{value:se,handleValueChange:Ce,timezone:fe}=Rd({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=kh({view:k,views:I,openTo:R,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=q4e({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:H5e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ap({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&JC(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=Y5e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return O.jsxs(J5e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[O.jsx(Le,T({},ne)),O.jsx(Z5e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:O.jsxs("div",{children:[Ve==="year"&&O.jsx(I5e,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&O.jsx(C5e,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&O.jsx(H4e,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z}))]})})]}))});function X5e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const Q5e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],eje=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},X5e,t)},tje=he(m2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nje=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),rje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,Q5e),u=qt(),f=Er(),p=eje(r),m=$.useMemo(()=>{if(!o)return s;const v=Hp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(tje,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(nje,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function D9(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Je({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Oh(l.components);return T({},l,{localeText:c},a2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Kr(i,l.minDate,s.minDate),maxDate:Kr(i,l.maxDate,s.maxDate),slots:T({toolbar:rje},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const oje=["props","getOpenDialogAriaText"],aje=["ownerState"],ije=["ownerState"],b2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,oje);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),R=Za(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=w9(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:HE,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Oe(X,aje),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Oe(q,ije),N=c.openPickerIcon,B=c.field,Z=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${j.position}Adornment`]:O.jsx(J,T({},j,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ce=(a=c.layout)!=null?a:S9,xe=sn(k,Z.inputRef,g);let me=R;F&&(x?me=`${R}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:_,children:[O.jsx(B,T({},Z,{slots:re,slotProps:ue,inputRef:xe})),O.jsx(KNe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:O.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>O.jsx(R9,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),M9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=D9(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Hp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:e9,field:P9},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=b2({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Rh});return p()});M9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const sje=["props","getOpenDialogAriaText"],x2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,sje);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Za(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=w9(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ONe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:S9,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(Ph,{localeText:y,children:[O.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),O.jsx(LNe,T({},k,{open:E,slots:s,slotProps:W,children:O.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:R()}))}))]})}},I9=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=D9(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Hp(s,l,!1),slots:T({field:P9},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=x2({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Rh});return f()});I9.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const lje=["desktopModeMediaQuery"],cje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,lje);return Sh(o,{defaultMatches:!0})?O.jsx(M9,T({ref:n},a)):O.jsx(I9,T({ref:n},a))});function uje(e){return tt("MuiTimePickerToolbar",e)}const ip=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),dje=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fje=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,uje,r)},pje=he(m2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hje=he(v2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),A9=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ip.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ip.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));A9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N9=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ip.ampmLabel}`]:t.ampmLabel},{[`&.${ip.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ip.ampmLabel}`]:{fontSize:17}}));N9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function mje(e){const t=Je({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,dje),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=e1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=fje(T({},C,{theme:v})),S=O.jsx(hje,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(pje,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(A9,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&O.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&O.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(N9,{className:_.ampmSelection,ownerState:C,children:[O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function j9(e,t){var n,r,o,a,i;const s=qt(),l=Je({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Oh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},a2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:mje},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>O.jsx(X3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),L9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(iNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),QC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(bNe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),vje=["views","format"],F9=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,vje);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return Hp(e,T({views:a},o),!1);if(a.length===0)return ny(e,T({views:i},o));const s=ny(e,T({views:i},o));return`${Hp(e,T({views:a},o),!1)} ${s}`},gje=(e,t,n)=>n?t.filter(r=>!Ds(r)||r==="hours"):e?[...t,"meridiem"]:t,yje=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function z9({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=yje(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:gje(t,r,i)}}const V9=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=j9(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=z9(f),v=p?L9:QC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===QC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ny(u,f),views:p?["hours"]:C,slots:T({field:T9,openPickerIcon:VAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:i1});return S()});V9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const B9=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=j9(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ny(l,c),slots:T({field:T9},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=x2({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:i1});return m()});B9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const bje=["desktopModeMediaQuery"],xje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,bje);return Sh(o,{defaultMatches:!0})?O.jsx(V9,T({ref:n},a)):O.jsx(B9,T({ref:n},a))});function wje(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const Cje=e=>Nu(e)?"date":"time",$je=e=>e==="date"?"day":"hours",Sje=e=>{const{classes:t}=e;return Qe({root:["root"]},wje,t)},_je=he(J0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Jv.indicator}`]:{bottom:"auto",top:0}}})),Eje=function(t){const n=Je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(BAe,{}),onViewChange:o,timeIcon:a=O.jsx(UAe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=Sje(n),u=(f,p)=>{o($je(p))};return s?null:O.jsxs(_je,{ownerState:n,variant:"fullWidth",value:Cje(i),onChange:u,className:c.root,children:[O.jsx(Vp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx($.Fragment,{children:r})}),O.jsx(Vp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx($.Fragment,{children:a})})]})};function Pje(e){return tt("MuiDateTimePickerToolbar",e)}const Zx=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Tje=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],kje=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,Pje,t)},U9=he(m2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));U9.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const Oje=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),W9=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Rje=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));W9.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const tI=he(v2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Dje=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zx.ampmLabel}`]:t.ampmLabel},{[`&.${Zx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Zx.ampmLabel}`]:{fontSize:17}}));function Mje(e){const t=Je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,Tje),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=e1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=kje(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(U9,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(Oje,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs(W9,{className:k.timeContainer,ownerState:x,children:[O.jsxs(Rje,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs($.Fragment,{children:[O.jsx(tI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(Dje,{className:k.ampmSelection,ownerState:x,children:[O.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function H9(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Je({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Oh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,a2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Kr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Kr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:Mje,tabs:Eje},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const Ije=he("div")({display:"flex",margin:"0 auto"}),Ol=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ds(e)?e:"hours",onViewChange:t,focusedView:r&&Ds(r)?r:null,onFocusedViewChange:o,views:n.filter(Ds),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return O.jsxs($.Fragment,{children:[O.jsxs(Ije,{children:[O.jsx(R9,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce}),se>0&&O.jsxs($.Fragment,{children:[O.jsx(pM,{orientation:"vertical"}),Ce?L9(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ds(r)?"hours":null,sx:T({width:"auto",[`&.${eNe.root}`]:{maxHeight:r1}},Array.isArray(N)?N:[N])})):QC(T({},De,{view:Ds(e)?e:"hours",views:n.filter(Ds),focusedView:r&&Ds(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${cNe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(pM,{})]})},G9=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=H9(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=z9(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Ol,month:Ol,year:Ol,hours:Ol,minutes:Ol,seconds:Ol,meridiem:Ol}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:F9(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:k9,openPickerIcon:e9},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=b2({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:g2});return S()});G9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const q9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=H9(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:F9(c,u),ampmInClock:p,slots:T({field:k9},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=x2({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:g2});return b()});q9.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const Aje=["desktopModeMediaQuery"],Nje=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=f2}=r,a=Oe(r,Aje);return Sh(o,{defaultMatches:!0})?O.jsx(G9,T({ref:n},a)):O.jsx(q9,T({ref:n},a))});var Y9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Y9);var jje=Y9.exports;const Lje=Vt(jje);var K9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(K9);var Fje=K9.exports;const zje=Vt(Fje);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(J9);var Vje=J9.exports;const Bje=Vt(Vje);var Z9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Z9);var Uje=Z9.exports;const Wje=Vt(Uje);xr.extend(zje);xr.extend(Bje);xr.extend(Wje);const Hje=x9(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),Gje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},qje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Xx=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),nI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),Yje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class w2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Gje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Xx);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Xx);if(!this.hasTimezonePlugin())throw new Error(nI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(Hje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Xx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(nI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=Yje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},qje,n),xr.extend(Lje)}}var C2={},Kje=Cc;Object.defineProperty(C2,"__esModule",{value:!0});var X9=C2.default=void 0,Jje=Kje($c()),Zje=O,Xje=(0,Jje.default)((0,Zje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");X9=C2.default=Xje;const Qje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Dj(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Jy(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},e6e=vn(3,vj);var t6e=t1e(Qje);class Q9 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=kIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&lj(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const n6e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Jy(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(Q9,{schema:e,combinatorKeyword:p,path:o}),M.createElement(J0,{value:c,onChange:f},m.map(b=>M.createElement(Vp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};s6(n6e);const r6e=he(Od)({borderBottom:"none"}),Gp=({children:e,...t})=>M.createElement(r6e,Object.assign({},t),e),o6e=he(mL)(({theme:e})=>({color:e.palette.error.main})),e8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(o6e,{badgeContent:e.split(` -`).length},M.createElement(n2,{color:"inherit"}))),a6e={paddingLeft:0,paddingRight:0},i6e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Gp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Gp,{align:"right",style:a6e},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large"},M.createElement(e2,null)))):null)}),rI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},t8=(e,t,n,r,o)=>{if(t.type==="object")return n8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},n8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],s6e=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Gp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),l6e=M.memo(function({title:t}){return M.createElement(Od,null,t)}),c6e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},oI=e=>({type:"Control",scope:e,label:!1}),u6e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Gp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:oI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:oI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),d6e=e=>{const t=xc(),n=c6e(t,e),r=Mt(n.errors);return M.createElement(u6e,Object.assign({},n,{isValid:r}))},f6e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},t8(d6e,t,e,c,u),c?M.createElement(Gp,{style:l?rI.fixedCell:rI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(X0,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(Z0,null))))):null)},p6e=M.memo(f6e),h6e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(s6e,{numColumns:n8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=sr.compose(t,`${m}`);return M.createElement(p6e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let m6e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?t8(l6e,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(UL,null,M.createElement(HL,null,M.createElement(i6e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Od,null):null)),M.createElement(WL,null,M.createElement(h6e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const v6e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(UE,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(H0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),g6e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(m6e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(v6e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};Zy(g6e);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},r8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,R=!To(r,t,S,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(xEe,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(Eh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!R},F),M.createElement(pr,{error:!y},U))},$2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(U2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});r2.extend(wAe);const S2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=r2(r).format(n);t(e,o)},_2=(e,t)=>{if(!e)return null;const n=r2(e,t);return n.toString()==="Invalid Date"?null:n},y6e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),b6e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},y6e(t,n,r,o,i,s))),Dh=M.memo(b6e),o8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},x6e=e=>e.target.value,Ec=(e,t,n,r,o=x6e,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(e6(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},w6e={"enum.none":"None"},C6e=e=>e===""?void 0:parseInt(e,10),$6e=e=>C6e(e.target.value),a8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,$6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),S6e=e=>e===""?void 0:parseFloat(e),_6e=e=>S6e(e.target.value),i8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,_6e);return M.createElement(hs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),E6e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(hs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),P6e=e=>e.target.value===""?void 0:e.target.value,s8=M.memo(function(t){var R,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,P6e),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(hs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(HE,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(JL,{style:I}))),inputComponent:v})}),T6e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(hs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),s1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",w6e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(zL,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(ty,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(ty,{value:v.value,key:v.value},v.label))))}),l8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(HDe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),k6e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement($h,{component:"fieldset"},M.createElement(CL,{row:!0},o.map((u,f)=>{const p=sr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(q0,{id:u.value,key:u.value,control:M.createElement($2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));i1e(k6e);const O6e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>hh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var R6e=n1e(O6e);const D6e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=Jy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,is(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,is,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(Q9,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(J0,{value:b,onChange:E},C.map(k=>M.createElement(Vp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(W0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(UE,{id:"alert-dialog-title"},"Clear form?"),M.createElement(G0,null,M.createElement(BE,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(H0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},M6e=vn(3,yj);var I6e=e1e(D6e);const A6e=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));u6(A6e);const c8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(kMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(e8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(e2,null))))))))}),N6e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(OL,{button:!0,selected:n,onClick:o(e)},M.createElement(Nke,null,M.createElement(pL,{"aria-label":"Index"},e+1)),M.createElement(Wke,{primary:t}),r&&M.createElement(kL,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(Z0,null))));var j6e=r1e(N6e);const L6e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>is(t),[is]),S=$.useMemo(()=>hh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(c8,{translations:x,label:qy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(GE,null,f>0?XL(wd(f),k=>M.createElement(j6e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};Zy(L6e);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement($h,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(PL,{htmlFor:o+"-input",error:!m,required:Yy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},F6e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),z6e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),V6e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=F6e(u.anyOf),m=z6e(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(hs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class B6e extends n6{render(){return M.createElement(Md,Object.assign({},this.props,{input:V6e}))}}co(B6e);const U6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement($2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(U6e);const W6e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(q0,{label:n,id:r,control:M.createElement(l8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};co(W6e);const H6e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(cje,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};co(H6e);const G6e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(Nje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(G6e);const q6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};nE(ul(M.memo(q6e)),!1);const Y6e=e=>M.createElement(Md,Object.assign({},e,{input:a8}));co(Y6e);const K6e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(Eh,{required:Yy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};co(K6e);const J6e=e=>M.createElement(Md,Object.assign({},e,{input:i8}));co(J6e);const Z6e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:s1})):M.createElement(r8,Object.assign({},e,{isValid:a}))};rE(ul(M.memo(Z6e)),!1);const u8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement($h,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(WE,{htmlFor:a,error:!x,component:"legend",required:Yy(s,g.hideRequiredAsterisk)},i),M.createElement(QOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(q0,{value:C.value,key:C.label,control:M.createElement(JOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},X6e=e=>M.createElement(u8,Object.assign({},e));rE(X6e);const Q6e=e=>M.createElement(u8,Object.assign({},e));nE(Q6e);const eLe=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement($h,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(WE,{htmlFor:o,error:!x,component:"legend",required:Yy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(MRe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};co(eLe);const tLe=e=>M.createElement(Md,Object.assign({},e,{input:s8}));co(tLe);const nLe=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>S2(p,m,C),[p,m,C]),I=_2(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Ph,{dateAdapter:w2},M.createElement(xje,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};co(nLe);const Qx={float:"right"},rLe=e=>{const[t]=$.useState(Bj("expand-panel"));$.useEffect(()=>()=>{Uj(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>hh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(PCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(i$e,{expandIcon:M.createElement(X9,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(pL,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:Qx,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(Q0,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:Qx,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(X0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:Qx,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(Z0,null))))))))),M.createElement(MCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},oLe=M.memo(rLe),aLe=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(uj(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(dj(o,n),o)))},[e])}),iLe=e=>function({ctx:n,props:r}){const o=aLe(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Iye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},sLe=e=>_r(iLe(e));var lLe=sLe(oLe);const cLe={marginBottom:"10px"},uLe=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(l2e,{style:cLe},!Mt(o)&&M.createElement(S2e,{title:o}),M.createElement(h2e,null,M.createElement(Dh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),dLe=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(uLe,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};ds(dLe);const fLe=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Dh,Object.assign({},l,{renderers:t,cells:n}))};ds(fLe);const pLe=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Dh,Object.assign({},l,{renderers:a,cells:i}))};ds(pLe);const hLe=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Wy(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(P$e,{position:"static"},M.createElement(J0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Vp,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Dh,Object.assign({},C,{key:w}))))};o8(ul(ds(hLe)));const mLe=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>is(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(c8,{translations:C,label:qy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?XL(wd(s),S=>M.createElement(lLe,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(vLe,Object.assign({visible:e,addItem:r},n)))};Zy(gLe);const yLe=e=>M.createElement($2,Object.assign({},e));hr(yLe);const bLe=e=>M.createElement(l8,Object.assign({},e));hr(bLe);const xLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(hs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(xLe);const wLe=e=>M.createElement(s1,Object.assign({},e));c6(ul(M.memo(wLe)),!1);const CLe=e=>M.createElement(a8,Object.assign({},e));hr(CLe);const $Le=e=>M.createElement(i8,Object.assign({},e));hr($Le);const SLe=e=>M.createElement(E6e,Object.assign({},e));hr(SLe);const _Le=e=>M.createElement(s1,Object.assign({},e));a1e(ul(M.memo(_Le)),!1);const ELe=e=>M.createElement(s8,Object.assign({},e));hr(ELe);const PLe=e=>M.createElement(T6e,Object.assign({},e));hr(PLe);const TLe=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Wy(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(ADe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(JRe,{key:_[E]},M.createElement(wDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Dh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};o8(ul(ds(TLe)));var kLe=Array.prototype,OLe=kLe.join;function RLe(e,t){return e==null?"":OLe.call(e,t)}var DLe=RLe;const d8=Vt(DLe);var MLe=xd,f8=MLe("filter",y5);f8.placeholder=gc();var ILe=f8;const aI=Vt(ILe);var ALe=xd,p8=ALe("map",ZL);p8.placeholder=gc();var NLe=p8;const iI=Vt(NLe);var ew,sI;function jLe(){if(sI)return ew;sI=1;var e=MS(),t=jS,n=DS(),r=n5(),o=cr,a=r5(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Mg(e,o=>o.name===t);return SC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>d8(sp(e)(t,n)," "),qLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],YLe={styles:qLe},KLe=M.createContext(YLe),JLe=()=>$.useContext(KLe),E2=()=>{const{styles:e}=JLe();return e},Oi=e=>function(n){const r=xc(),o=E2(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>sp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${Lj(a.scope)}`]);s&&(c=c.concat(sp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>sp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},P2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=E2(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:sp(a),className:o.join(" ")}))},Xa=P2("control.input"),ZLe=P2("control.select"),XLe=P2("control.checkbox"),QLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},e9e=vn(2,mj);var t9e=hr(XLe(QLe));const n9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},r9e=vn(2,Sj);var o9e=hr(Xa(n9e));const a9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},i9e=vn(2,Ej);var s9e=hr(Xa(a9e));const l9e=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",GLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},c9e=vn(2,O_);var u9e=c6(ul(ZLe(l9e)));const d9e=e=>e===""?void 0:parseInt(e,10),f9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,d9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},p9e=vn(2,xj);var h9e=hr(Xa(f9e));const m9e=e=>e===""?void 0:Number(e),v9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,m9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},g9e=vn(2,wj);var y9e=hr(Xa(v9e));const b9e=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(Xa(b9e));const x9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},w9e=vn(4,kj);var C9e=hr(Xa(x9e));const $9e=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},S9e=vn(1,Cj);hr(Xa($9e));const _9e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},E9e=vn(2,$j);hr(Xa(_9e));const P9e=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},T9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,P9e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},k9e=vn(2,_j);var O9e=hr(Xa(T9e));class R9e extends n6{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Ay(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},qy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const D9e=vn(1,Ya);var y8=Oi(co(R9e));const b8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=E2(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},qy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},M9e=e=>M.createElement(b8,Object.assign({},e)),I9e=vn(3,$n(O_,us("format","radio")));var A9e=Oi(nE(M9e));const N9e=e=>M.createElement(b8,Object.assign({},e)),j9e=vn(3,$n(bj,us("format","radio")));var L9e=Oi(rE(N9e));const{convertToValidClassName:F9e}=Ug,z9e=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>hh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),F9e(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,is(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},V9e=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Ug.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Ug.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(z9e,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var B9e=Oi(l6(V9e));const U9e=vn(4,D_),T2=e=>e.type==="Categorization",W9e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>T2(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),H9e=(e,t)=>t===e?"selected":"",x8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Wy(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>T2(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(x8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:H9e(l,t)},M.createElement("span",null,s[c]))))},G9e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class q9e extends t6{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(x8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(G9e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:T2(n)?this.findCategory(n):n}}var Y9e=Oi(ul(ds(q9e)));const K9e=vn(1,_n("Label")),J9e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var Z9e=Oi(u6(J9e));const{convertToValidClassName:X9e}=Ug,{or:Q9e,isObjectArrayControl:e8e,isPrimitiveArrayControl:t8e,rankWith:n8e}=Qge,r8e=n8e(3,Q9e(e8e,t8e));class o8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),X9e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,is(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?cI(dI,aI(S=>r.properties[S].type!=="array"),iI(S=>M.createElement("th",{key:S},r.properties[S].title??HLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=sr.compose(a,`${E}`),I=Mg(f,G=>Fg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?cI(dI,aI(G=>r.properties[G].type!=="array"),iI(G=>{const z=sr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:sr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},d8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var a8e=Oi(l6(o8e));const k2=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},i8e=vn(1,_n("Group")),s8e=e=>{const{data:t,...n}=e;return M.createElement(l8e,Object.assign({},n))},l8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),k2(c,t,p,r,o))});var c8e=Oi(ds(s8e));const w8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),u8e=vn(1,_n("HorizontalLayout")),d8e=e=>{const{data:t,...n}=e;return M.createElement(f8e,Object.assign({},n))},f8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(w8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},k2(l,t,f,s,a))});var p8e=Oi(ds(d8e,!1));const h8e=vn(1,_n("VerticalLayout")),m8e=e=>{const{data:t,...n}=e;return M.createElement(v8e,Object.assign({},n))},v8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(w8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},k2(l,t,f,r,a))});var g8e=Oi(ds(m8e,!1));const y8e=[{tester:D9e,renderer:y8},{tester:I9e,renderer:A9e},{tester:j9e,renderer:L9e},{tester:U9e,renderer:B9e},{tester:K9e,renderer:Z9e},{tester:W9e,renderer:Y9e},{tester:r8e,renderer:a8e},{tester:i8e,renderer:c8e},{tester:h8e,renderer:g8e},{tester:u8e,renderer:p8e}],O2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),b8e=he(Od)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),qp=({children:e,...t})=>O.jsx(b8e,{...t,children:e}),R2=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),x8e=he(mL)(({theme:e})=>({color:e.palette.error.main})),w8e=({errorMessages:e,id:t})=>O.jsx(wc,{id:t,title:e,children:O.jsx(x8e,{badgeContent:e.split(` -`).length,children:O.jsx(n2,{color:"inherit"})})}),C8e={paddingLeft:0,paddingRight:0},$8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(hl,{children:[O.jsx(qp,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(w8e,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(qp,{align:"right",style:C8e,children:O.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,is(i)),size:"large",sx:{p:1},children:O.jsx(R2,{className:"text-ls-black"})})})}):null]})}),fI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},C8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return $8(t).map(a=>{var l,c;const i=sr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Ny(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},$8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],S8e=({numColumns:e,translations:t})=>O.jsx(hl,{children:O.jsx(qp,{colSpan:e,children:O.jsx(yn,{align:"center",children:t.noDataMessage})})}),_8e=M.memo(function({title:t}){return O.jsx(Od,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),E8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=F_(GL(S_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pI=e=>({type:"Control",scope:e,label:!1}),P8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(qp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:pI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ic,{schema:r,uischema:pI("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(pr,{error:!c,children:!c&&a})]})}),T8e=e=>{const t=xc(),n=E8e(t,e),r=Mt(n.errors);return O.jsx(P8e,{...n,isValid:r})},k8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(hl,{hover:!0,children:[C8(T8e,t,e,c,u),c?O.jsx(qp,{style:l?fI.fixedCell:fI.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs($.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(Q0,{})})}),O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(X0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(O2,{className:"text-ls-black"})})})]})}):null]},e)},O8e=M.memo(k8e),R8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(S8e,{numColumns:$8(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:wd(e).map(m=>{const b=sr.compose(t,`${m}`);return O.jsx(O8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class D8e extends M.Component{constructor(){super(...arguments);Jd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?C8(_8e,o,r,u,f):void 0;return O.jsx(Tn,{xsUp:!c,children:O.jsxs(UL,{children:[O.jsxs(HL,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx($8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(hl,{children:[v,u?O.jsx(Od,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx(WL,{children:O.jsx(R8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const M8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(W0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(UE,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(G0,{children:O.jsx(BE,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(H0,{children:[O.jsx(Go,{onClick:o,color:"primary",children:l}),O.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),I8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Tn,{xsUp:!l,children:[O.jsx(D8e,{...e,openDeleteDialog:c}),O.jsx(M8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},A8e=vn(11,yc(R_,Tj,D_)),S8=Zy(I8e),hI=Zi("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return O.jsxs("div",{className:Zi("grid w-full",e.className),children:[O.jsx("textarea",{id:e.id,className:Zi(hI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Zi(hI,"pointer-events-none select-none"),children:[e.value," "]})]})}const N8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},mI=hr(Xa(N8e));function j8e(e){try{return JSON.parse(e)}catch{return e}}function L8e(e){try{return JSON.stringify(e)}catch{return e}}const F8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(ad,{value:typeof t=="object"?L8e(t):t??"",onChange:u=>l(s,u===""?void 0:j8e(u)),className:Zi("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},z8e=hr(Xa(F8e)),V8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function B8e(e){return typeof e=="object"&&e!=null}function oy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(B8e(r))r=r[o];else return}return r}function l1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function U8e(e){const t=e+"CollectionProvider",[n,r]=Sy(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=as(b,g.collectionRef);return M.createElement(kp,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=as(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(kp,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const W8e=$.createContext(void 0);function _8(e){const t=$.useContext(W8e);return e||t||"ltr"}const rw="rovingFocusGroup.onEntryFocus",H8e={bubbles:!1,cancelable:!0},D2="RovingFocusGroup",[e$,E8,G8e]=U8e(D2),[q8e,P8]=Sy(D2,[G8e]),[Y8e,K8e]=q8e(D2),J8e=$.forwardRef((e,t)=>$.createElement(e$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(e$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(Z8e,T({},e,{ref:t}))))),Z8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=as(t,f),m=_8(a),[b=null,v]=Qp({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=E8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(rw,y),()=>E.removeEventListener(rw,y)},[y]),$.createElement(Y8e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Jo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:ao(e.onMouseDown,()=>{C.current=!0}),onFocus:ao(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(rw,H8e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(V=>V.focusable),F=R.find(V=>V.active),U=R.find(V=>V.id===b),z=[F,U,...R].filter(Boolean).map(V=>V.ref.current);T8(z)}}C.current=!1}),onBlur:ao(e.onBlur,()=>g(!1))})))}),X8e="RovingFocusGroupItem",Q8e=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Mv(),l=a||s,c=K8e(X8e,n),u=c.currentTabStopId===l,f=E8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(e$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Jo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:ao(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:ao(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ao(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=nFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?rFe(g,y+1):g.slice(y+1)}setTimeout(()=>T8(g))}})})))}),eFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nFe(e,t,n){const r=tFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return eFe[r]}function T8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const oFe=J8e,aFe=Q8e,iFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Qp({prop:n,onChange:o,defaultProp:r});return $.createElement(Jo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:ao(e.onClick,()=>{e.disabled||s(!i)})}))}),c1="ToggleGroup",[k8,WFe]=Sy(c1,[P8]),O8=P8(),sFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(lFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(cFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${c1}\``)}),[R8,D8]=k8(c1),lFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Qp({prop:n,defaultProp:r,onChange:o});return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(M8,T({},a,{ref:t})))}),cFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qp({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(R8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(M8,T({},a,{ref:t})))}),[uFe,dFe]=k8(c1),M8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=O8(n),u=_8(i),f={role:"group",dir:u,...l};return M.createElement(uFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(oFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Jo.div,T({},f,{ref:t}))):M.createElement(Jo.div,T({},f,{ref:t})))}),t$="ToggleGroupItem",fFe=M.forwardRef((e,t)=>{const n=D8(t$,e.__scopeToggleGroup),r=dFe(t$,e.__scopeToggleGroup),o=O8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(aFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(vI,T({},s,{ref:t}))):M.createElement(vI,T({},s,{ref:t}))}),vI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=D8(t$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(iFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),pFe=sFe,gI=fFe,hFe=vn(12,$n(Ya,Yr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function yI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function bI(e,t){return typeof e=="string"?[{content:e,type:t}]:yI(e)?[e]:Array.isArray(e)&&e.every(yI)?e:null}function xI(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const mFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??""),i=bI(o,"human"),s=bI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=sr.compose(e.path,`${r}`),a=n.type??"chat",i=xI((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(sr.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(pFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(sr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(sr.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(gI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(V8e,{className:"w-4 h-4"})}),O.jsx(gI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(SN,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(O2,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(sr.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(sr.compose(o,"name"),p.target.value)}}),a==="ai"&&xI((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(sr.compose(o,"additional_kwargs.function_call.name")),e.handleChange(sr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(sr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(sr.compose(o,"content"),p)}})]},r)})})]})}),vFe=vn(12,$n(Ya,Yr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!l1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),gFe=co(e=>{const t=e.data??[];return J3("onSuccess",n=>{if(!l1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=oy(n.input,r.input??""),a=oy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(R2,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=sr.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(ad,{value:n,onChange:i=>{e.handleChange(sr.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(ad,{value:r,onChange:i=>{e.handleChange(sr.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(O2,{className:"w-4 h-4"})})]},o)})})]})}),yFe=vn(12,$n(Ya,Yr(e=>l1(e)?e.extra.widget.type==="base64file":!1))),bFe=co(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),xFe=s6(e=>{const t=Jy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:M2,cells:I2})}),wFe=vn(3,gj),CFe=vn(2,$n(_n("Control"),Ka("object"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),$Fe=vn(1,$n(_n("Control"),Ka("object"))),SFe=vn(1,$n(_n("Control"))),M2=[...y8e,{tester:CFe,renderer:R6e},{tester:e6e,renderer:t6e},{tester:M6e,renderer:I6e},{tester:wFe,renderer:xFe},{tester:A8e,renderer:S8},{tester:$Fe,renderer:y8},{tester:hFe,renderer:mFe},{tester:vFe,renderer:gFe},{tester:yFe,renderer:bFe}],_Fe=vn(1,(e,t)=>t.type==="array"),I2=[{tester:e9e,cell:t9e},{tester:r9e,cell:o9e},{tester:i9e,cell:s9e},{tester:c9e,cell:u9e},{tester:p9e,cell:h9e},{tester:g9e,cell:y9e},{tester:w9e,cell:C9e},{tester:E9e,cell:mI},{tester:S9e,cell:mI},{tester:k9e,cell:O9e},{tester:_Fe,cell:S8},{tester:SFe,cell:z8e}];function EFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(f6,{schema:e.config,data:e.value.data,renderers:M2,cells:I2,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>O.jsx("li",{children:r.message},o))})]})})]})]})}function PFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify($g(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:$g(e.input),errors:[]}),children:"Reset"})]}),O.jsx(f6,{schema:e.input,data:e.value.data,renderers:M2,cells:I2,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>O.jsx("li",{children:o.message},a))})]})]})]})}const TFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function kFe(e){return O.jsx("button",{type:"button",className:Zi("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(TFe,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})}function OFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function RFe(e,t){return e===t}function wI(e){return typeof e=="function"?function(){return e}:e}function DFe(e,t,n){var r,o,a=n&&n.equalityFn||RFe,i=(r=$.useState(wI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(wI(f))},[])]),s=i[0],l=i[1],c=OFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function MFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return O.jsxs(O.Fragment,{children:[O.jsx(PFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),O.jsx(BH,{config:e.configData.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(xB,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx(kFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function IFe(e){const t=X$(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),[o,a]=DFe(n.data,500),i=cU(o!==e.configSchema.defaults?o:void 0),{context:s,callbacks:l}=AU(),{startStream:c,stopStream:u,latest:f}=IU(l);return O.jsxs(K3.Provider,{value:s,children:[O.jsx(EFe,{config:e.configSchema.schema,value:n,onChange:r}),O.jsx("div",{className:Zi("flex flex-col flex-grow gap-4 w-full transition-opacity",(i.isLoading||a.isPending())&&"opacity-50 pointer-events-none"),children:i.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:i.error.toString()})}):O.jsx(O.Fragment,{children:i.data!=null?O.jsx(MFe,{configSchema:e.configSchema,inputSchema:i.data,configData:n,startStream:c,stopStream:u,children:f&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(CG,{streamed:f.streamed_output})}),O.jsx(bG,{latest:f})]})}):null})})]})}function AFe(){const e=lU();return e.isLoading?null:e.error!=null?O.jsx("div",{className:"bg-background rounded-xl",children:O.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":O.jsx(IFe,{configSchema:e.data})}function NFe(){return O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),O.jsx(AFe,{})]})})}var I8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(I8);var jFe=I8.exports;const LFe=Vt(jFe);var A8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(A8);var FFe=A8.exports;const zFe=Vt(FFe);xr.extend(zFe);xr.extend(LFe);ow.createRoot(document.getElementById("root")).render(O.jsx(NFe,{})); +`));const t=$.useMemo(()=>T({},YAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},KAe=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ZAe=or(R.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),JAe=or(R.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),aL=or(R.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),XAe=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),QAe=or(R.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),e4e=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),t4e=or(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function n4e(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const r4e=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],o4e=["ownerState"],a4e=["ownerState"],i4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),s4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),HM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),l4e=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},n4e,t)},iL=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Ze({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Re(c,r4e),E=c,k=l4e(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},O={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:HM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:T({},E,{hidden:O.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:HM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:ZAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Re(Y,o4e),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:JAe,Z=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Re(Z,a4e);return R.jsxs(i4e,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[R.jsx(F,T({},U,{children:l?R.jsx(W,T({},X)):R.jsx(V,T({},Q))})),u?R.jsx(yn,{variant:"subtitle1",component:"span",children:u}):R.jsx(s4e,{className:k.spacer,ownerState:E}),R.jsx(G,T({},z,{children:l?R.jsx(V,T({},Q)):R.jsx(W,T({},X))}))]}))}),gi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),sE=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},sL=["hours","minutes","seconds"],rd=e=>sL.includes(e),Ms=e=>sL.includes(e)||e==="meridiem",c4e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Wp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,u4e=(e,t,n,r)=>{const o=Wp(r.getHours(e),t,n);return r.setHours(e,o)},GM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Oh=(e,t)=>(n,r)=>e?t.isAfter(n,r):GM(n,t)>GM(r,t),ay=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return gi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:gi(n,["minutes"])?o.minutes:gi(n,["seconds"])?o.seconds:gi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:gi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function Dh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(O=>!o.includes(O)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((O,F)=>{g(F?O:U=>O===U?null:U),s==null||s(O,F)}),S=mt(O=>{O!==m&&(b(O),_(O,!0),t&&t(O))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((O,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(O,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function d4e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function f4e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function a1(e,t,n,r){const o=qt(),a=c4e(e,o),i=$.useCallback(s=>{const l=e==null?null:u4e(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Hp=36,i1=2,s1=320,p4e=280,l1=334,lL=232,Nf=48,c1=he("div")({overflow:"hidden",width:s1,maxHeight:l1,display:"flex",flexDirection:"column",margin:"0 auto"});function h4e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Si=36,Gp={x:od/2,y:od/2},cL={x:Gp.x,y:0},m4e=cL.x-Gp.x,v4e=cL.y-Gp.y,g4e=e=>e*(180/Math.PI),uL=(e,t,n)=>{const r=t-Gp.x,o=n-Gp.y,a=Math.atan2(m4e,v4e)-Math.atan2(r,o);let i=g4e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},y4e=(e,t,n=1)=>{const r=n*6;let{value:o}=uL(r,e,t);return o=o*n%60,o},b4e=(e,t,n)=>{const{value:r,distance:o}=uL(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},x4e,t)},$4e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),S4e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Si/2}px)`,border:`${(Si-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function _4e(e){const t=Ze({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Re(t,w4e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=C4e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return R.jsx($4e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:R.jsx(S4e,{ownerState:l,className:c.thumb})}))}function E4e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ip=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},P4e=(e,t)=>t==null||!e.isValid(t)?null:t,Zr=(e,t,n)=>t==null||!e.isValid(t)?n:t,T4e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),lE=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},e$=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},cE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},k4e=["year","month","day"],Nu=e=>k4e.includes(e),qp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return gi(n,["year"])?o.year:gi(n,["month"])?o.month:gi(n,["day"])?o.dayOfMonth:gi(n,["month","year"])?`${o.month} ${o.year}`:gi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},R4e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},O4e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},E4e,t)},D4e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),M4e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),I4e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),A4e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),N4e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),j4e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),L4e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),qM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function F4e(e){const t=Ze({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=O4e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(Z,X)=>{v||x||l(Z,m)||f(Z,X)},O=(Z,X)=>{let{offsetX:j,offsetY:K}=Z;if(j===void 0){const D=Z.target.getBoundingClientRect();j=Z.changedTouches[0].clientX-D.left,K=Z.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?y4e(j,K,u):b4e(j,K,!!n);I(q,X)},F=Z=>{_.current=!0,O(Z,"shallow")},U=Z=>{_.current&&(O(Z,"finish"),_.current=!1)},G=Z=>{Z.buttons>0&&O(Z.nativeEvent,"shallow")},z=Z=>{_.current&&(_.current=!1),O(Z.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Zn(()=>{o&&Q.current.focus()},[o]);const W=Z=>{if(!_.current)switch(Z.key){case"Home":I(0,"partial"),Z.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),Z.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),Z.preventDefault();break}};return R.jsxs(D4e,{className:Ne(g,S.root),children:[R.jsxs(M4e,{className:S.clock,children:[R.jsx(A4e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&R.jsxs($.Fragment,{children:[R.jsx(N4e,{className:S.pin}),i!=null&&R.jsx(_4e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),R.jsx(I4e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&R.jsxs($.Fragment,{children:[R.jsx(j4e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:R.jsx(qM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),R.jsx(L4e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:R.jsx(qM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function z4e(e){return tt("MuiClockNumber",e)}const wv=et("MuiClockNumber",["root","selected","disabled"]),V4e=["className","disabled","index","inner","label","selected"],B4e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},z4e,t)},U4e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wv.disabled}`]:t.disabled},{[`&.${wv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Si,width:Si,position:"absolute",left:`calc((100% - ${Si}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${wv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function dL(e){const t=Ze({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Re(t,V4e),c=t,u=B4e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Si-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return R.jsx(U4e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Si)/2}px`},ownerState:c},l,{children:i}))}const W4e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(R.jsx(dL,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},YM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return R.jsx(dL,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},uE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Od=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return uE({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},H4e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,cE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Oh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:e$(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:e$(t,i,e.maxTime))),i},fL=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},q4e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},u1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},pL=(e,t,n,r)=>{switch(n){case"month":return lE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return u1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},hL=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?hL(e,a,o.maxLength):a},Y4e=(e,t,n,r,o,a,i)=>{const s=q4e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>mL(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=pL(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},dE=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vL=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},KM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),gL=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,yL=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return gL(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},Z4e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},ZM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=fL(e,w),_=yL(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=hL(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:K4e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=Z4e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},J4e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=dE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},Q4e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=lE(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:gL(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=u1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},e3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=u1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},JM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},XM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>JM[i.type]-JM[s.type]).reduce((i,s)=>!a||s.modified?e3e(e,t,s,n,i):i,o),t3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,n3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},r3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:cE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Re(e,r3e);return t!=null&&r.utils.isValid(t)?t:n??G4e(r)},cleanValue:P4e,areValuesEqual:T4e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},fE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:vL(o(t),r),getValueStrFromSections:X4e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Mh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},pE=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>cE(n,o,"date")}),[]);return e??a},o3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],a3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},h4e,t)},i3e=he(c1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),s3e=he(iL,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),l3e=["hours","minutes"],c3e=$.forwardRef(function(t,n){const r=qt(),o=Ze({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:O=l3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,Z=Re(o,o3e),X=u??Mh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Od({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=pE({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),J=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=Dh({view:I,views:O,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=a1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Oh(v,r),He=we==="hours"||we==="minutes"&&O.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,J)||w&&$e(J,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Wp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,J,O]),Ve=Qa(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Wp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:W4e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:YM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:YM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=a3e(De);return R.jsxs(i3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},Z,{children:[R.jsx(F4e,T({autoFocus:s??!!G,ampmInClock:i&&O.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&R.jsx(s3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function u3e(e){return tt("MuiDigitalClock",e)}const d3e=et("MuiDigitalClock",["root","list","item"]),f3e=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],p3e=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},u3e,t)},h3e=he(c1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:lL})),m3e=he(K2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),v3e=he(oy,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),g3e=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Ze({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:O,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:Z,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Re(c,f3e),{value:N,handleValueChange:B,timezone:J}=Od({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(J),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=p3e(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:v3e,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=pE({value:N,referenceDate:w,utils:i,props:c,timezone:J}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=Dh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Oh(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||O!=null&&O(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,O,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return R.jsx(h3e,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:R.jsx(m3e,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return R.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:Z||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function y3e(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function b3e(e){return tt("MuiMultiSectionDigitalClock",e)}const x3e=et("MuiMultiSectionDigitalClock",["root","item"]),w3e=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],C3e=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},b3e,t)},$3e=he(K2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:lL,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),S3e=he(oy,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),_3e=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Ze({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Re(s,w3e),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=C3e(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:S3e;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),R.jsx($3e,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return R.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),E3e=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},QM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},P3e=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],T3e=e=>{const{classes:t}=e;return Qe({root:["root"]},y3e,t)},k3e=he(c1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),R3e=$.forwardRef(function(t,n){const r=qt(),o=Ze({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:O,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,Z=Re(o,P3e),{value:X,handleValueChange:j,timezone:K}=Od({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=pE({value:X,referenceDate:b,utils:r,props:o,timezone:K}),J=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=Dh({view:k,views:re,openTo:O,onViewChange:F,onChange:J,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=a1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Oh(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Wp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Wp($e,se,a);Ve("hours",r.setHours(B,He))},items:E3e({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:QM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:QM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=T3e(Be);return R.jsx(k3e,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(De).map(([we,$e])=>R.jsx(_3e,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function O3e(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),D3e=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],M3e=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},O3e,l)},bL=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Hp,height:Hp,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${i1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),xL=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},I3e=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:xL})(bL),A3e=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:xL})(({theme:e,ownerState:t})=>T({},bL({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},N3e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Re(r,D3e),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=M3e(k),O=qt(),F=$.useRef(null),U=sn(F,n);Zn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?R.jsx(A3e,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):R.jsx(I3e,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||O.format(i,"dayOfMonth")}))}),j3e=$.memo(N3e);function wL(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const L3e=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=uE({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>Q4e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>ZM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),O=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=H4e(D),J=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:J})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const J={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,J)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),vL(B,a)},Z=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),J=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=J?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=ZM(t,_,n,v,xe,x,w,a);return XM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),J=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:J,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:Z,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:O,timezone:_}},F3e=5e3,nu=e=>e.saveQuery!=null,z3e=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),F3e);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>pL(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&fL(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>KM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:mL(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=yL(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=KM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=u1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const V3e=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},iy=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?iy(t.shadowRoot):t:null},hE="@media (pointer: fine)",B3e=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],mE=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=L3e(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:O,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Re(e.forwardedProps,B3e),{applyCharacterEditing:Y,resetCharacterQuery:Q}=z3e({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),Z=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>n3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),J=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(t3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=Y4e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Zn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===iy(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=wL(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===iy(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),O==null||O(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:J,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:Z,clearable:!!(I&&!Ue&&!v&&!F)})},Ih=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Zr(n.utils,e.minDate,n.defaultDates.minDate),f=Zr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},t$=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],n$=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],CL=["minDateTime","maxDateTime"],U3e=[...t$,...n$,...CL],Dd=e=>U3e.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),W3e=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],vE=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return W3e.forEach(o),t==="date"?t$.forEach(o):t==="time"?n$.forEach(o):t==="date-time"&&(t$.forEach(o),n$.forEach(o),CL.forEach(o)),{forwardedProps:n,internalProps:r}},H3e=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Zr(o,e.minDate,a.minDate),maxDate:Zr(o,e.maxDate,a.maxDate)})},G3e=({props:e,inputRef:t})=>{const n=H3e(e),{forwardedProps:r,internalProps:o}=vE(n,"date");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:Ih,valueType:"date"})},q3e=he(K0)({[`& .${op.container}`]:{outline:0},[`& .${op.paper}`]:{outline:0,minWidth:s1}}),Y3e=he(J0)({"&:first-of-type":{padding:0}});function K3e(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:q3e,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return R.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:R.jsx(Y3e,{children:r})}))}function Z3e(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const J3e="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),eI=ju&&ju[1]?parseInt(ju[1],10):null,tI=ju&&ju[2]?parseInt(ju[2],10):null,X3e=eI&&eI<10||tI&&tI<13||!1,$L=()=>Ph(J3e,{defaultMatches:!1})||X3e,Q3e=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],e5e=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},Z3e,t)},t5e=he(_h,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),n5e=he(hs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function r5e(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&r5e(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const a5e=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Re(e,Q3e),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return R.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function i5e(e){var t,n,r,o;const a=Ze({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function Z(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=iy(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=o5e(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,O=e5e(I),F=$L(),U=g??F,G=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:ny,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:r9,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:n5e,Q=(o=v==null?void 0:v.popper)!=null?o:t5e,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:O.root,ownerState:a});return R.jsx(Q,T({},W,{children:({TransitionProps:Z,placement:X})=>R.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:R.jsx(z,T({},Z,x==null?void 0:x.desktopTransition,{children:R.jsx(a5e,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:O.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function SL(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const s5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},SL,t)},l5e=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),c5e=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),gE=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=s5e(c);return s?null:R.jsxs(l5e,{ref:n,className:Ne(u.root,a),ownerState:c,children:[R.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),R.jsx(c5e,{className:u.content,ownerState:c,children:o})]})});function u5e(e){return tt("MuiPickersToolbarText",e)}const nI=et("MuiPickersToolbarText",["root","selected"]),d5e=["className","selected","value"],f5e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},u5e,t)},p5e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${nI.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${nI.selected}`]:{color:(e.vars||e).palette.text.primary}})),yE=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Re(r,d5e),s=f5e(r);return R.jsx(p5e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),h5e=["align","className","selected","typographyClassName","value","variant","width"],m5e=e=>{const{classes:t}=e;return Qe({root:["root"]},SL,t)},v5e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Re(r,h5e),p=m5e(r);return R.jsx(v5e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:R.jsx(yE,{align:o,className:s,variant:c,value:l,selected:i})}))}),g5e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},y5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},b5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},x5e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},w5e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=g5e(e),[_,S]=$.useState(()=>{let J;return s!==void 0?J=s:m!==void 0?J=m:J=t.emptyValue,{draft:J,lastPublishedValue:J,lastCommittedValue:J,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=uE({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});wL(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(J=>{const re={action:J,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,J.value,ue),isControlled:b,closeOnSelect:c},ce=y5e(re),xe=b5e(re),me=x5e(re);if(S(ue=>T({},ue,{draft:J.value,lastPublishedValue:ce?J.value:ue.lastPublishedValue,lastCommittedValue:xe?J.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:J.name==="setValueFromField"?J.context.validationError:o({adapter:x,value:J.value,props:T({},e,{value:J.value,timezone:E})})};J.name==="setValueFromShortcut"&&J.shortcut!=null&&(se.shortcut=J.shortcut),k(J.value,se)}xe&&a&&a(J.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const J=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},J?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const O=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((J,re="partial")=>I({name:"setValueFromView",value:J,selectionState:re})),W=mt((J,re,ce)=>I({name:"setValueFromShortcut",value:J,changeImportance:re??"accept",shortcut:ce})),Z=mt((J,re)=>I({name:"setValueFromField",value:J,context:re})),X=mt(J=>{y(J),f==null||f(J)}),j={onClear:O,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:Z,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:J=>{const re=o({adapter:x,value:J,props:T({},e,{value:J,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},C5e=["className","sx"],$5e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Re(e,C5e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=Dh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],O=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Zn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Zn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:O,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function rI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const S5e=(e,t)=>{const[n,r]=$.useState(rI);return Zn(()=>{const a=()=>{r(rI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},_5e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=S5e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},_L=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};_L(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const EL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=w5e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=$5e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=_5e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function PL(e){return tt("MuiPickersLayout",e)}const ew=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),E5e=["onAccept","onClear","onCancel","onSetToday","actions"];function P5e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Re(e,E5e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return R.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return R.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return R.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return R.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return R.jsx(Z0,T({},i,{children:l}))}const T5e=["items","changeImportance","isLandscape","onChange","isValid"],k5e=["getValue"];function R5e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Re(e,T5e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Re(s,k5e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return R.jsx(Y2,T({dense:!0,sx:[{maxHeight:l1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>R.jsx(A9,{children:R.jsx(v9,T({},s))},s.label))}))}function O5e(e){return e.view!==null}const D5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},PL,t)},M5e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Mh(w),k=S??C,I=D5e(e),O=(t=E==null?void 0:E.actionBar)!=null?t:P5e,F=zt({elementType:O,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=R.jsx(O,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=O5e(z)&&G?R.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?R.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:R5e,X=zt({elementType:Z,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&Z?R.jsx(Z,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},I5e=M5e,A5e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},PL,n)},TL=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${ew.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${ew.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${ew.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));TL.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N5e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),kL=function(t){const n=Ze({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=I5e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=A5e(m);return R.jsxs(TL,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,R.jsx(N5e,{className:b.contentWrapper,children:p==="desktop"?R.jsxs($.Fragment,{children:[o,a]}):R.jsxs($.Fragment,{children:[a,o]})}),i]})},d1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Oh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},bE=({props:e,value:t,adapter:n})=>{const r=Ih({adapter:n,value:t,props:e});return r!==null?r:d1({adapter:n,value:t,props:e})},j5e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),L5e=["children","className","reduceAnimations","slideDirection","transKey","classes"],F5e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,j5e,t)},z5e=he(I2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function V5e(e){const t=Ze({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Re(t,L5e),s=F5e(t),l=rr();if(o)return R.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return R.jsx(z5e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:R.jsx(fCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const RL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Ih({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},B5e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const U5e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],W5e=["ownerState"],H5e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},B5e,t)},OL=(Hp+i1*2)*6,G5e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q5e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Y5e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),K5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Z5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Hp,height:Hp,padding:0,margin:`0 ${i1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),J5e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:OL}),X5e=he(V5e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:OL}),Q5e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),eNe=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${i1}px 0`,display:"flex",justifyContent:"center"});function tNe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Re(e,U5e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),O=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:j3e,F=zt({elementType:O,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Re(F,W5e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return R.jsx(O,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function nNe(e){const t=Ze({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>R.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:O,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=H5e(t),W=rr().direction==="rtl",Z=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=RL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),J=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":J(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":J(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ip({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});J($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ip({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});J($e||ge),De.preventDefault();break}case"Home":J(V.startOfWeek(Be)),De.preventDefault();break;case"End":J(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":J(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":J(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>J(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ip({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return R.jsx(Y5e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=Z==null?void 0:Z(we,De))!=null?ge:we},we+Be.toString())})]}),s?R.jsx(J5e,{className:Y.loadingContainer,children:p()}):R.jsx(X5e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:R.jsx(Q5e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>R.jsxs(eNe,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[O&&R.jsx(Z5e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>R.jsx(tNe,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const rNe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},oNe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(rNe(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=RL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},aNe=["ownerState"],xE=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Re(x,aNe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:t4e,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?R.jsxs($.Fragment,{children:[R.jsx(q2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:R.jsx(v,T({},g,{onClick:r,children:R.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},iNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],sNe=["inputRef"],lNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],DL=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,iNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,sNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=G3e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,lNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),cNe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},uNe=({props:e,inputRef:t})=>{const n=cNe(e),{forwardedProps:r,internalProps:o}=vE(n,"time");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:d1,valueType:"time"})},dNe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],fNe=["inputRef"],pNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],ML=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Re(i,dNe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,fNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=uNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,pNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),hNe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Zr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Zr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},mNe=({props:e,inputRef:t})=>{const n=hNe(e),{forwardedProps:r,internalProps:o}=vE(n,"date-time");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:bE,valueType:"date-time"})},vNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],gNe=["inputRef"],yNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],IL=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,vNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,gNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=mNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,yNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),bNe=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const xNe=e=>{const{classes:t}=e;return Qe({root:["root"]},bNe,t)},wNe=he(I2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function AL(e){const t=Ze({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=xNe(t),s=rr();return o?n:R.jsx(wNe,{className:Ne(i.root,r),children:R.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function CNe(e){return tt("MuiPickersMonth",e)}const Cv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),$Ne=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],SNe=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},CNe,r)},_Ne=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),ENe=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cv.disabled}`]:t.disabled},{[`&.${Cv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),PNe=$.memo(function(t){const n=Ze({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Re(n,$Ne),x=$.useRef(null),g=SNe(n);return Zn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),R.jsx(_Ne,T({className:g.root,ownerState:n},v,{children:R.jsx(ENe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function TNe(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const kNe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],RNe=e=>{const{classes:t}=e;return Qe({root:["root"]},TNe,t)};function ONe(e,t){const n=qt(),r=_c(),o=Ze({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Zr(n,o.minDate,r.minDate),maxDate:Zr(n,o.maxDate,r.maxDate)})}const DNe=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:s1,boxSizing:"border-box"}),MNe=$.forwardRef(function(t,n){const r=ONe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Re(r,kNe),{value:I,handleValueChange:O,timezone:F}=Od({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=Ch(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=RNe(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),Z=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>Z||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);O(se)}),J=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>Z!==null&&me!==Z?Z:me)},[Z]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":J((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":J((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":J((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":J((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{J(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return R.jsx(DNe,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:lE(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===Z,Ve=l||N(me);return R.jsx(PNe,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function INe(e){return tt("MuiPickersYear",e)}const $v=et("MuiPickersYear",["root","yearButton","selected","disabled"]),ANe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],NNe=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},INe,r)},jNe=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),LNe=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${$v.disabled}`]:t.disabled},{[`&.${$v.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${$v.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${$v.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FNe=$.memo(function(t){const n=Ze({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Re(n,ANe),x=$.useRef(null),g=NNe(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),R.jsx(jNe,T({className:Ne(g.root,o),ownerState:n},v,{children:R.jsx(LNe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function zNe(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const VNe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],BNe=e=>{const{classes:t}=e;return Qe({root:["root"]},zNe,t)};function UNe(e,t){var n;const r=qt(),o=_c(),a=Ze({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Zr(r,a.minDate,o.minDate),maxDate:Zr(r,a.maxDate,o.maxDate)})}const WNe=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:s1,maxHeight:p4e,boxSizing:"border-box",position:"relative"}),HNe=$.forwardRef(function(t,n){const r=UNe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Re(r,VNe),{value:I,handleValueChange:O,timezone:F}=Od({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=Ch(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=BNe(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),Z=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>Z||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);O(fe)}),J=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>Z!==null&&se!==Z?Z:se)},[Z]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":J(Ce-_),se.preventDefault();break;case"ArrowDown":J(Ce+_),se.preventDefault();break;case"ArrowLeft":J(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":J(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{J(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===Z,Ve=c||N(se);return R.jsx(FNe,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),GNe=e=>tt("MuiPickersCalendarHeader",e),qNe=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),YNe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],KNe=["ownerState"],ZNe=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},GNe,t)},JNe=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),XNe=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),QNe=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),e6e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${qNe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),t6e=he(KAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),n6e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Ze({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Re(s,YNe),I=s,O=ZNe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:e6e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:O.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:t6e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:O.switchViewIcon}),V=Re(z,KNe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=d4e(u,{disableFuture:p,maxDate:b,timezone:E}),Z=f4e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:R.jsxs(JNe,T({},k,{ownerState:I,className:Ne(S,O.root),ref:n,children:[R.jsxs(XNe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:O.labelContainer,children:[R.jsx(AL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:R.jsx(QNe,{id:_,ownerState:I,className:O.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&R.jsx(F,T({},U,{children:R.jsx(G,T({},V))}))]}),R.jsx(kd,{in:y==="day",children:R.jsx(iL,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:Z,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),r6e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const o6e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],a6e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},r6e,t)};function i6e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=$L(),p=Ze({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>R.jsx("span",{children:"..."}),minDate:Zr(c,p.minDate,u.minDate),maxDate:Zr(c,p.maxDate,u.maxDate)})}const s6e=he(c1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:l1}),l6e=he(AL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),NL=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Qa(),l=i6e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:O,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:J,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Re(l,o6e),{value:se,handleValueChange:Ce,timezone:fe}=Od({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=Dh({view:k,views:I,openTo:O,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=oNe({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:n6e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ip({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ip({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&e$(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=a6e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return R.jsxs(s6e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[R.jsx(Le,T({},ne)),R.jsx(l6e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:R.jsxs("div",{children:[Ve==="year"&&R.jsx(HNe,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&R.jsx(MNe,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&R.jsx(nNe,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:J}))]})})]}))});function c6e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const u6e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],d6e=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},c6e,t)},f6e=he(gE,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p6e=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),h6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Re(r,u6e),u=qt(),f=Er(),p=d6e(r),m=$.useMemo(()=>{if(!o)return s;const v=qp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return R.jsx(f6e,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:R.jsx(p6e,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function jL(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Ze({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Mh(l.components);return T({},l,{localeText:c},sE({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Zr(i,l.minDate,s.minDate),maxDate:Zr(i,l.maxDate,s.maxDate),slots:T({toolbar:h6e},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const m6e=["props","getOpenDialogAriaText"],v6e=["ownerState"],g6e=["ownerState"],wE=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Re(e,m6e);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),O=Qa(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=EL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Z=(r=c.inputAdornment)!=null?r:q2,X=zt({elementType:Z,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Re(X,v6e),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Re(q,g6e),N=c.openPickerIcon,B=c.field,J=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:O},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(J.InputProps=T({},J.InputProps,{ref:I,[`${j.position}Adornment`]:R.jsx(Z,T({},j,{children:R.jsx(K,T({},D,{children:R.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},J.slots),ce=(a=c.layout)!=null?a:kL,xe=sn(k,J.inputRef,g);let me=O;F&&(x?me=`${O}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:O}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>R.jsxs(Rh,{localeText:_,children:[R.jsx(B,T({},J,{slots:re,slotProps:ue,inputRef:xe})),R.jsx(i5e,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:R.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:Z,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>R.jsx(NL,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:Z,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),LL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=jL(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:qp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:aL,field:DL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=wE({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Ih});return p()});LL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const y6e=["props","getOpenDialogAriaText"],CE=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Re(e,y6e);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Qa(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:O,fieldProps:F}=EL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:V3e(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:kL,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>R.jsxs(Rh,{localeText:y,children:[R.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),R.jsx(K3e,T({},k,{open:E,slots:s,slotProps:W,children:R.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:O()}))}))]})}},FL=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=jL(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:qp(s,l,!1),slots:T({field:DL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=CE({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Ih});return f()});FL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const b6e=["desktopModeMediaQuery"],x6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,b6e);return Ph(o,{defaultMatches:!0})?R.jsx(LL,T({ref:n},a)):R.jsx(FL,T({ref:n},a))});function w6e(e){return tt("MuiTimePickerToolbar",e)}const sp=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),C6e=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],$6e=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,w6e,r)},S6e=he(gE,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_6e=he(yE,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),zL=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${sp.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${sp.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));zL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const VL=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${sp.ampmLabel}`]:t.ampmLabel},{[`&.${sp.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${sp.ampmLabel}`]:{fontSize:17}}));VL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function E6e(e){const t=Ze({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Re(t,C6e),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=a1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=$6e(T({},C,{theme:v})),S=R.jsx(_6e,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return R.jsxs(S6e,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[R.jsxs(zL,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&R.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&R.jsxs(VL,{className:_.ampmSelection,ownerState:C,children:[R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function BL(e,t){var n,r,o,a,i;const s=qt(),l=Ze({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Mh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},sE({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:E6e},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>R.jsx(c3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),UL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(g3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),r$=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(R3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),P6e=["views","format"],WL=(e,t)=>{let{views:n,format:r}=t,o=Re(t,P6e);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return qp(e,T({views:a},o),!1);if(a.length===0)return ay(e,T({views:i},o));const s=ay(e,T({views:i},o));return`${qp(e,T({views:a},o),!1)} ${s}`},T6e=(e,t,n)=>n?t.filter(r=>!Ms(r)||r==="hours"):e?[...t,"meridiem"]:t,k6e=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function HL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=k6e(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:T6e(t,r,i)}}const GL=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=BL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=HL(f),v=p?UL:r$,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===r$.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ay(u,f),views:p?["hours"]:C,slots:T({field:ML,openPickerIcon:XAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=wE({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:d1});return S()});GL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const qL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=BL(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ay(l,c),slots:T({field:ML},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=CE({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:d1});return m()});qL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const R6e=["desktopModeMediaQuery"],O6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,R6e);return Ph(o,{defaultMatches:!0})?R.jsx(GL,T({ref:n},a)):R.jsx(qL,T({ref:n},a))});function D6e(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const M6e=e=>Nu(e)?"date":"time",I6e=e=>e==="date"?"day":"hours",A6e=e=>{const{classes:t}=e;return Qe({root:["root"]},D6e,t)},N6e=he(t1,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Qv.indicator}`]:{bottom:"auto",top:0}}})),j6e=function(t){const n=Ze({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=R.jsx(QAe,{}),onViewChange:o,timeIcon:a=R.jsx(e4e,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=A6e(n),u=(f,p)=>{o(I6e(p))};return s?null:R.jsxs(N6e,{ownerState:n,variant:"fullWidth",value:M6e(i),onChange:u,className:c.root,children:[R.jsx(Up,{value:"date","aria-label":l.dateTableLabel,icon:R.jsx($.Fragment,{children:r})}),R.jsx(Up,{value:"time","aria-label":l.timeTableLabel,icon:R.jsx($.Fragment,{children:a})})]})};function L6e(e){return tt("MuiDateTimePickerToolbar",e)}const tw=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),F6e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],z6e=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,L6e,t)},YL=he(gE,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));YL.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const V6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),KL=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),B6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));KL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const oI=he(yE,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),U6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${tw.ampmLabel}`]:t.ampmLabel},{[`&.${tw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${tw.ampmLabel}`]:{fontSize:17}}));function W6e(e){const t=Ze({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Re(t,F6e),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=a1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=z6e(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),O=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return R.jsxs(YL,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[R.jsxs(V6e,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&R.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&R.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:O})]}),R.jsxs(KL,{className:k.timeContainer,ownerState:x,children:[R.jsxs(B6e,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&R.jsxs($.Fragment,{children:[R.jsx(oI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&R.jsxs($.Fragment,{children:[R.jsx(oI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&R.jsxs(U6e,{className:k.ampmSelection,ownerState:x,children:[R.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),R.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&R.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function ZL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Ze({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Mh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,sE({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Zr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Zr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:W6e,tabs:j6e},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const H6e=he("div")({display:"flex",margin:"0 auto"}),Rl=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:Z,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:J,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ms(e)?e:"hours",onViewChange:t,focusedView:r&&Ms(r)?r:null,onFocusedViewChange:o,views:n.filter(Ms),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return R.jsxs($.Fragment,{children:[R.jsxs(H6e,{children:[R.jsx(NL,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:Z,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:J,displayWeekNumber:re,timezone:ce}),se>0&&R.jsxs($.Fragment,{children:[R.jsx(vM,{orientation:"vertical"}),Ce?UL(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ms(r)?"hours":null,sx:T({width:"auto",[`&.${d3e.root}`]:{maxHeight:l1}},Array.isArray(N)?N:[N])})):r$(T({},De,{view:Ms(e)?e:"hours",views:n.filter(Ms),focusedView:r&&Ms(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${x3e.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&R.jsx(vM,{})]})},JL=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=ZL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=HL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Rl,month:Rl,year:Rl,hours:Rl,minutes:Rl,seconds:Rl,meridiem:Rl}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:WL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:IL,openPickerIcon:aL},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=wE({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:bE});return S()});JL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const XL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=ZL(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:WL(c,u),ampmInClock:p,slots:T({field:IL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=CE({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:bE});return b()});XL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const G6e=["desktopModeMediaQuery"],q6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,G6e);return Ph(o,{defaultMatches:!0})?R.jsx(JL,T({ref:n},a)):R.jsx(XL,T({ref:n},a))});var QL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(QL);var Y6e=QL.exports;const K6e=Vt(Y6e);var e8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var Z=b(Q)(Y),X=Z.year,j=Z.month,K=Z.day,q=Z.hours,D=Z.minutes,N=Z.seconds,B=Z.milliseconds,J=Z.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return J?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*J.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(e8);var Z6e=e8.exports;const J6e=Vt(Z6e);var t8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(t8);var X6e=t8.exports;const Q6e=Vt(X6e);var n8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(n8);var eje=n8.exports;const tje=Vt(eje);xr.extend(J6e);xr.extend(Q6e);xr.extend(tje);const nje=_L(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),rje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},oje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},nw=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),aI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),aje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class $E{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=rje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(nw);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(nw);if(!this.hasTimezonePlugin())throw new Error(aI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(nje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(nw);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(aI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=aje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},oje,n),xr.extend(K6e)}}var SE={},ije=Cc;Object.defineProperty(SE,"__esModule",{value:!0});var r8=SE.default=void 0,sje=ije($c()),lje=R,cje=(0,sje.default)((0,lje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");r8=SE.default=cje;const uje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=j6(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=t0(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},dje=vn(3,w6);var fje=f1e(uje);class o8 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=zIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&p6(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const pje=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=t0(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(o8,{schema:e,combinatorKeyword:p,path:o}),M.createElement(t1,{value:c,onChange:f},m.map(b=>M.createElement(Up,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};fj(pje);const hje=he(Rd)({borderBottom:"none"}),Yp=({children:e,...t})=>M.createElement(hje,Object.assign({},t),e),mje=he(x9)(({theme:e})=>({color:e.palette.error.main})),a8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(mje,{badgeContent:e.split(` +`).length},M.createElement(oE,{color:"inherit"}))),vje={paddingLeft:0,paddingRight:0},gje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Yp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(a8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Yp,{align:"right",style:vje},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large"},M.createElement(nE,null)))):null)}),iI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},i8=(e,t,n,r,o)=>{if(t.type==="object")return s8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Vy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},s8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],yje=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Yp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),bje=M.memo(function({title:t}){return M.createElement(Rd,null,t)}),xje=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=V_(J9(E_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},sI=e=>({type:"Control",scope:e,label:!1}),wje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Yp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:sI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:sI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),Cje=e=>{const t=xc(),n=xje(t,e),r=Mt(n.errors);return M.createElement(wje,Object.assign({},n,{isValid:r}))},$je=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},i8(Cje,t,e,c,u),c?M.createElement(Yp,{style:l?iI.fixedCell:iI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(o1,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(r1,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(n1,null))))):null)},Sje=M.memo($je),_je=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(yje,{numColumns:s8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=cr.compose(t,`${m}`);return M.createElement(Sje,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let Eje=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?i8(bje,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(Y9,null,M.createElement(Z9,null,M.createElement(gje,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Rd,null):null)),M.createElement(K9,null,M.createElement(_je,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const Pje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(K0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(H2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(J0,null,M.createElement(W2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(Z0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),Tje=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(Eje,Object.assign({},e,{openDeleteDialog:c})),M.createElement(Pje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};n0(Tje);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},l8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,O=!To(r,t,S,w.showUnfocusedDescription),F=O?t:y?null:n,U=O&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(O2e,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(kh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!O},F),M.createElement(pr,{error:!y},U))},_E=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(ePe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});aE.extend(DAe);const EE=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=aE(r).format(n);t(e,o)},PE=(e,t)=>{if(!e)return null;const n=aE(e,t);return n.toString()==="Invalid Date"?null:n},kje=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),Rje=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},kje(t,n,r,o,i,s))),Ah=M.memo(Rje),c8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},Oje=e=>e.target.value,Ec=(e,t,n,r,o=Oje,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(aj(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},Dje={"enum.none":"None"},Mje=e=>e===""?void 0:parseInt(e,10),Ije=e=>Mje(e.target.value),u8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,Ije);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),Aje=e=>e===""?void 0:parseFloat(e),Nje=e=>Aje(e.target.value),d8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,Nje);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),jje=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(ms,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),Lje=e=>e.target.value===""?void 0:e.target.value,f8=M.memo(function(t){var O,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,Lje),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(O=k.jsonforms)==null?void 0:O.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(ms,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(q2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(tL,{style:I}))),inputComponent:v})}),Fje=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(ms,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),f1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",Dje["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(H9,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(oy,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(oy,{value:v.value,key:v.value},v.label))))}),p8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(nMe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),zje=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement(Eh,{component:"fieldset"},M.createElement(P9,{row:!0},o.map((u,f)=>{const p=cr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(X0,{id:u.value,key:u.value,control:M.createElement(_E,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));g1e(zje);const Vje=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>gh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var Bje=p1e(Vje);const Uje=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=t0(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,ss(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,ss,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(o8,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(t1,{value:b,onChange:E},C.map(k=>M.createElement(Up,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(K0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(H2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(J0,null,M.createElement(W2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(Z0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},Wje=vn(3,$6);var Hje=d1e(Uje);const Gje=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));mj(Gje);const h8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(zMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(a8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(nE,null))))))))}),qje=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(A9,{button:!0,selected:n,onClick:o(e)},M.createElement(qke,null,M.createElement(y9,{"aria-label":"Index"},e+1)),M.createElement(tRe,{primary:t}),r&&M.createElement(I9,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(n1,null))));var Yje=h1e(qje);const Kje=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>ss(t),[ss]),S=$.useMemo(()=>gh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(h8,{translations:x,label:Xy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(Y2,null,f>0?rL(wd(f),k=>M.createElement(Yje,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};n0(Kje);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement(Eh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(D9,{htmlFor:o+"-input",error:!m,required:Qy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},Zje=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),Jje=e=>e.find(t=>t.type==="string"&&t.enum===void 0),Xje=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=Zje(u.anyOf),m=Jje(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(ms,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Qje extends sj{render(){return M.createElement(Md,Object.assign({},this.props,{input:Xje}))}}uo(Qje);const e9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(X0,{label:n,id:r,control:M.createElement(_E,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(e9e);const t9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(X0,{label:n,id:r,control:M.createElement(p8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(t9e);const n9e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(x6e,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};uo(n9e);const r9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(q6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(r9e);const o9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:f1})):M.createElement(l8,Object.assign({},e,{isValid:a}))};o2(ul(M.memo(o9e)),!1);const a9e=e=>M.createElement(Md,Object.assign({},e,{input:u8}));uo(a9e);const i9e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(kh,{required:Qy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};uo(i9e);const s9e=e=>M.createElement(Md,Object.assign({},e,{input:d8}));uo(s9e);const l9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:f1})):M.createElement(l8,Object.assign({},e,{isValid:a}))};a2(ul(M.memo(l9e)),!1);const m8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement(Eh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(G2,{htmlFor:a,error:!x,component:"legend",required:Qy(s,g.hideRequiredAsterisk)},i),M.createElement(uOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(X0,{value:C.value,key:C.label,control:M.createElement(sOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},c9e=e=>M.createElement(m8,Object.assign({},e));a2(c9e);const u9e=e=>M.createElement(m8,Object.assign({},e));o2(u9e);const d9e=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement(Eh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(G2,{htmlFor:o,error:!x,component:"legend",required:Qy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(WOe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};uo(d9e);const f9e=e=>M.createElement(Md,Object.assign({},e,{input:f8}));uo(f9e);const p9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(O6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(p9e);const rw={float:"right"},h9e=e=>{const[t]=$.useState(q6("expand-panel"));$.useEffect(()=>()=>{Y6(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>gh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(LCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(g$e,{expandIcon:M.createElement(r8,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(y9,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:rw,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(o1,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:rw,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(r1,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:rw,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(n1,null))))))))),M.createElement(WCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},m9e=M.memo(h9e),v9e=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(m6(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(v6(o,n),o)))},[e])}),g9e=e=>function({ctx:n,props:r}){const o=v9e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Hye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},y9e=e=>_r(g9e(e));var b9e=y9e(m9e);const x9e={marginBottom:"10px"},w9e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(bEe,{style:x9e},!Mt(o)&&M.createElement(AEe,{title:o}),M.createElement(_Ee,null,M.createElement(Ah,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),C9e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(w9e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};fs(C9e);const $9e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Ah,Object.assign({},l,{renderers:t,cells:n}))};fs($9e);const S9e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Ah,Object.assign({},l,{renderers:a,cells:i}))};fs(S9e);const _9e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Ky(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(L$e,{position:"static"},M.createElement(t1,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Up,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Ah,Object.assign({},C,{key:w}))))};c8(ul(fs(_9e)));const E9e=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>ss(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(h8,{translations:C,label:Xy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?rL(wd(s),S=>M.createElement(b9e,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(P9e,Object.assign({visible:e,addItem:r},n)))};n0(T9e);const k9e=e=>M.createElement(_E,Object.assign({},e));hr(k9e);const R9e=e=>M.createElement(p8,Object.assign({},e));hr(R9e);const O9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(ms,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(O9e);const D9e=e=>M.createElement(f1,Object.assign({},e));hj(ul(M.memo(D9e)),!1);const M9e=e=>M.createElement(u8,Object.assign({},e));hr(M9e);const I9e=e=>M.createElement(d8,Object.assign({},e));hr(I9e);const A9e=e=>M.createElement(jje,Object.assign({},e));hr(A9e);const N9e=e=>M.createElement(f1,Object.assign({},e));v1e(ul(M.memo(N9e)),!1);const j9e=e=>M.createElement(f8,Object.assign({},e));hr(j9e);const L9e=e=>M.createElement(Fje,Object.assign({},e));hr(L9e);const F9e=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Ky(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(GDe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(sDe,{key:_[E]},M.createElement(DDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Ah,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};c8(ul(fs(F9e)));var z9e=Array.prototype,V9e=z9e.join;function B9e(e,t){return e==null?"":V9e.call(e,t)}var U9e=B9e;const v8=Vt(U9e);var W9e=xd,g8=W9e("filter",$N);g8.placeholder=gc();var H9e=g8;const lI=Vt(H9e);var G9e=xd,y8=G9e("map",nL);y8.placeholder=gc();var q9e=y8;const cI=Vt(q9e);var ow,uI;function Y9e(){if(uI)return ow;uI=1;var e=AS(),t=FS,n=IS(),r=sN(),o=lr,a=lN(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Ng(e,o=>o.name===t);return TC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>v8(lp(e)(t,n)," "),oLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],aLe={styles:oLe},iLe=M.createContext(aLe),sLe=()=>$.useContext(iLe),TE=()=>{const{styles:e}=sLe();return e},Di=e=>function(n){const r=xc(),o=TE(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>lp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${U6(a.scope)}`]);s&&(c=c.concat(lp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>lp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},kE=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=TE(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:lp(a),className:o.join(" ")}))},ei=kE("control.input"),lLe=kE("control.select"),cLe=kE("control.checkbox"),uLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},dLe=vn(2,x6);var fLe=hr(cLe(uLe));const pLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},hLe=vn(2,k6);var mLe=hr(ei(pLe));const vLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},gLe=vn(2,O6);var yLe=hr(ei(vLe));const bLe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",rLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},xLe=vn(2,D_);var wLe=hj(ul(lLe(bLe)));const CLe=e=>e===""?void 0:parseInt(e,10),$Le=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,CLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},SLe=vn(2,_6);var _Le=hr(ei($Le));const ELe=e=>e===""?void 0:Number(e),PLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,ELe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},TLe=vn(2,E6);var kLe=hr(ei(PLe));const RLe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(ei(RLe));const OLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},DLe=vn(4,I6);var MLe=hr(ei(OLe));const ILe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},ALe=vn(1,P6);hr(ei(ILe));const NLe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},jLe=vn(2,T6);hr(ei(NLe));const LLe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},FLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,LLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},zLe=vn(2,R6);var VLe=hr(ei(FLe));class BLe extends sj{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=zy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},Xy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const ULe=vn(1,Za);var $8=Di(uo(BLe));const S8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=TE(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let O={};return I&&(O={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},Xy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:O},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},WLe=e=>M.createElement(S8,Object.assign({},e)),HLe=vn(3,$n(D_,ds("format","radio")));var GLe=Di(o2(WLe));const qLe=e=>M.createElement(S8,Object.assign({},e)),YLe=vn(3,$n(S6,ds("format","radio")));var KLe=Di(a2(qLe));const{convertToValidClassName:ZLe}=Gg,JLe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>gh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),O=p("array.child.controls.delete"),F=[p("array.control"),ZLe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,ss(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:O,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},XLe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Gg.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Gg.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(JLe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var QLe=Di(pj(XLe));const e8e=vn(4,I_),RE=e=>e.type==="Categorization",t8e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>RE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),n8e=(e,t)=>t===e?"selected":"",_8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Ky(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>RE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(_8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:n8e(l,t)},M.createElement("span",null,s[c]))))},r8e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class o8e extends ij{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(_8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(r8e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:RE(n)?this.findCategory(n):n}}var a8e=Di(ul(fs(o8e)));const i8e=vn(1,_n("Label")),s8e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var l8e=Di(mj(s8e));const{convertToValidClassName:c8e}=Gg,{or:u8e,isObjectArrayControl:d8e,isPrimitiveArrayControl:f8e,rankWith:p8e}=uye,h8e=p8e(3,u8e(d8e,f8e));class m8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),c8e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,ss(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?fI(hI,lI(S=>r.properties[S].type!=="array"),cI(S=>M.createElement("th",{key:S},r.properties[S].title??nLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=cr.compose(a,`${E}`),I=Ng(f,G=>Bg(G).startsWith(k)),O=u("array.validation"),F=u("array.validation.error"),U=I?[O].concat(F).join(" "):O;return M.createElement("tr",{key:k},r.properties?fI(hI,lI(G=>r.properties[G].type!=="array"),cI(G=>{const z=cr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:cr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},v8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var v8e=Di(pj(m8e));const OE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},g8e=vn(1,_n("Group")),y8e=e=>{const{data:t,...n}=e;return M.createElement(b8e,Object.assign({},n))},b8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),OE(c,t,p,r,o))});var x8e=Di(fs(y8e));const E8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),w8e=vn(1,_n("HorizontalLayout")),C8e=e=>{const{data:t,...n}=e;return M.createElement($8e,Object.assign({},n))},$8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(E8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},OE(l,t,f,s,a))});var S8e=Di(fs(C8e,!1));const _8e=vn(1,_n("VerticalLayout")),E8e=e=>{const{data:t,...n}=e;return M.createElement(P8e,Object.assign({},n))},P8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(E8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},OE(l,t,f,r,a))});var T8e=Di(fs(E8e,!1));const k8e=[{tester:ULe,renderer:$8},{tester:HLe,renderer:GLe},{tester:YLe,renderer:KLe},{tester:e8e,renderer:QLe},{tester:i8e,renderer:l8e},{tester:t8e,renderer:a8e},{tester:h8e,renderer:v8e},{tester:g8e,renderer:x8e},{tester:_8e,renderer:T8e},{tester:w8e,renderer:S8e}],DE=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),R8e=he(Rd)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Kp=({children:e,...t})=>R.jsx(R8e,{...t,children:e}),ME=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),O8e=he(x9)(({theme:e})=>({color:e.palette.error.main})),D8e=({errorMessages:e,id:t})=>R.jsx(wc,{id:t,title:e,children:R.jsx(O8e,{badgeContent:e.split(` +`).length,children:R.jsx(oE,{color:"inherit"})})}),M8e={paddingLeft:0,paddingRight:0},I8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return R.jsxs(hl,{children:[R.jsx(Kp,{colSpan:t,sx:{verticalAlign:"top"},children:R.jsxs("div",{className:"flex items-center gap-2",children:[r&&R.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&R.jsx(D8e,{id:"tooltip-validation",errorMessages:n})]})}),s?R.jsx(Kp,{align:"right",style:M8e,children:R.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:R.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large",sx:{p:1},children:R.jsx(ME,{className:"text-ls-black"})})})}):null]})}),mI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},P8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return T8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Vy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return R.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return R.jsx(e,{...a},n)}},T8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],A8e=({numColumns:e,translations:t})=>R.jsx(hl,{children:R.jsx(Kp,{colSpan:e,children:R.jsx(yn,{align:"center",children:t.noDataMessage})})}),N8e=M.memo(function({title:t}){return R.jsx(Rd,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),j8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=V_(J9(E_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},vI=e=>({type:"Control",scope:e,label:!1}),L8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return R.jsxs(Kp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?R.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:vI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):R.jsx(ic,{schema:r,uischema:vI("#"),path:t,enabled:i,renderers:s,cells:l}),R.jsx(pr,{error:!c,children:!c&&a})]})}),F8e=e=>{const t=xc(),n=j8e(t,e),r=Mt(n.errors);return R.jsx(L8e,{...n,isValid:r})},z8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return R.jsxs(hl,{hover:!0,children:[P8(F8e,t,e,c,u),c?R.jsx(Kp,{style:l?mI.fixedCell:mI.fixedCellSmall,children:R.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?R.jsxs($.Fragment,{children:[R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:R.jsx(o1,{})})}),R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:R.jsx(r1,{})})})]}):null,R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:R.jsx(DE,{className:"text-ls-black"})})})]})}):null]},e)},V8e=M.memo(z8e),B8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return R.jsx(A8e,{numColumns:T8(n).length+1,translations:u});const p=tn({},s,i.options);return R.jsx(M.Fragment,{children:wd(e).map(m=>{const b=cr.compose(t,`${m}`);return R.jsx(V8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class U8e extends M.Component{constructor(){super(...arguments);Zd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?P8(N8e,o,r,u,f):void 0;return R.jsx(Tn,{xsUp:!c,children:R.jsxs(Y9,{children:[R.jsxs(Z9,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[R.jsx(I8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&R.jsxs(hl,{children:[v,u?R.jsx(Rd,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),R.jsx(K9,{children:R.jsx(B8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const W8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return R.jsxs(K0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[R.jsx(H2,{id:"alert-dialog-confirmdelete-title",children:a}),R.jsx(J0,{children:R.jsx(W2,{id:"alert-dialog-confirmdelete-description",children:i})}),R.jsxs(Z0,{children:[R.jsx(Go,{onClick:o,color:"primary",children:l}),R.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),H8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return R.jsx("div",{className:"control",children:R.jsxs(Tn,{xsUp:!l,children:[R.jsx(U8e,{...e,openDeleteDialog:c}),R.jsx(W8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},G8e=vn(11,yc(M_,M6,I_)),k8=n0(H8e),gI=qa("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return R.jsxs("div",{className:qa("grid w-full",e.className),children:[R.jsx("textarea",{id:e.id,className:qa(gI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),R.jsxs("div",{"aria-hidden":!0,className:qa(gI,"pointer-events-none select-none"),children:[e.value," "]})]})}const q8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},yI=hr(ei(q8e));function Y8e(e){try{return JSON.parse(e)}catch{return e}}function K8e(e){try{return JSON.stringify(e)}catch{return e}}const Z8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(ad,{value:typeof t=="object"?K8e(t):t??"",onChange:u=>l(s,u===""?void 0:Y8e(u)),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},J8e=hr(ei(Z8e)),X8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function Q8e(e){return typeof e=="object"&&e!=null}function sy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(Q8e(r))r=r[o];else return}return r}function p1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function eFe(e){const t=e+"CollectionProvider",[n,r]=ky(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=is(b,g.collectionRef);return M.createElement(Op,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=is(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Op,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const tFe=$.createContext(void 0);function R8(e){const t=$.useContext(tFe);return e||t||"ltr"}const sw="rovingFocusGroup.onEntryFocus",nFe={bubbles:!1,cancelable:!0},IE="RovingFocusGroup",[o$,O8,rFe]=eFe(IE),[oFe,D8]=ky(IE,[rFe]),[aFe,iFe]=oFe(IE),sFe=$.forwardRef((e,t)=>$.createElement(o$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(o$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(lFe,T({},e,{ref:t}))))),lFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=is(t,f),m=R8(a),[b=null,v]=nh({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=O8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(sw,y),()=>E.removeEventListener(sw,y)},[y]),$.createElement(aFe,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Zo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:io(e.onMouseDown,()=>{C.current=!0}),onFocus:io(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(sw,nFe);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const O=w().filter(V=>V.focusable),F=O.find(V=>V.active),U=O.find(V=>V.id===b),z=[F,U,...O].filter(Boolean).map(V=>V.ref.current);M8(z)}}C.current=!1}),onBlur:io(e.onBlur,()=>g(!1))})))}),cFe="RovingFocusGroupItem",uFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Nv(),l=a||s,c=iFe(cFe,n),u=c.currentTabStopId===l,f=O8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(o$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Zo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:io(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:io(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:io(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=pFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?hFe(g,y+1):g.slice(y+1)}setTimeout(()=>M8(g))}})})))}),dFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pFe(e,t,n){const r=fFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return dFe[r]}function M8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const mFe=sFe,vFe=uFe,gFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=nh({prop:n,onChange:o,defaultProp:r});return $.createElement(Zo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:io(e.onClick,()=>{e.disabled||s(!i)})}))}),h1="ToggleGroup",[I8,t7e]=ky(h1,[D8]),A8=D8(),yFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(bFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(xFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${h1}\``)}),[N8,j8]=I8(h1),bFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=nh({prop:n,defaultProp:r,onChange:o});return M.createElement(N8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(L8,T({},a,{ref:t})))}),xFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=nh({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(N8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(L8,T({},a,{ref:t})))}),[wFe,CFe]=I8(h1),L8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=A8(n),u=R8(i),f={role:"group",dir:u,...l};return M.createElement(wFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(mFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Zo.div,T({},f,{ref:t}))):M.createElement(Zo.div,T({},f,{ref:t})))}),a$="ToggleGroupItem",$Fe=M.forwardRef((e,t)=>{const n=j8(a$,e.__scopeToggleGroup),r=CFe(a$,e.__scopeToggleGroup),o=A8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(vFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(bI,T({},s,{ref:t}))):M.createElement(bI,T({},s,{ref:t}))}),bI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=j8(a$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(gFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),SFe=yFe,xI=$Fe,_Fe=vn(12,$n(Za,Kr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function wI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function CI(e,t){return typeof e=="string"?[{content:e,type:t}]:wI(e)?[e]:Array.isArray(e)&&e.every(wI)?e:null}function $I(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const EFe=uo(e=>{const t=e.data??[];return e3("onSuccess",n=>{if(!p1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=sy(n.input,r.input??""),a=sy(n.output,r.output??""),i=CI(o,"human"),s=CI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:R.jsx(ME,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=cr.compose(e.path,`${r}`),a=n.type??"chat",i=$I((s=n.additional_kwargs)==null?void 0:s.function_call);return R.jsxs("div",{className:"control group",children:[R.jsxs("div",{className:"flex items-start justify-between gap-2",children:[R.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(cr.compose(o,"type"),p.target.value)},children:[R.jsx("option",{value:"human",children:"Human"}),R.jsx("option",{value:"ai",children:"AI"}),R.jsx("option",{value:"system",children:"System"}),R.jsx("option",{value:"function",children:"Function"}),R.jsx("option",{value:"chat",children:"Chat"})]}),R.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&R.jsxs(SFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(cr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(cr.compose(o,"additional_kwargs"),{});break}}},children:[R.jsx(xI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:R.jsx(X8e,{className:"w-4 h-4"})}),R.jsx(xI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:R.jsx(T3,{className:"w-4 h-4"})})]}),R.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:R.jsx(DE,{className:"w-4 h-4"})})]})]}),a==="chat"&&R.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(cr.compose(o,"role"),p.target.value)}}),a==="function"&&R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(cr.compose(o,"name"),p.target.value)}}),a==="ai"&&$I((l=n.additional_kwargs)==null?void 0:l.function_call)?R.jsxs(R.Fragment,{children:[R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),R.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):R.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(cr.compose(o,"content"),p)}})]},r)})})]})}),PFe=vn(12,$n(Za,Kr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!p1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),TFe=uo(e=>{const t=e.data??[];return e3("onSuccess",n=>{if(!p1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=sy(n.input,r.input??""),a=sy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:R.jsx(ME,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=cr.compose(e.path,`${o}`);return R.jsxs("div",{className:"control group relative",children:[R.jsxs("div",{className:"grid gap-3",children:[R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),R.jsx(ad,{value:n,onChange:i=>{e.handleChange(cr.compose(a,"0"),i)}})]}),R.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),R.jsx(ad,{value:r,onChange:i=>{e.handleChange(cr.compose(a,"1"),i)}})]})]}),R.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:R.jsx(DE,{className:"w-4 h-4"})})]},o)})})]})}),kFe=vn(12,$n(Za,Kr(e=>p1(e)?e.extra.widget.type==="base64file":!1))),RFe=uo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return R.jsxs("div",{className:"control",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),R.jsx("input",{type:"file",onChange:t})]})}),OFe=fj(e=>{const t=t0(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return R.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:AE,cells:NE})}),DFe=vn(3,C6),MFe=vn(2,$n(_n("Control"),Ja("object"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),IFe=vn(1,$n(_n("Control"),Ja("object"))),AFe=vn(1,$n(_n("Control"))),AE=[...k8e,{tester:MFe,renderer:Bje},{tester:dje,renderer:fje},{tester:Wje,renderer:Hje},{tester:DFe,renderer:OFe},{tester:G8e,renderer:k8},{tester:IFe,renderer:$8},{tester:_Fe,renderer:EFe},{tester:PFe,renderer:TFe},{tester:kFe,renderer:RFe}],NFe=vn(1,(e,t)=>t.type==="array"),NE=[{tester:dLe,cell:fLe},{tester:hLe,cell:mLe},{tester:gLe,cell:yLe},{tester:xLe,cell:wLe},{tester:SLe,cell:_Le},{tester:TLe,cell:kLe},{tester:DLe,cell:MLe},{tester:jLe,cell:yI},{tester:ALe,cell:yI},{tester:zLe,cell:VLe},{tester:NFe,cell:k8},{tester:AFe,cell:J8e}];function jFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:R.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),R.jsxs("div",{className:"content flex flex-col gap-3",children:[R.jsx(gj,{schema:e.config,data:e.value.data,renderers:AE,cells:NE,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&R.jsx("div",{className:"bg-background rounded-xl",children:R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>R.jsx("li",{children:r.message},o))})]})})]})]})}function LFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify(Eg(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&R.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:Eg(e.input),errors:[]}),children:"Reset"})]}),R.jsx(gj,{schema:e.input,data:e.value.data,renderers:AE,cells:NE,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>R.jsx("li",{children:o.message},a))})]})]})]})}const FFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function zFe(e){return R.jsx("button",{type:"button",className:qa("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?R.jsxs(R.Fragment,{children:[R.jsxs("div",{role:"status",children:[R.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),R.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),R.jsx("span",{className:"sr-only",children:"Loading..."})]}),R.jsx("span",{className:"text-white",children:"Stop"})]}):R.jsxs(R.Fragment,{children:[R.jsx(FFe,{className:"flex-shrink-0"}),R.jsx("span",{className:"text-white",children:"Start"})]})})}function VFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,O=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(O,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var O=t-(I-o.current),F=v?Math.min(O,x-(I-a.current)):O;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function BFe(e,t){return e===t}function SI(e){return typeof e=="function"?function(){return e}:e}function UFe(e,t,n){var r,o,a=n&&n.equalityFn||BFe,i=(r=$.useState(SI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(SI(f))},[])]),s=i[0],l=i[1],c=VFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function WFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return R.jsxs(R.Fragment,{children:[R.jsx(LFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,R.jsx("div",{className:"flex-grow md:hidden"}),R.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[R.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),R.jsx(qH,{config:e.configData.data,children:R.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[R.jsx(_B,{className:"flex-shrink-0"})," ",R.jsx("span",{children:"Share"})]})}),R.jsx(zFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function HFe(e){const t=nS(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),o=fU(),[a,i]=UFe(n.data,500),s=hU(a!==e.configSchema.defaults?a:void 0),{context:l,callbacks:c}=zU(),{startStream:u,stopStream:f,latest:p}=FU(c);return R.jsxs(Q4.Provider,{value:l,children:[R.jsx(jFe,{config:e.configSchema.schema,value:n,onChange:r}),R.jsx("div",{className:qa("flex flex-col flex-grow gap-4 w-full transition-opacity",(s.isLoading||i.isPending())&&"opacity-50 pointer-events-none"),children:s.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:s.error.toString()})}):R.jsx(R.Fragment,{children:s.data!=null?R.jsx(WFe,{configSchema:e.configSchema,inputSchema:s.data,configData:n,startStream:u,stopStream:f,children:p&&R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words relative group",children:[R.jsx(MG,{streamed:p.streamed_output}),o.data&&p.id?R.jsx("div",{className:"absolute right-4 top-4 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(j3,{runId:p.id},p.id)}):null]}),R.jsx(RG,{latest:p,feedbackEnabled:!!o.data})]})}):null})})]})}function GFe(){const e=pU();return e.isLoading?null:e.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":R.jsx(HFe,{configSchema:e.data})}function qFe(){return R.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:R.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[R.jsxs("h1",{className:"text-2xl text-left",children:[R.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),R.jsx(GFe,{})]})})}var F8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(F8);var YFe=F8.exports;const KFe=Vt(YFe);var z8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(z8);var ZFe=z8.exports;const JFe=Vt(ZFe);xr.extend(JFe);xr.extend(KFe);lw.createRoot(document.getElementById("root")).render(R.jsx(qFe,{})); diff --git a/langserve/playground/dist/assets/index-52e8ab2f.css b/langserve/playground/dist/assets/index-52e8ab2f.css new file mode 100644 index 00000000..a93fec6e --- /dev/null +++ b/langserve/playground/dist/assets/index-52e8ab2f.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.top-4{top:1rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.fill-white{fill:#fff}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/50{color:#ffffff80}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.focus-within\:border-ls-blue:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity))}.focus-within\:opacity-100:focus-within{opacity:1}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/assets/index-8968db79.css b/langserve/playground/dist/assets/index-8968db79.css deleted file mode 100644 index 2c7ecf92..00000000 --- a/langserve/playground/dist/assets/index-8968db79.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index bbb6f52b..355e0fd4 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,8 +5,8 @@ Playground - - + +
@@ -14,6 +14,7 @@ try { window.CONFIG_SCHEMA = ____LANGSERVE_CONFIG_SCHEMA; window.INPUT_SCHEMA = ____LANGSERVE_INPUT_SCHEMA; + window.FEEDBACK_ENABLED = ____LANGSERVE_FEEDBACK_ENABLED; } catch (error) { // pass } diff --git a/langserve/playground/index.html b/langserve/playground/index.html index 1f519c3a..a30a1297 100644 --- a/langserve/playground/index.html +++ b/langserve/playground/index.html @@ -12,6 +12,7 @@ try { window.CONFIG_SCHEMA = ____LANGSERVE_CONFIG_SCHEMA; window.INPUT_SCHEMA = ____LANGSERVE_INPUT_SCHEMA; + window.FEEDBACK_ENABLED = ____LANGSERVE_FEEDBACK_ENABLED; } catch (error) { // pass } diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx index 5693d975..32b3b647 100644 --- a/langserve/playground/src/App.tsx +++ b/langserve/playground/src/App.tsx @@ -4,7 +4,7 @@ import { useEffect, useRef, useState } from "react"; import ShareIcon from "./assets/ShareIcon.svg?react"; -import { useConfigSchema, useInputSchema } from "./useSchemas"; +import { useConfigSchema, useFeedback, useInputSchema } from "./useSchemas"; import { useStreamLog } from "./useStreamLog"; import { AppCallbackContext, useAppStreamCallbacks } from "./useStreamCallback"; import { JsonSchema } from "@jsonforms/core"; @@ -16,6 +16,7 @@ import { InputValue, SectionInputs } from "./sections/SectionInputs"; import { SubmitButton } from "./components/SubmitButton"; import { useDebounce } from "use-debounce"; import { cn } from "./utils/cn"; +import { CorrectnessFeedback } from "./components/feedback/CorrectnessFeedback"; import { getStateFromUrl } from "./utils/url"; function InputPlayground(props: { @@ -110,6 +111,8 @@ function ConfigPlayground(props: { defaults: true, }); + const feedback = useFeedback(); + // input schema is derived from config data const [debouncedConfigData, debounceState] = useDebounce( configData.data, @@ -159,10 +162,22 @@ function ConfigPlayground(props: { {latest && (

Output

-
+
+ + {feedback.data && latest.id ? ( +
+ +
+ ) : null}
- +
)} diff --git a/langserve/playground/src/assets/CircleSpinIcon.svg b/langserve/playground/src/assets/CircleSpinIcon.svg new file mode 100644 index 00000000..1d386d81 --- /dev/null +++ b/langserve/playground/src/assets/CircleSpinIcon.svg @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/langserve/playground/src/assets/ThumbsDownIcon.svg b/langserve/playground/src/assets/ThumbsDownIcon.svg new file mode 100644 index 00000000..755ebad0 --- /dev/null +++ b/langserve/playground/src/assets/ThumbsDownIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/ThumbsUpIcon.svg b/langserve/playground/src/assets/ThumbsUpIcon.svg new file mode 100644 index 00000000..7f301e73 --- /dev/null +++ b/langserve/playground/src/assets/ThumbsUpIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx index cec9b48c..34fc1f2d 100644 --- a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx +++ b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx @@ -308,12 +308,6 @@ export const ChatMessagesControlRenderer = withJsonFormsControlProps( message.additional_kwargs?.function_call.name ?? "" } onChange={(e) => { - console.log( - Paths.compose( - msgPath, - "additional_kwargs.function_call.name" - ) - ); props.handleChange( Paths.compose( msgPath, diff --git a/langserve/playground/src/components/IntermediateSteps.tsx b/langserve/playground/src/components/IntermediateSteps.tsx index 866673ac..f8db1504 100644 --- a/langserve/playground/src/components/IntermediateSteps.tsx +++ b/langserve/playground/src/components/IntermediateSteps.tsx @@ -4,8 +4,12 @@ import ChevronRight from "../assets/ChevronRight.svg?react"; import { RunState } from "../useStreamLog"; import { cn } from "../utils/cn"; import { str } from "../utils/str"; +import { CorrectnessFeedback } from "./feedback/CorrectnessFeedback"; -export function IntermediateSteps(props: { latest: RunState }) { +export function IntermediateSteps(props: { + latest: RunState; + feedbackEnabled: boolean; +}) { const [expanded, setExpanded] = useState(false); const length = Object.values(props.latest.logs).length; const disabled = length === 0; @@ -41,9 +45,16 @@ export function IntermediateSteps(props: { latest: RunState }) { {log.name}

{dayjs.utc(log.start_time).fromNow()}

-
-                {str(log.final_output) ?? "..."}
-              
+
+
+                  {str(log.final_output) ?? "..."}
+                
+ {props.feedbackEnabled && log.id ? ( +
+ +
+ ) : null} +
))}
diff --git a/langserve/playground/src/components/feedback/CorrectnessFeedback.tsx b/langserve/playground/src/components/feedback/CorrectnessFeedback.tsx new file mode 100644 index 00000000..a31fd0be --- /dev/null +++ b/langserve/playground/src/components/feedback/CorrectnessFeedback.tsx @@ -0,0 +1,89 @@ +import ThumbsUpIcon from "../../assets/ThumbsUpIcon.svg?react"; +import ThumbsDownIcon from "../../assets/ThumbsDownIcon.svg?react"; +import CircleSpinIcon from "../../assets/CircleSpinIcon.svg?react"; +import { resolveApiUrl } from "../../utils/url"; +import { useState } from "react"; +import { cn } from "../../utils/cn"; +import useSWRMutation from "swr/mutation"; + +const useFeedbackMutation = (runId: string) => { + interface FeedbackArguments { + key: string; + score: number; + } + + const [lastArg, setLastArg] = useState(null); + + const mutation = useSWRMutation( + ["feedback", runId], + async ([, runId], { arg }: { arg: FeedbackArguments }) => { + const payload = { run_id: runId, key: arg.key, score: arg.score }; + setLastArg(arg); + + const request = await fetch(resolveApiUrl("/feedback"), { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify(payload), + }); + + if (!request.ok) throw new Error(`Failed request ${request.status}`); + const json: { + id: string; + score: number; + } = await request.json(); + + return json; + } + ); + + return { lastArg: mutation.isMutating ? lastArg : null, mutation }; +}; + +export function CorrectnessFeedback(props: { runId: string }) { + const score = useFeedbackMutation(props.runId); + + if (props.runId == null) return null; + return ( + <> + + + + + ); +} diff --git a/langserve/playground/src/useSchemas.tsx b/langserve/playground/src/useSchemas.tsx index a63a9e6f..8f3d8cd9 100644 --- a/langserve/playground/src/useSchemas.tsx +++ b/langserve/playground/src/useSchemas.tsx @@ -12,9 +12,24 @@ declare global { CONFIG_SCHEMA?: any; // eslint-disable-next-line @typescript-eslint/no-explicit-any INPUT_SCHEMA?: any; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + FEEDBACK_ENABLED?: any; } } +export function useFeedback() { + return useSWR(["/feedback"], async () => { + if (!import.meta.env.DEV && window.FEEDBACK_ENABLED) { + return window.FEEDBACK_ENABLED === "true"; + } + + const response = await fetch(resolveApiUrl("/feedback"), { + method: "HEAD", + }); + return response.ok; + }); +} + export function useConfigSchema() { return useSWR(["/config_schema"], async () => { let schema: JsonSchema | null = null; diff --git a/langserve/playground/vite.config.ts b/langserve/playground/vite.config.ts index 52f12b4a..6611d229 100644 --- a/langserve/playground/vite.config.ts +++ b/langserve/playground/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ plugins: [svgr(), react()], server: { proxy: { - "^/____LANGSERVE_BASE_URL.*/(config_schema|input_schema|stream_log)": { + "^/____LANGSERVE_BASE_URL.*/(config_schema|input_schema|stream_log|feedback)(/[a-zA-Z0-9-]*)?$": { target: "http://127.0.0.1:8000", changeOrigin: true, rewrite: (path) => path.replace("/____LANGSERVE_BASE_URL", ""), diff --git a/langserve/server.py b/langserve/server.py index e33605c5..0ea520d0 100644 --- a/langserve/server.py +++ b/langserve/server.py @@ -332,7 +332,7 @@ def orange(text: str) -> str: for path in paths: print( f'{green("LANGSERVE:")} Playground for chain "{path or ""}/" is ' - f'live at:' + f"live at:" ) print(f'{green("LANGSERVE:")} │') print(f'{green("LANGSERVE:")} └──> {path}/playground/') @@ -1122,16 +1122,32 @@ async def playground( else: base_url = f"{app.prefix}{namespace}/playground" + feedback_enabled = tracing_is_enabled() and enable_feedback_endpoint + return await serve_playground( runnable.with_config(config), runnable.with_config(config).input_schema, config_keys, base_url, file_path, + feedback_enabled, ) + @app.head(namespace + "/c/{config_hash}/feedback") + @app.head(namespace + "/feedback") + async def check_feedback_enabled(config_hash: str = ""): + if not tracing_is_enabled() or not enable_feedback_endpoint: + raise HTTPException( + 400, + "The feedback endpoint is only accessible when LangSmith is " + + "enabled on your LangServe server.", + ) + + @app.post(namespace + "/c/{config_hash}/feedback") @app.post(namespace + "/feedback") - async def feedback(feedback_create_req: FeedbackCreateRequest) -> Feedback: + async def create_feedback( + feedback_create_req: FeedbackCreateRequest, config_hash: str = "" + ) -> Feedback: """ Send feedback on an individual run to langsmith From 495a468739e3ef291741978133521d508a19cc3d Mon Sep 17 00:00:00 2001 From: David Duong Date: Tue, 28 Nov 2023 20:32:10 +0100 Subject: [PATCH 16/23] New JS build (#264) --- .../{index-1ccbfbf6.js => index-6a0f524c.js} | 108 +++++++++--------- langserve/playground/dist/index.html | 2 +- 2 files changed, 55 insertions(+), 55 deletions(-) rename langserve/playground/dist/assets/{index-1ccbfbf6.js => index-6a0f524c.js} (62%) diff --git a/langserve/playground/dist/assets/index-1ccbfbf6.js b/langserve/playground/dist/assets/index-6a0f524c.js similarity index 62% rename from langserve/playground/dist/assets/index-1ccbfbf6.js rename to langserve/playground/dist/assets/index-6a0f524c.js index f4816ab7..ab7d3b0b 100644 --- a/langserve/playground/dist/assets/index-1ccbfbf6.js +++ b/langserve/playground/dist/assets/index-6a0f524c.js @@ -1,4 +1,4 @@ -var J7=Object.defineProperty;var X7=(e,t,n)=>t in e?J7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zd=(e,t,n)=>(X7(e,typeof t!="symbol"?t+"":t,n),n);function Q7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ez(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _I={exports:{}},ly={},EI={exports:{}},an={};/** +var X7=Object.defineProperty;var Q7=(e,t,n)=>t in e?X7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zd=(e,t,n)=>(Q7(e,typeof t!="symbol"?t+"":t,n),n);function ez(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tz(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var EI={exports:{}},cy={},PI={exports:{}},an={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var J7=Object.defineProperty;var X7=(e,t,n)=>t in e?J7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zp=Symbol.for("react.element"),tz=Symbol.for("react.portal"),nz=Symbol.for("react.fragment"),rz=Symbol.for("react.strict_mode"),oz=Symbol.for("react.profiler"),az=Symbol.for("react.provider"),iz=Symbol.for("react.context"),sz=Symbol.for("react.forward_ref"),lz=Symbol.for("react.suspense"),cz=Symbol.for("react.memo"),uz=Symbol.for("react.lazy"),DT=Symbol.iterator;function dz(e){return e===null||typeof e!="object"?null:(e=DT&&e[DT]||e["@@iterator"],typeof e=="function"?e:null)}var PI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TI=Object.assign,kI={};function id(e,t,n){this.props=e,this.context=t,this.refs=kI,this.updater=n||PI}id.prototype.isReactComponent={};id.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RI(){}RI.prototype=id.prototype;function i$(e,t,n){this.props=e,this.context=t,this.refs=kI,this.updater=n||PI}var s$=i$.prototype=new RI;s$.constructor=i$;TI(s$,id.prototype);s$.isPureReactComponent=!0;var MT=Array.isArray,OI=Object.prototype.hasOwnProperty,l$={current:null},DI={key:!0,ref:!0,__self:!0,__source:!0};function MI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)OI.call(t,r)&&!DI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1t in e?J7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vz=$,gz=Symbol.for("react.element"),yz=Symbol.for("react.fragment"),bz=Object.prototype.hasOwnProperty,xz=vz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wz={key:!0,ref:!0,__self:!0,__source:!0};function II(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)bz.call(t,r)&&!wz.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:gz,type:e,key:a,ref:i,props:o,_owner:xz.current}}ly.Fragment=yz;ly.jsx=II;ly.jsxs=II;_I.exports=ly;var R=_I.exports,lw={},AI={exports:{}},Xo={},NI={exports:{}},jI={};/** + */var gz=$,yz=Symbol.for("react.element"),bz=Symbol.for("react.fragment"),xz=Object.prototype.hasOwnProperty,wz=gz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cz={key:!0,ref:!0,__self:!0,__source:!0};function AI(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)xz.call(t,r)&&!Cz.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yz,type:e,key:a,ref:i,props:o,_owner:wz.current}}cy.Fragment=bz;cy.jsx=AI;cy.jsxs=AI;EI.exports=cy;var R=EI.exports,cw={},NI={exports:{}},Xo={},jI={exports:{}},LI={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var J7=Object.defineProperty;var X7=(e,t,n)=>t in e?J7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(W,Z){var X=W.length;W.push(Z);e:for(;0>>1,K=W[j];if(0>>1;jo(N,X))Bo(J,N)?(W[j]=J,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(J,X))W[j]=J,W[B]=X,j=B;else break e}}return Z}function o(W,Z){var X=W.sortIndex-Z.sortIndex;return X!==0?X:W.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var Z=n(c);Z!==null;){if(Z.callback===null)r(c);else if(Z.startTime<=W)r(c),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var Z=n(c);Z!==null&&Q(C,Z.startTime-W)}}function _(W,Z){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(Z),f=n(l);f!==null&&(!(f.expirationTime>Z)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=Z);Z=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(Z)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-Z),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,O=-1;function F(){return!(e.unstable_now()-OW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var Z=p;return function(){var X=p;p=Z;try{return W.apply(this,arguments)}finally{p=X}}}})(jI);NI.exports=jI;var Cz=NI.exports;/** + */(function(e){function t(W,J){var X=W.length;W.push(J);e:for(;0>>1,K=W[j];if(0>>1;jo(N,X))Bo(Z,N)?(W[j]=Z,W[B]=X,j=B):(W[j]=N,W[D]=X,j=D);else if(Bo(Z,X))W[j]=Z,W[B]=X,j=B;else break e}}return J}function o(W,J){var X=W.sortIndex-J.sortIndex;return X!==0?X:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=W)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(W){if(v=!1,w(W),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-W)}}function _(W,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var K=j(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var S=!1,E=null,k=-1,I=5,O=-1;function F(){return!(e.unstable_now()-OW||125j?(W.sortIndex=X,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-j))):(W.sortIndex=K,t(l,W),b||m||(b=!0,Y(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var X=p;p=J;try{return W.apply(this,arguments)}finally{p=X}}}})(LI);jI.exports=LI;var $z=jI.exports;/** * @license React * react-dom.production.min.js * @@ -30,27 +30,27 @@ var J7=Object.defineProperty;var X7=(e,t,n)=>t in e?J7(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var LI=$,Ko=Cz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cw=Object.prototype.hasOwnProperty,$z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,AT={},NT={};function Sz(e){return cw.call(NT,e)?!0:cw.call(AT,e)?!1:$z.test(e)?NT[e]=!0:(AT[e]=!0,!1)}function _z(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ez(e,t,n,r){if(t===null||typeof t>"u"||_z(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lr[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var u$=/[\-:]([a-z])/g;function d$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u$,d$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function f$(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uw=Object.prototype.hasOwnProperty,Sz=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,NT={},jT={};function _z(e){return uw.call(jT,e)?!0:uw.call(NT,e)?!1:Sz.test(e)?jT[e]=!0:(NT[e]=!0,!1)}function Ez(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pz(e,t,n,r){if(t===null||typeof t>"u"||Ez(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lr[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var d$=/[\-:]([a-z])/g;function f$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(d$,f$);Lr[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(d$,f$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(d$,f$);Lr[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function p$(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{wb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ef(e):""}function Pz(e){switch(e.tag){case 5:return Ef(e.type);case 16:return Ef("Lazy");case 13:return Ef("Suspense");case 19:return Ef("SuspenseList");case 0:case 2:case 15:return e=Cb(e.type,!1),e;case 11:return e=Cb(e.type.render,!1),e;case 1:return e=Cb(e.type,!0),e;default:return""}}function pw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case uw:return"Profiler";case p$:return"StrictMode";case dw:return"Suspense";case fw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VI:return(e.displayName||"Context")+".Consumer";case zI:return(e._context.displayName||"Context")+".Provider";case h$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m$:return t=e.displayName||null,t!==null?t:pw(e.type)||"Memo";case Is:t=e._payload,e=e._init;try{return pw(e(t))}catch{}}return null}function Tz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pw(t);case 8:return t===p$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kz(e){var t=UI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function km(e){e._valueTracker||(e._valueTracker=kz(e))}function WI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function eg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function HI(e,t){t=t.checked,t!=null&&f$(e,"checked",t,!1)}function mw(e,t){HI(e,t);var n=tl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vw(e,t.type,n):t.hasOwnProperty("defaultValue")&&vw(e,t.type,tl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vw(e,t,n){(t!=="number"||eg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rz=["Webkit","ms","Moz","O"];Object.keys(jf).forEach(function(e){Rz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jf[t]=jf[e]})});function KI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jf.hasOwnProperty(e)&&jf[e]?(""+t).trim():t+"px"}function ZI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=KI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Oz=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bw(e,t){if(t){if(Oz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function xw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ww=null;function v$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cw=null,Eu=null,Pu=null;function BT(e){if(e=Qp(e)){if(typeof Cw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=py(t),Cw(e.stateNode,e.type,t))}}function JI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function XI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,BT(e),t)for(e=0;e>>=0,e===0?32:31-(Bz(e)/Uz|0)|0}var Om=64,Dm=4194304;function Tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function og(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Tf(s):(a&=i,a!==0&&(r=Tf(a)))}else i=n&~o,i!==0?r=Tf(i):a!==0&&(r=Tf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function qz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ff),JT=String.fromCharCode(32),XT=!1;function yA(e,t){switch(e){case"keyup":return wV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function $V(e,t){switch(e){case"compositionend":return bA(t);case"keypress":return t.which!==32?null:(XT=!0,JT);case"textInput":return e=t.data,e===JT&&XT?null:e;default:return null}}function SV(e,t){if(du)return e==="compositionend"||!S$&&yA(e,t)?(e=vA(),Pv=w$=Fs=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nk(n)}}function $A(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$A(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SA(){for(var e=window,t=eg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eg(e.document)}return t}function _$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MV(e){var t=SA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$A(n.ownerDocument.documentElement,n)){if(r!==null&&_$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=rk(n,a);var i=rk(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,Tw=null,Vf=null,kw=!1;function ok(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kw||fu==null||fu!==eg(r)||(r=fu,"selectionStart"in r&&_$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vf&&gp(Vf,r)||(Vf=r,r=sg(Tw,"onSelect"),0mu||(e.current=Aw[mu],Aw[mu]=null,mu--)}function Dn(e,t){mu++,Aw[mu]=e.current,e.current=t}var nl={},Yr=sl(nl),Co=sl(!1),Zl=nl;function zu(e,t){var n=e.type.contextTypes;if(!n)return nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function cg(){Ln(Co),Ln(Yr)}function dk(e,t,n){if(Yr.current!==nl)throw Error(at(168));Dn(Yr,t),Dn(Co,n)}function MA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,Tz(e)||"Unknown",o));return Kn({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nl,Zl=Yr.current,Dn(Yr,e),Dn(Co,Co.current),!0}function fk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=MA(e,t,Zl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(Yr),Dn(Yr,e)):Ln(Co),Dn(Co,n)}var Gi=null,hy=!1,Nb=!1;function IA(e){Gi===null?Gi=[e]:Gi.push(e)}function HV(e){hy=!0,IA(e)}function ll(){if(!Nb&&Gi!==null){Nb=!0;var e=0,t=Cn;try{var n=Gi;for(Cn=1;e>=i,o-=i,Ki=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var O=p(g,E,w[k],C);if(O===null){E===null&&(E=I);break}e&&E&&O.alternate===null&&t(g,E),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O,E=I}if(k===w.length)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,O.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(O.done)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;!O.done;k++,O=w.next())O=f(g,O.value,C),O!==null&&(y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return zn&&Ol(g,k),_}for(E=r(g,E);!O.done;k++,O=w.next())O=m(E,g,k,O.value,C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?k:O.key),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return e&&E.forEach(function(U){return t(g,U)}),zn&&Ol(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Tm:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Is&&bk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=nf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=Av(w.type,w.key,w.props,null,g.mode,C),C.ref=nf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Wb(w,g.mode,C),y.return=g,g=y}return i(g);case Is:return S=w._init,x(g,y,S(w._payload),C)}if(Pf(w))return b(g,y,w,C);if(Jd(w))return v(g,y,w,C);Fm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Ub(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Bu=BA(!0),UA=BA(!1),eh={},xi=sl(eh),wp=sl(eh),Cp=sl(eh);function Bl(e){if(e===eh)throw Error(at(174));return e}function I$(e,t){switch(Dn(Cp,t),Dn(wp,e),Dn(xi,eh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yw(t,e)}Ln(xi),Dn(xi,t)}function Uu(){Ln(xi),Ln(wp),Ln(Cp)}function WA(e){Bl(Cp.current);var t=Bl(xi.current),n=yw(t,e.type);t!==n&&(Dn(wp,e),Dn(xi,n))}function A$(e){wp.current===e&&(Ln(xi),Ln(wp))}var qn=sl(0);function vg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jb=[];function N$(){for(var e=0;en?n:4,e(!0);var r=Lb.transition;Lb.transition={};try{e(!1),t()}finally{Cn=n,Lb.transition=r}}function i4(){return wa().memoizedState}function KV(e,t,n){var r=Xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s4(e))l4(t,n);else if(n=LA(e,t,n,r),n!==null){var o=ao();Ha(n,e,r,o),c4(n,t,r)}}function ZV(e,t,n){var r=Xs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s4(e))l4(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ka(s,i)){var l=t.interleaved;l===null?(o.next=o,D$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=LA(e,t,o,r),n!==null&&(o=ao(),Ha(n,e,r,o),c4(n,t,r))}}function s4(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function l4(e,t){Bf=gg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,y$(e,n)}}var yg={readContext:xa,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},JV={readContext:xa,useCallback:function(e,t){return ci().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:wk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ov(4194308,4,t4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ov(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ov(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=KV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=ci();return e={current:e},t.memoizedState=e},useState:xk,useDebugValue:V$,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=xk(!1),t=e[0];return e=YV.bind(null,e[1]),ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=ci();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Rr===null)throw Error(at(349));Xl&30||qA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,wk(KA.bind(null,r,a,e),[e]),r.flags|=2048,_p(9,YA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ci(),t=Rr.identifierPrefix;if(zn){var n=Zi,r=Ki;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$p++,0")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Cb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pf(e):""}function Tz(e){switch(e.tag){case 5:return Pf(e.type);case 16:return Pf("Lazy");case 13:return Pf("Suspense");case 19:return Pf("SuspenseList");case 0:case 2:case 15:return e=$b(e.type,!1),e;case 11:return e=$b(e.type.render,!1),e;case 1:return e=$b(e.type,!0),e;default:return""}}function hw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uu:return"Fragment";case cu:return"Portal";case dw:return"Profiler";case h$:return"StrictMode";case fw:return"Suspense";case pw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BI:return(e.displayName||"Context")+".Consumer";case VI:return(e._context.displayName||"Context")+".Provider";case m$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case v$:return t=e.displayName||null,t!==null?t:hw(e.type)||"Memo";case Is:t=e._payload,e=e._init;try{return hw(e(t))}catch{}}return null}function kz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hw(t);case 8:return t===h$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rz(e){var t=WI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Om(e){e._valueTracker||(e._valueTracker=Rz(e))}function HI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ng(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mw(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GI(e,t){t=t.checked,t!=null&&p$(e,"checked",t,!1)}function vw(e,t){GI(e,t);var n=tl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gw(e,t.type,n):t.hasOwnProperty("defaultValue")&&gw(e,t.type,tl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gw(e,t,n){(t!=="number"||ng(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tf=Array.isArray;function _u(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Dm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oz=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){Oz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function JI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function ZI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=JI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Dz=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xw(e,t){if(t){if(Dz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function ww(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cw=null;function g$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,Eu=null,Pu=null;function UT(e){if(e=th(e)){if(typeof $w!="function")throw Error(at(280));var t=e.stateNode;t&&(t=hy(t),$w(e.stateNode,e.type,t))}}function XI(e){Eu?Pu?Pu.push(e):Pu=[e]:Eu=e}function QI(){if(Eu){var e=Eu,t=Pu;if(Pu=Eu=null,UT(e),t)for(e=0;e>>=0,e===0?32:31-(Uz(e)/Wz|0)|0}var Mm=64,Im=4194304;function kf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ig(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=kf(s):(a&=i,a!==0&&(r=kf(a)))}else i=n&~o,i!==0?r=kf(i):a!==0&&(r=kf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wa(t),e[t]=n}function Yz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zf),XT=String.fromCharCode(32),QT=!1;function bA(e,t){switch(e){case"keyup":return CV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var du=!1;function SV(e,t){switch(e){case"compositionend":return xA(t);case"keypress":return t.which!==32?null:(QT=!0,XT);case"textInput":return e=t.data,e===XT&&QT?null:e;default:return null}}function _V(e,t){if(du)return e==="compositionend"||!_$&&bA(e,t)?(e=gA(),kv=C$=Fs=null,du=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rk(n)}}function SA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _A(){for(var e=window,t=ng();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ng(e.document)}return t}function E$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function IV(e){var t=_A(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&SA(n.ownerDocument.documentElement,n)){if(r!==null&&E$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ok(n,a);var i=ok(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fu=null,kw=null,Bf=null,Rw=!1;function ak(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rw||fu==null||fu!==ng(r)||(r=fu,"selectionStart"in r&&E$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bf&&yp(Bf,r)||(Bf=r,r=cg(kw,"onSelect"),0mu||(e.current=Nw[mu],Nw[mu]=null,mu--)}function Dn(e,t){mu++,Nw[mu]=e.current,e.current=t}var nl={},Yr=sl(nl),Co=sl(!1),Jl=nl;function Vu(e,t){var n=e.type.contextTypes;if(!n)return nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $o(e){return e=e.childContextTypes,e!=null}function dg(){Ln(Co),Ln(Yr)}function fk(e,t,n){if(Yr.current!==nl)throw Error(at(168));Dn(Yr,t),Dn(Co,n)}function IA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,kz(e)||"Unknown",o));return Kn({},n,r)}function fg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nl,Jl=Yr.current,Dn(Yr,e),Dn(Co,Co.current),!0}function pk(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=IA(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,Ln(Co),Ln(Yr),Dn(Yr,e)):Ln(Co),Dn(Co,n)}var Gi=null,my=!1,jb=!1;function AA(e){Gi===null?Gi=[e]:Gi.push(e)}function GV(e){my=!0,AA(e)}function ll(){if(!jb&&Gi!==null){jb=!0;var e=0,t=Cn;try{var n=Gi;for(Cn=1;e>=i,o-=i,Ki=1<<32-Wa(t)+o|n<k?(I=E,E=null):I=E.sibling;var O=p(g,E,w[k],C);if(O===null){E===null&&(E=I);break}e&&E&&O.alternate===null&&t(g,E),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O,E=I}if(k===w.length)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,O.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),S===null?_=F:S.sibling=F,S=F,E=I}if(O.done)return n(g,E),zn&&Ol(g,k),_;if(E===null){for(;!O.done;k++,O=w.next())O=f(g,O.value,C),O!==null&&(y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return zn&&Ol(g,k),_}for(E=r(g,E);!O.done;k++,O=w.next())O=m(E,g,k,O.value,C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?k:O.key),y=a(O,y,k),S===null?_=O:S.sibling=O,S=O);return e&&E.forEach(function(U){return t(g,U)}),zn&&Ol(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===uu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Rm:e:{for(var _=w.key,S=y;S!==null;){if(S.key===_){if(_=w.type,_===uu){if(S.tag===7){n(g,S.sibling),y=o(S,w.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Is&&xk(_)===S.type){n(g,S.sibling),y=o(S,w.props),y.ref=rf(g,S,w),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===uu?(y=Gl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=jv(w.type,w.key,w.props,null,g.mode,C),C.ref=rf(g,y,w),C.return=g,g=C)}return i(g);case cu:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Hb(w,g.mode,C),y.return=g,g=y}return i(g);case Is:return S=w._init,x(g,y,S(w._payload),C)}if(Tf(w))return b(g,y,w,C);if(Xd(w))return v(g,y,w,C);Vm(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Wb(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Uu=UA(!0),WA=UA(!1),nh={},xi=sl(nh),Cp=sl(nh),$p=sl(nh);function Bl(e){if(e===nh)throw Error(at(174));return e}function A$(e,t){switch(Dn($p,t),Dn(Cp,e),Dn(xi,nh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bw(t,e)}Ln(xi),Dn(xi,t)}function Wu(){Ln(xi),Ln(Cp),Ln($p)}function HA(e){Bl($p.current);var t=Bl(xi.current),n=bw(t,e.type);t!==n&&(Dn(Cp,e),Dn(xi,n))}function N$(e){Cp.current===e&&(Ln(xi),Ln(Cp))}var qn=sl(0);function yg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lb=[];function j$(){for(var e=0;en?n:4,e(!0);var r=Fb.transition;Fb.transition={};try{e(!1),t()}finally{Cn=n,Fb.transition=r}}function s4(){return wa().memoizedState}function JV(e,t,n){var r=Xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},l4(e))c4(t,n);else if(n=FA(e,t,n,r),n!==null){var o=ao();Ha(n,e,r,o),u4(n,t,r)}}function ZV(e,t,n){var r=Xs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(l4(e))c4(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ka(s,i)){var l=t.interleaved;l===null?(o.next=o,M$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=FA(e,t,o,r),n!==null&&(o=ao(),Ha(n,e,r,o),u4(n,t,r))}}function l4(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function c4(e,t){Uf=bg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function u4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b$(e,n)}}var xg={readContext:xa,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},XV={readContext:xa,useCallback:function(e,t){return ci().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:Ck,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mv(4194308,4,n4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mv(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=JV.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=ci();return e={current:e},t.memoizedState=e},useState:wk,useDebugValue:B$,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=wk(!1),t=e[0];return e=KV.bind(null,e[1]),ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=ci();if(zn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Rr===null)throw Error(at(349));Xl&30||YA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ck(JA.bind(null,r,a,e),[e]),r.flags|=2048,Ep(9,KA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ci(),t=Rr.identifierPrefix;if(zn){var n=Ji,r=Ki;n=(r&~(1<<32-Wa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[pi]=t,e[xp]=r,y4(e,t,!1,!1),t.stateNode=e;e:{switch(i=xw(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304)}else{if(!r)if(e=vg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Br(t),null}else 2*sr()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,r=!0,rf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return q$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function aB(e,t){switch(P$(t),t.tag){case 1:return $o(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uu(),Ln(Co),Ln(Yr),N$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return A$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Uu(),null;case 10:return O$(t.type._context),null;case 22:case 23:return q$(),null;case 24:return null;default:return null}}var Vm=!1,Gr=!1,iB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function qw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Rk=!1;function sB(e,t){if(Rw=ag,e=SA(),_$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ow={focusedElem:e,selectionRange:n},ag=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Rk,Rk=!1,b}function Uf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&qw(t,n,a)}o=o.next}while(o!==r)}}function gy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function w4(e){var t=e.alternate;t!==null&&(e.alternate=null,w4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[xp],delete t[Iw],delete t[UV],delete t[WV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C4(e){return e.tag===5||e.tag===3||e.tag===4}function Ok(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lg));else if(r!==4&&(e=e.child,e!==null))for(Kw(e,t,n),e=e.sibling;e!==null;)Kw(e,t,n),e=e.sibling}function Zw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zw(e,t,n),e=e.sibling;e!==null;)Zw(e,t,n),e=e.sibling}var Ir=null,Na=!1;function Es(e,t,n){for(n=n.child;n!==null;)$4(e,t,n),n=n.sibling}function $4(e,t,n){if(bi&&typeof bi.onCommitFiberUnmount=="function")try{bi.onCommitFiberUnmount(cy,n)}catch{}switch(n.tag){case 5:Gr||bu(n,t);case 6:var r=Ir,o=Na;Ir=null,Es(e,t,n),Ir=r,Na=o,Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ir.removeChild(n.stateNode));break;case 18:Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?Ab(e.parentNode,n):e.nodeType===1&&Ab(e,n),mp(e)):Ab(Ir,n.stateNode));break;case 4:r=Ir,o=Na,Ir=n.stateNode.containerInfo,Na=!0,Es(e,t,n),Ir=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Gr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&qw(n,t,i),o=o.next}while(o!==r)}Es(e,t,n);break;case 1:if(!Gr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}Es(e,t,n);break;case 21:Es(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,Es(e,t,n),Gr=r):Es(e,t,n);break;default:Es(e,t,n)}}function Dk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iB),t.forEach(function(r){var o=vB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cB(r/1960))-r,10e?16:e,zs===null)var r=!1;else{if(e=zs,zs=null,wg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-H$?Hl(e,0):W$|=n),So(e,t)}function O4(e,t){t===0&&(e.mode&1?(t=Dm,Dm<<=1,!(Dm&130023424)&&(Dm=4194304)):t=1);var n=ao();e=os(e,t),e!==null&&(Jp(e,t,n),So(e,n))}function mB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),O4(e,n)}function vB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),O4(e,n)}var D4;D4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,rB(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&AA(t,fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dv(e,t),e=t.pendingProps;var o=zu(t,Yr.current);ku(t,n),o=L$(null,t,r,e,o,n);var a=F$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,ug(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,M$(t),o.updater=my,t.stateNode=o,o._reactInternals=t,zw(t,r,e,n),t=Uw(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&E$(t),ro(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=yB(r),e=Aa(r,e),o){case 0:t=Bw(null,t,r,e,n);break e;case 1:t=Pk(null,t,r,e,n);break e;case 11:t=_k(null,t,r,e,n);break e;case 14:t=Ek(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Bw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Pk(e,t,r,o,n);case 3:e:{if(m4(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,FA(e,t),mg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Wu(Error(at(423)),t),t=Tk(e,t,r,n,o);break e}else if(r!==o){o=Wu(Error(at(424)),t),t=Tk(e,t,r,n,o);break e}else for(Wo=Ks(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=UA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vu(),r===o){t=as(e,t,n);break e}ro(e,t,r,n)}t=t.child}return t;case 5:return WA(t),e===null&&jw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Dw(r,o)?i=null:a!==null&&Dw(r,a)&&(t.flags|=32),h4(e,t),ro(e,t,i,n),t.child;case 6:return e===null&&jw(t),null;case 13:return v4(e,t,n);case 4:return I$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bu(t,null,r,n):ro(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),_k(e,t,r,o,n);case 7:return ro(e,t,t.pendingProps,n),t.child;case 8:return ro(e,t,t.pendingProps.children,n),t.child;case 12:return ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(pg,r._currentValue),r._currentValue=i,a!==null)if(Ka(a.value,i)){if(a.children===o.children&&!Co.current){t=as(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Lw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Lw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}ro(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,ro(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Ek(e,t,r,o,n);case 15:return f4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Dv(e,t),t.tag=1,$o(r)?(e=!0,ug(t)):e=!1,ku(t,n),VA(t,r,o),zw(t,r,o,n),Uw(null,t,r,!0,e,n);case 19:return g4(e,t,n);case 22:return p4(e,t,n)}throw Error(at(156,t.tag))};function M4(e,t){return aA(e,t)}function gB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new gB(e,t,n,r)}function K$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yB(e){if(typeof e=="function")return K$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h$)return 11;if(e===m$)return 14}return 2}function Qs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Av(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")K$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case p$:i=8,o|=8;break;case uw:return e=va(12,n,t,o|2),e.elementType=uw,e.lanes=a,e;case dw:return e=va(13,n,t,o),e.elementType=dw,e.lanes=a,e;case fw:return e=va(19,n,t,o),e.elementType=fw,e.lanes=a,e;case BI:return by(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zI:i=10;break e;case VI:i=9;break e;case h$:i=11;break e;case m$:i=14;break e;case Is:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function by(e,t,n,r){return e=va(22,e,r,t),e.elementType=BI,e.lanes=n,e.stateNode={isHidden:!1},e}function Ub(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Wb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sb(0),this.expirationTimes=Sb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sb(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Z$(e,t,n,r,o,a,i,s,l){return e=new bB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},M$(a),e}function xB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j4)}catch(e){console.error(e)}}j4(),AI.exports=Xo;var cd=AI.exports;const Rf=Vt(cd);var zk=cd;lw.createRoot=zk.createRoot,lw.hydrateRoot=zk.hydrateRoot;const _B=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var eS={exports:{}};eS.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(eS);var tS=eS.exports;function nS(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(tS.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function th(e){const{basePath:t}=nS(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const EB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[pi]=t,e[wp]=r,b4(e,t,!1,!1),t.stateNode=e;e:{switch(i=ww(n,r),n){case"dialog":An("cancel",e),An("close",e),o=r;break;case"iframe":case"object":case"embed":An("load",e),o=r;break;case"video":case"audio":for(o=0;oGu&&(t.flags|=128,r=!0,of(a,!1),t.lanes=4194304)}else{if(!r)if(e=yg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),of(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return Br(t),null}else 2*sr()-a.renderingStartTime>Gu&&n!==1073741824&&(t.flags|=128,r=!0,of(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=qn.current,Dn(qn,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return Y$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fo&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function iB(e,t){switch(T$(t),t.tag){case 1:return $o(t.type)&&dg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Ln(Co),Ln(Yr),j$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return N$(t),null;case 13:if(Ln(qn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Bu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ln(qn),null;case 4:return Wu(),null;case 10:return D$(t.type._context),null;case 22:case 23:return Y$(),null;case 24:return null;default:return null}}var Um=!1,Gr=!1,sB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function bu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function Yw(e,t,n){try{n()}catch(r){tr(e,t,r)}}var Ok=!1;function lB(e,t){if(Ow=sg,e=_A(),E$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dw={focusedElem:e,selectionRange:n},sg=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Aa(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){tr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=Ok,Ok=!1,b}function Wf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Yw(t,n,a)}o=o.next}while(o!==r)}}function yy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function C4(e){var t=e.alternate;t!==null&&(e.alternate=null,C4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[wp],delete t[Aw],delete t[WV],delete t[HV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $4(e){return e.tag===5||e.tag===3||e.tag===4}function Dk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ug));else if(r!==4&&(e=e.child,e!==null))for(Jw(e,t,n),e=e.sibling;e!==null;)Jw(e,t,n),e=e.sibling}function Zw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zw(e,t,n),e=e.sibling;e!==null;)Zw(e,t,n),e=e.sibling}var Ir=null,Na=!1;function Es(e,t,n){for(n=n.child;n!==null;)S4(e,t,n),n=n.sibling}function S4(e,t,n){if(bi&&typeof bi.onCommitFiberUnmount=="function")try{bi.onCommitFiberUnmount(uy,n)}catch{}switch(n.tag){case 5:Gr||bu(n,t);case 6:var r=Ir,o=Na;Ir=null,Es(e,t,n),Ir=r,Na=o,Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ir.removeChild(n.stateNode));break;case 18:Ir!==null&&(Na?(e=Ir,n=n.stateNode,e.nodeType===8?Nb(e.parentNode,n):e.nodeType===1&&Nb(e,n),vp(e)):Nb(Ir,n.stateNode));break;case 4:r=Ir,o=Na,Ir=n.stateNode.containerInfo,Na=!0,Es(e,t,n),Ir=r,Na=o;break;case 0:case 11:case 14:case 15:if(!Gr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Yw(n,t,i),o=o.next}while(o!==r)}Es(e,t,n);break;case 1:if(!Gr&&(bu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}Es(e,t,n);break;case 21:Es(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,Es(e,t,n),Gr=r):Es(e,t,n);break;default:Es(e,t,n)}}function Mk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sB),t.forEach(function(r){var o=gB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uB(r/1960))-r,10e?16:e,zs===null)var r=!1;else{if(e=zs,zs=null,$g=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-G$?Hl(e,0):H$|=n),So(e,t)}function D4(e,t){t===0&&(e.mode&1?(t=Im,Im<<=1,!(Im&130023424)&&(Im=4194304)):t=1);var n=ao();e=os(e,t),e!==null&&(Qp(e,t,n),So(e,n))}function vB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),D4(e,n)}function gB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),D4(e,n)}var M4;M4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Co.current)wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wo=!1,oB(e,t,n);wo=!!(e.flags&131072)}else wo=!1,zn&&t.flags&1048576&&NA(t,hg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Iv(e,t),e=t.pendingProps;var o=Vu(t,Yr.current);ku(t,n),o=F$(null,t,r,e,o,n);var a=z$();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$o(r)?(a=!0,fg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,I$(t),o.updater=vy,t.stateNode=o,o._reactInternals=t,Vw(t,r,e,n),t=Ww(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&P$(t),ro(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Iv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=bB(r),e=Aa(r,e),o){case 0:t=Uw(null,t,r,e,n);break e;case 1:t=Tk(null,t,r,e,n);break e;case 11:t=Ek(null,t,r,e,n);break e;case 14:t=Pk(null,t,r,Aa(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Uw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Tk(e,t,r,o,n);case 3:e:{if(v4(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,zA(e,t),gg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Hu(Error(at(423)),t),t=kk(e,t,r,n,o);break e}else if(r!==o){o=Hu(Error(at(424)),t),t=kk(e,t,r,n,o);break e}else for(Wo=Ks(t.stateNode.containerInfo.firstChild),qo=t,zn=!0,ja=null,n=WA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bu(),r===o){t=as(e,t,n);break e}ro(e,t,r,n)}t=t.child}return t;case 5:return HA(t),e===null&&Lw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Mw(r,o)?i=null:a!==null&&Mw(r,a)&&(t.flags|=32),m4(e,t),ro(e,t,i,n),t.child;case 6:return e===null&&Lw(t),null;case 13:return g4(e,t,n);case 4:return A$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Uu(t,null,r,n):ro(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Ek(e,t,r,o,n);case 7:return ro(e,t,t.pendingProps,n),t.child;case 8:return ro(e,t,t.pendingProps.children,n),t.child;case 12:return ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Dn(mg,r._currentValue),r._currentValue=i,a!==null)if(Ka(a.value,i)){if(a.children===o.children&&!Co.current){t=as(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Fw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Fw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}ro(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ku(t,n),o=xa(o),r=r(o),t.flags|=1,ro(e,t,r,n),t.child;case 14:return r=t.type,o=Aa(r,t.pendingProps),o=Aa(r.type,o),Pk(e,t,r,o,n);case 15:return p4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Aa(r,o),Iv(e,t),t.tag=1,$o(r)?(e=!0,fg(t)):e=!1,ku(t,n),BA(t,r,o),Vw(t,r,o,n),Ww(null,t,r,!0,e,n);case 19:return y4(e,t,n);case 22:return h4(e,t,n)}throw Error(at(156,t.tag))};function I4(e,t){return iA(e,t)}function yB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new yB(e,t,n,r)}function J$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bB(e){if(typeof e=="function")return J$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===m$)return 11;if(e===v$)return 14}return 2}function Qs(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")J$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case uu:return Gl(n.children,o,a,t);case h$:i=8,o|=8;break;case dw:return e=va(12,n,t,o|2),e.elementType=dw,e.lanes=a,e;case fw:return e=va(13,n,t,o),e.elementType=fw,e.lanes=a,e;case pw:return e=va(19,n,t,o),e.elementType=pw,e.lanes=a,e;case UI:return xy(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VI:i=10;break e;case BI:i=9;break e;case m$:i=11;break e;case v$:i=14;break e;case Is:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=va(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Gl(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function xy(e,t,n,r){return e=va(22,e,r,t),e.elementType=UI,e.lanes=n,e.stateNode={isHidden:!1},e}function Wb(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function Hb(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_b(0),this.expirationTimes=_b(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_b(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Z$(e,t,n,r,o,a,i,s,l){return e=new xB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},I$(a),e}function wB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L4)}catch(e){console.error(e)}}L4(),NI.exports=Xo;var ud=NI.exports;const Of=Vt(ud);var Vk=ud;cw.createRoot=Vk.createRoot,cw.hydrateRoot=Vk.hydrateRoot;const EB=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var tS={exports:{}};tS.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if(S=S<<1,E==c-1){_.push(u(S));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,S,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),S=1;S!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*S,S<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(tS);var nS=tS.exports;function rS(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(nS.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function rh(e){const{basePath:t}=rS(window.location.href);let n=new URL(t).pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),new URL(n+e,t)}const PB=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(O){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=O,F.state=2,F.chain.length>0&&v(g,F))}function _(O,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:O(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,J){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(J||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+Z(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,J){J(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function O(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,J;return o.isArray(N.filter)||o.isString(N.filter)?(J=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return J.indexOf(re.type)>-1||J.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,J,re){var ce=!0;function xe(me,ue){J.push(ue),D(N,me,J,re),J.pop()}o.isFunction(re)&&(ce=re(N,B,J)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,J=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],J.push(B))})),J}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var J,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),J=Y(N),o.isUndefined(K.refPostProcessor)||(J=K.refPostProcessor(J,B)),K.filter(J,B)&&(re=Z(B),q[re]=J),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=O(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function Z(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,J,re){var ce,xe,me=Promise.resolve(),ue=Z(J.subDocPath),se=k(J.location),Ce=i.dirname(J.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,J),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(J.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):J.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(J)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],J=[],re=new a.Graph,ce=k(K.location),xe=ce+Z(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){J.indexOf(se)===-1&&J.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);J.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+Z(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:Z(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var J=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(J.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return Z(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(J){return{refs:J.refs,resolved:J.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** +*/l=function(){var u,f,p,m=Object.prototype.toString,b=o!==void 0?function(O){return o(O)}:setTimeout;try{Object.defineProperty({},"x",{}),u=function(O,F,U,G){return Object.defineProperty(O,F,{value:U,writable:!0,configurable:G!==!1})}}catch{u=function(F,U,G){return F[U]=G,F}}function v(O,F){p.add(O,F),f||(f=b(p.drain))}function x(O){var F,U=c(O);return O==null||U!="object"&&U!="function"||(F=O.then),typeof F=="function"&&F}function g(){for(var O=0;O0&&v(g,U))}catch(G){C.call(new S(U),G)}}}function C(O){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=O,F.state=2,F.chain.length>0&&v(g,F))}function _(O,F,U,G){for(var z=0;z-1?D=N:(q=o.isUndefined(j)?void 0:O(j),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(B,Z){var re={};function ce(xe){o.forOwn(xe,function(me,ue){re[ue]=me})}return ce(l.parse(B||"")),ce(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(j){return m.indexOf(_(j))>-1}function y(j){return o.isUndefined(j.error)&&j.type!=="invalid"}function w(j,K){var q=j;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(j){return Object.keys(j).filter(function(K){return K!=="$ref"})}function _(j){var K;switch(j.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=j.uriDetails.reference}return K}function S(j,K){var q=p[j],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(B,Z){Z(void 0,JSON.parse(B.text))}),D=(D=s.load(decodeURI(j),N)).then(function(B){return p[j]={value:B},B}).catch(function(B){throw p[j]={error:B},B})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(B){return o.cloneDeep(B)})}function E(j,K){var q=!0;try{if(!o.isPlainObject(j))throw new Error("obj is not an Object");if(!o.isString(j.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(j){return j.indexOf("://")!==-1||i.isAbsolute(j)?j:i.resolve(r.cwd(),j)}function I(j,K){j.error=K.message,j.missing=!0}function O(j){return u.parse(j)}function F(j,K,q){w(j,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(j,K){var q,D;if(j=o.isUndefined(j)?{}:o.cloneDeep(j),!o.isObject(j))throw new TypeError("options must be an Object");if(!o.isUndefined(j.resolveCirculars)&&!o.isBoolean(j.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(j.filter)||o.isArray(j.filter)||o.isFunction(j.filter)||o.isString(j.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(j.includeInvalid)&&!o.isBoolean(j.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(j.location)&&!o.isString(j.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(j.refPreProcessor)&&!o.isFunction(j.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(j.refPostProcessor)&&!o.isFunction(j.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(j.subDocPath)&&!o.isArray(j.subDocPath)&&!Q(j.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(j.resolveCirculars)&&(j.resolveCirculars=!1),j.filter=function(N){var B,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,B=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?B=N.filter:o.isUndefined(N.filter)&&(B=function(){return!0}),function(re,ce){return(re.type!=="invalid"||N.includeInvalid===!0)&&B(re,ce)}}(j),o.isUndefined(j.location)&&(j.location=k("./root.json")),(q=j.location.split("#")).length>1&&(j.subDocPath="#"+q[1]),D=decodeURI(j.location)===j.location,j.location=x(j.location,void 0),D&&(j.location=decodeURI(j.location)),j.subDocPath=function(N){var B;return o.isArray(N.subDocPath)?B=N.subDocPath:o.isString(N.subDocPath)?B=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(B=[]),B}(j),!o.isUndefined(K))try{w(K,j.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return j}function G(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(j){if(!o.isArray(j))throw new TypeError("path must be an array");return j.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function V(j,K){var q={};if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");return function D(N,B,Z,re){var ce=!0;function xe(me,ue){Z.push(ue),D(N,me,Z,re),Z.pop()}o.isFunction(re)&&(ce=re(N,B,Z)),N.indexOf(B)===-1&&(N.push(B),ce!==!1&&(o.isArray(B)?B.forEach(function(me,ue){xe(me,ue.toString())}):o.isObject(B)&&o.forOwn(B,function(me,ue){xe(me,ue)})),N.pop())}(function(D,N){var B,Z=[];return N.length>0&&(B=D,N.slice(0,N.length-1).forEach(function(re){re in B&&(B=B[re],Z.push(B))})),Z}(j,(K=U(K,j)).subDocPath),w(j,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,B){var Z,re,ce=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),B)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,B)),K.filter(Z,B)&&(re=J(B),q[re]=Z),C(N).length>0&&(ce=!1)),ce}),q}function Y(j){var K,q,D,N={def:j};try{if(E(j,!0),K=j.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=O(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(B){N.error=B.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(j)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(B){N.error=B.message,N.type="invalid"}return N}function Q(j,K){var q,D=!0;try{if(!o.isString(j))throw new Error("ptr is not a String");if(j!==""){if(q=j.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&j!=="#"&&j.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(j.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function W(j){try{Q(j,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=j.split("/");return K.shift(),G(K)}function J(j,K){if(!o.isArray(j))throw new Error("path must be an Array");return(K!==!1?"#":"")+(j.length>0?"/":"")+z(j).join("/")}function X(j,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(j)&&!o.isObject(j))throw new TypeError("obj must be an Array or an Object");K=U(K,j),j=o.cloneDeep(j)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(B,Z,re){var ce,xe,me=Promise.resolve(),ue=J(Z.subDocPath),se=k(Z.location),Ce=i.dirname(Z.location),fe=se+ue;return o.isUndefined(re.docs[se])&&(re.docs[se]=B),o.isUndefined(re.deps[fe])&&(re.deps[fe]={},ce=V(B,Z),o.forOwn(ce,function(Ve,Ue){var De,Be,ge=k(Z.location)+Ue,we=Ve.refdId=decodeURI(k(g(Ve)?x(Ce,Ve.uri):Z.location)+"#"+(Ve.uri.indexOf("#")>-1?Ve.uri.split("#")[1]:""));re.refs[ge]=Ve,y(Ve)&&(Ve.fqURI=we,re.deps[fe][Ue===ue?"#":Ue.replace(ue+"/","#/")]=we,ge.indexOf(we+"/")!==0&&ge!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Ve.uriDetails.fragment)?[]:W(decodeURI(Ve.uriDetails.fragment)),g(Ve)?(delete xe.filter,xe.location=we.split("#")[0],me=me.then((De=re,Be=xe,function(){var $e=k(Be.location),He=De.docs[$e];return o.isUndefined(He)?S($e,Be).catch(function(Ye){return De.docs[$e]=Ye,Ye}):Promise.resolve().then(function(){return He})}))):me=me.then(function(){return B}),me=me.then(function($e,He,Ye){return function(Me){if(o.isError(Me))I(Ye,Me);else try{return N(Me,He,$e).catch(function(je){I(Ye,je)})}catch(je){I(Ye,je)}}}(re,xe,Ve))):Ve.circular=!0)})),me}(j,K,D).then(function(){return D})}).then(function(D){var N={},B=[],Z=[],re=new a.Graph,ce=k(K.location),xe=ce+J(K.subDocPath),me=i.dirname(ce);return Object.keys(D.deps).forEach(function(ue){re.setNode(ue)}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce){re.setEdge(se,Ce)})}),(B=a.alg.findCycles(re)).forEach(function(ue){ue.forEach(function(se){Z.indexOf(se)===-1&&Z.push(se)})}),o.forOwn(D.deps,function(ue,se){o.forOwn(ue,function(Ce,fe){var Ve,Ue=!1,De=se+fe.slice(1),Be=D.refs[se+fe.slice(1)],ge=g(Be);Z.indexOf(Ce)>-1&&B.forEach(function(we){Ue||(Ve=we.indexOf(Ce))>-1&&we.forEach(function($e){Ue||De.indexOf($e+"/")===0&&(ge&&Ve!==we.length-1&&Ce[Ce.length-1]==="#"||(Ue=!0))})}),Ue&&(Be.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ue){var se=D.deps[ue],Ce=ue.split("#"),fe=D.docs[Ce[0]],Ve=W(Ce[1]);o.forOwn(se,function(Ue,De){var Be=Ue.split("#"),ge=D.docs[Be[0]],we=Ve.concat(W(De)),$e=D.refs[Ce[0]+J(we)];if(o.isUndefined($e.error)&&o.isUndefined($e.missing))if(!K.resolveCirculars&&$e.circular)$e.value=o.cloneDeep($e.def);else{try{$e.value=w(ge,W(Be[1]))}catch(He){return void I($e,He)}Ce[1]===""&&De==="#"?D.docs[Ce[0]]=$e.value:F(fe,we,$e.value)}})}),Object.keys(D.refs).forEach(function(ue){var se,Ce,fe=D.refs[ue];fe.type!=="invalid"&&(fe.fqURI[fe.fqURI.length-1]==="#"&&fe.uri[fe.uri.length-1]!=="#"&&(fe.fqURI=fe.fqURI.substr(0,fe.fqURI.length-1)),se=fe.fqURI.split("/"),Ce=fe.uri.split("/"),o.times(Ce.length-1,function(Ve){var Ue=Ce[Ce.length-Ve-1],De=Ce[Ce.length-Ve],Be=se.length-Ve-1;Ue!=="."&&Ue!==".."&&De!==".."&&(se[Be]=Ue)}),fe.fqURI=se.join("/"),fe.fqURI.indexOf(ce)===0?fe.fqURI=fe.fqURI.replace(ce,""):fe.fqURI.indexOf(me)===0&&(fe.fqURI=fe.fqURI.replace(me,"")),fe.fqURI[0]==="/"&&(fe.fqURI="."+fe.fqURI)),ue.indexOf(xe)===0&&function Ve(Ue,De,Be){var ge,we=De.split("#"),$e=D.refs[De];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(Be))]=$e,!$e.circular&&y($e)?(ge=D.deps[$e.refdId],$e.refdId.indexOf(Ue)!==0&&Object.keys(ge).forEach(function(He){Ve($e.refdId,$e.refdId+He.substr(1),Be.concat(W(He)))})):!$e.circular&&$e.error&&($e.error=$e.error.replace("options.subDocPath","JSON Pointer"),$e.error.indexOf("#")>-1&&($e.error=$e.error.replace($e.uri.substr($e.uri.indexOf("#")),$e.uri)),$e.error.indexOf("ENOENT:")!==0&&$e.error.indexOf("Not Found")!==0||($e.error="JSON Pointer points to missing location: "+$e.uri))}(xe,ue,W(ue.substr(xe.length)))}),o.forOwn(N,function(ue,se){delete ue.refdId,ue.circular&&ue.type==="local"&&(ue.value.$ref=ue.fqURI,F(D.docs[ce],W(se),ue.value)),ue.missing&&(ue.error=ue.error.split(": ")[0]+": "+ue.def.$ref)}),{refs:N,resolved:D.docs[ce]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(j){return G(j)},e.exports.encodePath=function(j){return z(j)},e.exports.findRefs=function(j,K){return V(j,K)},e.exports.findRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=V(B,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:V(B,re),value:B}})}(j,K)},e.exports.getRefDetails=function(j){return Y(j)},e.exports.isPtr=function(j,K){return Q(j,K)},e.exports.isRef=function(j,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(j,K)},e.exports.pathFromPtr=function(j){return W(j)},e.exports.pathToPtr=function(j,K){return J(j,K)},e.exports.resolveRefs=function(j,K){return X(j,K)},e.exports.resolveRefsAt=function(j,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),S((D=U(D)).location,D)}).then(function(B){return X(B,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:B}})})}(j,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",Z=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[O]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[O]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Mi=Un&&Un.isDate,ti=Un&&Un.isMap,Jr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ni=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function BE(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function W8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var H8=y1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),G8=y1({"&":"&","<":"<",">":">",'"':""","'":"'"});function q8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function C1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function UE(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function vs(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),gs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:gs.defaults(ut.Object(),Ke,gs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ri=Ke.Math,Mn=Ke.Object,$1=Ke.RegExp,Z8=Ke.String,aa=Ke.TypeError,Fh=ht.prototype,J8=mr.prototype,Oc=Mn.prototype,zh=Ke["__core-js_shared__"],Vh=J8.toString,wn=Oc.hasOwnProperty,X8=0,WE=(qe=/[^.]+$/.exec(zh&&zh.keys&&zh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Bh=Oc.toString,Q8=Vh.call(Mn),eF=ut._,tF=$1("^"+Vh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uh=Pn?Ke.Buffer:void 0,ys=Ke.Symbol,Wh=Ke.Uint8Array,HE=Uh?Uh.allocUnsafe:void 0,Hh=UE(Mn.getPrototypeOf,Mn),GE=Mn.create,qE=Oc.propertyIsEnumerable,Gh=Fh.splice,YE=ys?ys.isConcatSpreadable:void 0,Ad=ys?ys.iterator:void 0,bl=ys?ys.toStringTag:void 0,qh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),nF=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,rF=Ft&&Ft.now!==ut.Date.now&&Ft.now,oF=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Yh=ri.ceil,Kh=ri.floor,S1=Mn.getOwnPropertySymbols,aF=Uh?Uh.isBuffer:void 0,KE=Ke.isFinite,iF=Fh.join,sF=UE(Mn.keys,Mn),vr=ri.max,Fr=ri.min,lF=Ft.now,cF=Ke.parseInt,ZE=ri.random,uF=Fh.reverse,_1=$l(Ke,"DataView"),Nd=$l(Ke,"Map"),E1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),jd=$l(Ke,"WeakMap"),Ld=$l(Mn,"create"),Zh=jd&&new jd,Mc={},dF=Sl(_1),fF=Sl(Nd),pF=Sl(E1),hF=Sl(Dc),mF=Sl(jd),Jh=ys?ys.prototype:void 0,Fd=Jh?Jh.valueOf:void 0,JE=Jh?Jh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return XP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(GE)return GE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Xh(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Oe=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&wn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!be)return po(d,de)}else{var ot=zr(d),Ct=ot==v||ot==x;if($s(d))return SP(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Oe||Ct?{}:UP(d),!be)return Oe?function(Je,st){return ai(Je,VP(Je),st)}(d,function(Je,st){return Je&&ai(st,mo(st),Je)}(de,d)):function(Je,st){return ai(Je,J1(Je),st)}(d,eP(de,d))}else{if(!ve[ot])return H?d:{};de=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return W1(Je);case p:case m:return new wt(+Je);case O:return function(jt,Xt){var Pt=Xt?W1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return _P(Je,It);case g:return new wt;case y:case S:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Fd?Mn(Fd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),vT(d)?d.forEach(function(Je){de.add(sa(Je,h,P,Je,d,ae))}):hT(d)&&d.forEach(function(Je,st){de.set(st,sa(Je,h,P,st,d,ae))});var Ot=We?void 0:(Ge?Oe?Y1:q1:Oe?mo:Pr)(d);return Xr(Ot||d,function(Je,st){Ot&&(Je=d[st=Je]),zd(de,st,sa(Je,h,P,st,d,ae))}),de}function tP(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function nP(d,h,P){if(typeof d!="function")throw new aa(s);return qd(function(){d.apply(void 0,P)},h)}function Vd(d,h,P,A){var H=-1,ae=Ii,de=!0,be=d.length,Oe=[],Ge=h.length;if(!be)return Oe;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Id,de=!1,h=new wl(h));e:for(;++H-1},Ai.prototype.set=function(d,h){var P=this.__data__,A=Qh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ni.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(Nd||Ai),string:new xl}},Ni.prototype.delete=function(d){var h=dm(this,d).delete(d);return this.size-=h?1:0,h},Ni.prototype.get=function(d){return dm(this,d).get(d)},Ni.prototype.has=function(d){return dm(this,d).has(d)},Ni.prototype.set=function(d,h){var P=dm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Ai,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ai){var A=P.__data__;if(!Nd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ni(A)}return P.set(d,h),this.size=P.size,this};var bs=kP(oi),rP=kP(R1,!0);function bF(d,h){var P=!0;return bs(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function em(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Dr(be,h-1,P,A,H):fo(H,be):A||(H[H.length]=be)}return H}var k1=RP(),aP=RP(!0);function oi(d,h){return d&&k1(d,h,Pr)}function R1(d,h){return d&&aP(d,h,Pr)}function tm(d,h){return Ao(h,function(P){return Vi(d[P])})}function Ac(d,h){for(var P=0,A=(h=ws(h,d)).length;d!=null&&Ph}function xF(d,h){return d!=null&&wn.call(d,h)}function wF(d,h){return d!=null&&h in Mn(d)}function D1(d,h,P){for(var A=P?Pc:Ii,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Oe=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Oe=Fr(We.length,Oe),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Ot;var Je=Oe[Ge];return Ot*(Je=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function mP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Gh.call(be,Oe,1),Gh.call(d,Oe,1);return d}function vP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;zi(H)?Gh.call(d,H,1):z1(d,H)}}return d}function j1(d,h){return d+Kh(ZE()*(h-d+1))}function L1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Kh(h/2))&&(d+=d);while(h);return P}function Jt(d,h){return tb(GP(d,h,vo),d+"")}function $F(d){return QE(zc(d))}function SF(d,h){var P=zc(d);return fm(P,Cl(h,0,P.length))}function Wd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=ws(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:kF(d);if(Ge)return Lh(Ge);de=!1,H=Id,Oe=new wl}else Oe=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var $P=nF||function(d){return ut.clearTimeout(d)};function SP(d,h){if(h)return d.slice();var P=d.length,A=HE?HE(P):new d.constructor(P);return d.copy(A),A}function W1(d){var h=new d.constructor(d.byteLength);return new Wh(h).set(new Wh(d)),h}function _P(d,h){var P=h?W1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function EP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Oe=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Oe&&!be&&!Ge||A&&de&&Oe||!P&&Oe||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&eo(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function MP(d){return Fi(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&um(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Oebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ue.source),Ce=/^\s+|\s+$/g,fe=/^\s+/,Ve=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Le+"]",ie="["+gt+"]",Se="\\d+",_e="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Le+Se+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Xe+"|"+nt+")",kt="(?:"+Et+"|"+nt+")",ln="(?:"+ie+"|"+ft+")?",Bt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[_e,vt,dt].join("|")+")"+Bt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",xn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),le=RegExp(ft+"(?="+ft+")|"+Kt+Bt,"g"),oe=RegExp([Et+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ut].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,ye={};ye[F]=ye[U]=ye[G]=ye[z]=ye[V]=ye[Y]=ye["[object Uint8ClampedArray]"]=ye[Q]=ye[W]=!0,ye[u]=ye[f]=ye[I]=ye[p]=ye[O]=ye[m]=ye[b]=ye[v]=ye[g]=ye[y]=ye[w]=ye[C]=ye[_]=ye[S]=ye[k]=!1;var ve={};ve[u]=ve[f]=ve[I]=ve[O]=ve[p]=ve[m]=ve[F]=ve[U]=ve[G]=ve[z]=ve[V]=ve[g]=ve[y]=ve[w]=ve[C]=ve[_]=ve[S]=ve[E]=ve[Y]=ve["[object Uint8ClampedArray]"]=ve[Q]=ve[W]=!0,ve[b]=ve[v]=ve[k]=!1;var Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,Pn=Wt&&Wt.exports===yt,oa=Pn&&xt.process,Un=function(){try{var Ae=Wt&&Wt.require&&Wt.require("util").types;return Ae||oa&&oa.binding&&oa.binding("util")}catch{}}(),Mo=Un&&Un.isArrayBuffer,Mi=Un&&Un.isDate,ti=Un&&Un.isMap,Zr=Un&&Un.isRegExp,Io=Un&&Un.isSet,ni=Un&&Un.isTypedArray;function Wn(Ae,Ke,qe){switch(qe.length){case 0:return Ae.call(Ke);case 1:return Ae.call(Ke,qe[0]);case 2:return Ae.call(Ke,qe[0],qe[1]);case 3:return Ae.call(Ke,qe[0],qe[1],qe[2])}return Ae.apply(Ke,qe)}function gl(Ae,Ke,qe,ht){for(var Ft=-1,cn=Ae==null?0:Ae.length;++Ft-1}function Pc(Ae,Ke,qe){for(var ht=-1,Ft=Ae==null?0:Ae.length;++ht-1;);return qe}function UE(Ae,Ke){for(var qe=Ae.length;qe--&&Tc(Ke,Ae[qe],0)>-1;);return qe}function H8(Ae,Ke){for(var qe=Ae.length,ht=0;qe--;)Ae[qe]===Ke&&++ht;return ht}var G8=b1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),q8=b1({"&":"&","<":"<",">":">",'"':""","'":"'"});function Y8(Ae){return"\\"+Ie[Ae]}function kc(Ae){return pe.test(Ae)}function $1(Ae){var Ke=-1,qe=Array(Ae.size);return Ae.forEach(function(ht,Ft){qe[++Ke]=[Ft,ht]}),qe}function WE(Ae,Ke){return function(qe){return Ae(Ke(qe))}}function vs(Ae,Ke){for(var qe=-1,ht=Ae.length,Ft=0,cn=[];++qe",""":'"',"'":"'"}),gs=function Ae(Ke){var qe,ht=(Ke=Ke==null?ut:gs.defaults(ut.Object(),Ke,gs.pick(ut,Ee))).Array,Ft=Ke.Date,cn=Ke.Error,mr=Ke.Function,ri=Ke.Math,Mn=Ke.Object,S1=Ke.RegExp,Z8=Ke.String,aa=Ke.TypeError,Vh=ht.prototype,X8=mr.prototype,Oc=Mn.prototype,Bh=Ke["__core-js_shared__"],Uh=X8.toString,wn=Oc.hasOwnProperty,Q8=0,HE=(qe=/[^.]+$/.exec(Bh&&Bh.keys&&Bh.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Wh=Oc.toString,eF=Uh.call(Mn),tF=ut._,nF=S1("^"+Uh.call(wn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hh=Pn?Ke.Buffer:void 0,ys=Ke.Symbol,Gh=Ke.Uint8Array,GE=Hh?Hh.allocUnsafe:void 0,qh=WE(Mn.getPrototypeOf,Mn),qE=Mn.create,YE=Oc.propertyIsEnumerable,Yh=Vh.splice,KE=ys?ys.isConcatSpreadable:void 0,Nd=ys?ys.iterator:void 0,bl=ys?ys.toStringTag:void 0,Kh=function(){try{var d=$l(Mn,"defineProperty");return d({},"",{}),d}catch{}}(),rF=Ke.clearTimeout!==ut.clearTimeout&&Ke.clearTimeout,oF=Ft&&Ft.now!==ut.Date.now&&Ft.now,aF=Ke.setTimeout!==ut.setTimeout&&Ke.setTimeout,Jh=ri.ceil,Zh=ri.floor,_1=Mn.getOwnPropertySymbols,iF=Hh?Hh.isBuffer:void 0,JE=Ke.isFinite,sF=Vh.join,lF=WE(Mn.keys,Mn),vr=ri.max,Fr=ri.min,cF=Ft.now,uF=Ke.parseInt,ZE=ri.random,dF=Vh.reverse,E1=$l(Ke,"DataView"),jd=$l(Ke,"Map"),P1=$l(Ke,"Promise"),Dc=$l(Ke,"Set"),Ld=$l(Ke,"WeakMap"),Fd=$l(Mn,"create"),Xh=Ld&&new Ld,Mc={},fF=Sl(E1),pF=Sl(jd),hF=Sl(P1),mF=Sl(Dc),vF=Sl(Ld),Qh=ys?ys.prototype:void 0,zd=Qh?Qh.valueOf:void 0,XE=Qh?Qh.toString:void 0;function ee(d){if(Zn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof ia)return d;if(wn.call(d,"__wrapped__"))return QP(d)}return new ia(d)}var Ic=function(){function d(){}return function(h){if(!Hn(h))return{};if(qE)return qE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function em(){}function ia(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function sa(d,h,P,A,H,ae){var de,be=1&h,Oe=2&h,Ge=4&h;if(P&&(de=H?P(d,A,H,ae):P(d)),de!==void 0)return de;if(!Hn(d))return d;var We=Ht(d);if(We){if(de=function(Ze){var st=Ze.length,It=new Ze.constructor(st);return st&&typeof Ze[0]=="string"&&wn.call(Ze,"index")&&(It.index=Ze.index,It.input=Ze.input),It}(d),!be)return po(d,de)}else{var ot=zr(d),Ct=ot==v||ot==x;if($s(d))return _P(d,be);if(ot==w||ot==u||Ct&&!H){if(de=Oe||Ct?{}:WP(d),!be)return Oe?function(Ze,st){return ai(Ze,BP(Ze),st)}(d,function(Ze,st){return Ze&&ai(st,mo(st),Ze)}(de,d)):function(Ze,st){return ai(Ze,X1(Ze),st)}(d,tP(de,d))}else{if(!ve[ot])return H?d:{};de=function(Ze,st,It){var wt=Ze.constructor;switch(st){case I:return H1(Ze);case p:case m:return new wt(+Ze);case O:return function(jt,Xt){var Pt=Xt?H1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Ze,It);case F:case U:case G:case z:case V:case Y:case"[object Uint8ClampedArray]":case Q:case W:return EP(Ze,It);case g:return new wt;case y:case S:return new wt(Ze);case C:return function(jt){var Xt=new jt.constructor(jt.source,He.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Ze);case _:return new wt;case E:return At=Ze,zd?Mn(zd.call(At)):{}}var At}(d,ot,be)}}ae||(ae=new ka);var $t=ae.get(d);if($t)return $t;ae.set(d,de),gT(d)?d.forEach(function(Ze){de.add(sa(Ze,h,P,Ze,d,ae))}):mT(d)&&d.forEach(function(Ze,st){de.set(st,sa(Ze,h,P,st,d,ae))});var Ot=We?void 0:(Ge?Oe?K1:Y1:Oe?mo:Pr)(d);return Xr(Ot||d,function(Ze,st){Ot&&(Ze=d[st=Ze]),Vd(de,st,sa(Ze,h,P,st,d,ae))}),de}function nP(d,h,P){var A=P.length;if(d==null)return!A;for(d=Mn(d);A--;){var H=P[A],ae=h[H],de=d[H];if(de===void 0&&!(H in d)||!ae(de))return!1}return!0}function rP(d,h,P){if(typeof d!="function")throw new aa(s);return Yd(function(){d.apply(void 0,P)},h)}function Bd(d,h,P,A){var H=-1,ae=Ii,de=!0,be=d.length,Oe=[],Ge=h.length;if(!be)return Oe;P&&(h=kn(h,No(P))),A?(ae=Pc,de=!1):h.length>=200&&(ae=Ad,de=!1,h=new wl(h));e:for(;++H-1},Ai.prototype.set=function(d,h){var P=this.__data__,A=tm(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Ni.prototype.clear=function(){this.size=0,this.__data__={hash:new xl,map:new(jd||Ai),string:new xl}},Ni.prototype.delete=function(d){var h=pm(this,d).delete(d);return this.size-=h?1:0,h},Ni.prototype.get=function(d){return pm(this,d).get(d)},Ni.prototype.has=function(d){return pm(this,d).has(d)},Ni.prototype.set=function(d,h){var P=pm(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},wl.prototype.add=wl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},wl.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.clear=function(){this.__data__=new Ai,this.size=0},ka.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},ka.prototype.get=function(d){return this.__data__.get(d)},ka.prototype.has=function(d){return this.__data__.has(d)},ka.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ai){var A=P.__data__;if(!jd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ni(A)}return P.set(d,h),this.size=P.size,this};var bs=RP(oi),oP=RP(O1,!0);function xF(d,h){var P=!0;return bs(d,function(A,H,ae){return P=!!h(A,H,ae)}),P}function nm(d,h,P){for(var A=-1,H=d.length;++A0&&P(be)?h>1?Dr(be,h-1,P,A,H):fo(H,be):A||(H[H.length]=be)}return H}var R1=OP(),iP=OP(!0);function oi(d,h){return d&&R1(d,h,Pr)}function O1(d,h){return d&&iP(d,h,Pr)}function rm(d,h){return Ao(h,function(P){return Vi(d[P])})}function Ac(d,h){for(var P=0,A=(h=ws(h,d)).length;d!=null&&Ph}function wF(d,h){return d!=null&&wn.call(d,h)}function CF(d,h){return d!=null&&h in Mn(d)}function M1(d,h,P){for(var A=P?Pc:Ii,H=d[0].length,ae=d.length,de=ae,be=ht(ae),Oe=1/0,Ge=[];de--;){var We=d[de];de&&h&&(We=kn(We,No(h))),Oe=Fr(We.length,Oe),be[de]=!P&&(h||H>=120&&We.length>=120)?new wl(de&&We):void 0}We=d[0];var ot=-1,Ct=be[0];e:for(;++ot=$t)return Ot;var Ze=Oe[Ge];return Ot*(Ze=="desc"?-1:1)}}return de.index-be.index}(H,ae,P)})}function vP(d,h,P){for(var A=-1,H=h.length,ae={};++A-1;)be!==d&&Yh.call(be,Oe,1),Yh.call(d,Oe,1);return d}function gP(d,h){for(var P=d?h.length:0,A=P-1;P--;){var H=h[P];if(P==A||H!==ae){var ae=H;zi(H)?Yh.call(d,H,1):V1(d,H)}}return d}function L1(d,h){return d+Zh(ZE()*(h-d+1))}function F1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Zh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return nb(qP(d,h,vo),d+"")}function SF(d){return eP(zc(d))}function _F(d,h){var P=zc(d);return hm(P,Cl(h,0,P.length))}function Hd(d,h,P,A){if(!Hn(d))return d;for(var H=-1,ae=(h=ws(h,d)).length,de=ae-1,be=d;be!=null&&++HH?0:H+h),(P=P>H?H:P)<0&&(P+=H),H=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(H);++A>>1,de=d[ae];de!==null&&!Lo(de)&&(P?de<=h:de=200){var Ge=h?null:RF(d);if(Ge)return zh(Ge);de=!1,H=Ad,Oe=new wl}else Oe=h?[]:be;e:for(;++A=A?d:la(d,h,P)}var SP=rF||function(d){return ut.clearTimeout(d)};function _P(d,h){if(h)return d.slice();var P=d.length,A=GE?GE(P):new d.constructor(P);return d.copy(A),A}function H1(d){var h=new d.constructor(d.byteLength);return new Gh(h).set(new Gh(d)),h}function EP(d,h){var P=h?H1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function PP(d,h){if(d!==h){var P=d!==void 0,A=d===null,H=d==d,ae=Lo(d),de=h!==void 0,be=h===null,Oe=h==h,Ge=Lo(h);if(!be&&!Ge&&!ae&&d>h||ae&&de&&Oe&&!be&&!Ge||A&&de&&Oe||!P&&Oe||!H)return 1;if(!A&&!ae&&!Ge&&d1?P[H-1]:void 0,de=H>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(H--,ae):void 0,de&&eo(P[0],P[1],de)&&(ae=H<3?void 0:ae,H=1),h=Mn(h);++A-1?H[ae?h[de]:de]:void 0}}function IP(d){return Fi(function(h){var P=h.length,A=P,H=ia.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new aa(s);if(H&&!de&&fm(ae)=="wrapper")var de=new ia([],!0)}for(A=de?A:P;++A1&&wt.reverse(),We&&Oebe))return!1;var Ge=ae.get(d);if(Ge&&ae.get(h))return Ge==h;var We=-1,ot=!0,Ct=2&P?new wl:void 0;for(ae.set(d,h),ae.set(h,d);++We-1&&d%1==0&&d1?"& ":"")+ae[be],ae=ae.join(de>2?", ":" "),H.replace(Ue,`{ /* [wrapped with `+ae+`] */ -`)}(A,function(H,ae){return Xr(c,function(de){var be="_."+de[0];ae&de[1]&&!Ii(H,be)&&H.push(be)}),H.sort()}(function(H){var ae=H.match(De);return ae?ae[1].split(Be):[]}(A),P)))}function ZP(d){var h=0,P=0;return function(){var A=lF(),H=16-(A-P);if(P=A,H>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function fm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,oT(d,P)});function aT(d){var h=ee(d);return h.__chain__=!0,h}function pm(d,h){return h(d)}var JF=Fi(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return T1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&zi(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:pm,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),XF=am(function(d,h,P){wn.call(d,P)?++d[P]:ji(d,P,1)}),QF=DP(QP),e7=DP(eT);function iT(d,h){return(Ht(d)?Xr:bs)(d,Rt(h,3))}function sT(d,h){return(Ht(d)?Nh:rP)(d,Rt(h,3))}var t7=am(function(d,h,P){wn.call(d,P)?d[P].push(h):ji(d,P,[h])}),n7=Jt(function(d,h,P){var A=-1,H=typeof h=="function",ae=ho(d)?ht(d.length):[];return bs(d,function(de){ae[++A]=H?Wn(h,de,P):Bd(de,h,P)}),ae}),r7=am(function(d,h,P){ji(d,P,h)});function hm(d,h){return(Ht(d)?kn:uP)(d,Rt(h,3))}var o7=am(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),a7=Jt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&eo(d,h[0],h[1])?h=[]:P>2&&eo(h[0],h[1],h[2])&&(h=[h[0]]),hP(d,Dr(h,1),[])}),mm=rF||function(){return ut.Date.now()};function lT(d,h,P){return h=P?void 0:h,Li(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function cT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var ob=Jt(function(d,h,P){var A=1;if(P.length){var H=vs(P,Lc(ob));A|=32}return Li(d,A,h,P,H)}),uT=Jt(function(d,h,P){var A=3;if(P.length){var H=vs(P,Lc(uT));A|=32}return Li(h,A,d,P,H)});function dT(d,h,P){var A,H,ae,de,be,Oe,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Ot(At){return Ge=At,be=qd(st,h),We?$t(At):de}function Je(At){var jt=At-Oe;return Oe===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=mm();if(Je(At))return It(At);be=qd(st,function(jt){var Xt=h-(jt-Oe);return ot?Fr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=mm(),jt=Je(At);if(A=arguments,H=this,Oe=At,jt){if(be===void 0)return Ot(Oe);if(ot)return $P(be),be=qd(st,h),$t(Oe)}return be===void 0&&(be=qd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&$P(be),Ge=0,A=Oe=H=be=void 0},wt.flush=function(){return be===void 0?de:It(mm())},wt}var i7=Jt(function(d,h){return nP(d,1,h)}),s7=Jt(function(d,h,P){return nP(d,ua(h)||0,P)});function vm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(vm.Cache||Ni),P}function gm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}vm.Cache=Ni;var l7=TF(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Rt())):kn(Dr(h,1),No(Rt()))).length;return Jt(function(A){for(var H=-1,ae=Fr(A.length,P);++H=h}),_l=sP(function(){return arguments}())?sP:function(d){return Jn(d)&&wn.call(d,"callee")&&!qE.call(d,"callee")},Ht=ht.isArray,f7=Mo?No(Mo):function(d){return Jn(d)&&Qr(d)==I};function ho(d){return d!=null&&ym(d.length)&&!Vi(d)}function ar(d){return Jn(d)&&ho(d)}var $s=aF||vb,p7=Mi?No(Mi):function(d){return Jn(d)&&Qr(d)==m};function ib(d){if(!Jn(d))return!1;var h=Qr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Yd(d)}function Vi(d){if(!Hn(d))return!1;var h=Qr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function pT(d){return typeof d=="number"&&d==Gt(d)}function ym(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var hT=ti?No(ti):function(d){return Jn(d)&&zr(d)==g};function mT(d){return typeof d=="number"||Jn(d)&&Qr(d)==y}function Yd(d){if(!Jn(d)||Qr(d)!=w)return!1;var h=Hh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Vh.call(P)==Q8}var sb=Jr?No(Jr):function(d){return Jn(d)&&Qr(d)==C},vT=Io?No(Io):function(d){return Jn(d)&&zr(d)==_};function bm(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Qr(d)==S}function Lo(d){return i(d)=="symbol"||Jn(d)&&Qr(d)==E}var Fc=ni?No(ni):function(d){return Jn(d)&&ym(d.length)&&!!ye[Qr(d)]},h7=cm(A1),m7=cm(function(d,h){return d<=h});function gT(d){if(!d)return[];if(ho(d))return bm(d)?Ta(d):po(d);if(Ad&&d[Ad])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Ad]());var h=zr(d);return(h==g?C1:h==_?Lh:zc)(d)}function Bi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Bi(d),P=h%1;return h==h?P?h-P:h:0}function yT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function bT(d){return ai(d,mo(d))}function gn(d){return d==null?"":jo(d)}var v7=Nc(function(d,h){if(Gd(h)||ho(h))ai(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&zd(d,P,h[P])}),xT=Nc(function(d,h){ai(h,mo(h),d)}),xm=Nc(function(d,h,P,A){ai(h,mo(h),d,A)}),g7=Nc(function(d,h,P,A){ai(h,Pr(h),d,A)}),y7=Fi(T1),b7=Jt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&eo(h[0],h[1],H)&&(A=1);++P1),ae}),ai(d,Y1(d),P),A&&(P=sa(P,7,RF));for(var H=h.length;H--;)z1(P,h[H]);return P}),E7=Fi(function(d,h){return d==null?{}:function(P,A){return mP(P,A,function(H,ae){return cb(P,ae)})}(d,h)});function CT(d,h){if(d==null)return{};var P=kn(Y1(d),function(A){return[A]});return h=Rt(h),mP(d,P,function(A,H){return h(A,H[0])})}var $T=jP(Pr),ST=jP(mo);function zc(d){return d==null?[]:w1(d,Pr(d))}var P7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?_T(h):h)});function _T(d){return ub(gn(d).toLowerCase())}function ET(d){return(d=gn(d))&&d.replace(Te,H8).replace(Bn,"")}var T7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),k7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),R7=OP("toLowerCase"),O7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),D7=jc(function(d,h,P){return d+(P?" ":"")+ub(h)}),M7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),ub=OP("toUpperCase");function PT(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var TT=Jt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return ib(P)?P:new cn(P)}}),I7=Fi(function(d,h){return Xr(h,function(P){P=ii(P),ji(d,P,ob(d[P],d))}),d});function db(d){return function(){return d}}var A7=MP(),N7=MP(!0);function vo(d){return d}function fb(d){return cP(typeof d=="function"?d:sa(d,1))}var j7=Jt(function(d,h){return function(P){return Bd(P,d,h)}}),L7=Jt(function(d,h){return function(P){return Bd(d,P,h)}});function pb(d,h,P){var A=Pr(h),H=tm(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=tm(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Vi(d);return Xr(H,function(be){var Oe=h[be];d[be]=Oe,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=po(this.__actions__);return ot.push({func:Oe,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Oe.apply(d,fo([this.value()],arguments))})}),d}function hb(){}var F7=H1(kn),z7=H1(yl),V7=H1(v1);function kT(d){return X1(d)?g1(ii(d)):function(h){return function(P){return Ac(P,h)}}(d)}var B7=AP(),U7=AP(!0);function mb(){return[]}function vb(){return!1}var W7=sm(function(d,h){return d+h},0),H7=G1("ceil"),G7=sm(function(d,h){return d/h},1),q7=G1("floor"),gb,Y7=sm(function(d,h){return d*h},1),K7=G1("round"),Z7=sm(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=lT,ee.assign=v7,ee.assignIn=xT,ee.assignInWith=xm,ee.assignWith=g7,ee.at=y7,ee.before=cT,ee.bind=ob,ee.bindAll=I7,ee.bindKey=uT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=aT,ee.chunk=function(d,h,P){h=(P?eo(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Yh(A/h));HGe?0:Ge+be),(Oe=Oe===void 0||Oe>Ge?Ge:Gt(Oe))<0&&(Oe+=Ge),Oe=be>Oe?0:yT(Oe);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!sb(h))&&!(h=jo(h))&&kc(d)?Cs(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Jt(function(P){var A=P[h],H=Cs(P,0,h);return A&&fo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?om(d,Rt(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?om(d,Rt(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),dT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=pm,ee.toArray=gT,ee.toPairs=$T,ee.toPairsIn=ST,ee.toPath=function(d){return Ht(d)?kn(d,ii):Lo(d)?[d]:po(JP(gn(d)))},ee.toPlainObject=bT,ee.transform=function(d,h,P){var A=Ht(d),H=A||$s(d)||Fc(d);if(h=Rt(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Vi(ae)?Ic(Hh(d)):{}}return(H?Xr:oi)(d,function(de,be,Oe){return h(P,de,be,Oe)}),P},ee.unary=function(d){return lT(d,1)},ee.union=BF,ee.unionBy=UF,ee.unionWith=WF,ee.uniq=function(d){return d&&d.length?xs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?xs(d,Rt(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?xs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||z1(d,h)},ee.unzip=rb,ee.unzipWith=oT,ee.update=function(d,h,P){return d==null?d:xP(d,h,U1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:xP(d,h,U1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:w1(d,mo(d))},ee.without=HF,ee.words=PT,ee.wrap=function(d,h){return ab(U1(h),d)},ee.xor=GF,ee.xorBy=qF,ee.xorWith=YF,ee.zip=KF,ee.zipObject=function(d,h){return CP(d||[],h||[],zd)},ee.zipObjectDeep=function(d,h){return CP(d||[],h||[],Wd)},ee.zipWith=ZF,ee.entries=$T,ee.entriesIn=ST,ee.extend=xT,ee.extendWith=xm,pb(ee,ee),ee.add=W7,ee.attempt=TT,ee.camelCase=P7,ee.capitalize=_T,ee.ceil=H7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||tP(d,h,Pr(h))},ee.deburr=ET,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=G7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Ra,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,G8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:bF;return P&&eo(d,h,P)&&(h=void 0),A(d,Rt(h,3))},ee.find=QF,ee.findIndex=QP,ee.findKey=function(d,h){return jE(d,Rt(h,3),oi)},ee.findLast=e7,ee.findLastIndex=eT,ee.findLastKey=function(d,h){return jE(d,Rt(h,3),R1)},ee.floor=q7,ee.forEach=iT,ee.forEachRight=sT,ee.forIn=function(d,h){return d==null?d:k1(d,Rt(h,3),mo)},ee.forInRight=function(d,h){return d==null?d:aP(d,Rt(h,3),mo)},ee.forOwn=function(d,h){return d&&oi(d,Rt(h,3))},ee.forOwnRight=function(d,h){return d&&R1(d,Rt(h,3))},ee.get=lb,ee.gt=u7,ee.gte=d7,ee.has=function(d,h){return d!=null&&BP(d,h,xF)},ee.hasIn=cb,ee.head=nT,ee.identity=vo,ee.includes=function(d,h,P,A){d=ho(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),bm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=Bi(h),P===void 0?(P=h,h=0):P=Bi(P),function(A,H,ae){return A>=Fr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=vT,ee.isString=bm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&zr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Qr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":iF.call(d,h)},ee.kebabCase=T7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Fr(H,A-1)),h==h?function(ae,de,be){for(var Oe=be+1;Oe--;)if(ae[Oe]===de)return Oe;return Oe}(d,h,H):jh(d,LE,H,!0)},ee.lowerCase=k7,ee.lowerFirst=R7,ee.lt=h7,ee.lte=m7,ee.max=function(d){return d&&d.length?em(d,vo,O1):void 0},ee.maxBy=function(d,h){return d&&d.length?em(d,Rt(h,2),O1):void 0},ee.mean=function(d){return FE(d,vo)},ee.meanBy=function(d,h){return FE(d,Rt(h,2))},ee.min=function(d){return d&&d.length?em(d,vo,A1):void 0},ee.minBy=function(d,h){return d&&d.length?em(d,Rt(h,2),A1):void 0},ee.stubArray=mb,ee.stubFalse=vb,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=Y7,ee.nth=function(d,h){return d&&d.length?pP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=eF),this},ee.noop=hb,ee.now=mm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return lm(Kh(H),P)+d+lm(Yh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=ZE();return Fr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return j1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?m1:zE,H=arguments.length<3;return A(d,Rt(h,4),P,H,bs)},ee.reduceRight=function(d,h,P){var A=Ht(d)?V8:zE,H=arguments.length<3;return A(d,Rt(h,4),P,H,rP)},ee.repeat=function(d,h,P){return h=(P?eo(d,h,P):h===void 0)?1:Gt(h),L1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=ws(h,d)).length;for(H||(H=1,d=void 0);++A0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function hm(d,h){var P=-1,A=d.length,H=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,aT(d,P)});function iT(d){var h=ee(d);return h.__chain__=!0,h}function mm(d,h){return h(d)}var XF=Fi(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,H=function(ae){return k1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&zi(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:mm,args:[H],thisArg:void 0}),new ia(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(H)}),QF=sm(function(d,h,P){wn.call(d,P)?++d[P]:ji(d,P,1)}),e7=MP(eT),t7=MP(tT);function sT(d,h){return(Ht(d)?Xr:bs)(d,Rt(h,3))}function lT(d,h){return(Ht(d)?Lh:oP)(d,Rt(h,3))}var n7=sm(function(d,h,P){wn.call(d,P)?d[P].push(h):ji(d,P,[h])}),r7=Zt(function(d,h,P){var A=-1,H=typeof h=="function",ae=ho(d)?ht(d.length):[];return bs(d,function(de){ae[++A]=H?Wn(h,de,P):Ud(de,h,P)}),ae}),o7=sm(function(d,h,P){ji(d,P,h)});function vm(d,h){return(Ht(d)?kn:dP)(d,Rt(h,3))}var a7=sm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),i7=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&eo(d,h[0],h[1])?h=[]:P>2&&eo(h[0],h[1],h[2])&&(h=[h[0]]),mP(d,Dr(h,1),[])}),gm=oF||function(){return ut.Date.now()};function cT(d,h,P){return h=P?void 0:h,Li(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function uT(d,h){var P;if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var ab=Zt(function(d,h,P){var A=1;if(P.length){var H=vs(P,Lc(ab));A|=32}return Li(d,A,h,P,H)}),dT=Zt(function(d,h,P){var A=3;if(P.length){var H=vs(P,Lc(dT));A|=32}return Li(h,A,d,P,H)});function fT(d,h,P){var A,H,ae,de,be,Oe,Ge=0,We=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new aa(s);function $t(At){var jt=A,Xt=H;return A=H=void 0,Ge=At,de=d.apply(Xt,jt)}function Ot(At){return Ge=At,be=Yd(st,h),We?$t(At):de}function Ze(At){var jt=At-Oe;return Oe===void 0||jt>=h||jt<0||ot&&At-Ge>=ae}function st(){var At=gm();if(Ze(At))return It(At);be=Yd(st,function(jt){var Xt=h-(jt-Oe);return ot?Fr(Xt,ae-(jt-Ge)):Xt}(At))}function It(At){return be=void 0,Ct&&A?$t(At):(A=H=void 0,de)}function wt(){var At=gm(),jt=Ze(At);if(A=arguments,H=this,Oe=At,jt){if(be===void 0)return Ot(Oe);if(ot)return SP(be),be=Yd(st,h),$t(Oe)}return be===void 0&&(be=Yd(st,h)),de}return h=ua(h)||0,Hn(P)&&(We=!!P.leading,ae=(ot="maxWait"in P)?vr(ua(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){be!==void 0&&SP(be),Ge=0,A=Oe=H=be=void 0},wt.flush=function(){return be===void 0?de:It(gm())},wt}var s7=Zt(function(d,h){return rP(d,1,h)}),l7=Zt(function(d,h,P){return rP(d,ua(h)||0,P)});function ym(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new aa(s);var P=function A(){var H=arguments,ae=h?h.apply(this,H):H[0],de=A.cache;if(de.has(ae))return de.get(ae);var be=d.apply(this,H);return A.cache=de.set(ae,be)||de,be};return P.cache=new(ym.Cache||Ni),P}function bm(d){if(typeof d!="function")throw new aa(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}ym.Cache=Ni;var c7=kF(function(d,h){var P=(h=h.length==1&&Ht(h[0])?kn(h[0],No(Rt())):kn(Dr(h,1),No(Rt()))).length;return Zt(function(A){for(var H=-1,ae=Fr(A.length,P);++H=h}),_l=lP(function(){return arguments}())?lP:function(d){return Zn(d)&&wn.call(d,"callee")&&!YE.call(d,"callee")},Ht=ht.isArray,p7=Mo?No(Mo):function(d){return Zn(d)&&Qr(d)==I};function ho(d){return d!=null&&xm(d.length)&&!Vi(d)}function ar(d){return Zn(d)&&ho(d)}var $s=iF||gb,h7=Mi?No(Mi):function(d){return Zn(d)&&Qr(d)==m};function sb(d){if(!Zn(d))return!1;var h=Qr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Kd(d)}function Vi(d){if(!Hn(d))return!1;var h=Qr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function hT(d){return typeof d=="number"&&d==Gt(d)}function xm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Hn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Zn(d){return d!=null&&i(d)=="object"}var mT=ti?No(ti):function(d){return Zn(d)&&zr(d)==g};function vT(d){return typeof d=="number"||Zn(d)&&Qr(d)==y}function Kd(d){if(!Zn(d)||Qr(d)!=w)return!1;var h=qh(d);if(h===null)return!0;var P=wn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Uh.call(P)==eF}var lb=Zr?No(Zr):function(d){return Zn(d)&&Qr(d)==C},gT=Io?No(Io):function(d){return Zn(d)&&zr(d)==_};function wm(d){return typeof d=="string"||!Ht(d)&&Zn(d)&&Qr(d)==S}function Lo(d){return i(d)=="symbol"||Zn(d)&&Qr(d)==E}var Fc=ni?No(ni):function(d){return Zn(d)&&xm(d.length)&&!!ye[Qr(d)]},m7=dm(N1),v7=dm(function(d,h){return d<=h});function yT(d){if(!d)return[];if(ho(d))return wm(d)?Ta(d):po(d);if(Nd&&d[Nd])return function(P){for(var A,H=[];!(A=P.next()).done;)H.push(A.value);return H}(d[Nd]());var h=zr(d);return(h==g?$1:h==_?zh:zc)(d)}function Bi(d){return d?(d=ua(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Bi(d),P=h%1;return h==h?P?h-P:h:0}function bT(d){return d?Cl(Gt(d),0,4294967295):0}function ua(d){if(typeof d=="number")return d;if(Lo(d))return NaN;if(Hn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Hn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(Ce,"");var P=Me.test(d);return P||ze.test(d)?lt(d.slice(2),P?2:8):Ye.test(d)?NaN:+d}function xT(d){return ai(d,mo(d))}function gn(d){return d==null?"":jo(d)}var g7=Nc(function(d,h){if(qd(h)||ho(h))ai(h,Pr(h),d);else for(var P in h)wn.call(h,P)&&Vd(d,P,h[P])}),wT=Nc(function(d,h){ai(h,mo(h),d)}),Cm=Nc(function(d,h,P,A){ai(h,mo(h),d,A)}),y7=Nc(function(d,h,P,A){ai(h,Pr(h),d,A)}),b7=Fi(k1),x7=Zt(function(d,h){d=Mn(d);var P=-1,A=h.length,H=A>2?h[2]:void 0;for(H&&eo(h[0],h[1],H)&&(A=1);++P1),ae}),ai(d,K1(d),P),A&&(P=sa(P,7,OF));for(var H=h.length;H--;)V1(P,h[H]);return P}),P7=Fi(function(d,h){return d==null?{}:function(P,A){return vP(P,A,function(H,ae){return ub(P,ae)})}(d,h)});function $T(d,h){if(d==null)return{};var P=kn(K1(d),function(A){return[A]});return h=Rt(h),vP(d,P,function(A,H){return h(A,H[0])})}var ST=LP(Pr),_T=LP(mo);function zc(d){return d==null?[]:C1(d,Pr(d))}var T7=jc(function(d,h,P){return h=h.toLowerCase(),d+(P?ET(h):h)});function ET(d){return db(gn(d).toLowerCase())}function PT(d){return(d=gn(d))&&d.replace(Te,G8).replace(Bn,"")}var k7=jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),R7=jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),O7=DP("toLowerCase"),D7=jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),M7=jc(function(d,h,P){return d+(P?" ":"")+db(h)}),I7=jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),db=DP("toUpperCase");function TT(d,h,P){return d=gn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(ge)||[]}(d):d.match(h)||[]}var kT=Zt(function(d,h){try{return Wn(d,void 0,h)}catch(P){return sb(P)?P:new cn(P)}}),A7=Fi(function(d,h){return Xr(h,function(P){P=ii(P),ji(d,P,ab(d[P],d))}),d});function fb(d){return function(){return d}}var N7=IP(),j7=IP(!0);function vo(d){return d}function pb(d){return uP(typeof d=="function"?d:sa(d,1))}var L7=Zt(function(d,h){return function(P){return Ud(P,d,h)}}),F7=Zt(function(d,h){return function(P){return Ud(d,P,h)}});function hb(d,h,P){var A=Pr(h),H=rm(h,A);P!=null||Hn(h)&&(H.length||!A.length)||(P=h,h=d,d=this,H=rm(h,Pr(h)));var ae=!(Hn(P)&&"chain"in P&&!P.chain),de=Vi(d);return Xr(H,function(be){var Oe=h[be];d[be]=Oe,de&&(d.prototype[be]=function(){var Ge=this.__chain__;if(ae||Ge){var We=d(this.__wrapped__),ot=We.__actions__=po(this.__actions__);return ot.push({func:Oe,args:arguments,thisArg:d}),We.__chain__=Ge,We}return Oe.apply(d,fo([this.value()],arguments))})}),d}function mb(){}var z7=G1(kn),V7=G1(yl),B7=G1(g1);function RT(d){return Q1(d)?y1(ii(d)):function(h){return function(P){return Ac(P,h)}}(d)}var U7=NP(),W7=NP(!0);function vb(){return[]}function gb(){return!1}var H7=cm(function(d,h){return d+h},0),G7=q1("ceil"),q7=cm(function(d,h){return d/h},1),Y7=q1("floor"),yb,K7=cm(function(d,h){return d*h},1),J7=q1("round"),Z7=cm(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new aa(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=cT,ee.assign=g7,ee.assignIn=wT,ee.assignInWith=Cm,ee.assignWith=y7,ee.at=b7,ee.before=uT,ee.bind=ab,ee.bindAll=A7,ee.bindKey=dT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=iT,ee.chunk=function(d,h,P){h=(P?eo(d,h,P):h===void 0)?1:vr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var H=0,ae=0,de=ht(Jh(A/h));HGe?0:Ge+be),(Oe=Oe===void 0||Oe>Ge?Ge:Gt(Oe))<0&&(Oe+=Ge),Oe=be>Oe?0:bT(Oe);be>>0)?(d=gn(d))&&(typeof h=="string"||h!=null&&!lb(h))&&!(h=jo(h))&&kc(d)?Cs(Ta(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new aa(s);return h=h==null?0:vr(Gt(h),0),Zt(function(P){var A=P[h],H=Cs(P,0,h);return A&&fo(H,A),Wn(d,this,H)})},ee.tail=function(d){var h=d==null?0:d.length;return h?la(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?la(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?la(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?im(d,Rt(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?im(d,Rt(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,H=!0;if(typeof d!="function")throw new aa(s);return Hn(P)&&(A="leading"in P?!!P.leading:A,H="trailing"in P?!!P.trailing:H),fT(d,h,{leading:A,maxWait:h,trailing:H})},ee.thru=mm,ee.toArray=yT,ee.toPairs=ST,ee.toPairsIn=_T,ee.toPath=function(d){return Ht(d)?kn(d,ii):Lo(d)?[d]:po(XP(gn(d)))},ee.toPlainObject=xT,ee.transform=function(d,h,P){var A=Ht(d),H=A||$s(d)||Fc(d);if(h=Rt(h,4),P==null){var ae=d&&d.constructor;P=H?A?new ae:[]:Hn(d)&&Vi(ae)?Ic(qh(d)):{}}return(H?Xr:oi)(d,function(de,be,Oe){return h(P,de,be,Oe)}),P},ee.unary=function(d){return cT(d,1)},ee.union=UF,ee.unionBy=WF,ee.unionWith=HF,ee.uniq=function(d){return d&&d.length?xs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?xs(d,Rt(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?xs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||V1(d,h)},ee.unzip=ob,ee.unzipWith=aT,ee.update=function(d,h,P){return d==null?d:wP(d,h,W1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:wP(d,h,W1(P),A)},ee.values=zc,ee.valuesIn=function(d){return d==null?[]:C1(d,mo(d))},ee.without=GF,ee.words=TT,ee.wrap=function(d,h){return ib(W1(h),d)},ee.xor=qF,ee.xorBy=YF,ee.xorWith=KF,ee.zip=JF,ee.zipObject=function(d,h){return $P(d||[],h||[],Vd)},ee.zipObjectDeep=function(d,h){return $P(d||[],h||[],Hd)},ee.zipWith=ZF,ee.entries=ST,ee.entriesIn=_T,ee.extend=wT,ee.extendWith=Cm,hb(ee,ee),ee.add=H7,ee.attempt=kT,ee.camelCase=T7,ee.capitalize=ET,ee.ceil=G7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=ua(P))==P?P:0),h!==void 0&&(h=(h=ua(h))==h?h:0),Cl(ua(d),h,P)},ee.clone=function(d){return sa(d,4)},ee.cloneDeep=function(d){return sa(d,5)},ee.cloneDeepWith=function(d,h){return sa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return sa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||nP(d,h,Pr(h))},ee.deburr=PT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=q7,ee.endsWith=function(d,h,P){d=gn(d),h=jo(h);var A=d.length,H=P=P===void 0?A:Cl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,H)==h},ee.eq=Ra,ee.escape=function(d){return(d=gn(d))&&N.test(d)?d.replace(q,q8):d},ee.escapeRegExp=function(d){return(d=gn(d))&&se.test(d)?d.replace(ue,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?yl:xF;return P&&eo(d,h,P)&&(h=void 0),A(d,Rt(h,3))},ee.find=e7,ee.findIndex=eT,ee.findKey=function(d,h){return LE(d,Rt(h,3),oi)},ee.findLast=t7,ee.findLastIndex=tT,ee.findLastKey=function(d,h){return LE(d,Rt(h,3),O1)},ee.floor=Y7,ee.forEach=sT,ee.forEachRight=lT,ee.forIn=function(d,h){return d==null?d:R1(d,Rt(h,3),mo)},ee.forInRight=function(d,h){return d==null?d:iP(d,Rt(h,3),mo)},ee.forOwn=function(d,h){return d&&oi(d,Rt(h,3))},ee.forOwnRight=function(d,h){return d&&O1(d,Rt(h,3))},ee.get=cb,ee.gt=d7,ee.gte=f7,ee.has=function(d,h){return d!=null&&UP(d,h,wF)},ee.hasIn=ub,ee.head=rT,ee.identity=vo,ee.includes=function(d,h,P,A){d=ho(d)?d:zc(d),P=P&&!A?Gt(P):0;var H=d.length;return P<0&&(P=vr(H+P,0)),wm(d)?P<=H&&d.indexOf(h,P)>-1:!!H&&Tc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=P==null?0:Gt(P);return H<0&&(H=vr(A+H,0)),Tc(d,h,H)},ee.inRange=function(d,h,P){return h=Bi(h),P===void 0?(P=h,h=0):P=Bi(P),function(A,H,ae){return A>=Fr(H,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=gT,ee.isString=wm,ee.isSymbol=Lo,ee.isTypedArray=Fc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Zn(d)&&zr(d)==k},ee.isWeakSet=function(d){return Zn(d)&&Qr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":sF.call(d,h)},ee.kebabCase=k7,ee.last=ca,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var H=A;return P!==void 0&&(H=(H=Gt(P))<0?vr(A+H,0):Fr(H,A-1)),h==h?function(ae,de,be){for(var Oe=be+1;Oe--;)if(ae[Oe]===de)return Oe;return Oe}(d,h,H):Fh(d,FE,H,!0)},ee.lowerCase=R7,ee.lowerFirst=O7,ee.lt=m7,ee.lte=v7,ee.max=function(d){return d&&d.length?nm(d,vo,D1):void 0},ee.maxBy=function(d,h){return d&&d.length?nm(d,Rt(h,2),D1):void 0},ee.mean=function(d){return zE(d,vo)},ee.meanBy=function(d,h){return zE(d,Rt(h,2))},ee.min=function(d){return d&&d.length?nm(d,vo,N1):void 0},ee.minBy=function(d,h){return d&&d.length?nm(d,Rt(h,2),N1):void 0},ee.stubArray=vb,ee.stubFalse=gb,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=K7,ee.nth=function(d,h){return d&&d.length?hP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=tF),this},ee.noop=mb,ee.now=gm,ee.pad=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;if(!h||A>=h)return d;var H=(h-A)/2;return um(Zh(H),P)+d+um(Jh(H),P)},ee.padEnd=function(d,h,P){d=gn(d);var A=(h=Gt(h))?Rc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var H=ZE();return Fr(d+H*(h-d+rt("1e-"+((H+"").length-1))),h)}return L1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?v1:VE,H=arguments.length<3;return A(d,Rt(h,4),P,H,bs)},ee.reduceRight=function(d,h,P){var A=Ht(d)?B8:VE,H=arguments.length<3;return A(d,Rt(h,4),P,H,oP)},ee.repeat=function(d,h,P){return h=(P?eo(d,h,P):h===void 0)?1:Gt(h),F1(gn(d),h)},ee.replace=function(){var d=arguments,h=gn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,H=(h=ws(h,d)).length;for(H||(H=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=Fr(d,4294967295);d-=4294967295;for(var H=x1(A,h=Rt(h));++P=ae)return d;var be=P-Rc(A);if(be<1)return A;var Oe=de?Cs(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Oe+A;if(de&&(be+=Oe.length-be),sb(H)){if(d.slice(be).search(H)){var Ge,We=Oe;for(H.global||(H=$1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Oe=Oe.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Oe.lastIndexOf(H);Ct>-1&&(Oe=Oe.slice(0,Ct))}return Oe+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,K8):d},ee.uniqueId=function(d){var h=++X8;return gn(d)+h},ee.upperCase=M7,ee.upperFirst=ub,ee.each=iT,ee.eachRight=sT,ee.first=nT,pb(ee,(gb={},oi(ee,function(d,h){wn.call(ee.prototype,h)||(gb[h]=d)}),gb),{chain:!1}),ee.VERSION="4.17.15",Xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Xr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Fr(P,A.__takeCount__):A.__views__.push({size:Fr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Xr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Rt(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Xr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Xr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(vo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Jt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Bd(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(gm(Rt(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},oi(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Oe=de instanceof rn,Ge=be[0],We=Oe||Ht(de),ot=function(It){var wt=H.apply(ee,fo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Oe=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Ot=ae&&!Ct,Je=Oe&&!$t;if(!ae&&We){de=Je?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:pm,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Ot&&Je?d.apply(this,be):(st=this.thru(ot),Ot?A?st.value()[0]:st.value():st)})}),Xr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Fh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),oi(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[im(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=po(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=po(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=po(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,to=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Xh;){var A=XP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:pm,args:[nb],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(nb)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return wP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Ad&&(ee.prototype[Ad]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=gs,(a=(function(){return gs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=gs)._=gs,yt._=gs):ut._=gs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(O,F,U,G,z,V){var Y,Q=1&F,W=2&F,Z=4&F;if(U&&(Y=z?U(O,G,z,V):U(O)),Y!==void 0)return Y;if(!_(O))return O;var X=y(O);if(X){if(Y=v(O),!Q)return c(O,Y)}else{var j=b(O),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(O))return l(O,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(O),!Q)return W?f(O,s(Y,O)):u(O,i(Y,O))}else{if(!k[j])return z?O:{};Y=x(O,j,Q)}}V||(V=new r);var q=V.get(O);if(q)return q;V.set(O,Y),S(O)?O.forEach(function(B){Y.add(I(B,F,U,B,O,V))}):C(O)&&O.forEach(function(B,J){Y.set(J,I(B,F,U,J,O,V))});var D=Z?W?m:p:W?keysIn:E,N=X?void 0:D(O);return o(N||O,function(B,J){N&&(B=O[J=B]),a(Y,J,I(B,F,U,J,O,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,O=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var O in this.header)this.header[O]!=null&&this.header.hasOwnProperty(O)&&_.setRequestHeader(O,this.header[O]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function O(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=O(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function Z(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=Z(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,Z).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function J(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,Z).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=J(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,Z)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=Z(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var L4={exports:{}},F4={};/** +}`;var Ze=kT(function(){return mr(be,$t+"return "+ot).apply(void 0,Oe)});if(Ze.source=ot,sb(Ze))throw Ze;return Ze},ee.times=function(d,h){if((d=Gt(d))<1||d>9007199254740991)return[];var P=4294967295,A=Fr(d,4294967295);d-=4294967295;for(var H=w1(A,h=Rt(h));++P=ae)return d;var be=P-Rc(A);if(be<1)return A;var Oe=de?Cs(de,0,be).join(""):d.slice(0,be);if(H===void 0)return Oe+A;if(de&&(be+=Oe.length-be),lb(H)){if(d.slice(be).search(H)){var Ge,We=Oe;for(H.global||(H=S1(H.source,gn(He.exec(H))+"g")),H.lastIndex=0;Ge=H.exec(We);)var ot=Ge.index;Oe=Oe.slice(0,ot===void 0?be:ot)}}else if(d.indexOf(jo(H),be)!=be){var Ct=Oe.lastIndexOf(H);Ct>-1&&(Oe=Oe.slice(0,Ct))}return Oe+A},ee.unescape=function(d){return(d=gn(d))&&D.test(d)?d.replace(K,J8):d},ee.uniqueId=function(d){var h=++Q8;return gn(d)+h},ee.upperCase=I7,ee.upperFirst=db,ee.each=sT,ee.eachRight=lT,ee.first=rT,hb(ee,(yb={},oi(ee,function(d,h){wn.call(ee.prototype,h)||(yb[h]=d)}),yb),{chain:!1}),ee.VERSION="4.17.15",Xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Xr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:vr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=Fr(P,A.__takeCount__):A.__views__.push({size:Fr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Xr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(H){var ae=this.clone();return ae.__iteratees__.push({iteratee:Rt(H,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Xr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Xr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(vo)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Ud(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(bm(Rt(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},oi(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),H=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);H&&(ee.prototype[h]=function(){var de=this.__wrapped__,be=A?[1]:arguments,Oe=de instanceof rn,Ge=be[0],We=Oe||Ht(de),ot=function(It){var wt=H.apply(ee,fo([It],be));return A&&Ct?wt[0]:wt};We&&P&&typeof Ge=="function"&&Ge.length!=1&&(Oe=We=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Ot=ae&&!Ct,Ze=Oe&&!$t;if(!ae&&We){de=Ze?de:new rn(this);var st=d.apply(de,be);return st.__actions__.push({func:mm,args:[ot],thisArg:void 0}),new ia(st,Ct)}return Ot&&Ze?d.apply(this,be):(st=this.thru(ot),Ot?A?st.value()[0]:st.value():st)})}),Xr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Vh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var H=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],H)}return this[P](function(de){return h.apply(Ht(de)?de:[],H)})}}),oi(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";wn.call(Mc,A)||(Mc[A]=[]),Mc[A].push({name:h,func:P})}}),Mc[lm(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=po(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=po(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=po(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,H=P?d.length:0,ae=function(Xt,Pt,Dt){for(var gr=-1,to=Dt.length;++gr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof em;){var A=QP(P);A.__index__=0,A.__values__=void 0,h?H.__wrapped__=A:h=A;var H=A;P=P.__wrapped__}return H.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:mm,args:[rb],thisArg:void 0}),new ia(h,this.__chain__)}return this.thru(rb)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return CP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Nd&&(ee.prototype[Nd]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=gs,(a=(function(){return gs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=gs)._=gs,yt._=gs):ut._=gs}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),S=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(O,F,U,G,z,V){var Y,Q=1&F,W=2&F,J=4&F;if(U&&(Y=z?U(O,G,z,V):U(O)),Y!==void 0)return Y;if(!_(O))return O;var X=y(O);if(X){if(Y=v(O),!Q)return c(O,Y)}else{var j=b(O),K=j=="[object Function]"||j=="[object GeneratorFunction]";if(w(O))return l(O,Q);if(j=="[object Object]"||j=="[object Arguments]"||K&&!z){if(Y=W||K?{}:g(O),!Q)return W?f(O,s(Y,O)):u(O,i(Y,O))}else{if(!k[j])return z?O:{};Y=x(O,j,Q)}}V||(V=new r);var q=V.get(O);if(q)return q;V.set(O,Y),S(O)?O.forEach(function(B){Y.add(I(B,F,U,B,O,V))}):C(O)&&O.forEach(function(B,Z){Y.set(Z,I(B,F,U,Z,O,V))});var D=J?W?m:p:W?keysIn:E,N=X?void 0:D(O);return o(N||O,function(B,Z){N&&(B=O[Z=B]),a(Y,Z,I(B,F,U,Z,O,V))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var S in C)b(_,S,C[S]);return _.join("&")}function b(C,_,S){if(S!=null)if(Array.isArray(S))S.forEach(function(k){b(C,_,k)});else if(s(S))for(var E in S)b(C,_+"["+E+"]",S[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent(S));else S===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,S,E={},k=C.split("&"),I=0,O=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof S!="string"&&!this._isHost(S)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&(S=I(S))}for(var O in this.header)this.header[O]!=null&&this.header.hasOwnProperty(O)&&_.setRequestHeader(O,this.header[O]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send(S!==void 0?S:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,S){var E=new f.Request(C,_);return this._setDefaults(E),S&&E.end(S),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,S){var E=f("GET",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.head=function(C,_,S){var E=f("HEAD",C);return typeof _=="function"&&(S=_,_=null),_&&E.query(_),S&&E.end(S),E},f.options=function(C,_,S){var E=f("OPTIONS",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.del=w,f.delete=w,f.patch=function(C,_,S){var E=f("PATCH",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.post=function(C,_,S){var E=f("POST",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E},f.put=function(C,_,S){var E=f("PUT",C);return typeof _=="function"&&(S=_,_=null),_&&E.send(_),S&&E.end(S),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var Se=te.length-1,_e=1;_e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),Se="";ie.length>1&&(Se=ie[0]+"@",ne=ie[1]);var _e=function(Xe,nt){for(var ft=[],_t=Xe.length;_t--;)ft[_t]=nt(Xe[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return Se+_e}function O(ne){for(var te=[],ie=0,Se=ne.length;ie=55296&&_e<=56319&&ie>1,ne+=S(ne/te);ne>455;Se+=36)ne=S(ne/35);return S(Se+36*ne/(ne+38))},G=function(ne){var te,ie=[],Se=ne.length,_e=0,Xe=128,nt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt=Se&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>S((g-_e)/Et))&&k("overflow"),_e+=kt*Et;var ln=Yt<=nt?1:Yt>=nt+26?26:Yt-nt;if(ktS(g/Bt)&&k("overflow"),Et*=Bt}var Ut=ie.length+1;nt=U(_e-dt,Ut,dt==0),S(_e/Ut)>g-Xe&&k("overflow"),Xe+=S(_e/Ut),_e%=Ut,ie.splice(_e++,0,Xe)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=O(ne)).length,Se=128,_e=0,Xe=72,nt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(nt=(vt=dt.next()).done);nt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!nt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=Se&&leS((g-_e)/oe)&&k("overflow"),_e+=(ln-Se)*oe,Se=ln;var pe=!0,ke=!1,Ee=void 0;try{for(var pt,ye=ne[Symbol.iterator]();!(pe=(pt=ye.next()).done);pe=!0){var ve=pt.value;if(veg&&k("overflow"),ve==Se){for(var Ie=_e,rt=36;;rt+=36){var lt=rt<=Xe?1:rt>=Xe+26?26:rt-Xe;if(Ie>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,Se=ne.length;ie=194&&_e<224){if(Se-ie>=6){var Xe=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&_e)<<6|63&Xe)}else te+=ne.substr(ie,6);ie+=6}else if(_e>=224){if(Se-ie>=9){var nt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&_e)<<12|(63&nt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie(Se){var _e=J(Se);return _e.match(te.UNRESERVED)?_e:Se}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,W).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,W).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,W).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,W).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,W).replace(te.PCT_ENCODED,p)),ne}function j(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],Se=x(ie,2)[1];return Se?Se.split(".").map(j).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],Se=x(ie,3),_e=Se[1],Xe=Se[2];if(_e){for(var nt=_e.toLowerCase().split("::").reverse(),ft=x(nt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(j):[],Et=_t.split(":").map(j),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Bt=Array(kt),Ut=0;Ut1){var Bn=Bt.slice(0,Kt.index),le=Bt.slice(Kt.index+Kt.length);xn=Bn.join(":")+"::"+le.join(":")}else xn=Bt.join(":");return Xe&&(xn+="%"+Xe),xn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function B(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},Se=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var _e=ne.match(D);if(_e){N?(ie.scheme=_e[1],ie.userinfo=_e[3],ie.host=_e[4],ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=_e[7],ie.fragment=_e[8],isNaN(ie.port)&&(ie.port=_e[5])):(ie.scheme=_e[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?_e[3]:void 0,ie.host=ne.indexOf("//")!==-1?_e[4]:void 0,ie.port=parseInt(_e[5],10),ie.path=_e[6]||"",ie.query=ne.indexOf("?")!==-1?_e[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?_e[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_e[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,Se),Se)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Xe=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Xe&&Xe.unicodeSupport)X(ie,Se);else{if(ie.host&&(te.domainHost||Xe&&Xe.domainHost))try{ie.host=V(ie.host.replace(Se.PCT_ENCODED,J).toLowerCase())}catch(nt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+nt}X(ie,b)}Xe&&Xe.parse&&Xe.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,Se=[];return ne.userinfo!==void 0&&(Se.push(ne.userinfo),Se.push("@")),ne.host!==void 0&&Se.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(_e,Xe,nt){return"["+Xe+(nt?"%25"+nt:"")+"]"})),typeof ne.port=="number"&&(Se.push(":"),Se.push(ne.port.toString(10))),Se.length?Se.join(""):void 0}var re=/^\.\.?\//,ce=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,me=/^\/?(?:.|\n)*?(?=\/|$)/;function ue(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(ce))ne=ne.replace(ce,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(me);if(!ie)throw new Error("Unexpected dot segment condition");var Se=ie[0];ne=ne.slice(Se.length),te.push(Se)}return te.join("")}function se(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,Se=[],_e=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(_e&&_e.serialize&&_e.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||_e&&_e.domainHost)try{ne.host=te.iri?Y(ne.host):V(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&(Se.push(ne.scheme),Se.push(":"));var Xe=Z(ne,te);if(Xe!==void 0&&(te.reference!=="suffix"&&Se.push("//"),Se.push(Xe),ne.path&&ne.path.charAt(0)!=="/"&&Se.push("/")),ne.path!==void 0){var nt=ne.path;te.absolutePath||_e&&_e.absolutePath||(nt=ue(nt)),Xe===void 0&&(nt=nt.replace(/^\/\//,"/%2F")),Se.push(nt)}return ne.query!==void 0&&(Se.push("?"),Se.push(ne.query)),ne.fragment!==void 0&&(Se.push("#"),Se.push(ne.fragment)),Se.join("")}function Ce(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],_e={};return Se||(ne=B(se(ne,ie),ie),te=B(se(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(_e.scheme=te.scheme,_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(_e.userinfo=te.userinfo,_e.host=te.host,_e.port=te.port,_e.path=ue(te.path||""),_e.query=te.query):(te.path?(te.path.charAt(0)==="/"?_e.path=ue(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?_e.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:_e.path=te.path:_e.path="/"+te.path,_e.path=ue(_e.path)),_e.query=te.query):(_e.path=ne.path,te.query!==void 0?_e.query=te.query:_e.query=ne.query),_e.userinfo=ne.userinfo,_e.host=ne.host,_e.port=ne.port),_e.scheme=ne.scheme),_e.fragment=te.fragment,_e}function fe(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Ve={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize},De={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+ge+ge+"%"+ge+ge)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+ge+ge)+"|"+u("%"+ge+ge)),$e=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He=new RegExp(Be,"g"),Ye=new RegExp(we,"g"),Me=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',$e),"g"),je=new RegExp(c("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ze=je;function Pe(ne){var te=J(ne);return te.match(He)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,Se=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var _e=!1,Xe={},nt=ie.query.split("&"),ft=0,_t=nt.length;ft<_t;++ft){var vt=nt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}var F4={exports:{}},z4={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -75,18 +75,18 @@ Possible causes: the network is offline, Origin is not allowed by Access-Control * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gu=$;function PB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TB=typeof Object.is=="function"?Object.is:PB,kB=Gu.useState,RB=Gu.useEffect,OB=Gu.useLayoutEffect,DB=Gu.useDebugValue;function MB(e,t){var n=t(),r=kB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return OB(function(){o.value=n,o.getSnapshot=t,Hb(o)&&a({inst:o})},[e,n,t]),RB(function(){return Hb(o)&&a({inst:o}),e(function(){Hb(o)&&a({inst:o})})},[e]),DB(n),n}function Hb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!TB(e,n)}catch{return!0}}function IB(e,t){return t()}var AB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IB:MB;F4.useSyncExternalStore=Gu.useSyncExternalStore!==void 0?Gu.useSyncExternalStore:AB;L4.exports=F4;var NB=L4.exports;const Vs=()=>{},kr=Vs(),Gb=Object,pn=e=>e===kr,Ji=e=>typeof e=="function",Ga=(e,t)=>({...e,...t}),jB=e=>Ji(e.then),Wm=new WeakMap;let LB=0;const Pp=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Gb(e)===e&&!r&&n!=RegExp){if(o=Wm.get(e),o)return o;if(o=++LB+"~",Wm.set(e,o),n==Array){for(o="@",a=0;aSy&&typeof window.requestAnimationFrame!=rS,z4=(e,t)=>{const n=qi.get(e);return[()=>!pn(t)&&e.get(t)||qb,r=>{if(!pn(t)){const o=e.get(t);t in Hm||(Hm[t]=o),n[5](t,Ga(o,r),o||qb)}},n[6],()=>!pn(t)&&t in Hm?Hm[t]:!pn(t)&&e.get(t)||qb]};let nC=!0;const zB=()=>nC,[rC,oC]=Sy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Vs,Vs],VB=()=>{const e=tC&&document.visibilityState;return pn(e)||e!=="hidden"},BB=e=>(tC&&document.addEventListener("visibilitychange",e),rC("focus",e),()=>{tC&&document.removeEventListener("visibilitychange",e),oC("focus",e)}),UB=e=>{const t=()=>{nC=!0,e()},n=()=>{nC=!1};return rC("online",t),rC("offline",n),()=>{oC("online",t),oC("offline",n)}},WB={isOnline:zB,isVisible:VB},HB={initFocus:BB,initReconnect:UB},aC=!M.useId,Tp=!Sy||"Deno"in window,GB=e=>FB()?window.requestAnimationFrame(e):setTimeout(e,1),Gf=Tp?$.useEffect:$.useLayoutEffect,Yb=typeof navigator<"u"&&navigator.connection,Vk=!Tp&&Yb&&(["slow-2g","2g"].includes(Yb.effectiveType)||Yb.saveData),_y=e=>{if(Ji(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Pp(e):"",[e,t]};let qB=0;const kp=()=>++qB,V4=0,B4=1,U4=2,YB=3;var af={__proto__:null,ERROR_REVALIDATE_EVENT:YB,FOCUS_EVENT:V4,MUTATE_EVENT:U4,RECONNECT_EVENT:B4};async function W4(...e){const[t,n,r,o]=e,a=Ga({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Ji(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=_y(m);if(!b)return;const[v,x]=z4(t,b),[g,y,w,C]=qi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](U4).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=kp();y[b]=[k,0];const I=!pn(l),O=v(),F=O.data,U=O._c,G=pn(U)?F:U;if(I&&(l=Ji(l)?l(G,F):l,x({data:l,_c:G})),Ji(S))try{S=S(G)}catch(z){E=z}if(S&&jB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:kr}));if(i&&!E)if(Ji(i)){const z=i(S,G);x({data:z,error:kr,_c:kr})}else x({data:S,error:kr,_c:kr});if(y[b][1]=kp(),Promise.resolve(_()).then(()=>{x({_c:kr})}),E){if(f)throw E;return}return S}}const Bk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},KB=(e,t)=>{if(!qi.has(e)){const n=Ga(HB,t),r={},o=W4.bind(kr,e);let a=Vs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!qi.has(e)&&(qi.set(e,[r,{},{},{},o,l,s]),!Tp)){const u=n.initFocus(setTimeout.bind(kr,Bk.bind(kr,r,V4))),f=n.initReconnect(setTimeout.bind(kr,Bk.bind(kr,r,B4)));a=()=>{u&&u(),f&&f(),qi.delete(e)}}};return c(),[e,o,c,a]}return[e,qi.get(e)[4]]},ZB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},JB=(e,t)=>Pp(e)==Pp(t),[H4,XB]=KB(new Map),QB=Ga({onLoadingSlow:Vs,onSuccess:Vs,onError:Vs,onErrorRetry:ZB,onDiscarded:Vs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vk?5e3:3e3,compare:JB,isPaused:()=>!1,cache:H4,mutate:XB,fallback:{}},WB),eU=(e,t)=>{const n=Ga(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=Ga(o,i))}return n},tU=$.createContext({}),nU="$inf$",G4=Sy&&window.__SWR_DEVTOOLS_USE__,rU=G4?window.__SWR_DEVTOOLS_USE__:[],oU=()=>{G4&&(window.__SWR_DEVTOOLS_REACT__=M)},q4=e=>Ji(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Y4=()=>Ga(QB,$.useContext(tU)),aU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=_y(t),[,,,s]=qi.get(H4);if(i.startsWith(nU))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),iU=rU.concat(aU),sU=e=>function(...n){const r=Y4(),[o,a,i]=q4(n),s=eU(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(iU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},lU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},cU=(e,t)=>(...n)=>{const[r,o,a]=q4(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};oU();const Uk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Kb={dedupe:!0},uU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=qi.get(r),[g,y]=_y(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[O,F,U,G]=z4(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=Ga(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=O(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(O());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=NB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),Z=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:Z&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),J=!!(g&&t&&Z&&B),re=pn(W.isValidating)?J:W.isValidating,ce=pn(W.isLoading)?J:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>aC?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(O().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(O().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),kp()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=kr;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=O().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Ji(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](af.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>W4(r,_.current,...ue),[]);if(Gf(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),Gf(()=>{if(!g)return;const ue=xe.bind(kr,Kb);let se=0;const fe=lU(g,m,(Ve,Ue={})=>{if(Ve==af.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==af.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==af.MUTATE_EVENT)return xe();if(Ve==af.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||Tp?ue():GB(ue)),()=>{C.current=!0,fe()}},[g]),Gf(()=>{let ue;function se(){const fe=Ji(c)?c(O().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!O().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Kb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!aC&&Tp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Uk(se)}if(pn(q)){const se=xe(Kb);pn(N)||(se.status="fulfilled",se.value=!0),Uk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},Ey=sU(uU),_g=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Py=e=>JSON.parse(JSON.stringify(e)),oS=(e,t)=>{e=Py(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];_g(r)&&_g(o)?e[n]=oS(o,r):e[n]=r}return e},K4=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return _g(o)?Py(o):o},dU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=dU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=K4(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:_g(e.definitions)&&(t=oS(t,e.definitions)),ru(Py(e),t)}function fU(){return Ey(["/feedback"],async()=>window.FEEDBACK_ENABLED?window.FEEDBACK_ENABLED==="true":(await fetch(th("/feedback"),{method:"HEAD"})).ok)}function pU(){return Ey(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await Sg(window.CONFIG_SCHEMA);else{const t=await fetch(th("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await Sg(n)}return e==null?null:{schema:e,defaults:Eg(e)}})}function hU(e){return Ey(["/input_schema",e],async([,t])=>{const n=t?`/c/${tS.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await Sg(window.INPUT_SCHEMA);else{const o=await fetch(th(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await Sg(a)}return r==null?null:{schema:r,defaults:Eg(r)}},{keepPreviousData:!0})}/*! + */var qu=$;function TB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kB=typeof Object.is=="function"?Object.is:TB,RB=qu.useState,OB=qu.useEffect,DB=qu.useLayoutEffect,MB=qu.useDebugValue;function IB(e,t){var n=t(),r=RB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return DB(function(){o.value=n,o.getSnapshot=t,Gb(o)&&a({inst:o})},[e,n,t]),OB(function(){return Gb(o)&&a({inst:o}),e(function(){Gb(o)&&a({inst:o})})},[e]),MB(n),n}function Gb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kB(e,n)}catch{return!0}}function AB(e,t){return t()}var NB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?AB:IB;z4.useSyncExternalStore=qu.useSyncExternalStore!==void 0?qu.useSyncExternalStore:NB;F4.exports=z4;var jB=F4.exports;const Vs=()=>{},kr=Vs(),qb=Object,pn=e=>e===kr,Zi=e=>typeof e=="function",Ga=(e,t)=>({...e,...t}),LB=e=>Zi(e.then),Gm=new WeakMap;let FB=0;const Tp=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(qb(e)===e&&!r&&n!=RegExp){if(o=Gm.get(e),o)return o;if(o=++FB+"~",Gm.set(e,o),n==Array){for(o="@",a=0;a_y&&typeof window.requestAnimationFrame!=oS,V4=(e,t)=>{const n=qi.get(e);return[()=>!pn(t)&&e.get(t)||Yb,r=>{if(!pn(t)){const o=e.get(t);t in qm||(qm[t]=o),n[5](t,Ga(o,r),o||Yb)}},n[6],()=>!pn(t)&&t in qm?qm[t]:!pn(t)&&e.get(t)||Yb]};let rC=!0;const VB=()=>rC,[oC,aC]=_y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Vs,Vs],BB=()=>{const e=nC&&document.visibilityState;return pn(e)||e!=="hidden"},UB=e=>(nC&&document.addEventListener("visibilitychange",e),oC("focus",e),()=>{nC&&document.removeEventListener("visibilitychange",e),aC("focus",e)}),WB=e=>{const t=()=>{rC=!0,e()},n=()=>{rC=!1};return oC("online",t),oC("offline",n),()=>{aC("online",t),aC("offline",n)}},HB={isOnline:VB,isVisible:BB},GB={initFocus:UB,initReconnect:WB},iC=!M.useId,kp=!_y||"Deno"in window,qB=e=>zB()?window.requestAnimationFrame(e):setTimeout(e,1),qf=kp?$.useEffect:$.useLayoutEffect,Kb=typeof navigator<"u"&&navigator.connection,Bk=!kp&&Kb&&(["slow-2g","2g"].includes(Kb.effectiveType)||Kb.saveData),Ey=e=>{if(Zi(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Tp(e):"",[e,t]};let YB=0;const Rp=()=>++YB,B4=0,U4=1,W4=2,KB=3;var sf={__proto__:null,ERROR_REVALIDATE_EVENT:KB,FOCUS_EVENT:B4,MUTATE_EVENT:W4,RECONNECT_EVENT:U4};async function H4(...e){const[t,n,r,o]=e,a=Ga({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=m=>typeof s=="function"?s(m):s!==!1,f=a.throwOnError;if(Zi(n)){const m=n,b=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&m(t.get(x)._k)&&b.push(x);return Promise.all(b.map(p))}return p(n);async function p(m){const[b]=Ey(m);if(!b)return;const[v,x]=V4(t,b),[g,y,w,C]=qi.get(t),_=()=>{const z=g[b];return c&&(delete w[b],delete C[b],z&&z[0])?z[0](W4).then(()=>v().data):v().data};if(e.length<3)return _();let S=r,E;const k=Rp();y[b]=[k,0];const I=!pn(l),O=v(),F=O.data,U=O._c,G=pn(U)?F:U;if(I&&(l=Zi(l)?l(G,F):l,x({data:l,_c:G})),Zi(S))try{S=S(G)}catch(z){E=z}if(S&&LB(S))if(S=await S.catch(z=>{E=z}),k!==y[b][0]){if(E)throw E;return S}else E&&I&&u(E)&&(i=!0,x({data:G,_c:kr}));if(i&&!E)if(Zi(i)){const z=i(S,G);x({data:z,error:kr,_c:kr})}else x({data:S,error:kr,_c:kr});if(y[b][1]=Rp(),Promise.resolve(_()).then(()=>{x({_c:kr})}),E){if(f)throw E;return}return S}}const Uk=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},JB=(e,t)=>{if(!qi.has(e)){const n=Ga(GB,t),r={},o=H4.bind(kr,e);let a=Vs;const i={},s=(u,f)=>{const p=i[u]||[];return i[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const m=i[u];if(m)for(const b of m)b(f,p)},c=()=>{if(!qi.has(e)&&(qi.set(e,[r,{},{},{},o,l,s]),!kp)){const u=n.initFocus(setTimeout.bind(kr,Uk.bind(kr,r,B4))),f=n.initReconnect(setTimeout.bind(kr,Uk.bind(kr,r,U4)));a=()=>{u&&u(),f&&f(),qi.delete(e)}}};return c(),[e,o,c,a]}return[e,qi.get(e)[4]]},ZB=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!pn(a)&&i>a||setTimeout(r,s,o)},XB=(e,t)=>Tp(e)==Tp(t),[G4,QB]=JB(new Map),eU=Ga({onLoadingSlow:Vs,onSuccess:Vs,onError:Vs,onErrorRetry:ZB,onDiscarded:Vs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Bk?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Bk?5e3:3e3,compare:XB,isPaused:()=>!1,cache:G4,mutate:QB,fallback:{}},HB),tU=(e,t)=>{const n=Ga(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=Ga(o,i))}return n},nU=$.createContext({}),rU="$inf$",q4=_y&&window.__SWR_DEVTOOLS_USE__,oU=q4?window.__SWR_DEVTOOLS_USE__:[],aU=()=>{q4&&(window.__SWR_DEVTOOLS_REACT__=M)},Y4=e=>Zi(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],K4=()=>Ga(eU,$.useContext(nU)),iU=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=Ey(t),[,,,s]=qi.get(G4);if(i.startsWith(rU))return n(...a);const l=s[i];return pn(l)?n(...a):(delete s[i],l)}),r),sU=oU.concat(iU),lU=e=>function(...n){const r=K4(),[o,a,i]=Y4(n),s=tU(r,i);let l=e;const{use:c}=s,u=(c||[]).concat(sU);for(let f=u.length;f--;)l=u[f](l);return l(o,a||s.fetcher||null,s)},cU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},uU=(e,t)=>(...n)=>{const[r,o,a]=Y4(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};aU();const Wk=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Jb={dedupe:!0},dU=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[m,b,v,x]=qi.get(r),[g,y]=Ey(e),w=$.useRef(!1),C=$.useRef(!1),_=$.useRef(g),S=$.useRef(t),E=$.useRef(n),k=()=>E.current,I=()=>k().isVisible()&&k().isOnline(),[O,F,U,G]=V4(r,g),z=$.useRef({}).current,V=pn(i)?n.fallback[g]:i,Y=(ue,se)=>{for(const Ce in z){const fe=Ce;if(fe==="data"){if(!o(ue[fe],se[fe])&&(!pn(ue[fe])||!o(N,se[fe])))return!1}else if(se[fe]!==ue[fe])return!1}return!0},Q=$.useMemo(()=>{const ue=(()=>!g||!t?!1:pn(s)?k().isPaused()||a?!1:pn(l)?!0:l:s)(),se=Be=>{const ge=Ga(Be);return delete ge._k,ue?{isValidating:!0,isLoading:!0,...ge}:ge},Ce=O(),fe=G(),Ve=se(Ce),Ue=Ce===fe?Ve:se(fe);let De=Ve;return[()=>{const Be=se(O());return Y(Be,De)?(De.data=Be.data,De.isLoading=Be.isLoading,De.isValidating=Be.isValidating,De.error=Be.error,De):(De=Be,Be)},()=>Ue]},[r,g]),W=jB.useSyncExternalStore($.useCallback(ue=>U(g,(se,Ce)=>{Y(Ce,se)||ue()}),[r,g]),Q[0],Q[1]),J=!w.current,X=m[g]&&m[g].length>0,j=W.data,K=pn(j)?V:j,q=W.error,D=$.useRef(K),N=p?pn(j)?D.current:j:K,B=(()=>X&&!pn(q)?!1:J&&!pn(s)?s:k().isPaused()?!1:a?pn(K)?!1:l:pn(K)||l)(),Z=!!(g&&t&&J&&B),re=pn(W.isValidating)?Z:W.isValidating,ce=pn(W.isLoading)?Z:W.isLoading,xe=$.useCallback(async ue=>{const se=S.current;if(!g||!se||C.current||k().isPaused())return!1;let Ce,fe,Ve=!0;const Ue=ue||{},De=!v[g]||!Ue.dedupe,Be=()=>iC?!C.current&&g===_.current&&w.current:g===_.current,ge={isValidating:!1,isLoading:!1},we=()=>{F(ge)},$e=()=>{const Ye=v[g];Ye&&Ye[1]===fe&&delete v[g]},He={isValidating:!0};pn(O().data)&&(He.isLoading=!0);try{if(De&&(F(He),n.loadingTimeout&&pn(O().data)&&setTimeout(()=>{Ve&&Be()&&k().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[se(y),Rp()]),[Ce,fe]=v[g],Ce=await Ce,De&&setTimeout($e,n.dedupingInterval),!v[g]||v[g][1]!==fe)return De&&Be()&&k().onDiscarded(g),!1;ge.error=kr;const Ye=b[g];if(!pn(Ye)&&(fe<=Ye[0]||fe<=Ye[1]||Ye[1]===0))return we(),De&&Be()&&k().onDiscarded(g),!1;const Me=O().data;ge.data=o(Me,Ce)?Me:Ce,De&&Be()&&k().onSuccess(Ce,g,n)}catch(Ye){$e();const Me=k(),{shouldRetryOnError:je}=Me;Me.isPaused()||(ge.error=Ye,De&&Be()&&(Me.onError(Ye,g,Me),(je===!0||Zi(je)&&je(Ye))&&I()&&Me.onErrorRetry(Ye,g,Me,ze=>{const Pe=m[g];Pe&&Pe[0]&&Pe[0](sf.ERROR_REVALIDATE_EVENT,ze)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return Ve=!1,we(),!0},[g,r]),me=$.useCallback((...ue)=>H4(r,_.current,...ue),[]);if(qf(()=>{S.current=t,E.current=n,pn(j)||(D.current=j)}),qf(()=>{if(!g)return;const ue=xe.bind(kr,Jb);let se=0;const fe=cU(g,m,(Ve,Ue={})=>{if(Ve==sf.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>se&&I()&&(se=De+k().focusThrottleInterval,ue())}else if(Ve==sf.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&ue();else{if(Ve==sf.MUTATE_EVENT)return xe();if(Ve==sf.ERROR_REVALIDATE_EVENT)return xe(Ue)}});return C.current=!1,_.current=g,w.current=!0,F({_k:y}),B&&(pn(K)||kp?ue():qB(ue)),()=>{C.current=!0,fe()}},[g]),qf(()=>{let ue;function se(){const fe=Zi(c)?c(O().data):c;fe&&ue!==-1&&(ue=setTimeout(Ce,fe))}function Ce(){!O().error&&(u||k().isVisible())&&(f||k().isOnline())?xe(Jb).then(se):se()}return se(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,f,g]),$.useDebugValue(N),a&&pn(K)&&g){if(!iC&&kp)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,E.current=n,C.current=!1;const ue=x[g];if(!pn(ue)){const se=me(ue);Wk(se)}if(pn(q)){const se=xe(Jb);pn(N)||(se.status="fulfilled",se.value=!0),Wk(se)}else throw q}return{mutate:me,get data(){return z.data=!0,N},get error(){return z.error=!0,q},get isValidating(){return z.isValidating=!0,re},get isLoading(){return z.isLoading=!0,ce}}},Py=lU(dU),Pg=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Ty=e=>JSON.parse(JSON.stringify(e)),aS=(e,t)=>{e=Ty(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];Pg(r)&&Pg(o)?e[n]=aS(o,r):e[n]=r}return e},J4=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return Pg(o)?Ty(o):o},fU=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=fU(e.allOf,t);return ru(n,t)}else if(typeof e.$ref<"u"){const n=J4(e.$ref,t);return ru(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ru(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>ru(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=ru(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:Pg(e.definitions)&&(t=aS(t,e.definitions)),ru(Ty(e),t)}function pU(){return Py(["/feedback"],async()=>window.FEEDBACK_ENABLED?window.FEEDBACK_ENABLED==="true":(await fetch(rh("/feedback"),{method:"HEAD"})).ok)}function hU(){return Py(["/config_schema"],async()=>{let e=null;if(window.CONFIG_SCHEMA)e=await Eg(window.CONFIG_SCHEMA);else{const t=await fetch(rh("/config_schema"));if(!t.ok)throw new Error(await t.text());const n=await t.json();e=await Eg(n)}return e==null?null:{schema:e,defaults:Tg(e)}})}function mU(e){return Py(["/input_schema",e],async([,t])=>{const n=t?`/c/${nS.compressToEncodedURIComponent(JSON.stringify(t))}`:"";let r=null;if(!n&&window.INPUT_SCHEMA)r=await Eg(window.INPUT_SCHEMA);else{const o=await fetch(rh(`${n}/input_schema`));if(!o.ok)throw new Error(await o.text());const a=await o.json();r=await Eg(a)}return r==null?null:{schema:r,defaults:Tg(r)}},{keepPreviousData:!0})}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var mU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vU=Object.prototype.hasOwnProperty;function iC(e,t){return vU.call(e,t)}function sC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Z4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function cC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!lC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);lC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=yU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&cC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=X4([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function X4(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ty(Ho(t),Ho(e),n||!0);else{n=n||Tg;for(var r=0;r=48&&r<=57){t++;continue}return!1}return!0}function Ml(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Z4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function uC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!cC(m))throw new er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);cC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=bU[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=wu[t.op].call(t,c,m,e);if(i.test===!1)throw new er("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&uC(e.value))throw new er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=Q4([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Q4(e,t,n){try{if(!Array.isArray(e))throw new er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)ky(Ho(t),Ho(e),n||!0);else{n=n||Rg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function iS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=sC(t),i=sC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(iC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?iS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function MU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Hk(){return{data:"",event:"",id:"",retry:void 0}}var IU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=dC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=AU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??jU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await RU(E.body,OU(DU(k=>{k?m[Gk]=k:delete m[Gk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function jU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(dC)))throw new Error(`Expected content-type to be ${dC}, Actual: ${t}`)}function LU(e,t){return Ty(e,t,!0,!1).newDocument}function FU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await NU(th("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=LU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},openWhenHidden:!0,onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const Q4=$.createContext(null);function zU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function e3(e,t){const n=$.useContext(Q4),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>VU(n,t))}function is(...e){return $.useCallback(t3(...e),e)}function ky(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,BU(o,...t)]}function BU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const fC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},UU=cp["useId".toString()]||(()=>{});let WU=0;function Nv(e){const[t,n]=$.useState(UU());return fC(()=>{e||n(r=>r??String(WU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function nh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function HU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Op=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(qU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(pC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(pC,T({},r,{ref:t}),n)});Op.displayName="Slot";const pC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...YU(r,n.props),ref:t?t3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});pC.displayName="SlotClone";const GU=({children:e})=>$.createElement($.Fragment,null,e);function qU(e){return $.isValidElement(e)&&e.type===GU}function YU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const KU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zo=KU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Op:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ZU(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}function JU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const hC="dismissableLayer.update",XU="dismissableLayer.pointerDownOutside",QU="dismissableLayer.focusOutside";let qk;const eW=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tW=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(eW),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=is(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=nW(k=>{const I=k.target,O=[...u.branches].some(F=>F.contains(I));!_||O||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=rW(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return JU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Yk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Yk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(hC,k),()=>document.removeEventListener(hC,k)},[]),$.createElement(Zo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:io(e.onFocusCapture,E.onFocusCapture),onBlurCapture:io(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:io(e.onPointerDownCapture,S.onPointerDownCapture)}))});function nW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){n3(XU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&n3(QU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yk(){const e=new CustomEvent(hC);document.dispatchEvent(e)}function n3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ZU(o,a):o.dispatchEvent(a)}const Zb="focusScope.autoFocusOnMount",Jb="focusScope.autoFocusOnUnmount",Kk={bubbles:!1,cancelable:!0},oW=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=is(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Ds(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Ds(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Ds(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Jk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Zb,Kk);s.addEventListener(Zb,c),s.dispatchEvent(g),g.defaultPrevented||(aW(uW(r3(s)),{select:!0}),document.activeElement===v&&Ds(s))}return()=>{s.removeEventListener(Zb,c),setTimeout(()=>{const g=new CustomEvent(Jb,Kk);s.addEventListener(Jb,u),s.dispatchEvent(g),g.defaultPrevented||Ds(v??document.body,{select:!0}),s.removeEventListener(Jb,u),Jk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=iW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ds(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ds(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Zo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function aW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ds(r,{select:t}),document.activeElement!==n)return}function iW(e){const t=r3(e),n=Zk(t,e),r=Zk(t.reverse(),e);return[n,r]}function r3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zk(e,t){for(const n of e)if(!sW(n,{upTo:t}))return n}function sW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function lW(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lW(e)&&t&&e.select()}}const Jk=cW();function cW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xk(e,t),e.unshift(t)},remove(t){var n;e=Xk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Xk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function uW(e){return e.filter(t=>t.tagName!=="A")}const dW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Rf.createPortal($.createElement(Zo.div,T({},o,{ref:t})),r):null});function fW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Ry=e=>{const{present:t,children:n}=e,r=pW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=is(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};Ry.displayName="Presence";function pW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=fW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Gm(r.current);a.current=s==="mounted"?c:"none"},[s]),fC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Gm(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fC(()=>{if(t){const c=f=>{const m=Gm(r.current).includes(f.animationName);f.target===t&&m&&cd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Gm(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Gm(e){return(e==null?void 0:e.animationName)||"none"}let Xb=0;function hW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qk()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Qk()),Xb++,()=>{Xb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Xb--}},[])}function Qk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var hi=function(){return hi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return OW;var t=DW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IW=s3(),AW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(vW,` { + */var iS=new WeakMap,CU=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),$U=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function SU(e){return iS.get(e)}function _U(e,t){return e.observers.get(t)}function EU(e,t){e.observers.delete(t.callback)}function PU(e,t){t.unobserve()}function TU(e,t){var n=[],r,o=SU(e);if(!o)o=new CU(e),iS.set(e,o);else{var a=_U(o,t);r=a&&a.observer}if(r)return r;if(r={},o.value=Ho(e),t){r.callback=t,r.next=null;var i=function(){dC(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=n,r.object=e,r.unobserve=function(){dC(r),clearTimeout(r.next),EU(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new $U(t,r)),r}function dC(e,t){t===void 0&&(t=!1);var n=iS.get(e.object);sS(n.value,e.object,e.patches,"",t),e.patches.length&&ky(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function sS(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=lC(t),i=lC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(sC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?sS(u,f,n,r+"/"+Ml(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"replace",path:r+"/"+Ml(c),value:Ho(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ml(c),value:Ho(u)}),n.push({op:"remove",path:r+"/"+Ml(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function IU(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Gk(){return{data:"",event:"",id:"",retry:void 0}}var AU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=fC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=NU,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??LU;async function _(){var S;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await OU(E.body,DU(MU(k=>{k?m[qk]=k:delete m[qk]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function LU(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(fC)))throw new Error(`Expected content-type to be ${fC}, Actual: ${t}`)}function FU(e,t){return ky(e,t,!0,!1).newDocument}function zU(e={}){const[t,n]=$.useState(null),[r,o]=$.useState(null),a=$.useRef(e.onStart);a.current=e.onStart;const i=$.useRef(e.onSuccess);i.current=e.onSuccess;const s=$.useRef(e.onError);s.current=e.onError;const l=$.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await jU(rh("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=FU(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},openWhenHidden:!0,onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=$.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const e3=$.createContext(null);function VU(){const e=$.useRef({onStart:[],onSuccess:[],onError:[]});return{context:e,callbacks:{onStart(...n){for(const r of e.current.onStart)r(...n)},onSuccess(...n){for(const r of e.current.onSuccess)r(...n)},onError(...n){for(const r of e.current.onError)r(...n)}}}}function t3(e,t){const n=$.useContext(e3),r=$.useRef(t);r.current=t,$.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>BU(n,t))}function is(...e){return $.useCallback(n3(...e),e)}function Ry(e,t=[]){let n=[];function r(a,i){const s=$.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=$.useMemo(()=>b,Object.values(b));return $.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=$.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>$.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,UU(o,...t)]}function UU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const pC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},WU=up["useId".toString()]||(()=>{});let HU=0;function Lv(e){const[t,n]=$.useState(WU());return pC(()=>{e||n(r=>r??String(HU++))},[e]),e||(t?`radix-${t}`:"")}function rl(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function oh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=GU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=rl(n),l=$.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function GU({defaultProp:e,onChange:t}){const n=$.useState(e),[r]=n,o=$.useRef(r),a=rl(t);return $.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Dp=$.forwardRef((e,t)=>{const{children:n,...r}=e,o=$.Children.toArray(n),a=o.find(YU);if(a){const i=a.props.children,s=o.map(l=>l===a?$.Children.count(i)>1?$.Children.only(null):$.isValidElement(i)?i.props.children:null:l);return $.createElement(hC,T({},r,{ref:t}),$.isValidElement(i)?$.cloneElement(i,void 0,s):null)}return $.createElement(hC,T({},r,{ref:t}),n)});Dp.displayName="Slot";const hC=$.forwardRef((e,t)=>{const{children:n,...r}=e;return $.isValidElement(n)?$.cloneElement(n,{...KU(r,n.props),ref:t?n3(t,n.ref):n.ref}):$.Children.count(n)>1?$.Children.only(null):null});hC.displayName="SlotClone";const qU=({children:e})=>$.createElement($.Fragment,null,e);function YU(e){return $.isValidElement(e)&&e.type===qU}function KU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const JU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jo=JU.reduce((e,t)=>{const n=$.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Dp:t;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ZU(e,t){e&&ud.flushSync(()=>e.dispatchEvent(t))}function XU(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e);$.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const mC="dismissableLayer.update",QU="dismissableLayer.pointerDownOutside",eW="dismissableLayer.focusOutside";let Yk;const tW=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nW=$.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=$.useContext(tW),[f,p]=$.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=$.useState({}),v=is(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,S=rW(k=>{const I=k.target,O=[...u.branches].some(F=>F.contains(I));!_||O||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=oW(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return XU(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),$.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yk=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Kk(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yk)}},[f,m,r,u]),$.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Kk())},[f,u]),$.useEffect(()=>{const k=()=>b({});return document.addEventListener(mC,k),()=>document.removeEventListener(mC,k)},[]),$.createElement(Jo.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:io(e.onFocusCapture,E.onFocusCapture),onBlurCapture:io(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:io(e.onPointerDownCapture,S.onPointerDownCapture)}))});function rW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1),o=$.useRef(()=>{});return $.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){r3(QU,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function oW(e,t=globalThis==null?void 0:globalThis.document){const n=rl(e),r=$.useRef(!1);return $.useEffect(()=>{const o=a=>{a.target&&!r.current&&r3(eW,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kk(){const e=new CustomEvent(mC);document.dispatchEvent(e)}function r3(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ZU(o,a):o.dispatchEvent(a)}const Zb="focusScope.autoFocusOnMount",Xb="focusScope.autoFocusOnUnmount",Jk={bubbles:!1,cancelable:!0},aW=$.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=$.useState(null),c=rl(o),u=rl(a),f=$.useRef(null),p=is(t,v=>l(v)),m=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(r){let y=function(S){if(m.paused||!s)return;const E=S.target;s.contains(E)?f.current=E:Ds(f.current,{select:!0})},w=function(S){if(m.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Ds(f.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Ds(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),$.useEffect(()=>{if(s){Xk.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Zb,Jk);s.addEventListener(Zb,c),s.dispatchEvent(g),g.defaultPrevented||(iW(dW(o3(s)),{select:!0}),document.activeElement===v&&Ds(s))}return()=>{s.removeEventListener(Zb,c),setTimeout(()=>{const g=new CustomEvent(Xb,Jk);s.addEventListener(Xb,u),s.dispatchEvent(g),g.defaultPrevented||Ds(v??document.body,{select:!0}),s.removeEventListener(Xb,u),Xk.remove(m)},0)}}},[s,c,u,m]);const b=$.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=sW(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ds(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ds(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return $.createElement(Jo.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function iW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ds(r,{select:t}),document.activeElement!==n)return}function sW(e){const t=o3(e),n=Zk(t,e),r=Zk(t.reverse(),e);return[n,r]}function o3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zk(e,t){for(const n of e)if(!lW(n,{upTo:t}))return n}function lW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cW(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cW(e)&&t&&e.select()}}const Xk=uW();function uW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Qk(e,t),e.unshift(t)},remove(t){var n;e=Qk(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Qk(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dW(e){return e.filter(t=>t.tagName!=="A")}const fW=$.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Of.createPortal($.createElement(Jo.div,T({},o,{ref:t})),r):null});function pW(e,t){return $.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Oy=e=>{const{present:t,children:n}=e,r=hW(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),a=is(r.ref,o.ref);return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:a}):null};Oy.displayName="Presence";function hW(e){const[t,n]=$.useState(),r=$.useRef({}),o=$.useRef(e),a=$.useRef("none"),i=e?"mounted":"unmounted",[s,l]=pW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const c=Ym(r.current);a.current=s==="mounted"?c:"none"},[s]),pC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Ym(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pC(()=>{if(t){const c=f=>{const m=Ym(r.current).includes(f.animationName);f.target===t&&m&&ud.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Ym(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:$.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ym(e){return(e==null?void 0:e.animationName)||"none"}let Qb=0;function mW(){$.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:eR()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:eR()),Qb++,()=>{Qb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Qb--}},[])}function eR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var hi=function(){return hi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return DW;var t=MW(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},AW=l3(),NW=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(gW,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } @@ -103,30 +103,30 @@ Possible causes: the network is offline, Origin is not allowed by Access-Control `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` } - .`).concat(jv,` { + .`).concat(Fv,` { right: `).concat(s,"px ").concat(r,`; } - .`).concat(Lv,` { + .`).concat(zv,` { margin-right: `).concat(s,"px ").concat(r,`; } - .`).concat(jv," .").concat(jv,` { + .`).concat(Fv," .").concat(Fv,` { right: 0 `).concat(r,`; } - .`).concat(Lv," .").concat(Lv,` { + .`).concat(zv," .").concat(zv,` { margin-right: 0 `).concat(r,`; } body { - `).concat(gW,": ").concat(s,`px; + `).concat(yW,": ").concat(s,`px; } -`)},NW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return MW(o)},[o]);return $.createElement(IW,{styles:AW(a,!t,o,n?"":"!important")})},mC=!1;if(typeof window<"u")try{var qm=Object.defineProperty({},"passive",{get:function(){return mC=!0,!0}});window.addEventListener("test",qm,qm),window.removeEventListener("test",qm,qm)}catch{mC=!1}var Uc=mC?{passive:!1}:!1,jW=function(e){return e.tagName==="TEXTAREA"},l3=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jW(e)&&n[t]==="visible")},LW=function(e){return l3(e,"overflowY")},FW=function(e){return l3(e,"overflowX")},tR=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=c3(e,n);if(r){var o=u3(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},zW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},VW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},c3=function(e,t){return e==="v"?LW(t):FW(t)},u3=function(e,t){return e==="v"?zW(t):VW(t)},BW=function(e,t){return e==="h"&&t==="rtl"?-1:1},UW=function(e,t,n,r,o){var a=BW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=u3(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&c3(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Ym=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nR=function(e){return[e.deltaX,e.deltaY]},rR=function(e){return e&&"current"in e?e.current:e},WW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},HW=function(e){return` +`)},jW=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=$.useMemo(function(){return IW(o)},[o]);return $.createElement(AW,{styles:NW(a,!t,o,n?"":"!important")})},vC=!1;if(typeof window<"u")try{var Km=Object.defineProperty({},"passive",{get:function(){return vC=!0,!0}});window.addEventListener("test",Km,Km),window.removeEventListener("test",Km,Km)}catch{vC=!1}var Uc=vC?{passive:!1}:!1,LW=function(e){return e.tagName==="TEXTAREA"},c3=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!LW(e)&&n[t]==="visible")},FW=function(e){return c3(e,"overflowY")},zW=function(e){return c3(e,"overflowX")},nR=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=u3(e,n);if(r){var o=d3(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},VW=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},BW=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},u3=function(e,t){return e==="v"?FW(t):zW(t)},d3=function(e,t){return e==="v"?VW(t):BW(t)},UW=function(e,t){return e==="h"&&t==="rtl"?-1:1},WW=function(e,t,n,r,o){var a=UW(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=d3(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&u3(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},Jm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rR=function(e){return[e.deltaX,e.deltaY]},oR=function(e){return e&&"current"in e?e.current:e},HW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GW=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},GW=0,Wc=[];function qW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(GW++)[0],a=$.useState(function(){return s3()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=mW([e.lockRef.current],(e.shards||[]).map(rR),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Ym(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=tR(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=tR(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return UW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?nR(x):Ym(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&WW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(rR).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Ym(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,nR(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Ym(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:HW(o)}):null,m?$.createElement(NW,{gapMode:"margin"}):null)}const YW=SW(i3,qW);var d3=$.forwardRef(function(e,t){return $.createElement(Oy,hi({},e,{ref:t,sideCar:YW}))});d3.classNames=Oy.classNames;const KW=d3;var ZW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Km=new WeakMap,Zm={},tx=0,f3=function(e){return e&&(e.host||f3(e.parentNode))},JW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=f3(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},XW=function(e,t,n,r){var o=JW(t,Array.isArray(e)?e:[e]);Zm[n]||(Zm[n]=new WeakMap);var a=Zm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Km.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),tx++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Km.has(f)||f.removeAttribute(r),Km.delete(f)),m||f.removeAttribute(n)}),tx--,tx||(Hc=new WeakMap,Hc=new WeakMap,Km=new WeakMap,Zm={})}},QW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||ZW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),XW(r,o,n,"aria-hidden")):function(){return null}};const p3="Dialog",[h3,QFe]=ky(p3),[eH,Xa]=h3(p3),tH=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=nh({prop:r,defaultProp:o,onChange:a});return $.createElement(eH,{scope:t,triggerRef:s,contentRef:l,contentId:Nv(),titleId:Nv(),descriptionId:Nv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},nH="DialogTrigger",rH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(nH,n),a=is(t,o.triggerRef);return $.createElement(Zo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sS(o.open)},r,{ref:a,onClick:io(e.onClick,o.onOpenToggle)}))}),m3="DialogPortal",[oH,v3]=h3(m3,{forceMount:void 0}),aH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Xa(m3,t);return $.createElement(oH,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(Ry,{present:n||a.open},$.createElement(dW,{asChild:!0,container:o},i))))},vC="DialogOverlay",iH=$.forwardRef((e,t)=>{const n=v3(vC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(vC,e.__scopeDialog);return a.modal?$.createElement(Ry,{present:r||a.open},$.createElement(sH,T({},o,{ref:t}))):null}),sH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(vC,n);return $.createElement(KW,{as:Op,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Zo.div,T({"data-state":sS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Dp="DialogContent",lH=$.forwardRef((e,t)=>{const n=v3(Dp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(Dp,e.__scopeDialog);return $.createElement(Ry,{present:r||a.open},a.modal?$.createElement(cH,T({},o,{ref:t})):$.createElement(uH,T({},o,{ref:t})))}),cH=$.forwardRef((e,t)=>{const n=Xa(Dp,e.__scopeDialog),r=$.useRef(null),o=is(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return QW(a)},[]),$.createElement(g3,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:io(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:io(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:io(e.onFocusOutside,a=>a.preventDefault())}))}),uH=$.forwardRef((e,t)=>{const n=Xa(Dp,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(g3,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),g3=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Xa(Dp,n),l=$.useRef(null),c=is(t,l);return hW(),$.createElement($.Fragment,null,$.createElement(oW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(tW,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),dH="DialogTitle",fH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(dH,n);return $.createElement(Zo.h2,T({id:o.titleId},r,{ref:t}))}),pH="DialogDescription",hH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(pH,n);return $.createElement(Zo.p,T({id:o.descriptionId},r,{ref:t}))}),mH="DialogClose",vH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(mH,n);return $.createElement(Zo.button,T({type:"button"},r,{ref:t,onClick:io(e.onClick,()=>o.onOpenChange(!1))}))});function sS(e){return e?"open":"closed"}const gH=tH,yH=rH,bH=aH,xH=iH,wH=lH,CH=fH,$H=hH,SH=vH;var y3=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lS=()=>M.useContext(y3);function _H(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}_H(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var EH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function gC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function PH(){return cS(/^Mac/)}function TH(){return cS(/^iPhone/)}function kH(){return cS(/^iPad/)||PH()&&navigator.maxTouchPoints>1}function b3(){return TH()||kH()}function cS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var nx=typeof document<"u"&&window.visualViewport;function oR(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function x3(e){for(oR(e)&&(e=e.parentElement);e&&!oR(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var RH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Jm=0,rx;function OH(e={}){let{isDisabled:t}=e;EH(()=>{if(!t)return Jm++,Jm===1&&(b3()?rx=MH():rx=DH()),()=>{Jm--,Jm===0&&rx()}},[t])}function DH(){return gC(kg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),kg(document.documentElement,"overflow","hidden"))}function MH(){let e,t=0,n=f=>{e=x3(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Rg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Rg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",nx&&(nx.height{aR(p)}):nx.addEventListener("resize",()=>aR(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=gC(kg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),kg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=gC(sf(document,"touchstart",n,{passive:!1,capture:!0}),sf(document,"touchmove",r,{passive:!1,capture:!0}),sf(document,"touchend",o,{passive:!1,capture:!0}),sf(document,"focus",a,!0),sf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function kg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function sf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function aR(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=x3(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Rg(e){return e instanceof HTMLInputElement&&!RH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function IH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function AH(...e){return t=>e.forEach(n=>IH(n,t))}function w3(...e){return $.useCallback(AH(...e),e)}var Ps=null;function NH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Ps===null&&e){Ps={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Ps!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Ps.position,document.body.style.top=Ps.top,document.body.style.left=Ps.left,document.body.style.height=Ps.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Ps=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var C3=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&C3.set(e,r)}function Xm(e,t){if(!e||!(e instanceof HTMLElement))return;let n=C3.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Qm(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function jH(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},$3=.4;function S3(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function LH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=S3(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function FH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=LH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=S3(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function zH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=FH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,O)=>typeof I!="number"||typeof O!="number"?I:Math.abs(O-_)$3&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var VH=.25,BH=500,iR=8,El=16,sR=26;function _3({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=VH,scrollLockTimeout:c=BH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[O,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),Z=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),J=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=zH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:J});OH({isDisabled:!y||O||!v||U||!C});let{restorePositionSetting:Ve}=NH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-sR)/window.innerWidth}function De(Pe){var Te;!u&&!i||O||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,b3()&&window.addEventListener("touchend",()=>Z.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?Qm(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(O){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!Z.current&&!Be(Pe.target,it))return;if(Z.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=jH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Rg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-sR),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{Xm(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Qm(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${iR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function He(Pe){if(!O||!D.current)return;Z.current&&Rg(Pe.target)&&Pe.target.blur(),Z.current=!1,F(!1),Q.current=new Date;let Te=Qm(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>$3){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${iR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(Xm(Te,"overflow"),Xm(Te,"transform"),Xm(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${Qm(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(gH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(y3.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var E3=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lS(),c=w3(n,r),u=o&&o.length>0;return M.createElement(xH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});E3.displayName="Drawer.Overlay";var P3=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lS(),y=w3(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(wH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});P3.displayName="Drawer.Content";function UH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(_3,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var lf={Root:_3,NestedRoot:UH,Content:P3,Overlay:E3,Trigger:yH,Portal:bH,Close:SH,Title:CH,Description:$H};const T3=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),WH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),HH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),GH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ox=2e3;function ax(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),R.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?R.jsx(GH,{}):R.jsx(HH,{})})}function qH(e){const t=$.useMemo(()=>tS.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${nS(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +`)},qW=0,Wc=[];function YW(e){var t=$.useRef([]),n=$.useRef([0,0]),r=$.useRef(),o=$.useState(qW++)[0],a=$.useState(function(){return l3()})[0],i=$.useRef(e);$.useEffect(function(){i.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=vW([e.lockRef.current],(e.shards||[]).map(oR),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=$.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=Jm(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,S=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&S.type==="range")return!1;var k=nR(E,S);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=nR(E,S)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return WW(I,x,v,I==="h"?w:C,!0)},[]),l=$.useCallback(function(v){var x=v;if(!(!Wc.length||Wc[Wc.length-1]!==a)){var g="deltaY"in x?rR(x):Jm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&HW(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(oR).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=$.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=$.useCallback(function(v){n.current=Jm(v),r.current=void 0},[]),f=$.useCallback(function(v){c(v.type,rR(v),v.target,s(v,e.lockRef.current))},[]),p=$.useCallback(function(v){c(v.type,Jm(v),v.target,s(v,e.lockRef.current))},[]);$.useEffect(function(){return Wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Uc),document.addEventListener("touchmove",l,Uc),document.addEventListener("touchstart",u,Uc),function(){Wc=Wc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Uc),document.removeEventListener("touchmove",l,Uc),document.removeEventListener("touchstart",u,Uc)}},[]);var m=e.removeScrollBar,b=e.inert;return $.createElement($.Fragment,null,b?$.createElement(a,{styles:GW(o)}):null,m?$.createElement(jW,{gapMode:"margin"}):null)}const KW=_W(s3,YW);var f3=$.forwardRef(function(e,t){return $.createElement(Dy,hi({},e,{ref:t,sideCar:KW}))});f3.classNames=Dy.classNames;const JW=f3;var ZW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hc=new WeakMap,Zm=new WeakMap,Xm={},nx=0,p3=function(e){return e&&(e.host||p3(e.parentNode))},XW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=p3(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},QW=function(e,t,n,r){var o=XW(t,Array.isArray(e)?e:[e]);Xm[n]||(Xm[n]=new WeakMap);var a=Xm[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Hc.get(p)||0)+1,x=(a.get(p)||0)+1;Hc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&Zm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),nx++,function(){i.forEach(function(f){var p=Hc.get(f)-1,m=a.get(f)-1;Hc.set(f,p),a.set(f,m),p||(Zm.has(f)||f.removeAttribute(r),Zm.delete(f)),m||f.removeAttribute(n)}),nx--,nx||(Hc=new WeakMap,Hc=new WeakMap,Zm=new WeakMap,Xm={})}},eH=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||ZW(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),QW(r,o,n,"aria-hidden")):function(){return null}};const h3="Dialog",[m3,t7e]=Ry(h3),[tH,Xa]=m3(h3),nH=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=$.useRef(null),l=$.useRef(null),[c=!1,u]=oh({prop:r,defaultProp:o,onChange:a});return $.createElement(tH,{scope:t,triggerRef:s,contentRef:l,contentId:Lv(),titleId:Lv(),descriptionId:Lv(),open:c,onOpenChange:u,onOpenToggle:$.useCallback(()=>u(f=>!f),[u]),modal:i},n)},rH="DialogTrigger",oH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(rH,n),a=is(t,o.triggerRef);return $.createElement(Jo.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lS(o.open)},r,{ref:a,onClick:io(e.onClick,o.onOpenToggle)}))}),v3="DialogPortal",[aH,g3]=m3(v3,{forceMount:void 0}),iH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Xa(v3,t);return $.createElement(aH,{scope:t,forceMount:n},$.Children.map(r,i=>$.createElement(Oy,{present:n||a.open},$.createElement(fW,{asChild:!0,container:o},i))))},gC="DialogOverlay",sH=$.forwardRef((e,t)=>{const n=g3(gC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(gC,e.__scopeDialog);return a.modal?$.createElement(Oy,{present:r||a.open},$.createElement(lH,T({},o,{ref:t}))):null}),lH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(gC,n);return $.createElement(JW,{as:Dp,allowPinchZoom:!0,shards:[o.contentRef]},$.createElement(Jo.div,T({"data-state":lS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Mp="DialogContent",cH=$.forwardRef((e,t)=>{const n=g3(Mp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xa(Mp,e.__scopeDialog);return $.createElement(Oy,{present:r||a.open},a.modal?$.createElement(uH,T({},o,{ref:t})):$.createElement(dH,T({},o,{ref:t})))}),uH=$.forwardRef((e,t)=>{const n=Xa(Mp,e.__scopeDialog),r=$.useRef(null),o=is(t,n.contentRef,r);return $.useEffect(()=>{const a=r.current;if(a)return eH(a)},[]),$.createElement(y3,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:io(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:io(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:io(e.onFocusOutside,a=>a.preventDefault())}))}),dH=$.forwardRef((e,t)=>{const n=Xa(Mp,e.__scopeDialog),r=$.useRef(!1),o=$.useRef(!1);return $.createElement(y3,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),y3=$.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Xa(Mp,n),l=$.useRef(null),c=is(t,l);return mW(),$.createElement($.Fragment,null,$.createElement(aW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},$.createElement(nW,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":lS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),fH="DialogTitle",pH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(fH,n);return $.createElement(Jo.h2,T({id:o.titleId},r,{ref:t}))}),hH="DialogDescription",mH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(hH,n);return $.createElement(Jo.p,T({id:o.descriptionId},r,{ref:t}))}),vH="DialogClose",gH=$.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xa(vH,n);return $.createElement(Jo.button,T({type:"button"},r,{ref:t,onClick:io(e.onClick,()=>o.onOpenChange(!1))}))});function lS(e){return e?"open":"closed"}const yH=nH,bH=oH,xH=iH,wH=sH,CH=cH,$H=pH,SH=mH,_H=gH;var b3=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),cS=()=>M.useContext(b3);function EH(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}EH(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var PH=typeof window<"u"?$.useLayoutEffect:$.useEffect;function yC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function TH(){return uS(/^Mac/)}function kH(){return uS(/^iPhone/)}function RH(){return uS(/^iPad/)||TH()&&navigator.maxTouchPoints>1}function x3(){return kH()||RH()}function uS(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var rx=typeof document<"u"&&window.visualViewport;function aR(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function w3(e){for(aR(e)&&(e=e.parentElement);e&&!aR(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var OH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Qm=0,ox;function DH(e={}){let{isDisabled:t}=e;PH(()=>{if(!t)return Qm++,Qm===1&&(x3()?ox=IH():ox=MH()),()=>{Qm--,Qm===0&&ox()}},[t])}function MH(){return yC(Og(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Og(document.documentElement,"overflow","hidden"))}function IH(){let e,t=0,n=f=>{e=w3(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Dg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Dg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",rx&&(rx.height{iR(p)}):rx.addEventListener("resize",()=>iR(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=yC(Og(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Og(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=yC(lf(document,"touchstart",n,{passive:!1,capture:!0}),lf(document,"touchmove",r,{passive:!1,capture:!0}),lf(document,"touchend",o,{passive:!1,capture:!0}),lf(document,"focus",a,!0),lf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Og(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function lf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function iR(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=w3(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Dg(e){return e instanceof HTMLInputElement&&!OH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function AH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function NH(...e){return t=>e.forEach(n=>AH(n,t))}function C3(...e){return $.useCallback(NH(...e),e)}var Ps=null;function jH({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(Ps===null&&e){Ps={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Ps!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Ps.position,document.body.style.top=Ps.top,document.body.style.left=Ps.left,document.body.style.height=Ps.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Ps=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var $3=new WeakMap;function Gn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&$3.set(e,r)}function ev(e,t){if(!e||!(e instanceof HTMLElement))return;let n=$3.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function tv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function LH(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},S3=.4;function _3(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function FH({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=_3(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function zH({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=FH({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=_3(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function VH({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=zH({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",S=0;_&&(S=parseInt(w,10));let E=_?S:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Gn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,S=f===a-1,E=f===0;if(S&&Gn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,O)=>typeof I!="number"||typeof O!="number"?I:Math.abs(O-_)S3&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Gn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,S=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs(S);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var BH=.25,UH=500,sR=8,El=16,lR=26;function E3({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=BH,scrollLockTimeout:c=UH,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[S,E]=M.useState(!1),[k,I]=M.useState(!1),[O,F]=M.useState(!1),[U,G]=M.useState(!1),z=M.useRef(null),V=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),W=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),B=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ue.length-1&&(V.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ce,setActiveSnapPoint:xe,onRelease:me,snapPointsOffset:ue,onDrag:se,shouldFade:Ce,getPercentageDragged:fe}=VH({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});DH({isDisabled:!y||O||!v||U||!C});let{restorePositionSetting:Ve}=jH({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-lR)/window.innerWidth}function De(Pe){var Te;!u&&!i||O||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,x3()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),j.current=Pe.clientY)}function Be(Pe,Te){var it;let ct=Pe,gt=new Date,Le=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?tv(D.current):null;if(V.current&>.getTime()-V.current.getTime()<500)return!1;if(ne>0)return!0;if(Le&&Le.length>0)return!1;if(W.current&>.getTime()-W.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return W.current=new Date,!1;if(ct.scrollTop!==0)return W.current=new Date,!1}ct=ct.parentNode}return!0}function ge(Pe){if(O){let Te=j.current-Pe.clientY,it=Te>0;if(i&&ce===0&&!u||!J.current&&!Be(Pe.target,it))return;if(J.current=!0,Gn(D.current,{transition:"none"}),Gn(z.current,{transition:"none"}),i&&se({draggedDistance:Te}),Te>0&&!i){let ie=LH(Te);Gn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Le=ct/N.current,ne=fe(ct,it);ne!==null&&(Le=ne);let te=1-Le;if((Ce||f&&ce===f-1)&&(o==null||o(Pe,Le),Gn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Le*(1-Ue()),1),Se=8-Le*8,_e=Math.max(0,14-Le*14);Gn(gt,{borderRadius:`${Se}px`,transform:`scale(${ie}) translate3d(0, ${_e}px, 0)`,transition:"none"},!0)}i||Gn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{Ye(!1),Ve()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Dg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Le=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;B.current||(B.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Le)>60&&(K.current=!K.current),i&&i.length>0&&ue&&ce){let ie=ue[ce]||0;Le+=ie}if(q.current=Le,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,Se=ie;ie>gt&&(Se=gt-lR),b?D.current.style.height=`${ie-Math.max(Le,0)}px`:D.current.style.height=`${Math.max(Se,gt-te)}px`}else D.current.style.height=`${B.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Le,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[ce,i,ue]);function we(){D.current&&(x==null||x(),D.current&&(Gn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Ye(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{ev(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function $e(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=tv(D.current);Gn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Gn(z.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Gn(Pe,{borderRadius:`${sR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function He(Pe){if(!O||!D.current)return;J.current&&Dg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=tv(D.current);if(!Be(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=j.current-it,Le=Math.abs(gt)/ct;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){me({draggedDistance:gt,closeDrawer:we,velocity:Le});return}if(gt>0){$e(),a==null||a(Pe,!0);return}if(Le>S3){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),$e()}M.useEffect(()=>{y&&(V.current=new Date,Ye(!0))},[y]);function Ye(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Gn(document.body,{background:"black"},!0),Gn(Te,{borderRadius:`${sR}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(ev(Te,"overflow"),ev(Te,"transform"),ev(Te,"borderRadius"),Gn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Me(Pe){let Te=Pe?(window.innerWidth-El)/window.innerWidth:1,it=Pe?-El:0;X.current&&window.clearTimeout(X.current),Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Gn(D.current,{transition:"none",transform:`translate3d(0, ${tv(D.current)}px, 0)`})},500))}function je(Pe,Te){if(Te<0)return;let it=(window.innerWidth-El)/window.innerWidth,ct=it+Te*(1-it),gt=-El+Te*El;Gn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function ze(Pe,Te){let it=Te?(window.innerWidth-El)/window.innerWidth:1,ct=Te?-El:0;Te&&Gn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(yH,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(b3.Provider,{value:{visible:S,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:z,scaleBackground:Ye,onPress:De,setVisible:E,onRelease:He,onDrag:ge,dismissible:u,isOpen:y,shouldFade:Ce,closeDrawer:we,onNestedDrag:je,onNestedOpenChange:Me,onNestedRelease:ze,keyboardIsOpen:K,modal:v,snapPointsOffset:ue}},n))}var P3=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=cS(),c=C3(n,r),u=o&&o.length>0;return M.createElement(wH,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});P3.displayName="Drawer.Overlay";var T3=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=cS(),y=C3(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(CH,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});T3.displayName="Drawer.Content";function WH({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=cS();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(E3,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var cf={Root:E3,NestedRoot:WH,Content:T3,Overlay:P3,Trigger:bH,Portal:xH,Close:_H,Title:$H,Description:SH};const k3=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),HH=e=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),GH=e=>$.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),qH=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),ax=2e3;function ix(e){const[t,n]=$.useState(!1),r=$.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return $.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),R.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?R.jsx(qH,{}):R.jsx(GH,{})})}function YH(e){const t=$.useMemo(()=>nS.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${rS(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` from langserve import RemoteRunnable chain = RemoteRunnable("${r}") @@ -136,31 +136,31 @@ import { RemoteRunnable } from "langchain/runnables/remote"; const chain = new RemoteRunnable({ url: \`${a}\` }); const result = await chain.invoke({ ... }); -`;return R.jsxs(lf.Root,{children:[R.jsx(lf.Trigger,{asChild:!0,children:e.children}),R.jsxs(lf.Portal,{children:[R.jsx(lf.Overlay,{className:"fixed inset-0 bg-black/40"}),R.jsx(lf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:R.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[R.jsx("h3",{className:"text-xl font-medium",children:"Share"}),R.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),R.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},O=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return O(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,Z=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=O(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return O(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function R3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var M3="!";function rG(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function oG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function aG(e){return{cache:nG(e.cacheSize),splitModifiers:rG(e),...JH(e)}}var iG=/\s+/;function sG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(iG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=oG(l).join(":"),v=c?b+M3:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function lG(){for(var e=arguments.length,t=new Array(e),n=0;n$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M7 22V11M2 13V20C2 21.1046 2.89543 22 4 22H17.4262C18.907 22 20.1662 20.9197 20.3914 19.4562L21.4683 12.4562C21.7479 10.6389 20.3418 9 18.5032 9H15C14.4477 9 14 8.55228 14 8V4.46584C14 3.10399 12.896 2 11.5342 2C11.2093 2 10.915 2.1913 10.7831 2.48812L7.26394 10.4061C7.10344 10.7673 6.74532 11 6.35013 11H4C2.89543 11 2 11.8954 2 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_G=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M17 2V13M22 9.8V5.2C22 4.07989 22 3.51984 21.782 3.09202C21.5903 2.71569 21.2843 2.40973 20.908 2.21799C20.4802 2 19.9201 2 18.8 2H8.11802C6.65654 2 5.92579 2 5.33559 2.26743C4.81541 2.50314 4.37331 2.88242 4.06125 3.36072C3.70718 3.90339 3.59606 4.62564 3.37383 6.07012L2.85076 9.47012C2.55765 11.3753 2.4111 12.3279 2.69381 13.0691C2.94195 13.7197 3.40866 14.2637 4.01393 14.6079C4.70354 15 5.66734 15 7.59494 15H8.40001C8.96006 15 9.24009 15 9.454 15.109C9.64216 15.2049 9.79514 15.3578 9.89101 15.546C10 15.7599 10 16.0399 10 16.6V19.5342C10 20.896 11.104 22 12.4658 22C12.7907 22 13.085 21.8087 13.217 21.5119L16.5777 13.9502C16.7306 13.6062 16.807 13.4343 16.9278 13.3082C17.0346 13.1967 17.1657 13.1115 17.311 13.0592C17.4753 13 17.6634 13 18.0398 13H18.8C19.9201 13 20.4802 13 20.908 12.782C21.2843 12.5903 21.5903 12.2843 21.782 11.908C22 11.4802 22 10.9201 22 9.8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dR=e=>$.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),$.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})),fR=aC?e=>{e()}:M.startTransition,EG=e=>{const[,t]=$.useState({}),n=$.useRef(!1),r=$.useRef(e),o=$.useRef({data:!1,error:!1,isValidating:!1}),a=$.useCallback(i=>{let s=!1;const l=r.current;for(const c in i){const u=c;l[u]!==i[u]&&(l[u]=i[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return Gf(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,a]},PG=()=>(e,t,n={})=>{const{mutate:r}=Y4(),o=$.useRef(e),a=$.useRef(t),i=$.useRef(n),s=$.useRef(0),[l,c,u]=EG({data:kr,error:kr,isMutating:!1}),f=l.current,p=$.useCallback(async(b,v)=>{const[x,g]=_y(o.current);if(!a.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!x)throw new Error("Can’t trigger the mutation: missing key.");const y=Ga(Ga({populateCache:!1,throwOnError:!0},i.current),v),w=kp();s.current=w,u({isMutating:!0});try{const k=await r(x,a.current(g,{arg:b}),Ga(y,{throwOnError:!0}));if(s.current<=w){var C,_;fR(()=>u({data:k,isMutating:!1,error:void 0})),(C=(_=y).onSuccess)==null||C.call(_,k,x,y)}return k}catch(k){if(s.current<=w){var S,E;if(fR(()=>u({error:k,isMutating:!1})),(S=(E=y).onError)==null||S.call(E,k,x,y),y.throwOnError)throw k}}},[]),m=$.useCallback(()=>{s.current=kp(),u({data:kr,error:kr,isMutating:!1})},[]);return Gf(()=>{o.current=e,a.current=t,i.current=n}),{trigger:p,reset:m,get data(){return c.data=!0,f.data},get error(){return c.error=!0,f.error},get isMutating(){return c.isMutating=!0,f.isMutating}}},TG=cU(Ey,PG),kG=e=>{const[t,n]=$.useState(null),r=TG(["feedback",e],async([,o],{arg:a})=>{const i={run_id:o,key:a.key,score:a.score};n(a);const s=await fetch(th("/feedback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok)throw new Error(`Failed request ${s.status}`);return await s.json()});return{lastArg:r.isMutating?t:null,mutation:r}};function j3(e){var n,r,o,a;const t=kG(e.runId);return e.runId==null?null:R.jsxs(R.Fragment,{children:[R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((n=t.mutation.data)==null?void 0:n.score)===1&&"text-teal-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==1&&t.mutation.trigger({key:"correctness",score:1})},children:((r=t.lastArg)==null?void 0:r.score)===1?R.jsx(dR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(SG,{className:"w-4 h-4"})}),R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((o=t.mutation.data)==null?void 0:o.score)===-1&&"text-red-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==-1&&t.mutation.trigger({key:"correctness",score:-1})},children:((a=t.lastArg)==null?void 0:a.score)===-1?R.jsx(dR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(_G,{className:"w-4 h-4"})})]})}function RG(e){const[t,n]=$.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return R.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[R.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[R.jsxs("span",{children:["Intermediate steps"," ",R.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),R.jsx(KH,{className:qa("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&R.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>R.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("strong",{className:"text-sm font-medium",children:a.name}),R.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),R.jsxs("div",{className:"bg-ls-gray-400 rounded-lg p-3 relative group",children:[R.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm",children:N3(a.final_output)??"..."}),e.feedbackEnabled&&a.id?R.jsx("div",{className:"absolute right-3 top-3 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(j3,{runId:a.id},a.id)}):null]})]},a.id))})]})}class Og{constructor(t){Zd(this,"content");Zd(this,"name");Zd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Og({content:this.content+t.content,additional_kwargs:Og._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function OG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function DG(e){return e.length>0&&e.every(t=>OG(t))}function MG(e){var t;if(DG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Og(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(N3).join("")||"..."}var IG=typeof xo=="object"&&xo&&xo.Object===Object&&xo,L3=IG,AG=L3,NG=typeof self=="object"&&self&&self.Object===Object&&self,jG=AG||NG||Function("return this")(),co=jG,LG=co,FG=LG.Symbol,ud=FG,pR=ud,F3=Object.prototype,zG=F3.hasOwnProperty,VG=F3.toString,df=pR?pR.toStringTag:void 0;function BG(e){var t=zG.call(e,df),n=e[df];try{e[df]=void 0;var r=!0}catch{}var o=VG.call(e);return r&&(t?e[df]=n:delete e[df]),o}var UG=BG,WG=Object.prototype,HG=WG.toString;function GG(e){return HG.call(e)}var qG=GG,hR=ud,YG=UG,KG=qG,ZG="[object Null]",JG="[object Undefined]",mR=hR?hR.toStringTag:void 0;function XG(e){return e==null?e===void 0?JG:ZG:mR&&mR in Object(e)?YG(e):KG(e)}var cl=XG;function QG(e){return e!=null&&typeof e=="object"}var ea=QG,eq=cl,tq=ea,nq="[object Symbol]";function rq(e){return typeof e=="symbol"||tq(e)&&eq(e)==nq}var dd=rq,oq=dd;function aq(e,t,n){for(var r=-1,o=e.length;++rt}var lq=sq;function cq(){this.__data__=[],this.size=0}var uq=cq;function dq(e,t){return e===t||e!==e&&t!==t}var rh=dq,fq=rh;function pq(e,t){for(var n=e.length;n--;)if(fq(e[n][0],t))return n;return-1}var Dy=pq,hq=Dy,mq=Array.prototype,vq=mq.splice;function gq(e){var t=this.__data__,n=hq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vq.call(t,n,1),--this.size,!0}var yq=gq,bq=Dy;function xq(e){var t=this.__data__,n=bq(t,e);return n<0?void 0:t[n][1]}var wq=xq,Cq=Dy;function $q(e){return Cq(this.__data__,e)>-1}var Sq=$q,_q=Dy;function Eq(e,t){var n=this.__data__,r=_q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Pq=Eq,Tq=uq,kq=yq,Rq=wq,Oq=Sq,Dq=Pq;function fd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&JK?new qK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=ZZ}var vS=JZ,XZ=cl,QZ=vS,eJ=ea,tJ="[object Arguments]",nJ="[object Array]",rJ="[object Boolean]",oJ="[object Date]",aJ="[object Error]",iJ="[object Function]",sJ="[object Map]",lJ="[object Number]",cJ="[object Object]",uJ="[object RegExp]",dJ="[object Set]",fJ="[object String]",pJ="[object WeakMap]",hJ="[object ArrayBuffer]",mJ="[object DataView]",vJ="[object Float32Array]",gJ="[object Float64Array]",yJ="[object Int8Array]",bJ="[object Int16Array]",xJ="[object Int32Array]",wJ="[object Uint8Array]",CJ="[object Uint8ClampedArray]",$J="[object Uint16Array]",SJ="[object Uint32Array]",Nn={};Nn[vJ]=Nn[gJ]=Nn[yJ]=Nn[bJ]=Nn[xJ]=Nn[wJ]=Nn[CJ]=Nn[$J]=Nn[SJ]=!0;Nn[tJ]=Nn[nJ]=Nn[hJ]=Nn[rJ]=Nn[mJ]=Nn[oJ]=Nn[aJ]=Nn[iJ]=Nn[sJ]=Nn[lJ]=Nn[cJ]=Nn[uJ]=Nn[dJ]=Nn[fJ]=Nn[pJ]=!1;function _J(e){return eJ(e)&&QZ(e.length)&&!!Nn[XZ(e)]}var EJ=_J;function PJ(e){return function(t){return e(t)}}var gS=PJ,Ig={exports:{}};Ig.exports;(function(e,t){var n=L3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Ig,Ig.exports);var yS=Ig.exports,TJ=EJ,kJ=gS,SR=yS,_R=SR&&SR.isTypedArray,RJ=_R?kJ(_R):TJ,jy=RJ,OJ=AZ,DJ=ah,MJ=lr,IJ=ih,AJ=sh,NJ=jy,jJ=Object.prototype,LJ=jJ.hasOwnProperty;function FJ(e,t){var n=MJ(e),r=!n&&DJ(e),o=!n&&!r&&IJ(e),a=!n&&!r&&!o&&NJ(e),i=n||r||o||a,s=i?OJ(e.length,String):[],l=s.length;for(var c in e)(t||LJ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||AJ(c,l)))&&s.push(c);return s}var J3=FJ,zJ=Object.prototype;function VJ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zJ;return e===n}var Ly=VJ;function BJ(e,t){return function(n){return e(t(n))}}var X3=BJ,UJ=X3,WJ=UJ(Object.keys,Object),HJ=WJ,GJ=Ly,qJ=HJ,YJ=Object.prototype,KJ=YJ.hasOwnProperty;function ZJ(e){if(!GJ(e))return qJ(e);var t=[];for(var n in Object(e))KJ.call(e,n)&&n!="constructor"&&t.push(n);return t}var bS=ZJ,JJ=oh,XJ=vS;function QJ(e){return e!=null&&XJ(e.length)&&!JJ(e)}var us=QJ,eX=J3,tX=bS,nX=us;function rX(e){return nX(e)?eX(e):tX(e)}var ki=rX;const oX=Vt(ki);var aX=q3,iX=mS,sX=ki;function lX(e){return aX(e,sX,iX)}var Q3=lX,ER=Q3,cX=1,uX=Object.prototype,dX=uX.hasOwnProperty;function fX(e,t,n,r,o,a){var i=n&cX,s=ER(e),l=s.length,c=ER(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:dX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:rne(e,t,n)}var ane=one,ine="\\ud800-\\udfff",sne="\\u0300-\\u036f",lne="\\ufe20-\\ufe2f",cne="\\u20d0-\\u20ff",une=sne+lne+cne,dne="\\ufe0e\\ufe0f",fne="\\u200d",pne=RegExp("["+fne+ine+une+dne+"]");function hne(e){return pne.test(e)}var P5=hne;function mne(e){return e.split("")}var vne=mne,T5="\\ud800-\\udfff",gne="\\u0300-\\u036f",yne="\\ufe20-\\ufe2f",bne="\\u20d0-\\u20ff",xne=gne+yne+bne,wne="\\ufe0e\\ufe0f",Cne="["+T5+"]",_C="["+xne+"]",EC="\\ud83c[\\udffb-\\udfff]",$ne="(?:"+_C+"|"+EC+")",k5="[^"+T5+"]",R5="(?:\\ud83c[\\udde6-\\uddff]){2}",O5="[\\ud800-\\udbff][\\udc00-\\udfff]",Sne="\\u200d",D5=$ne+"?",M5="["+wne+"]?",_ne="(?:"+Sne+"(?:"+[k5,R5,O5].join("|")+")"+M5+D5+")*",Ene=M5+D5+_ne,Pne="(?:"+[k5+_C+"?",_C,R5,O5,Cne].join("|")+")",Tne=RegExp(EC+"(?="+EC+")|"+Pne+Ene,"g");function kne(e){return e.match(Tne)||[]}var Rne=kne,One=vne,Dne=P5,Mne=Rne;function Ine(e){return Dne(e)?Mne(e):One(e)}var Ane=Ine,Nne=ane,jne=P5,Lne=Ane,Fne=yd;function zne(e){return function(t){t=Fne(t);var n=jne(t)?Lne(t):void 0,r=n?n[0]:t.charAt(0),o=n?Nne(n,1).join(""):t.slice(1);return r[e]()+o}}var Vne=zne,Bne=Vne,Une=Bne("toUpperCase"),Wne=Une,Hne=tne,Gne=Wne,qne=Hne(function(e,t,n){return e+(n?" ":"")+Gne(t)}),I5=qne;const Vy=Vt(I5);var Yne=pc,Kne=function(){try{var e=Yne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),A5=Kne,GR=A5;function Zne(e,t,n){t=="__proto__"&&GR?GR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var SS=Zne,Jne=SS,Xne=rh;function Qne(e,t,n){(n!==void 0&&!Xne(e[t],n)||n===void 0&&!(t in e))&&Jne(e,t,n)}var N5=Qne;function ere(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var tre=ere,nre=tre,rre=nre(),j5=rre,Ag={exports:{}};Ag.exports;(function(e,t){var n=co,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(Ag,Ag.exports);var L5=Ag.exports,qR=W3;function ore(e){var t=new e.constructor(e.byteLength);return new qR(t).set(new qR(e)),t}var _S=ore,are=_S;function ire(e,t){var n=t?are(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var F5=ire;function sre(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=Roe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var G5=Moe,Ioe=koe,Aoe=G5,Noe=Aoe(Ioe),RS=Noe,joe=Fy,Loe=H5,Foe=RS;function zoe(e,t){return Foe(Loe(e,t,joe),e+"")}var q5=zoe,Voe=rh,Boe=us,Uoe=sh,Woe=ta;function Hoe(e,t,n){if(!Woe(n))return!1;var r=typeof t;return(r=="number"?Boe(n)&&Uoe(t,n.length):r=="string"&&t in n)?Voe(n[t],e):!1}var Y5=Hoe,Goe=q5,qoe=Y5;function Yoe(e){return Goe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&qoe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?J-2:1,ce&&ce<=J?re:ux(re,J)):re}},mixin:function(N){return function(B){var J=this;if(!C(J))return N(J,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,J.prototype[ce]])}),N(J,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?J.prototype[ce[0]]=xe:delete J.prototype[ce[0]]}),J}},nthArg:function(N){return function(B){var J=B<0?1:k(B)+1;return x(N(B),J)}},rearg:function(N){return function(B,J){var re=J?J.length:0;return x(N(B,J),re)}},runInContext:function(N){return function(B){return PC(e,N(B),r)}}};function U(N,B){if(i.cap){var J=br.iterateeRearg[N];if(J)return X(B,J);var re=!o&&br.iterateeAry[N];if(re)return Z(B,re)}return B}function G(N,B,J){return l||i.curry&&J>1?x(B,J):B}function z(N,B,J){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,J):Rse(B,ce)}return B}function V(N,B,J){return i.rearg&&J>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[J]):B}function Y(N,B){B=I(B);for(var J=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++J1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ale,`{ +`;return R.jsxs(cf.Root,{children:[R.jsx(cf.Trigger,{asChild:!0,children:e.children}),R.jsxs(cf.Portal,{children:[R.jsx(cf.Overlay,{className:"fixed inset-0 bg-black/40"}),R.jsx(cf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:R.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[R.jsx("h3",{className:"text-xl font-medium",children:"Share"}),R.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),R.jsxs("div",{className:"flex flex-col gap-3",children:[o.length=V?z:""+Array(V+1-Q.length).join(Y)+z},C={s:w,z:function(z){var V=-z.utcOffset(),Y=Math.abs(V),Q=Math.floor(Y/60),W=Y%60;return(V<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(V,Y){if(V.date()1)return z(X[0])}else{var j=V.name;S[j]=V,W=j}return!Q&&W&&(_=W),W||!Q&&_},O=function(z,V){if(k(z))return z.clone();var Y=typeof V=="object"?V:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,V){return O(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var V=z.prototype;return V.parse=function(Y){this.$d=function(Q){var W=Q.date,J=Q.utc;if(W===null)return new Date(NaN);if(F.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(x);if(X){var j=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(W)}(Y),this.init()},V.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(Y,Q){var W=O(Y);return this.startOf(Q)<=W&&W<=this.endOf(Q)},V.isAfter=function(Y,Q){return O(Y)$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function O3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var I3="!";function oG(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function aG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function iG(e){return{cache:rG(e.cacheSize),splitModifiers:oG(e),...XH(e)}}var sG=/\s+/;function lG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(sG).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=aG(l).join(":"),v=c?b+I3:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function cG(){for(var e=arguments.length,t=new Array(e),n=0;n$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M7 22V11M2 13V20C2 21.1046 2.89543 22 4 22H17.4262C18.907 22 20.1662 20.9197 20.3914 19.4562L21.4683 12.4562C21.7479 10.6389 20.3418 9 18.5032 9H15C14.4477 9 14 8.55228 14 8V4.46584C14 3.10399 12.896 2 11.5342 2C11.2093 2 10.915 2.1913 10.7831 2.48812L7.26394 10.4061C7.10344 10.7673 6.74532 11 6.35013 11H4C2.89543 11 2 11.8954 2 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),EG=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M17 2V13M22 9.8V5.2C22 4.07989 22 3.51984 21.782 3.09202C21.5903 2.71569 21.2843 2.40973 20.908 2.21799C20.4802 2 19.9201 2 18.8 2H8.11802C6.65654 2 5.92579 2 5.33559 2.26743C4.81541 2.50314 4.37331 2.88242 4.06125 3.36072C3.70718 3.90339 3.59606 4.62564 3.37383 6.07012L2.85076 9.47012C2.55765 11.3753 2.4111 12.3279 2.69381 13.0691C2.94195 13.7197 3.40866 14.2637 4.01393 14.6079C4.70354 15 5.66734 15 7.59494 15H8.40001C8.96006 15 9.24009 15 9.454 15.109C9.64216 15.2049 9.79514 15.3578 9.89101 15.546C10 15.7599 10 16.0399 10 16.6V19.5342C10 20.896 11.104 22 12.4658 22C12.7907 22 13.085 21.8087 13.217 21.5119L16.5777 13.9502C16.7306 13.6062 16.807 13.4343 16.9278 13.3082C17.0346 13.1967 17.1657 13.1115 17.311 13.0592C17.4753 13 17.6634 13 18.0398 13H18.8C19.9201 13 20.4802 13 20.908 12.782C21.2843 12.5903 21.5903 12.2843 21.782 11.908C22 11.4802 22 10.9201 22 9.8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fR=e=>$.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),$.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})),pR=iC?e=>{e()}:M.startTransition,PG=e=>{const[,t]=$.useState({}),n=$.useRef(!1),r=$.useRef(e),o=$.useRef({data:!1,error:!1,isValidating:!1}),a=$.useCallback(i=>{let s=!1;const l=r.current;for(const c in i){const u=c;l[u]!==i[u]&&(l[u]=i[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return qf(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,a]},TG=()=>(e,t,n={})=>{const{mutate:r}=K4(),o=$.useRef(e),a=$.useRef(t),i=$.useRef(n),s=$.useRef(0),[l,c,u]=PG({data:kr,error:kr,isMutating:!1}),f=l.current,p=$.useCallback(async(b,v)=>{const[x,g]=Ey(o.current);if(!a.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!x)throw new Error("Can’t trigger the mutation: missing key.");const y=Ga(Ga({populateCache:!1,throwOnError:!0},i.current),v),w=Rp();s.current=w,u({isMutating:!0});try{const k=await r(x,a.current(g,{arg:b}),Ga(y,{throwOnError:!0}));if(s.current<=w){var C,_;pR(()=>u({data:k,isMutating:!1,error:void 0})),(C=(_=y).onSuccess)==null||C.call(_,k,x,y)}return k}catch(k){if(s.current<=w){var S,E;if(pR(()=>u({error:k,isMutating:!1})),(S=(E=y).onError)==null||S.call(E,k,x,y),y.throwOnError)throw k}}},[]),m=$.useCallback(()=>{s.current=Rp(),u({data:kr,error:kr,isMutating:!1})},[]);return qf(()=>{o.current=e,a.current=t,i.current=n}),{trigger:p,reset:m,get data(){return c.data=!0,f.data},get error(){return c.error=!0,f.error},get isMutating(){return c.isMutating=!0,f.isMutating}}},kG=uU(Py,TG),RG=e=>{const[t,n]=$.useState(null),r=kG(["feedback",e],async([,o],{arg:a})=>{const i={run_id:o,key:a.key,score:a.score};n(a);const s=await fetch(rh("/feedback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok)throw new Error(`Failed request ${s.status}`);return await s.json()});return{lastArg:r.isMutating?t:null,mutation:r}};function L3(e){var n,r,o,a;const t=RG(e.runId);return e.runId==null?null:R.jsxs(R.Fragment,{children:[R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((n=t.mutation.data)==null?void 0:n.score)===1&&"text-teal-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==1&&t.mutation.trigger({key:"correctness",score:1})},children:((r=t.lastArg)==null?void 0:r.score)===1?R.jsx(fR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(_G,{className:"w-4 h-4"})}),R.jsx("button",{type:"button",className:qa("border focus-within:border-ls-blue focus-within:outline-none bg-background rounded p-1 border-divider-700 hover:bg-divider-500/50 active:bg-divider-500",((o=t.mutation.data)==null?void 0:o.score)===-1&&"text-red-500"),disabled:t.mutation.isMutating,onClick:()=>{var i;((i=t.mutation.data)==null?void 0:i.score)!==-1&&t.mutation.trigger({key:"correctness",score:-1})},children:((a=t.lastArg)==null?void 0:a.score)===-1?R.jsx(fR,{className:"animate-spin w-4 h-4 text-white/50 fill-white"}):R.jsx(EG,{className:"w-4 h-4"})})]})}function OG(e){const[t,n]=$.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return R.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[R.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[R.jsxs("span",{children:["Intermediate steps"," ",R.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),R.jsx(JH,{className:qa("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&R.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>R.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("strong",{className:"text-sm font-medium",children:a.name}),R.jsx("p",{className:"text-sm",children:xr.utc(a.start_time).fromNow()})]}),R.jsxs("div",{className:"bg-ls-gray-400 rounded-lg p-3 relative group",children:[R.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm",children:j3(a.final_output)??"..."}),e.feedbackEnabled&&a.id?R.jsx("div",{className:"absolute right-3 top-3 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(L3,{runId:a.id},a.id)}):null]})]},a.id))})]})}class Mg{constructor(t){Zd(this,"content");Zd(this,"name");Zd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Mg({content:this.content+t.content,additional_kwargs:Mg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function DG(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function MG(e){return e.length>0&&e.every(t=>DG(t))}function IG(e){var t;if(MG(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Mg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(j3).join("")||"..."}var AG=typeof xo=="object"&&xo&&xo.Object===Object&&xo,F3=AG,NG=F3,jG=typeof self=="object"&&self&&self.Object===Object&&self,LG=NG||jG||Function("return this")(),co=LG,FG=co,zG=FG.Symbol,dd=zG,hR=dd,z3=Object.prototype,VG=z3.hasOwnProperty,BG=z3.toString,ff=hR?hR.toStringTag:void 0;function UG(e){var t=VG.call(e,ff),n=e[ff];try{e[ff]=void 0;var r=!0}catch{}var o=BG.call(e);return r&&(t?e[ff]=n:delete e[ff]),o}var WG=UG,HG=Object.prototype,GG=HG.toString;function qG(e){return GG.call(e)}var YG=qG,mR=dd,KG=WG,JG=YG,ZG="[object Null]",XG="[object Undefined]",vR=mR?mR.toStringTag:void 0;function QG(e){return e==null?e===void 0?XG:ZG:vR&&vR in Object(e)?KG(e):JG(e)}var cl=QG;function eq(e){return e!=null&&typeof e=="object"}var ea=eq,tq=cl,nq=ea,rq="[object Symbol]";function oq(e){return typeof e=="symbol"||nq(e)&&tq(e)==rq}var fd=oq,aq=fd;function iq(e,t,n){for(var r=-1,o=e.length;++rt}var cq=lq;function uq(){this.__data__=[],this.size=0}var dq=uq;function fq(e,t){return e===t||e!==e&&t!==t}var ah=fq,pq=ah;function hq(e,t){for(var n=e.length;n--;)if(pq(e[n][0],t))return n;return-1}var My=hq,mq=My,vq=Array.prototype,gq=vq.splice;function yq(e){var t=this.__data__,n=mq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():gq.call(t,n,1),--this.size,!0}var bq=yq,xq=My;function wq(e){var t=this.__data__,n=xq(t,e);return n<0?void 0:t[n][1]}var Cq=wq,$q=My;function Sq(e){return $q(this.__data__,e)>-1}var _q=Sq,Eq=My;function Pq(e,t){var n=this.__data__,r=Eq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Tq=Pq,kq=dq,Rq=bq,Oq=Cq,Dq=_q,Mq=Tq;function pd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&XK?new YK:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=ZJ}var gS=XJ,QJ=cl,eZ=gS,tZ=ea,nZ="[object Arguments]",rZ="[object Array]",oZ="[object Boolean]",aZ="[object Date]",iZ="[object Error]",sZ="[object Function]",lZ="[object Map]",cZ="[object Number]",uZ="[object Object]",dZ="[object RegExp]",fZ="[object Set]",pZ="[object String]",hZ="[object WeakMap]",mZ="[object ArrayBuffer]",vZ="[object DataView]",gZ="[object Float32Array]",yZ="[object Float64Array]",bZ="[object Int8Array]",xZ="[object Int16Array]",wZ="[object Int32Array]",CZ="[object Uint8Array]",$Z="[object Uint8ClampedArray]",SZ="[object Uint16Array]",_Z="[object Uint32Array]",Nn={};Nn[gZ]=Nn[yZ]=Nn[bZ]=Nn[xZ]=Nn[wZ]=Nn[CZ]=Nn[$Z]=Nn[SZ]=Nn[_Z]=!0;Nn[nZ]=Nn[rZ]=Nn[mZ]=Nn[oZ]=Nn[vZ]=Nn[aZ]=Nn[iZ]=Nn[sZ]=Nn[lZ]=Nn[cZ]=Nn[uZ]=Nn[dZ]=Nn[fZ]=Nn[pZ]=Nn[hZ]=!1;function EZ(e){return tZ(e)&&eZ(e.length)&&!!Nn[QJ(e)]}var PZ=EZ;function TZ(e){return function(t){return e(t)}}var yS=TZ,Ng={exports:{}};Ng.exports;(function(e,t){var n=F3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Ng,Ng.exports);var bS=Ng.exports,kZ=PZ,RZ=yS,_R=bS,ER=_R&&_R.isTypedArray,OZ=ER?RZ(ER):kZ,Ly=OZ,DZ=NJ,MZ=sh,IZ=lr,AZ=lh,NZ=ch,jZ=Ly,LZ=Object.prototype,FZ=LZ.hasOwnProperty;function zZ(e,t){var n=IZ(e),r=!n&&MZ(e),o=!n&&!r&&AZ(e),a=!n&&!r&&!o&&jZ(e),i=n||r||o||a,s=i?DZ(e.length,String):[],l=s.length;for(var c in e)(t||FZ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||NZ(c,l)))&&s.push(c);return s}var X3=zZ,VZ=Object.prototype;function BZ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||VZ;return e===n}var Fy=BZ;function UZ(e,t){return function(n){return e(t(n))}}var Q3=UZ,WZ=Q3,HZ=WZ(Object.keys,Object),GZ=HZ,qZ=Fy,YZ=GZ,KZ=Object.prototype,JZ=KZ.hasOwnProperty;function ZZ(e){if(!qZ(e))return YZ(e);var t=[];for(var n in Object(e))JZ.call(e,n)&&n!="constructor"&&t.push(n);return t}var xS=ZZ,XZ=ih,QZ=gS;function eX(e){return e!=null&&QZ(e.length)&&!XZ(e)}var us=eX,tX=X3,nX=xS,rX=us;function oX(e){return rX(e)?tX(e):nX(e)}var ki=oX;const aX=Vt(ki);var iX=Y3,sX=vS,lX=ki;function cX(e){return iX(e,lX,sX)}var e5=cX,PR=e5,uX=1,dX=Object.prototype,fX=dX.hasOwnProperty;function pX(e,t,n,r,o,a){var i=n&uX,s=PR(e),l=s.length,c=PR(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:fX.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:one(e,t,n)}var ine=ane,sne="\\ud800-\\udfff",lne="\\u0300-\\u036f",cne="\\ufe20-\\ufe2f",une="\\u20d0-\\u20ff",dne=lne+cne+une,fne="\\ufe0e\\ufe0f",pne="\\u200d",hne=RegExp("["+pne+sne+dne+fne+"]");function mne(e){return hne.test(e)}var T5=mne;function vne(e){return e.split("")}var gne=vne,k5="\\ud800-\\udfff",yne="\\u0300-\\u036f",bne="\\ufe20-\\ufe2f",xne="\\u20d0-\\u20ff",wne=yne+bne+xne,Cne="\\ufe0e\\ufe0f",$ne="["+k5+"]",EC="["+wne+"]",PC="\\ud83c[\\udffb-\\udfff]",Sne="(?:"+EC+"|"+PC+")",R5="[^"+k5+"]",O5="(?:\\ud83c[\\udde6-\\uddff]){2}",D5="[\\ud800-\\udbff][\\udc00-\\udfff]",_ne="\\u200d",M5=Sne+"?",I5="["+Cne+"]?",Ene="(?:"+_ne+"(?:"+[R5,O5,D5].join("|")+")"+I5+M5+")*",Pne=I5+M5+Ene,Tne="(?:"+[R5+EC+"?",EC,O5,D5,$ne].join("|")+")",kne=RegExp(PC+"(?="+PC+")|"+Tne+Pne,"g");function Rne(e){return e.match(kne)||[]}var One=Rne,Dne=gne,Mne=T5,Ine=One;function Ane(e){return Mne(e)?Ine(e):Dne(e)}var Nne=Ane,jne=ine,Lne=T5,Fne=Nne,zne=bd;function Vne(e){return function(t){t=zne(t);var n=Lne(t)?Fne(t):void 0,r=n?n[0]:t.charAt(0),o=n?jne(n,1).join(""):t.slice(1);return r[e]()+o}}var Bne=Vne,Une=Bne,Wne=Une("toUpperCase"),Hne=Wne,Gne=nne,qne=Hne,Yne=Gne(function(e,t,n){return e+(n?" ":"")+qne(t)}),A5=Yne;const By=Vt(A5);var Kne=pc,Jne=function(){try{var e=Kne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),N5=Jne,qR=N5;function Zne(e,t,n){t=="__proto__"&&qR?qR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _S=Zne,Xne=_S,Qne=ah;function ere(e,t,n){(n!==void 0&&!Qne(e[t],n)||n===void 0&&!(t in e))&&Xne(e,t,n)}var j5=ere;function tre(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var nre=tre,rre=nre,ore=rre(),L5=ore,jg={exports:{}};jg.exports;(function(e,t){var n=co,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(jg,jg.exports);var F5=jg.exports,YR=H3;function are(e){var t=new e.constructor(e.byteLength);return new YR(t).set(new YR(e)),t}var ES=are,ire=ES;function sre(e,t){var n=t?ire(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var z5=sre;function lre(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=Ooe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var q5=Ioe,Aoe=Roe,Noe=q5,joe=Noe(Aoe),OS=joe,Loe=zy,Foe=G5,zoe=OS;function Voe(e,t){return zoe(Foe(e,t,Loe),e+"")}var Y5=Voe,Boe=ah,Uoe=us,Woe=ch,Hoe=ta;function Goe(e,t,n){if(!Hoe(n))return!1;var r=typeof t;return(r=="number"?Uoe(n)&&Woe(t,n.length):r=="string"&&t in n)?Boe(n[t],e):!1}var K5=Goe,qoe=Y5,Yoe=K5;function Koe(e){return qoe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Yoe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,ce&&ce<=Z?re:dx(re,Z)):re}},mixin:function(N){return function(B){var Z=this;if(!C(Z))return N(Z,Object(B));var re=[];return g(S(B),function(ce){C(B[ce])&&re.push([ce,Z.prototype[ce]])}),N(Z,Object(B)),g(re,function(ce){var xe=ce[1];C(xe)?Z.prototype[ce[0]]=xe:delete Z.prototype[ce[0]]}),Z}},nthArg:function(N){return function(B){var Z=B<0?1:k(B)+1;return x(N(B),Z)}},rearg:function(N){return function(B,Z){var re=Z?Z.length:0;return x(N(B,Z),re)}},runInContext:function(N){return function(B){return TC(e,N(B),r)}}};function U(N,B){if(i.cap){var Z=br.iterateeRearg[N];if(Z)return X(B,Z);var re=!o&&br.iterateeAry[N];if(re)return J(B,re)}return B}function G(N,B,Z){return l||i.curry&&Z>1?x(B,Z):B}function z(N,B,Z){if(i.fixed&&(c||!br.skipFixed[N])){var re=br.methodSpread[N],ce=re&&re.start;return ce===void 0?m(B,Z):Ose(B,ce)}return B}function V(N,B,Z){return i.rearg&&Z>1&&(u||!br.skipRearg[N])?E(B,br.methodRearg[N]||br.aryRearg[Z]):B}function Y(N,B){B=I(B);for(var Z=-1,re=B.length,ce=re-1,xe=v(Object(N)),me=xe;me!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ile,`{ /* [wrapped with `+t+`] */ -`)}var sle=ile;function lle(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var fN=yle,ble=OS,xle=fN,wle=1,Cle=2,$le=8,Sle=16,_le=32,Ele=64,Ple=128,Tle=256,kle=512,Rle=[["ary",Ple],["bind",wle],["bindKey",Cle],["curry",$le],["curryRight",Sle],["flip",kle],["partial",_le],["partialRight",Ele],["rearg",Tle]];function Ole(e,t){return ble(Rle,function(n){var r="_."+n[0];t&n[1]&&!xle(e,r)&&e.push(r)}),e.sort()}var Dle=Ole,Mle=ole,Ile=sle,Ale=RS,Nle=Dle;function jle(e,t,n){var r=t+"";return Ale(e,Ile(r,Nle(Mle(r),n)))}var pN=jle,Lle=lN(),Fle=cN,zle=pN,Vle=1,Ble=2,Ule=4,Wle=8,$O=32,SO=64;function Hle(e,t,n,r,o,a,i,s,l,c){var u=t&Wle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?$O:SO,t&=~(u?SO:$O),t&Ule||(t&=~(Vle|Ble));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Lle(e)&&Fle(x,v),x.placeholder=r,zle(x,e,t)}var hN=Hle;function Gle(e){var t=e;return t.placeholder}var mN=Gle,qle=ch,Yle=sh,Kle=Math.min;function Zle(e,t){for(var n=e.length,r=Kle(t.length,n),o=qle(e);r--;){var a=t[r];e[r]=Yle(a,n)?o[a]:void 0}return e}var Jle=Zle,_O="__lodash_placeholder__";function Xle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?xN(s,t-1,n,r,o):Wue(o,s):r||(o[o.length]=s)}return o}var wN=xN,Gue=wN;function que(e){var t=e==null?0:e.length;return t?Gue(e,1):[]}var Yue=que,Kue=Yue,Zue=H5,Jue=RS;function Xue(e){return Jue(Zue(e,void 0,Kue),e+"")}var FS=Xue,Que=jS,ede=FS,tde=256,nde=ede(function(e,t){return Que(e,tde,void 0,void 0,void 0,t)}),rde=nde,ode=gd,ade=ch,ide=lr,sde=dd,lde=s5,cde=mc,ude=yd;function dde(e){return ide(e)?ode(e,cde):sde(e)?[e]:ade(lde(ude(e)))}var fde=dde,pde={ary:mue,assign:K5,clone:bue,curry:Cue,forEach:OS,isArray:lr,isError:kue,isFunction:oh,isWeakMap:Iue,iteratee:Fue,keys:bS,rearg:rde,toInteger:dh,toPath:fde},hde=Ose,mde=pde;function vde(e,t,n){return hde(mde,e,t,n)}var xd=vde,Ex,zO;function gde(){if(zO)return Ex;zO=1;var e=TS,t=lh,n=sh,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var nfe=tfe,rfe=nfe,ofe=c5,afe=dh,ife=yd;function sfe(e,t,n){e=ife(e),t=ofe(t);var r=e.length;n=n===void 0?r:rfe(afe(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var lfe=sfe;const cfe=Vt(lfe);function ufe(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var dfe=ufe,ffe=f5,pfe=zS,hfe=vc,mfe=dfe,vfe=lr;function gfe(e,t,n){var r=vfe(e)?ffe:mfe,o=arguments.length<3;return r(e,hfe(t),n,o,pfe)}var yfe=gfe;const TC=Vt(yfe);var bfe=gd;function xfe(e,t){return bfe(t,function(n){return[n,e[n]]})}var wfe=xfe;function Cfe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var $fe=Cfe,Sfe=wfe,_fe=hc,Efe=H3,Pfe=$fe,Tfe="[object Map]",kfe="[object Set]";function Rfe(e){return function(t){var n=_fe(t);return n==Tfe?Efe(t):n==kfe?Pfe(t):Sfe(t,e(t))}}var Ofe=Rfe,Dfe=Ofe,Mfe=ki,Ife=Dfe(Mfe),Afe=Ife;const Nfe=Vt(Afe);var jfe=cl,Lfe=lr,Ffe=ea,zfe="[object String]";function Vfe(e){return typeof e=="string"||!Lfe(e)&&Ffe(e)&&jfe(e)==zfe}var Bfe=Vfe,Ufe=gd;function Wfe(e,t){return Ufe(t,function(n){return e[n]})}var Hfe=Wfe,Gfe=Hfe,qfe=ki;function Yfe(e){return e==null?[]:Gfe(e,qfe(e))}var Kfe=Yfe,Zfe=dN,Jfe=us,Xfe=Bfe,Qfe=dh,epe=Kfe,tpe=Math.max;function npe(e,t,n,r){e=Jfe(e)?e:epe(e),n=n&&!r?Qfe(n):0;var o=e.length;return n<0&&(n=tpe(o+n,0)),Xfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Zfe(e,t,n)>-1}var rpe=npe;const EN=Vt(rpe);var ope=vc,ape=us,ipe=ki;function spe(e){return function(t,n,r){var o=Object(t);if(!ape(t)){var a=ope(n);t=ipe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var lpe=spe,cpe=uN,upe=vc,dpe=dh,fpe=Math.max;function ppe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:dpe(n);return o<0&&(o=fpe(r+o,0)),cpe(e,upe(t),o)}var hpe=ppe,mpe=lpe,vpe=hpe,gpe=mpe(vpe),ype=gpe;const VS=Vt(ype);var bpe=Math.ceil,xpe=Math.max;function wpe(e,t,n,r){for(var o=-1,a=xpe(bpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var Cpe=wpe,$pe=Cpe,Spe=Y5,Tx=bN;function _pe(e){return function(t,n,r){return r&&typeof r!="number"&&Spe(t,n,r)&&(n=r=void 0),t=Tx(t),n===void 0?(n=t,t=0):n=Tx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(RC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Mp,n=RC;var r=Mp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=RC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,J=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${J};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,J){super(D,B,J),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let J=B.length;for(;J--;){const re=B[J];re.optimizeNames(D,N)||(V(D,re.names),B.splice(J,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,J){super(),this.varKind=D,this.name=N,this.from=B,this.to=J}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:J,to:re}=this;return`for(${N} ${B}=${J}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,J){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=J}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,J;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(J=this.finally)===null||J===void 0||J.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class O extends b{render(D){return"finally"+super.render(D)}}O.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,J){const re=this._scope.toName(N);return B!==void 0&&J&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,J]of D)N.length>1&&N.push(","),N.push(B),(B!==J||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,J));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,J,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>J(ce))}forOf(D,N,B,J=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",J,re,N),()=>B(re))}forIn(D,N,B,J=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",J,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const J=new k;if(this._blockNode(J),this.code(D),N){const re=this.name("e");this._currNode=J.catch=new I(re),N(re)}return B&&(this._currNode=J.finally=new O,this.code(B)),this._endBlockNode(I,O)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,J){return this._blockNode(new S(D,N,B)),J&&this.code(J).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!J(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function J(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const Z=j(e.operators.OR);function X(...q){return q.reduce(Z)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Zt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Zt,n=Mp;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const O=I.RULES.keywords;for(const F in E)O[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,O){if(!O){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(O,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(O,F,U):E(O,F,U),U):F instanceof t.Name?(E(O,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(O,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});const Ur=Zt,Fpe={data:new Ur.Name("data"),valCxt:new Ur.Name("valCxt"),instancePath:new Ur.Name("instancePath"),parentData:new Ur.Name("parentData"),parentDataProperty:new Ur.Name("parentDataProperty"),rootData:new Ur.Name("rootData"),dynamicAnchors:new Ur.Name("dynamicAnchors"),vErrors:new Ur.Name("vErrors"),errors:new Ur.Name("errors"),this:new Ur.Name("this"),self:new Ur.Name("self"),scope:new Ur.Name("scope"),json:new Ur.Name("json"),jsonPos:new Ur.Name("jsonPos"),jsonLen:new Ur.Name("jsonLen"),jsonPart:new Ur.Name("jsonPart")};Ri.default=Fpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Zt,n=dn,r=Ri;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:O,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${O}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(fh);Object.defineProperty(qu,"__esModule",{value:!0});qu.boolOrEmptySchema=qu.topBoolOrEmptySchema=void 0;const zpe=fh,Vpe=Zt,Bpe=Ri,Upe={message:"boolean schema is false"};function Wpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?TN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Bpe.default.data):(t.assign((0,Vpe._)`${r}.errors`,null),t.return(!0))}qu.topBoolOrEmptySchema=Wpe;function Hpe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),TN(e)):n.var(t,!0)}qu.boolOrEmptySchema=Hpe;function TN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,zpe.reportError)(o,Upe,void 0,t)}var ph={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const Gpe=["string","number","integer","boolean","null","object","array"],qpe=new Set(Gpe);function Ype(e){return typeof e=="string"&&qpe.has(e)}tc.isJSONType=Ype;function Kpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Kpe;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.shouldUseRule=Qi.shouldUseGroup=Qi.schemaHasRulesForType=void 0;function Zpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&kN(e,r)}Qi.schemaHasRulesForType=Zpe;function kN(e,t){return t.rules.some(n=>RN(e,n))}Qi.shouldUseGroup=kN;function RN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Qi.shouldUseRule=RN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Qi,r=fh,o=Zt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const O=v(C,S,E.strictNumbers,i.Wrong);_.if(O,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),O=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(O,E))),S.if((0,o._)`${O} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${O} !== undefined`,()=>{S.assign(E,O),m(w,O)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(O,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(O,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null +`)}var lle=sle;function cle(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var pN=ble,xle=DS,wle=pN,Cle=1,$le=2,Sle=8,_le=16,Ele=32,Ple=64,Tle=128,kle=256,Rle=512,Ole=[["ary",Tle],["bind",Cle],["bindKey",$le],["curry",Sle],["curryRight",_le],["flip",Rle],["partial",Ele],["partialRight",Ple],["rearg",kle]];function Dle(e,t){return xle(Ole,function(n){var r="_."+n[0];t&n[1]&&!wle(e,r)&&e.push(r)}),e.sort()}var Mle=Dle,Ile=ale,Ale=lle,Nle=OS,jle=Mle;function Lle(e,t,n){var r=t+"";return Nle(e,Ale(r,jle(Ile(r),n)))}var hN=Lle,Fle=cN(),zle=uN,Vle=hN,Ble=1,Ule=2,Wle=4,Hle=8,SO=32,_O=64;function Gle(e,t,n,r,o,a,i,s,l,c){var u=t&Hle,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?SO:_O,t&=~(u?_O:SO),t&Wle||(t&=~(Ble|Ule));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Fle(e)&&zle(x,v),x.placeholder=r,Vle(x,e,t)}var mN=Gle;function qle(e){var t=e;return t.placeholder}var vN=qle,Yle=dh,Kle=ch,Jle=Math.min;function Zle(e,t){for(var n=e.length,r=Jle(t.length,n),o=Yle(e);r--;){var a=t[r];e[r]=Kle(a,n)?o[a]:void 0}return e}var Xle=Zle,EO="__lodash_placeholder__";function Qle(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?wN(s,t-1,n,r,o):Hue(o,s):r||(o[o.length]=s)}return o}var CN=wN,que=CN;function Yue(e){var t=e==null?0:e.length;return t?que(e,1):[]}var Kue=Yue,Jue=Kue,Zue=G5,Xue=OS;function Que(e){return Xue(Zue(e,void 0,Jue),e+"")}var zS=Que,ede=LS,tde=zS,nde=256,rde=tde(function(e,t){return ede(e,nde,void 0,void 0,void 0,t)}),ode=rde,ade=yd,ide=dh,sde=lr,lde=fd,cde=l5,ude=mc,dde=bd;function fde(e){return sde(e)?ade(e,ude):lde(e)?[e]:ide(cde(dde(e)))}var pde=fde,hde={ary:vue,assign:J5,clone:xue,curry:$ue,forEach:DS,isArray:lr,isError:Rue,isFunction:ih,isWeakMap:Aue,iteratee:zue,keys:xS,rearg:ode,toInteger:ph,toPath:pde},mde=Dse,vde=hde;function gde(e,t,n){return mde(vde,e,t,n)}var wd=gde,Px,VO;function yde(){if(VO)return Px;VO=1;var e=kS,t=uh,n=ch,r=ta,o=mc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var rfe=nfe,ofe=rfe,afe=u5,ife=ph,sfe=bd;function lfe(e,t,n){e=sfe(e),t=afe(t);var r=e.length;n=n===void 0?r:ofe(ife(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var cfe=lfe;const ufe=Vt(cfe);function dfe(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var ffe=dfe,pfe=p5,hfe=VS,mfe=vc,vfe=ffe,gfe=lr;function yfe(e,t,n){var r=gfe(e)?pfe:vfe,o=arguments.length<3;return r(e,mfe(t),n,o,hfe)}var bfe=yfe;const kC=Vt(bfe);var xfe=yd;function wfe(e,t){return xfe(t,function(n){return[n,e[n]]})}var Cfe=wfe;function $fe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Sfe=$fe,_fe=Cfe,Efe=hc,Pfe=G3,Tfe=Sfe,kfe="[object Map]",Rfe="[object Set]";function Ofe(e){return function(t){var n=Efe(t);return n==kfe?Pfe(t):n==Rfe?Tfe(t):_fe(t,e(t))}}var Dfe=Ofe,Mfe=Dfe,Ife=ki,Afe=Mfe(Ife),Nfe=Afe;const jfe=Vt(Nfe);var Lfe=cl,Ffe=lr,zfe=ea,Vfe="[object String]";function Bfe(e){return typeof e=="string"||!Ffe(e)&&zfe(e)&&Lfe(e)==Vfe}var Ufe=Bfe,Wfe=yd;function Hfe(e,t){return Wfe(t,function(n){return e[n]})}var Gfe=Hfe,qfe=Gfe,Yfe=ki;function Kfe(e){return e==null?[]:qfe(e,Yfe(e))}var Jfe=Kfe,Zfe=fN,Xfe=us,Qfe=Ufe,epe=ph,tpe=Jfe,npe=Math.max;function rpe(e,t,n,r){e=Xfe(e)?e:tpe(e),n=n&&!r?epe(n):0;var o=e.length;return n<0&&(n=npe(o+n,0)),Qfe(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Zfe(e,t,n)>-1}var ope=rpe;const PN=Vt(ope);var ape=vc,ipe=us,spe=ki;function lpe(e){return function(t,n,r){var o=Object(t);if(!ipe(t)){var a=ape(n);t=spe(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var cpe=lpe,upe=dN,dpe=vc,fpe=ph,ppe=Math.max;function hpe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:fpe(n);return o<0&&(o=ppe(r+o,0)),upe(e,dpe(t),o)}var mpe=hpe,vpe=cpe,gpe=mpe,ype=vpe(gpe),bpe=ype;const BS=Vt(bpe);var xpe=Math.ceil,wpe=Math.max;function Cpe(e,t,n,r){for(var o=-1,a=wpe(xpe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var $pe=Cpe,Spe=$pe,_pe=K5,kx=xN;function Epe(e){return function(t,n,r){return r&&typeof r!="number"&&_pe(t,n,r)&&(n=r=void 0),t=kx(t),n===void 0?(n=t,t=0):n=kx(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(OC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Ip,n=OC;var r=Ip;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=OC;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,B){super(),this.varKind=D,this.name=N,this.rhs=B}render({es5:D,_n:N}){const B=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,B){super(),this.lhs=D,this.rhs=N,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,B,Z){super(D,B,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=z(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,B)=>N+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const B=D[N].optimizeNodes();Array.isArray(B)?D.splice(N,1,...B):B?D[N]=B:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:B}=this;let Z=B.length;for(;Z--;){const re=B[Z];re.optimizeNames(D,N)||(V(D,re.names),B.splice(Z,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const B=N.optimizeNodes();N=this.else=Array.isArray(B)?new x(B):B}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=z(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=z(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,B,Z){super(),this.varKind=D,this.name=N,this.from=B,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:B,from:Z,to:re}=this;return`for(${N} ${B}=${Z}; ${B}<${re}; ${B}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,B,Z){super(),this.loop=D,this.varKind=N,this.name=B,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=z(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class S extends b{constructor(D,N,B){super(),this.name=D,this.args=N,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}S.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var B,Z;return super.optimizeNames(D,N),(B=this.catch)===null||B===void 0||B.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class O extends b{render(D){return"finally"+super.render(D)}}O.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const B=this._extScope.value(D,N);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,B,Z){const re=this._scope.toName(N);return B!==void 0&&Z&&(this._constants[re.str]=B),this._leafNode(new i(D,re,B)),re}const(D,N,B){return this._def(n.varKinds.const,D,N,B)}let(D,N,B){return this._def(n.varKinds.let,D,N,B)}var(D,N,B){return this._def(n.varKinds.var,D,N,B)}assign(D,N,B){return this._leafNode(new s(D,N,B))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[B,Z]of D)N.length>1&&N.push(","),N.push(B),(B!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,B){if(this._blockNode(new g(D)),N&&B)this.code(N).else().code(B).endIf();else if(N)this.code(N).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,B,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const ce=this._scope.toName(D);return this._for(new C(re,ce,N,B),()=>Z(ce))}forOf(D,N,B,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const ce=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${ce}.length`,xe=>{this.var(re,(0,t._)`${ce}[${xe}]`),B(re)})}return this._for(new _("of",Z,re,N),()=>B(re))}forIn(D,N,B,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,B);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>B(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,B){if(!N&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return B&&(this._currNode=Z.finally=new O,this.code(B)),this._endBlockNode(I,O)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-N;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,B,Z){return this._blockNode(new S(D,N,B)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const B=this._currNode;if(B instanceof D||N&&B instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function z(q,D,N){if(q instanceof t.Name)return B(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,ce)=>(ce instanceof t.Name&&(ce=B(ce)),ce instanceof t._Code?re.push(...ce._items):re.push(ce),re),[]));function B(re){const ce=N[re.str];return ce===void 0||D[re.str]!==1?re:(delete D[re.str],ce)}function Z(re){return re instanceof t._Code&&re._items.some(ce=>ce instanceof t.Name&&D[ce.str]===1&&N[ce.str]!==void 0)}}function V(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=j(e.operators.AND);function W(...q){return q.reduce(Q)}e.and=W;const J=j(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function j(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=Ip;function r(S){const E={};for(const k of S)E[k]=!0;return E}e.toHash=r;function o(S,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a(S,E),!i(E,S.self.RULES.all))}e.alwaysValidSchema=o;function a(S,E=S.schema){const{opts:k,self:I}=S;if(!k.strictSchema||typeof E=="boolean")return;const O=I.RULES.keywords;for(const F in E)O[F]||_(S,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(E[k])return!0;return!1}e.schemaHasRules=i;function s(S,E){if(typeof S=="boolean")return!S;for(const k in S)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:S,schemaPath:E},k,I,O){if(!O){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${S}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c(S){return p(decodeURIComponent(S))}e.unescapeFragment=c;function u(S){return encodeURIComponent(f(S))}e.escapeFragment=u;function f(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m(S,E){if(Array.isArray(S))for(const k of S)E(k);else E(S)}e.eachItem=m;function b({mergeNames:S,mergeToName:E,mergeValues:k,resultToName:I}){return(O,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?S(O,F,U):E(O,F,U),U):F instanceof t.Name?(E(O,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(O,z):z}}e.mergeEvaluated={props:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{S.if((0,t._)`${E} === true`,()=>S.assign(k,!0),()=>S.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>{E===!0?S.assign(k,!0):(S.assign(k,(0,t._)`${k} || {}`),x(S,k,E))}),mergeValues:(S,E)=>S===!0?!0:{...S,...E},resultToName:v}),items:b({mergeNames:(S,E,k)=>S.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>S.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:(S,E,k)=>S.if((0,t._)`${k} !== true`,()=>S.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:(S,E)=>S===!0?!0:Math.max(S,E),resultToName:(S,E)=>S.var("items",E)})};function v(S,E){if(E===!0)return S.var("props",!0);const k=S.var("props",(0,t._)`{}`);return E!==void 0&&x(S,k,E),k}e.evaluatedPropsToName=v;function x(S,E,k){Object.keys(k).forEach(I=>S.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y(S,E){return S.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(w=e.Type||(e.Type={}));function C(S,E,k){if(S instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:I?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(S).toString():"/"+f(S)}e.getErrorPath=C;function _(S,E,k=S.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);S.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});const Ur=Jt,zpe={data:new Ur.Name("data"),valCxt:new Ur.Name("valCxt"),instancePath:new Ur.Name("instancePath"),parentData:new Ur.Name("parentData"),parentDataProperty:new Ur.Name("parentDataProperty"),rootData:new Ur.Name("rootData"),dynamicAnchors:new Ur.Name("dynamicAnchors"),vErrors:new Ur.Name("vErrors"),errors:new Ur.Name("errors"),this:new Ur.Name("this"),self:new Ur.Name("self"),scope:new Ur.Name("scope"),json:new Ur.Name("json"),jsonPos:new Ur.Name("jsonPos"),jsonLen:new Ur.Name("jsonLen"),jsonPart:new Ur.Name("jsonPart")};Ri.default=zpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ri;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:S,allErrors:E}=C,k=f(x,g,y);w??(S||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:S}=w,E=f(x,g,y);l(C,E),_||S||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const(S,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${S}.schema`,y),x.assign((0,t._)`${S}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:S,it:E}=x,{opts:k,propertyName:I,topSchemaRef:O,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,S],[u.parentSchema,(0,t._)`${O}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(hh);Object.defineProperty(Yu,"__esModule",{value:!0});Yu.boolOrEmptySchema=Yu.topBoolOrEmptySchema=void 0;const Vpe=hh,Bpe=Jt,Upe=Ri,Wpe={message:"boolean schema is false"};function Hpe(e){const{gen:t,schema:n,validateName:r}=e;n===!1?kN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Upe.default.data):(t.assign((0,Bpe._)`${r}.errors`,null),t.return(!0))}Yu.topBoolOrEmptySchema=Hpe;function Gpe(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),kN(e)):n.var(t,!0)}Yu.boolOrEmptySchema=Gpe;function kN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Vpe.reportError)(o,Wpe,void 0,t)}var mh={},tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.getRules=tc.isJSONType=void 0;const qpe=["string","number","integer","boolean","null","object","array"],Ype=new Set(qpe);function Kpe(e){return typeof e=="string"&&Ype.has(e)}tc.isJSONType=Kpe;function Jpe(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tc.getRules=Jpe;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.shouldUseRule=Qi.shouldUseGroup=Qi.schemaHasRulesForType=void 0;function Zpe({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&RN(e,r)}Qi.schemaHasRulesForType=Zpe;function RN(e,t){return t.rules.some(n=>ON(e,n))}Qi.shouldUseGroup=RN;function ON(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Qi.shouldUseRule=ON;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=tc,n=Qi,r=hh,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:S,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const O=v(C,S,E.strictNumbers,i.Wrong);_.if(O,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:S,data:E,opts:k}=w,I=S.let("dataType",(0,o._)`typeof ${E}`),O=S.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&S.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>S.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>S.assign(O,E))),S.if((0,o._)`${O} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);S.else(),g(w),S.endIf(),S.if((0,o._)`${O} !== undefined`,()=>{S.assign(E,O),m(w,O)});function F(U){switch(U){case"string":S.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(O,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(O,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${I} == "boolean" || ${E} === null || (${I} == "string" && ${E} && ${E} == +${E})`).assign(O,(0,o._)`+${E}`);return;case"integer":S.elseIf((0,o._)`${I} === "boolean" || ${E} === null || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(O,(0,o._)`+${E}`);return;case"boolean":S.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(O,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(O,!0);return;case"null":S.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),S.assign(O,null);return;case"array":S.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${E} === null`).assign(O,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(O=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,O,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(ph);var Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});Hy.assignDefaults=void 0;const Gc=Zt,Jpe=dn;function Xpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)BO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>BO(e,a,o.default))}Hy.assignDefaults=Xpe;function BO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,Jpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var yi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Zt,BS=dn,ks=Ri,Qpe=dn;function ehe(e,t){const{gen:n,data:r,it:o}=e;n.if(WS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=ehe;function the({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(WS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=the;function nhe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=nhe;function ON(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=ON;function US(e,t,n){return(0,jn._)`${ON(e)}.call(${t}, ${n})`}Qt.isOwnProperty=US;function rhe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${US(e,t,n)}`:o}Qt.propertyInData=rhe;function WS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(US(e,t,n))):o}Qt.noPropertyInData=WS;function DN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=DN;function ohe(e,t){return DN(t).filter(n=>!(0,BS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=ohe;function ahe({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[ks.default.instancePath,(0,jn.strConcat)(ks.default.instancePath,a)],[ks.default.parentData,i.parentData],[ks.default.parentDataProperty,i.parentDataProperty],[ks.default.rootData,ks.default.rootData]];i.opts.dynamicRef&&f.push([ks.default.dynamicAnchors,ks.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=ahe;const ihe=(0,jn._)`new RegExp`;function she({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?ihe:(0,Qpe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=she;function lhe(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:BS.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=lhe;function che(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,BS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=che;Object.defineProperty(yi,"__esModule",{value:!0});yi.validateKeywordUsage=yi.validSchemaType=yi.funcKeywordCode=yi.macroKeywordCode=void 0;const oo=Zt,jl=Ri,uhe=Qt,dhe=fh;function fhe(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=MN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:oo.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}yi.macroKeywordCode=fhe;function phe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;mhe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=MN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&UO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&UO(e),x(()=>hhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,oo._)`await `),y=>r.assign(f,!1).if((0,oo._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,oo._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,oo._)`${u}.errors`;return r.assign(g,null),v(oo.nil),g}function v(g=t.async?(0,oo._)`await `:oo.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,oo._)`${g}${(0,uhe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,oo.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}yi.funcKeywordCode=phe;function UO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,oo._)`${r.parentData}[${r.parentDataProperty}]`))}function hhe(e,t){const{gen:n}=e;n.if((0,oo._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,oo._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,oo._)`${jl.default.vErrors}.length`),(0,dhe.extendErrors)(e)},()=>e.error())}function mhe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function MN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,oo.stringify)(n)})}function vhe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}yi.validSchemaType=vhe;function ghe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}yi.validateKeywordUsage=ghe;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.extendSubschemaMode=el.extendSubschemaData=el.getSubschema=void 0;const mi=Zt,IN=dn;function yhe(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}${(0,mi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,IN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}el.getSubschema=yhe;function bhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,mi._)`${t.data}${(0,mi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,mi.str)`${c}${(0,IN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof mi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}el.extendSubschemaData=bhe;function xhe(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}el.extendSubschemaMode=xhe;var Nr={},AN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},NN={exports:{}},Bs=NN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};zv(t,r,o,e,"",e)};Bs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Bs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function zv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Bs.arrayKeywords)for(var p=0;pt+=jN(r)),t===1/0))return 1/0}return t}function LN(e,t="",n){n!==!1&&(t=Ou(t));const r=e.parse(t);return FN(e,r)}Nr.getFullPath=LN;function FN(e,t){return e.serialize(t).split("#")[0]+"#"}Nr._getFullPath=FN;const khe=/#\/?$/;function Ou(e){return e?e.replace(khe,""):""}Nr.normalizeId=Ou;function Rhe(e,t,n){return n=Ou(n),e.resolve(t,n)}Nr.resolveUrl=Rhe;const Ohe=/^[a-z_][-a-z0-9._]*$/i;function Dhe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ou(e[n]||t),a={"":o},i=LN(r,o,!1),s={},l=new Set;return _he(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ou(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ou(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!Ohe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!She(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Nr.getSchemaRefs=Dhe;Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getData=Ya.KeywordCxt=Ya.validateFunctionCode=void 0;const zN=qu,WO=ph,HS=Qi,jg=ph,Mhe=Hy,qf=yi,kx=el,St=Zt,Lt=Ri,Ihe=Nr,es=dn,pf=fh;function Ahe(e){if(UN(e)&&(WN(e),BN(e))){Lhe(e);return}VN(e,()=>(0,zN.topBoolOrEmptySchema)(e))}Ya.validateFunctionCode=Ahe;function VN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${HO(n,o)}`),jhe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Nhe(o)}`,r.$async,()=>e.code(HO(n,o)).code(a))}function Nhe(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function jhe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Lhe(e){const{schema:t,opts:n,gen:r}=e;VN(e,()=>{n.$comment&&t.$comment&&GN(e),Uhe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Fhe(e),HN(e),Ghe(e)})}function Fhe(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function HO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function zhe(e,t){if(UN(e)&&(WN(e),BN(e))){Vhe(e,t);return}(0,zN.boolOrEmptySchema)(e,t)}function BN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function UN(e){return typeof e.schema!="boolean"}function Vhe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&GN(e),Whe(e),Hhe(e);const a=r.const("_errs",Lt.default.errors);HN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function WN(e){(0,es.checkUnknownRules)(e),Bhe(e)}function HN(e,t){if(e.opts.jtd)return GO(e,[],!1,t);const n=(0,WO.getSchemaTypes)(e.schema),r=(0,WO.coerceAndCheckDataType)(e,n);GO(e,n,!r,t)}function Bhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,es.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Uhe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,es.checkStrictMode)(e,"default is ignored in the schema root")}function Whe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Ihe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Hhe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function GN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Ghe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&qhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function qhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function GO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,es.schemaHasRulesButRef)(a,u))){o.block(()=>KN(e,"$ref",u.all.$ref.definition));return}l.jtd||Yhe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,HS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,jg.checkDataType)(p.type,i,l.strictNumbers)),qO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,jg.reportTypeError)(e)),o.endIf()):qO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function qO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Mhe.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,HS.shouldUseRule)(r,a)&&KN(e,a.keyword,a.definition,t.type)})}function Yhe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Khe(e,t),e.opts.allowUnionTypes||Zhe(e,t),Jhe(e,e.dataTypes))}function Khe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{qN(e.dataTypes,n)||GS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Qhe(e,t)}}function Zhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&GS(e,"use allowUnionTypes to allow union type keyword")}function Jhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,HS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Xhe(t,i))&&GS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Xhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function qN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Qhe(e,t){const n=[];for(const r of e.dataTypes)qN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function GS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,es.checkStrictMode)(e,t,e.opts.strictTypes)}class YN{constructor(t,n,r){if((0,qf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,es.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",ZN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?pf.reportExtraError:pf.reportError)(this,this.def.error,n)}$dataError(){(0,pf.reportError)(this,this.def.$dataError||pf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,jg.checkDataTypes)(l,n,a.opts.strictNumbers,jg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,kx.getSubschema)(this.it,t);(0,kx.extendSubschemaData)(r,this.it,t),(0,kx.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return zhe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=es.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=es.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ya.KeywordCxt=YN;function KN(e,t,n,r){const o=new YN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,qf.funcKeywordCode)(o,n):"macro"in n?(0,qf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,qf.funcKeywordCode)(o,n)}const eme=/^\/(?:[^~]|~0|~1)*$/,tme=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!eme.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=tme.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,es.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ya.getData=ZN;var hh={};Object.defineProperty(hh,"__esModule",{value:!0});class nme extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}hh.default=nme;var mh={};Object.defineProperty(mh,"__esModule",{value:!0});const Rx=Nr;class rme extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Rx.resolveUrl)(t,n,r),this.missingSchema=(0,Rx.normalizeId)((0,Rx.getFullPath)(t,this.missingRef))}}mh.default=rme;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Zt,ome=hh,Pl=Ri,Fa=Nr,YO=dn,ame=Ya;class Gy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=Gy;function qS(e){const t=JN.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:ome.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,ame.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=qS;function ime(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=cme.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new Gy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=sme.call(this,a)}bo.resolveRef=ime;function sme(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:qS.call(this,e)}function JN(e){for(const t of this._compilations)if(lme(t,e))return t}bo.getCompilingSchema=JN;function lme(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function cme(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||qy.call(this,e,t)}function qy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Ox.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=qy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Ox.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||qS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new Gy({schema:s,schemaId:l,root:e,baseId:o})}return Ox.call(this,n,i)}}bo.resolveSchema=qy;const ume=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ox(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,YO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!ume.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,YO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=qy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new Gy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const dme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",fme="Meta-schema for $data reference (JSON AnySchema extension proposal)",pme="object",hme=["$data"],mme={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},vme=!1,gme={$id:dme,description:fme,type:pme,required:hme,properties:mme,additionalProperties:vme};var YS={},DC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(O[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=Z(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(fo){Ie=!0,rt=fo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&tiU((b-pt)/Jr)&&z("overflow"),pt+=(Wt-Ee)*Jr,Ee=Wt;var Io=!0,ni=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Xr;!(Io=(Xr=gl.next()).done);Io=!0){var Nh=Xr.value;if(Nhb&&z("overflow"),Nh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Ii=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Mi=Wt.slice(0,Un.index),ti=Wt.slice(Un.index+Un.length);Mo=Mi.join(":")+"::"+ti.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=J[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=J[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,J,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(J=X.strictNumbers)!==null&&J!==void 0?J:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=O.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return J.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function J({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const J of N)B=B[J];for(const J in q){const re=q[J];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[J];ce&&xe&&(B[J]=Z(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:J}=this.opts;if(typeof j=="object")B=j[J];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:J,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function O(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const J={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,J,j.before):B.rules.push(J),N.all[X]=J,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=Z(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(X){return{anyOf:[X,W]}}})(PN);var KS={},ZS={},JS={};Object.defineProperty(JS,"__esModule",{value:!0});const bme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};JS.default=bme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const xme=mh,KO=Qt,go=Zt,qc=Ri,ZO=bo,nv=dn,wme={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=ZO.resolveRef.call(l,c,o,n);if(u===void 0)throw new xme.default(r.opts.uriResolver,o,n);if(u instanceof ZO.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Vv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Vv(e,(0,go._)`${b}.validate`,c,c.$async)}function p(b){const v=QN(e,b);Vv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,go.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:go.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function QN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,go._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=QN;function Vv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:go.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,go._)`await ${(0,KO.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,go._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,KO.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,go._)`${b}.errors`;o.assign(qc.default.vErrors,(0,go._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,go._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=nv.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,go._)`${b}.evaluated.props`);a.props=nv.mergeEvaluated.props(o,g,a.props,go.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=nv.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,go._)`${b}.evaluated.items`);a.items=nv.mergeEvaluated.items(o,g,a.items,go.Name)}}}nc.callRef=Vv;nc.default=wme;Object.defineProperty(ZS,"__esModule",{value:!0});const Cme=JS,$me=nc,Sme=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Cme.default,$me.default];ZS.default=Sme;var XS={},QS={};Object.defineProperty(QS,"__esModule",{value:!0});const Lg=Zt,Rs=Lg.operators,Fg={maximum:{okStr:"<=",ok:Rs.LTE,fail:Rs.GT},minimum:{okStr:">=",ok:Rs.GTE,fail:Rs.LT},exclusiveMaximum:{okStr:"<",ok:Rs.LT,fail:Rs.GTE},exclusiveMinimum:{okStr:">",ok:Rs.GT,fail:Rs.LTE}},_me={message:({keyword:e,schemaCode:t})=>(0,Lg.str)`must be ${Fg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Lg._)`{comparison: ${Fg[e].okStr}, limit: ${t}}`},Eme={keyword:Object.keys(Fg),type:"number",schemaType:"number",$data:!0,error:_me,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Lg._)`${n} ${Fg[t].fail} ${r} || isNaN(${n})`)}};QS.default=Eme;var e_={};Object.defineProperty(e_,"__esModule",{value:!0});const Yf=Zt,Pme={message:({schemaCode:e})=>(0,Yf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Yf._)`{multipleOf: ${e}}`},Tme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Pme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Yf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Yf._)`${i} !== parseInt(${i})`;e.fail$data((0,Yf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};e_.default=Tme;var t_={},n_={};Object.defineProperty(n_,"__esModule",{value:!0});function e6(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},Dme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ome,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,kme.useFunc)(e.gen,Rme.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};t_.default=Dme;var r_={};Object.defineProperty(r_,"__esModule",{value:!0});const Mme=Qt,zg=Zt,Ime={message:({schemaCode:e})=>(0,zg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,zg._)`{pattern: ${e}}`},Ame={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ime,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,zg._)`(new RegExp(${o}, ${i}))`:(0,Mme.usePattern)(e,r);e.fail$data((0,zg._)`!${s}.test(${t})`)}};r_.default=Ame;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Kf=Zt,Nme={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Kf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Kf._)`{limit: ${e}}`},jme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Nme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Kf.operators.GT:Kf.operators.LT;e.fail$data((0,Kf._)`Object.keys(${n}).length ${o} ${r}`)}};o_.default=jme;var a_={};Object.defineProperty(a_,"__esModule",{value:!0});const hf=Qt,Zf=Zt,Lme=dn,Fme={message:({params:{missingProperty:e}})=>(0,Zf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Zf._)`{missingProperty: ${e}}`},zme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Fme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Lme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Zf.nil,f);else for(const m of n)(0,hf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,hf.checkMissingProp)(e,n,m)),(0,hf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,hf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,hf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Zf.not)(b),()=>{e.error(),t.break()})},Zf.nil)}}};a_.default=zme;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const Jf=Zt,Vme={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Bme={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`${n}.length ${o} ${r}`)}};i_.default=Bme;var s_={},vh={};Object.defineProperty(vh,"__esModule",{value:!0});const t6=AN;t6.code='require("ajv/dist/runtime/equal").default';vh.default=t6;Object.defineProperty(s_,"__esModule",{value:!0});const Dx=ph,Mr=Zt,Ume=dn,Wme=vh,Hme={message:({params:{i:e,j:t}})=>(0,Mr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Mr._)`{i: ${e}, j: ${t}}`},Gme={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Hme,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Dx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Mr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Mr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Mr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Dx.checkDataTypes)(c,x,s.opts.strictNumbers,Dx.DataType.Wrong),y=t.const("indices",(0,Mr._)`{}`);t.for((0,Mr._)`;${b}--;`,()=>{t.let(x,(0,Mr._)`${n}[${b}]`),t.if(g,(0,Mr._)`continue`),c.length>1&&t.if((0,Mr._)`typeof ${x} == "string"`,(0,Mr._)`${x} += "_"`),t.if((0,Mr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Mr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Mr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Ume.useFunc)(t,Wme.default),g=t.name("outer");t.label(g).for((0,Mr._)`;${b}--;`,()=>t.for((0,Mr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Mr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};s_.default=Gme;var l_={};Object.defineProperty(l_,"__esModule",{value:!0});const MC=Zt,qme=dn,Yme=vh,Kme={message:"must be equal to constant",params:({schemaCode:e})=>(0,MC._)`{allowedValue: ${e}}`},Zme={keyword:"const",$data:!0,error:Kme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,MC._)`!${(0,qme.useFunc)(t,Yme.default)}(${n}, ${o})`):e.fail((0,MC._)`${a} !== ${n}`)}};l_.default=Zme;var c_={};Object.defineProperty(c_,"__esModule",{value:!0});const Of=Zt,Jme=dn,Xme=vh,Qme={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Of._)`{allowedValues: ${e}}`},eve={keyword:"enum",schemaType:"array",$data:!0,error:Qme,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Jme.useFunc)(t,Xme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Of.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Of._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Of._)`${c()}(${n}, ${m}[${b}])`:(0,Of._)`${n} === ${v}`}}};c_.default=eve;Object.defineProperty(XS,"__esModule",{value:!0});const tve=QS,nve=e_,rve=t_,ove=r_,ave=o_,ive=a_,sve=i_,lve=s_,cve=l_,uve=c_,dve=[tve.default,nve.default,rve.default,ove.default,ave.default,ive.default,sve.default,lve.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cve.default,uve.default];XS.default=dve;var u_={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateAdditionalItems=void 0;const Fl=Zt,IC=dn,fve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},pve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:fve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,IC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}n6(e,r)}};function n6(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,IC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:IC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}Cd.validateAdditionalItems=n6;Cd.default=pve;var d_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateTuple=void 0;const JO=Zt,Bv=dn,hve=Qt,mve={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return r6(e,"additionalItems",t);n.items=!0,!(0,Bv.alwaysValidSchema)(n,t)&&e.ok((0,hve.validateArray)(e))}};function r6(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Bv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,JO._)`${a}.length`);n.forEach((f,p)=>{(0,Bv.alwaysValidSchema)(s,f)||(r.if((0,JO._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Bv.checkStrictMode)(s,x,p.strictTuples)}}}$d.validateTuple=r6;$d.default=mve;Object.defineProperty(d_,"__esModule",{value:!0});const vve=$d,gve={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,vve.validateTuple)(e,"items")};d_.default=gve;var f_={};Object.defineProperty(f_,"__esModule",{value:!0});const XO=Zt,yve=dn,bve=Qt,xve=Cd,wve={message:({params:{len:e}})=>(0,XO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,XO._)`{limit: ${e}}`},Cve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:wve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,yve.alwaysValidSchema)(r,t)&&(o?(0,xve.validateAdditionalItems)(e,o):e.ok((0,bve.validateArray)(e)))}};f_.default=Cve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const fa=Zt,rv=dn,$ve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},Sve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$ve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,rv.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,rv.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,rv.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:rv.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};p_.default=Sve;var o6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Zt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, + || ${I} === "boolean" || ${E} === null`).assign(O,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},S){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,S))}function b(w,C,_,S=i.Correct){const E=S===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return S===i.Correct?k:(0,o.not)(k);function I(O=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,O,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,S){if(w.length===1)return b(w[0],C,_,S);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,S));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:S}=w,E=(0,a.schemaRefOrVal)(w,S,"type");return{gen:C,keyword:"type",data:_,schema:S.type,schemaCode:E,schemaValue:E,parentSchema:S,params:{},it:w}}})(mh);var Gy={};Object.defineProperty(Gy,"__esModule",{value:!0});Gy.assignDefaults=void 0;const Gc=Jt,Xpe=dn;function Qpe(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)UO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>UO(e,a,o.default))}Gy.assignDefaults=Qpe;function UO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Gc._)`${a}${(0,Gc.getProperty)(t)}`;if(o){(0,Xpe.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Gc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Gc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Gc._)`${s} = ${(0,Gc.stringify)(n)}`)}var yi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const jn=Jt,US=dn,ks=Ri,ehe=dn;function the(e,t){const{gen:n,data:r,it:o}=e;n.if(HS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,jn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=the;function nhe({gen:e,data:t,it:{opts:n}},r,o){return(0,jn.or)(...r.map(a=>(0,jn.and)(HS(e,t,a,n.ownProperties),(0,jn._)`${o} = ${a}`)))}Qt.checkMissingProp=nhe;function rhe(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=rhe;function DN(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,jn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=DN;function WS(e,t,n){return(0,jn._)`${DN(e)}.call(${t}, ${n})`}Qt.isOwnProperty=WS;function ohe(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} !== undefined`;return r?(0,jn._)`${o} && ${WS(e,t,n)}`:o}Qt.propertyInData=ohe;function HS(e,t,n,r){const o=(0,jn._)`${t}${(0,jn.getProperty)(n)} === undefined`;return r?(0,jn.or)(o,(0,jn.not)(WS(e,t,n))):o}Qt.noPropertyInData=HS;function MN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=MN;function ahe(e,t){return MN(t).filter(n=>!(0,US.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=ahe;function ihe({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,jn._)`${e}, ${t}, ${r}${o}`:t,f=[[ks.default.instancePath,(0,jn.strConcat)(ks.default.instancePath,a)],[ks.default.parentData,i.parentData],[ks.default.parentDataProperty,i.parentDataProperty],[ks.default.rootData,ks.default.rootData]];i.opts.dynamicRef&&f.push([ks.default.dynamicAnchors,ks.default.dynamicAnchors]);const p=(0,jn._)`${u}, ${n.object(...f)}`;return l!==jn.nil?(0,jn._)`${s}.call(${l}, ${p})`:(0,jn._)`${s}(${p})`}Qt.callValidateCode=ihe;const she=(0,jn._)`new RegExp`;function lhe({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,jn._)`${o.code==="new RegExp"?she:(0,ehe.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=lhe;function che(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,jn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:US.Type.Num},a),t.if((0,jn.not)(a),s)})}}Qt.validateArray=che;function uhe(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,US.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,jn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,jn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=uhe;Object.defineProperty(yi,"__esModule",{value:!0});yi.validateKeywordUsage=yi.validSchemaType=yi.funcKeywordCode=yi.macroKeywordCode=void 0;const oo=Jt,jl=Ri,dhe=Qt,fhe=hh;function phe(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=IN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:oo.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}yi.macroKeywordCode=phe;function hhe(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;vhe(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=IN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&WO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&WO(e),x(()=>mhe(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,oo._)`await `),y=>r.assign(f,!1).if((0,oo._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,oo._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,oo._)`${u}.errors`;return r.assign(g,null),v(oo.nil),g}function v(g=t.async?(0,oo._)`await `:oo.nil){const y=l.opts.passContext?jl.default.this:jl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,oo._)`${g}${(0,dhe.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,oo.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}yi.funcKeywordCode=hhe;function WO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,oo._)`${r.parentData}[${r.parentDataProperty}]`))}function mhe(e,t){const{gen:n}=e;n.if((0,oo._)`Array.isArray(${t})`,()=>{n.assign(jl.default.vErrors,(0,oo._)`${jl.default.vErrors} === null ? ${t} : ${jl.default.vErrors}.concat(${t})`).assign(jl.default.errors,(0,oo._)`${jl.default.vErrors}.length`),(0,fhe.extendErrors)(e)},()=>e.error())}function vhe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function IN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,oo.stringify)(n)})}function ghe(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}yi.validSchemaType=ghe;function yhe({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}yi.validateKeywordUsage=yhe;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.extendSubschemaMode=el.extendSubschemaData=el.getSubschema=void 0;const mi=Jt,AN=dn;function bhe(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,mi._)`${e.schemaPath}${(0,mi.getProperty)(t)}${(0,mi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,AN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}el.getSubschema=bhe;function xhe(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,mi._)`${t.data}${(0,mi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,mi.str)`${c}${(0,AN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof mi.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}el.extendSubschemaData=xhe;function whe(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}el.extendSubschemaMode=whe;var Nr={},NN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},jN={exports:{}},Bs=jN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};Bv(t,r,o,e,"",e)};Bs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Bs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bs.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Bv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Bs.arrayKeywords)for(var p=0;pt+=LN(r)),t===1/0))return 1/0}return t}function FN(e,t="",n){n!==!1&&(t=Ou(t));const r=e.parse(t);return zN(e,r)}Nr.getFullPath=FN;function zN(e,t){return e.serialize(t).split("#")[0]+"#"}Nr._getFullPath=zN;const Rhe=/#\/?$/;function Ou(e){return e?e.replace(Rhe,""):""}Nr.normalizeId=Ou;function Ohe(e,t,n){return n=Ou(n),e.resolve(t,n)}Nr.resolveUrl=Ohe;const Dhe=/^[a-z_][-a-z0-9._]*$/i;function Mhe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ou(e[n]||t),a={"":o},i=FN(r,o,!1),s={},l=new Set;return Ehe(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=Ou(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==Ou(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!Dhe.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!_he(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Nr.getSchemaRefs=Mhe;Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getData=Ya.KeywordCxt=Ya.validateFunctionCode=void 0;const VN=Yu,HO=mh,GS=Qi,Fg=mh,Ihe=Gy,Yf=yi,Rx=el,St=Jt,Lt=Ri,Ahe=Nr,es=dn,hf=hh;function Nhe(e){if(WN(e)&&(HN(e),UN(e))){Fhe(e);return}BN(e,()=>(0,VN.topBoolOrEmptySchema)(e))}Ya.validateFunctionCode=Nhe;function BN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${GO(n,o)}`),Lhe(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${jhe(o)}`,r.$async,()=>e.code(GO(n,o)).code(a))}function jhe(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Lhe(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Fhe(e){const{schema:t,opts:n,gen:r}=e;BN(e,()=>{n.$comment&&t.$comment&&qN(e),Whe(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&zhe(e),GN(e),qhe(e)})}function zhe(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function GO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function Vhe(e,t){if(WN(e)&&(HN(e),UN(e))){Bhe(e,t);return}(0,VN.boolOrEmptySchema)(e,t)}function UN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function WN(e){return typeof e.schema!="boolean"}function Bhe(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&qN(e),Hhe(e),Ghe(e);const a=r.const("_errs",Lt.default.errors);GN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function HN(e){(0,es.checkUnknownRules)(e),Uhe(e)}function GN(e,t){if(e.opts.jtd)return qO(e,[],!1,t);const n=(0,HO.getSchemaTypes)(e.schema),r=(0,HO.coerceAndCheckDataType)(e,n);qO(e,n,!r,t)}function Uhe(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,es.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Whe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,es.checkStrictMode)(e,"default is ignored in the schema root")}function Hhe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Ahe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ghe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function qN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function qhe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Yhe(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Yhe({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function qO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,es.schemaHasRulesButRef)(a,u))){o.block(()=>JN(e,"$ref",u.all.$ref.definition));return}l.jtd||Khe(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,GS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,Fg.checkDataType)(p.type,i,l.strictNumbers)),YO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,Fg.reportTypeError)(e)),o.endIf()):YO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function YO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Ihe.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,GS.shouldUseRule)(r,a)&&JN(e,a.keyword,a.definition,t.type)})}function Khe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Jhe(e,t),e.opts.allowUnionTypes||Zhe(e,t),Xhe(e,e.dataTypes))}function Jhe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{YN(e.dataTypes,n)||qS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),eme(e,t)}}function Zhe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&qS(e,"use allowUnionTypes to allow union type keyword")}function Xhe(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,GS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Qhe(t,i))&&qS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Qhe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function YN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function eme(e,t){const n=[];for(const r of e.dataTypes)YN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function qS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,es.checkStrictMode)(e,t,e.opts.strictTypes)}class KN{constructor(t,n,r){if((0,Yf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,es.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",ZN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Yf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?hf.reportExtraError:hf.reportError)(this,this.def.error,n)}$dataError(){(0,hf.reportError)(this,this.def.$dataError||hf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,hf.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,Fg.checkDataTypes)(l,n,a.opts.strictNumbers,Fg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Rx.getSubschema)(this.it,t);(0,Rx.extendSubschemaData)(r,this.it,t),(0,Rx.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Vhe(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=es.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=es.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Ya.KeywordCxt=KN;function JN(e,t,n,r){const o=new KN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Yf.funcKeywordCode)(o,n):"macro"in n?(0,Yf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Yf.funcKeywordCode)(o,n)}const tme=/^\/(?:[^~]|~0|~1)*$/,nme=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!tme.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=nme.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,es.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ya.getData=ZN;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});class rme extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}vh.default=rme;var gh={};Object.defineProperty(gh,"__esModule",{value:!0});const Ox=Nr;class ome extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Ox.resolveUrl)(t,n,r),this.missingSchema=(0,Ox.normalizeId)((0,Ox.getFullPath)(t,this.missingRef))}}gh.default=ome;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.resolveSchema=bo.getCompilingSchema=bo.resolveRef=bo.compileSchema=bo.SchemaEnv=void 0;const Ma=Jt,ame=vh,Pl=Ri,Fa=Nr,KO=dn,ime=Ya;class qy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Fa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}bo.SchemaEnv=qy;function YS(e){const t=XN.call(this,e);if(t)return t;const n=(0,Fa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ma.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:ame.default,code:(0,Ma._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Pl.default.data,parentData:Pl.default.parentData,parentDataProperty:Pl.default.parentDataProperty,dataNames:[Pl.default.data],dataPathArr:[Ma.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ma.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ma.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ma._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,ime.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(Pl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${Pl.default.self}`,`${Pl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ma.Name?void 0:b,items:v instanceof Ma.Name?void 0:v,dynamicProps:b instanceof Ma.Name,dynamicItems:v instanceof Ma.Name},m.source&&(m.source.evaluated=(0,Ma.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}bo.compileSchema=YS;function sme(e,t,n){var r;n=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=ume.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new qy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=lme.call(this,a)}bo.resolveRef=sme;function lme(e){return(0,Fa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:YS.call(this,e)}function XN(e){for(const t of this._compilations)if(cme(t,e))return t}bo.getCompilingSchema=XN;function cme(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function ume(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Yy.call(this,e,t)}function Yy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Fa._getFullPath)(this.opts.uriResolver,n);let o=(0,Fa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Dx.call(this,n,e);const a=(0,Fa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=Yy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Dx.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||YS.call(this,i),a===(0,Fa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Fa.resolveUrl)(this.opts.uriResolver,o,c)),new qy({schema:s,schemaId:l,root:e,baseId:o})}return Dx.call(this,n,i)}}bo.resolveSchema=Yy;const dme=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Dx(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,KO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!dme.has(s)&&c&&(t=(0,Fa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,KO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Fa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Yy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new qy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const fme="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",pme="Meta-schema for $data reference (JSON AnySchema extension proposal)",hme="object",mme=["$data"],vme={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},gme=!1,yme={$id:fme,description:pme,type:hme,required:mme,properties:vme,additionalProperties:gme};var KS={},MC={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(xo,function(n){function r(){for(var le=arguments.length,oe=Array(le),pe=0;pe1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function z(le){throw new RangeError(O[le])}function V(le,oe){for(var pe=[],ke=le.length;ke--;)pe[ke]=oe(le[ke]);return pe}function Y(le,oe){var pe=le.split("@"),ke="";pe.length>1&&(ke=pe[0]+"@",le=pe[1]),le=le.replace(I,".");var Ee=le.split("."),pt=V(Ee,oe).join(".");return ke+pt}function Q(le){for(var oe=[],pe=0,ke=le.length;pe=55296&&Ee<=56319&&pe>1,oe+=U(oe/pe);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var pe=[],ke=oe.length,Ee=0,pt=_,ye=C,ve=oe.lastIndexOf(S);ve<0&&(ve=0);for(var Ie=0;Ie=128&&z("not-basic"),pe.push(oe.charCodeAt(Ie));for(var rt=ve>0?ve+1:0;rt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(rt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=ye?x:Nt>=ye+g?g:Nt-ye;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var Pn=pe.length+1;ye=j(Ee-lt,Pn,lt==0),U(Ee/Pn)>b-pt&&z("overflow"),pt+=U(Ee/Pn),Ee%=Pn,pe.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,pe)},q=function(oe){var pe=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,ye=C,ve=!0,Ie=!1,rt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(ve=(xt=lt.next()).done);ve=!0){var Nt=xt.value;Nt<128&&pe.push(G(Nt))}}catch(fo){Ie=!0,rt=fo}finally{try{!ve&<.return&<.return()}finally{if(Ie)throw rt}}var ut=pe.length,yt=ut;for(ut&&pe.push(S);yt=Ee&&tiU((b-pt)/Zr)&&z("overflow"),pt+=(Wt-Ee)*Zr,Ee=Wt;var Io=!0,ni=!1,Wn=void 0;try{for(var gl=oe[Symbol.iterator](),Xr;!(Io=(Xr=gl.next()).done);Io=!0){var Lh=Xr.value;if(Lhb&&z("overflow"),Lh==Ee){for(var yl=pt,Ao=v;;Ao+=v){var Ii=Ao<=ye?x:Ao>=ye+g?g:Ao-ye;if(yl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():pe="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),pe}function ce(le){for(var oe="",pe=0,ke=le.length;pe=194&&Ee<224){if(ke-pe>=6){var pt=parseInt(le.substr(pe+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=le.substr(pe,6);pe+=6}else if(Ee>=224){if(ke-pe>=9){var ye=parseInt(le.substr(pe+4,2),16),ve=parseInt(le.substr(pe+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(ye&63)<<6|ve&63)}else oe+=le.substr(pe,9);pe+=9}else oe+=le.substr(pe,3),pe+=3}return oe}function xe(le,oe){function pe(ke){var Ee=ce(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return le.scheme&&(le.scheme=String(le.scheme).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_SCHEME,"")),le.userinfo!==void 0&&(le.userinfo=String(le.userinfo).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),le.host!==void 0&&(le.host=String(le.host).replace(oe.PCT_ENCODED,pe).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),le.path!==void 0&&(le.path=String(le.path).replace(oe.PCT_ENCODED,pe).replace(le.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),le.query!==void 0&&(le.query=String(le.query).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),le.fragment!==void 0&&(le.fragment=String(le.fragment).replace(oe.PCT_ENCODED,pe).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),le}function me(le){return le.replace(/^0*(.*)/,"$1")||"0"}function ue(le,oe){var pe=le.match(oe.IPV4ADDRESS)||[],ke=p(pe,2),Ee=ke[1];return Ee?Ee.split(".").map(me).join("."):le}function se(le,oe){var pe=le.match(oe.IPV6ADDRESS)||[],ke=p(pe,3),Ee=ke[1],pt=ke[2];if(Ee){for(var ye=Ee.toLowerCase().split("::").reverse(),ve=p(ye,2),Ie=ve[0],rt=ve[1],lt=rt?rt.split(":").map(me):[],xt=Ie.split(":").map(me),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),Pn=0;Pn1){var Mi=Wt.slice(0,Un.index),ti=Wt.slice(Un.index+Un.length);Mo=Mi.join(":")+"::"+ti.join(":")}else Mo=Wt.join(":");return pt&&(Mo+="%"+pt),Mo}else return le}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fe="".match(/(){0}/)[1]===void 0;function Ve(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(le=(oe.scheme?oe.scheme+":":"")+"//"+le);var Ee=le.match(Ce);if(Ee){fe?(pe.scheme=Ee[1],pe.userinfo=Ee[3],pe.host=Ee[4],pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=Ee[7],pe.fragment=Ee[8],isNaN(pe.port)&&(pe.port=Ee[5])):(pe.scheme=Ee[1]||void 0,pe.userinfo=le.indexOf("@")!==-1?Ee[3]:void 0,pe.host=le.indexOf("//")!==-1?Ee[4]:void 0,pe.port=parseInt(Ee[5],10),pe.path=Ee[6]||"",pe.query=le.indexOf("?")!==-1?Ee[7]:void 0,pe.fragment=le.indexOf("#")!==-1?Ee[8]:void 0,isNaN(pe.port)&&(pe.port=le.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),pe.host&&(pe.host=se(ue(pe.host,ke),ke)),pe.scheme===void 0&&pe.userinfo===void 0&&pe.host===void 0&&pe.port===void 0&&!pe.path&&pe.query===void 0?pe.reference="same-document":pe.scheme===void 0?pe.reference="relative":pe.fragment===void 0?pe.reference="absolute":pe.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||pe.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(pe.host&&(oe.domainHost||pt&&pt.domainHost))try{pe.host=B.toASCII(pe.host.replace(ke.PCT_ENCODED,ce).toLowerCase())}catch(ye){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+ye}xe(pe,u)}else xe(pe,ke);pt&&pt.parse&&pt.parse(pe,oe)}else pe.error=pe.error||"URI can not be parsed.";return pe}function Ue(le,oe){var pe=oe.iri!==!1?f:u,ke=[];return le.userinfo!==void 0&&(ke.push(le.userinfo),ke.push("@")),le.host!==void 0&&ke.push(se(ue(String(le.host),pe),pe).replace(pe.IPV6ADDRESS,function(Ee,pt,ye){return"["+pt+(ye?"%25"+ye:"")+"]"})),(typeof le.port=="number"||typeof le.port=="string")&&(ke.push(":"),ke.push(String(le.port))),ke.length?ke.join(""):void 0}var De=/^\.\.?\//,Be=/^\/\.(\/|$)/,ge=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function $e(le){for(var oe=[];le.length;)if(le.match(De))le=le.replace(De,"");else if(le.match(Be))le=le.replace(Be,"/");else if(le.match(ge))le=le.replace(ge,"/"),oe.pop();else if(le==="."||le==="..")le="";else{var pe=le.match(we);if(pe){var ke=pe[0];le=le.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function He(le){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||le.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(le,oe),le.host&&!pe.IPV6ADDRESS.test(le.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{le.host=oe.iri?B.toUnicode(le.host):B.toASCII(le.host.replace(pe.PCT_ENCODED,ce).toLowerCase())}catch(ve){le.error=le.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+ve}}xe(le,pe),oe.reference!=="suffix"&&le.scheme&&(ke.push(le.scheme),ke.push(":"));var pt=Ue(le,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),le.path&&le.path.charAt(0)!=="/"&&ke.push("/")),le.path!==void 0){var ye=le.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(ye=$e(ye)),pt===void 0&&(ye=ye.replace(/^\/\//,"/%2F")),ke.push(ye)}return le.query!==void 0&&(ke.push("?"),ke.push(le.query)),le.fragment!==void 0&&(ke.push("#"),ke.push(le.fragment)),ke.join("")}function Ye(le,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(le=Ve(He(le,pe),pe),oe=Ve(He(oe,pe),pe)),pe=pe||{},!pe.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=$e(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=$e(oe.path):((le.userinfo!==void 0||le.host!==void 0||le.port!==void 0)&&!le.path?Ee.path="/"+oe.path:le.path?Ee.path=le.path.slice(0,le.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=$e(Ee.path)),Ee.query=oe.query):(Ee.path=le.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=le.query),Ee.userinfo=le.userinfo,Ee.host=le.host,Ee.port=le.port),Ee.scheme=le.scheme),Ee.fragment=oe.fragment,Ee}function Me(le,oe,pe){var ke=l({scheme:"null"},pe);return He(Ye(Ve(le,ke),Ve(oe,ke),ke,!0),ke)}function je(le,oe){return typeof le=="string"?le=He(Ve(le,oe),oe):a(le)==="object"&&(le=Ve(He(le,oe),oe)),le}function ze(le,oe,pe){return typeof le=="string"?le=He(Ve(le,pe),pe):a(le)==="object"&&(le=He(le,pe)),typeof oe=="string"?oe=He(Ve(oe,pe),pe):a(oe)==="object"&&(oe=He(oe,pe)),le===oe}function Pe(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(le,oe){return le&&le.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,ce)}var it={scheme:"http",domainHost:!0,parse:function(oe,pe){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,pe){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(le){return typeof le.secure=="boolean"?le.secure:String(le.scheme).toLowerCase()==="wss"}var Le={scheme:"ws",domainHost:!0,parse:function(oe,pe){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,pe){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],ye=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=ye,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Le.domainHost,parse:Le.parse,serialize:Le.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Se="[0-9A-Fa-f]",_e=o(o("%[EFef]"+Se+"%"+Se+Se+"%"+Se+Se)+"|"+o("%[89A-Fa-f]"+Se+"%"+Se+Se)+"|"+o("%"+Se+Se)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(nt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(_e,"g"),Et=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(le){var oe=ce(le);return oe.match(vt)?oe:le}var Bt={scheme:"mailto",parse:function(oe,pe){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,ye={},ve=ke.query.split("&"),Ie=0,rt=ve.length;Ienew RegExp(X,j);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var j,K,q,D,N,B,Z,re,ce,xe,me,ue,se,Ce,fe,Ve,Ue,De,Be,ge,we,$e,He,Ye,Me;const je=X.strict,ze=(j=X.code)===null||j===void 0?void 0:j.optimize,Pe=ze===!0||ze===void 0?1:ze||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(N=X.strictSchema)!==null&&N!==void 0?N:je)!==null&&B!==void 0?B:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:je)!==null&&re!==void 0?re:!0,strictTypes:(xe=(ce=X.strictTypes)!==null&&ce!==void 0?ce:je)!==null&&xe!==void 0?xe:"log",strictTuples:(ue=(me=X.strictTuples)!==null&&me!==void 0?me:je)!==null&&ue!==void 0?ue:"log",strictRequired:(Ce=(se=X.strictRequired)!==null&&se!==void 0?se:je)!==null&&Ce!==void 0?Ce:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(fe=X.loopRequired)!==null&&fe!==void 0?fe:y,loopEnum:(Ve=X.loopEnum)!==null&&Ve!==void 0?Ve:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(De=X.messages)!==null&&De!==void 0?De:!0,inlineRefs:(Be=X.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(ge=X.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:($e=X.validateSchema)!==null&&$e!==void 0?$e:!0,validateFormats:(He=X.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Ye=X.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(Me=X.int32range)!==null&&Me!==void 0?Me:!0,uriResolver:it}}class C{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,j,"NOT SUPPORTED"),_.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=O.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&I.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),E.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&j&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:j,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[K]||j:void 0}validate(j,K){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(j,K){const q=this._addSchema(j,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,j,K);async function D(xe,me){await N.call(this,xe.$schema);const ue=this._addSchema(xe,me);return ue.validate||B.call(this,ue)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function B(xe){try{return this._compileSchemaEnv(xe)}catch(me){if(!(me instanceof o.default))throw me;return Z.call(this,me),await re.call(this,me.missingSchema),B.call(this,xe)}}function Z({missingSchema:xe,missingRef:me}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${me} cannot be resolved`)}async function re(xe){const me=await ce.call(this,xe);this.refs[xe]||await N.call(this,me.$schema),this.refs[xe]||this.addSchema(me,xe,K)}async function ce(xe){const me=this._loading[xe];if(me)return me;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(j,K,q,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,q,D);return this}let N;if(typeof j=="object"){const{schemaId:B}=this.opts;if(N=j[B],N!==void 0&&typeof N!="string")throw new Error(`schema ${B} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(j,q,K,D,!0),this}addMetaSchema(j,K,q=this.opts.validateSchema){return this.addSchema(j,K,!0,q),this}validateSchema(j,K){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,j);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(j){let K;for(;typeof(K=S.call(this,j))=="string";)j=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,j),!K)return;this.refs[j]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=S.call(this,j);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const K=j;this._cache.delete(K);let q=j[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const K of j)this.addKeyword(K);return this}addKeyword(j,K){let q;if(typeof j=="string")q=j,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof j=="object"&&K===void 0){if(K=j,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>V.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>V.call(this,N,D):N=>D.type.forEach(B=>V.call(this,N,D,B))),this}getKeyword(j){const K=this.RULES.all[j];return typeof K=="object"?K.definition:!!K}removeKeyword(j){const{RULES:K}=this;delete K.keywords[j],delete K.all[j];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===j);D>=0&&q.rules.splice(D,1)}return this}addFormat(j,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[j]=K,this}errorsText(j=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(j,K){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of K){const N=D.split("/").slice(1);let B=j;for(const Z of N)B=B[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:ce}=re.definition,xe=B[Z];ce&&xe&&(B[Z]=J(xe))}}return j}_removeAllSchemas(j,K){for(const q in j){const D=j[q];(!K||K.test(q))&&(typeof D=="string"?delete j[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[q]))}}_addSchema(j,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let B;const{schemaId:Z}=this.opts;if(typeof j=="object")B=j[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(j);if(re!==void 0)return re;q=(0,l.normalizeId)(B||q);const ce=l.getSchemaRefs.call(this,j,q);return re=new i.SchemaEnv({schema:j,schemaId:Z,meta:K,baseId:q,localRefs:ce}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(j,!0),re}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):i.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,j)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,j,K,q="error"){for(const D in X){const N=D;N in j&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function S(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const j in X)this.addSchema(X[j],j)}function k(){for(const X in this.opts.formats){const j=this.opts.formats[X];j&&this.addFormat(X,j)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in X){const K=X[j];K.keyword||(K.keyword=j),this.addKeyword(K)}}function O(){const X={...this.opts};for(const j of b)delete X[j];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,j){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function V(X,j,K){var q;const D=j==null?void 0:j.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let B=D?N.post:N.rules.find(({type:re})=>re===K);if(B||(B={type:K,rules:[]},N.rules.push(B)),N.keywords[X]=!0,!j)return;const Z={keyword:X,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?Y.call(this,B,Z,j.before):B.rules.push(Z),N.all[X]=Z,(q=j.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,j,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,j):(X.rules.push(j),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:j}=X;j!==void 0&&(X.$data&&this.opts.$data&&(j=J(j)),X.validateSchema=this.compile(j,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,W]}}})(TN);var JS={},ZS={},XS={};Object.defineProperty(XS,"__esModule",{value:!0});const xme={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};XS.default=xme;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.callRef=nc.getValidate=void 0;const wme=gh,JO=Qt,go=Jt,qc=Ri,ZO=bo,ov=dn,Cme={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=ZO.resolveRef.call(l,c,o,n);if(u===void 0)throw new wme.default(r.opts.uriResolver,o,n);if(u instanceof ZO.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Uv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Uv(e,(0,go._)`${b}.validate`,c,c.$async)}function p(b){const v=e6(e,b);Uv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,go.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:go.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function e6(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,go._)`${n.scopeValue("wrapper",{ref:t})}.validate`}nc.getValidate=e6;function Uv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?qc.default.this:go.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,go._)`await ${(0,JO.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,go._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,JO.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,go._)`${b}.errors`;o.assign(qc.default.vErrors,(0,go._)`${qc.default.vErrors} === null ? ${v} : ${qc.default.vErrors}.concat(${v})`),o.assign(qc.default.errors,(0,go._)`${qc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=ov.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,go._)`${b}.evaluated.props`);a.props=ov.mergeEvaluated.props(o,g,a.props,go.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=ov.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,go._)`${b}.evaluated.items`);a.items=ov.mergeEvaluated.items(o,g,a.items,go.Name)}}}nc.callRef=Uv;nc.default=Cme;Object.defineProperty(ZS,"__esModule",{value:!0});const $me=XS,Sme=nc,_me=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",$me.default,Sme.default];ZS.default=_me;var QS={},e_={};Object.defineProperty(e_,"__esModule",{value:!0});const zg=Jt,Rs=zg.operators,Vg={maximum:{okStr:"<=",ok:Rs.LTE,fail:Rs.GT},minimum:{okStr:">=",ok:Rs.GTE,fail:Rs.LT},exclusiveMaximum:{okStr:"<",ok:Rs.LT,fail:Rs.GTE},exclusiveMinimum:{okStr:">",ok:Rs.GT,fail:Rs.LTE}},Eme={message:({keyword:e,schemaCode:t})=>(0,zg.str)`must be ${Vg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,zg._)`{comparison: ${Vg[e].okStr}, limit: ${t}}`},Pme={keyword:Object.keys(Vg),type:"number",schemaType:"number",$data:!0,error:Eme,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,zg._)`${n} ${Vg[t].fail} ${r} || isNaN(${n})`)}};e_.default=Pme;var t_={};Object.defineProperty(t_,"__esModule",{value:!0});const Kf=Jt,Tme={message:({schemaCode:e})=>(0,Kf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Kf._)`{multipleOf: ${e}}`},kme={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Tme,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Kf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Kf._)`${i} !== parseInt(${i})`;e.fail$data((0,Kf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};t_.default=kme;var n_={},r_={};Object.defineProperty(r_,"__esModule",{value:!0});function t6(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ll._)`{limit: ${e}}`},Mme={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Dme,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ll.operators.GT:Ll.operators.LT,i=o.opts.unicode===!1?(0,Ll._)`${n}.length`:(0,Ll._)`${(0,Rme.useFunc)(e.gen,Ome.default)}(${n})`;e.fail$data((0,Ll._)`${i} ${a} ${r}`)}};n_.default=Mme;var o_={};Object.defineProperty(o_,"__esModule",{value:!0});const Ime=Qt,Bg=Jt,Ame={message:({schemaCode:e})=>(0,Bg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Bg._)`{pattern: ${e}}`},Nme={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ame,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,Bg._)`(new RegExp(${o}, ${i}))`:(0,Ime.usePattern)(e,r);e.fail$data((0,Bg._)`!${s}.test(${t})`)}};o_.default=Nme;var a_={};Object.defineProperty(a_,"__esModule",{value:!0});const Jf=Jt,jme={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Jf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Jf._)`{limit: ${e}}`},Lme={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:jme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Jf.operators.GT:Jf.operators.LT;e.fail$data((0,Jf._)`Object.keys(${n}).length ${o} ${r}`)}};a_.default=Lme;var i_={};Object.defineProperty(i_,"__esModule",{value:!0});const mf=Qt,Zf=Jt,Fme=dn,zme={message:({params:{missingProperty:e}})=>(0,Zf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Zf._)`{missingProperty: ${e}}`},Vme={keyword:"required",type:"object",schemaType:"array",$data:!0,error:zme,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Fme.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Zf.nil,f);else for(const m of n)(0,mf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,mf.checkMissingProp)(e,n,m)),(0,mf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,mf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,mf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Zf.not)(b),()=>{e.error(),t.break()})},Zf.nil)}}};i_.default=Vme;var s_={};Object.defineProperty(s_,"__esModule",{value:!0});const Xf=Jt,Bme={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Xf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Xf._)`{limit: ${e}}`},Ume={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Bme,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Xf.operators.GT:Xf.operators.LT;e.fail$data((0,Xf._)`${n}.length ${o} ${r}`)}};s_.default=Ume;var l_={},yh={};Object.defineProperty(yh,"__esModule",{value:!0});const n6=NN;n6.code='require("ajv/dist/runtime/equal").default';yh.default=n6;Object.defineProperty(l_,"__esModule",{value:!0});const Mx=mh,Mr=Jt,Wme=dn,Hme=yh,Gme={message:({params:{i:e,j:t}})=>(0,Mr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Mr._)`{i: ${e}, j: ${t}}`},qme={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Gme,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Mx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Mr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Mr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Mr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,Mx.checkDataTypes)(c,x,s.opts.strictNumbers,Mx.DataType.Wrong),y=t.const("indices",(0,Mr._)`{}`);t.for((0,Mr._)`;${b}--;`,()=>{t.let(x,(0,Mr._)`${n}[${b}]`),t.if(g,(0,Mr._)`continue`),c.length>1&&t.if((0,Mr._)`typeof ${x} == "string"`,(0,Mr._)`${x} += "_"`),t.if((0,Mr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Mr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Mr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Wme.useFunc)(t,Hme.default),g=t.name("outer");t.label(g).for((0,Mr._)`;${b}--;`,()=>t.for((0,Mr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Mr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};l_.default=qme;var c_={};Object.defineProperty(c_,"__esModule",{value:!0});const IC=Jt,Yme=dn,Kme=yh,Jme={message:"must be equal to constant",params:({schemaCode:e})=>(0,IC._)`{allowedValue: ${e}}`},Zme={keyword:"const",$data:!0,error:Jme,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,IC._)`!${(0,Yme.useFunc)(t,Kme.default)}(${n}, ${o})`):e.fail((0,IC._)`${a} !== ${n}`)}};c_.default=Zme;var u_={};Object.defineProperty(u_,"__esModule",{value:!0});const Df=Jt,Xme=dn,Qme=yh,eve={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Df._)`{allowedValues: ${e}}`},tve={keyword:"enum",schemaType:"array",$data:!0,error:eve,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Xme.useFunc)(t,Qme.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Df.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Df._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Df._)`${c()}(${n}, ${m}[${b}])`:(0,Df._)`${n} === ${v}`}}};u_.default=tve;Object.defineProperty(QS,"__esModule",{value:!0});const nve=e_,rve=t_,ove=n_,ave=o_,ive=a_,sve=i_,lve=s_,cve=l_,uve=c_,dve=u_,fve=[nve.default,rve.default,ove.default,ave.default,ive.default,sve.default,lve.default,cve.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},uve.default,dve.default];QS.default=fve;var d_={},$d={};Object.defineProperty($d,"__esModule",{value:!0});$d.validateAdditionalItems=void 0;const Fl=Jt,AC=dn,pve={message:({params:{len:e}})=>(0,Fl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fl._)`{limit: ${e}}`},hve={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:pve,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,AC.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}r6(e,r)}};function r6(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Fl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Fl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,AC.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Fl._)`${s} <= ${t.length}`);n.if((0,Fl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:AC.Type.Num},c),i.allErrors||n.if((0,Fl.not)(c),()=>n.break())})}}$d.validateAdditionalItems=r6;$d.default=hve;var f_={},Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});Sd.validateTuple=void 0;const XO=Jt,Wv=dn,mve=Qt,vve={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return o6(e,"additionalItems",t);n.items=!0,!(0,Wv.alwaysValidSchema)(n,t)&&e.ok((0,mve.validateArray)(e))}};function o6(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Wv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,XO._)`${a}.length`);n.forEach((f,p)=>{(0,Wv.alwaysValidSchema)(s,f)||(r.if((0,XO._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Wv.checkStrictMode)(s,x,p.strictTuples)}}}Sd.validateTuple=o6;Sd.default=vve;Object.defineProperty(f_,"__esModule",{value:!0});const gve=Sd,yve={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,gve.validateTuple)(e,"items")};f_.default=yve;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});const QO=Jt,bve=dn,xve=Qt,wve=$d,Cve={message:({params:{len:e}})=>(0,QO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,QO._)`{limit: ${e}}`},$ve={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Cve,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,bve.alwaysValidSchema)(r,t)&&(o?(0,wve.validateAdditionalItems)(e,o):e.ok((0,xve.validateArray)(e)))}};p_.default=$ve;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const fa=Jt,av=dn,Sve={message:({params:{min:e,max:t}})=>t===void 0?(0,fa.str)`must contain at least ${e} valid item(s)`:(0,fa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fa._)`{minContains: ${e}}`:(0,fa._)`{minContains: ${e}, maxContains: ${t}}`},_ve={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Sve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,fa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,av.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,av.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,av.alwaysValidSchema)(a,n)){let v=(0,fa._)`${u} >= ${i}`;s!==void 0&&(v=(0,fa._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,fa._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:av.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,fa._)`${v}++`),s===void 0?t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,fa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,fa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};h_.default=_ve;var a6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, missingProperty: ${f}, depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(o6);var h_={};Object.defineProperty(h_,"__esModule",{value:!0});const a6=Zt,_ve=dn,Eve={message:"property name must be valid",params:({params:e})=>(0,a6._)`{propertyName: ${e.propertyName}}`},Pve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Eve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,_ve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,a6.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};h_.default=Pve;var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});const ov=Qt,Ia=Zt,Tve=Ri,av=dn,kve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},Rve={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:kve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,av.alwaysValidSchema)(i,n))return;const c=(0,ov.allSchemaProperties)(r.properties),u=(0,ov.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${Tve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,av.schemaRefOrVal)(i,r.properties,"properties");g=(0,ov.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,ov.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,av.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:av.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Yy.default=Rve;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const Ove=Ya,QO=Qt,Mx=dn,eD=Yy,Dve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&eD.default.code(new Ove.KeywordCxt(a,eD.default,"additionalProperties"));const i=(0,QO.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Mx.mergeEvaluated.props(t,(0,Mx.toHash)(i),a.props));const s=i.filter(f=>!(0,Mx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,QO.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};m_.default=Dve;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const tD=Qt,iv=Zt,nD=dn,rD=dn,Mve={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,tD.allSchemaProperties)(n),l=s.filter(v=>(0,nD.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof iv.Name)&&(a.props=(0,rD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,nD.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,iv._)`${(0,tD.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:rD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,iv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,iv.not)(u),()=>t.break())})})}}};v_.default=Mve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const Ive=dn,Ave={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Ive.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};g_.default=Ave;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Nve=Qt,jve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nve.validateUnion,error:{message:"must match a schema in anyOf"}};y_.default=jve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const Uv=Zt,Lve=dn,Fve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Uv._)`{passingSchemas: ${e.passing}}`},zve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Fve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Lve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Uv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Uv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Uv.Name)})})}}};b_.default=zve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Vve=dn,Bve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Vve.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};x_.default=Bve;var w_={};Object.defineProperty(w_,"__esModule",{value:!0});const Vg=Zt,i6=dn,Uve={message:({params:e})=>(0,Vg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Vg._)`{failingKeyword: ${e.ifClause}}`},Wve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Uve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,i6.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=oD(r,"then"),a=oD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Vg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Vg._)`${u}`):e.setParams({ifClause:u})}}}};function oD(e,t){const n=e.schema[t];return n!==void 0&&!(0,i6.alwaysValidSchema)(e,n)}w_.default=Wve;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});const Hve=dn,Gve={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Hve.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};C_.default=Gve;Object.defineProperty(u_,"__esModule",{value:!0});const qve=Cd,Yve=d_,Kve=$d,Zve=f_,Jve=p_,Xve=o6,Qve=h_,ege=Yy,tge=m_,nge=v_,rge=g_,oge=y_,age=b_,ige=x_,sge=w_,lge=C_;function cge(e=!1){const t=[rge.default,oge.default,age.default,ige.default,sge.default,lge.default,Qve.default,ege.default,Xve.default,tge.default,nge.default];return e?t.push(Yve.default,Zve.default):t.push(qve.default,Kve.default),t.push(Jve.default),t}u_.default=cge;var $_={},S_={};Object.defineProperty(S_,"__esModule",{value:!0});const ir=Zt,uge={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},dge={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:uge,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};S_.default=dge;Object.defineProperty($_,"__esModule",{value:!0});const fge=S_,pge=[fge.default];$_.default=pge;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.contentVocabulary=Yu.metadataVocabulary=void 0;Yu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(KS,"__esModule",{value:!0});const hge=ZS,mge=XS,vge=u_,gge=$_,aD=Yu,yge=[hge.default,mge.default,(0,vge.default)(),gge.default,aD.metadataVocabulary,aD.contentVocabulary];KS.default=yge;var __={},s6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(s6);Object.defineProperty(__,"__esModule",{value:!0});const au=Zt,AC=s6,iD=bo,bge=dn,xge={message:({params:{discrError:e,tagName:t}})=>e===AC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},wge={keyword:"discriminator",type:"object",schemaType:"object",error:xge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:AC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:AC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ya;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Zt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=hh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=mh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(kC,kC.exports);var l6=kC.exports;const kge=Vt(l6);var NC={exports:{}},c6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,O){return{validate:I,compare:O}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const O=r.exec(I);if(!O)return!1;const F=+O[1],U=+O[2],G=+O[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,O){if(I&&O)return I>O?1:IO?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(c6);var u6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=l6,n=Zt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(u6);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=c6,r=u6,o=Zt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(NC,NC.exports);var Rge=NC.exports;const Oge=Vt(Rge),Wv="additionalProperties",Hv="required",Dge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Mge{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Wv)},a=this.findOption(r)(Hv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Dge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const d6=(e,t={})=>{const n=o=>a=>{switch(a){case Wv:return Object.prototype.hasOwnProperty.call(t,Wv)?t[Wv]:!0;case Hv:return Object.prototype.hasOwnProperty.call(t,Hv)?t[Hv](o):Object.keys(o);default:return}};return new Mge(n).schemaObject(e)};var _i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(_i||(_i={}));const f6=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Ige=e=>e.type==="Group",p6=e=>e.elements!==void 0,Age=e=>!!e&&typeof e=="object",Nge=e=>Age(e)&&typeof e.scope=="string",jge=e=>!!e&&typeof e=="object",h6=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},m6=(e,t)=>{h6(e,t,-1)},v6=(e,t)=>{h6(e,t,1)},Lge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},sD=(e={})=>tn({},Lge,e),lD=(e=sD(),t)=>{switch(t.type){case J_:return sD(t.config);default:return e}},Wi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Fge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},jC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),cD=(e,t)=>{if(t){if(zge(t.options))return t.options.ajv;if(t.options!==void 0&&Zq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?jC(e.ajv,t.schema):e.ajv:Gye()},zge=e=>e?e.ajv!==void 0:!1,uD=(e,t)=>t&&Vge(t.options)?t.options.validationMode:e.validationMode,Vge=e=>e?e.validationMode!==void 0:!1,Bge=e=>e?e.additionalErrors!==void 0:!1,dD=(e,t)=>t&&Bge(t.options)?t.options.additionalErrors:e.additionalErrors,fD=(e=Fge,t)=>{switch(t.type){case G_:{const n=cD(e,t),r=uD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data),i=dD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case q_:{const n=cD(e,t),r=uD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data)):e.data!==t.data&&(a=Wi(o,t.data));const i=dD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:SN(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case Y_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Wi(r,e.data);return{...e,validator:r,errors:o}}case X_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?jC(e.ajv,t.schema).compile(t.schema):e.validator,o=Wi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Q_:return{...e,uischema:t.uischema};case K_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(lO(e.data)),r=Wi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(lO(n)),o=wde(t.path,r,e.data===void 0?{}:e.data),a=Wi(e.validator,o);return{...e,data:o,errors:a}}}case Z_:return{...e,errors:t.errors};case e2:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Wi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=jC(e.ajv,e.schema).compile(e.schema),r=Wi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Uge=e=>fr(e,"data"),Wge=e=>fr(e,"schema"),Hge=e=>fr(e,"uischema"),Gge=e=>fr(e,"ajv"),qge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Bg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=qge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Jy(t),t},E_=(e,t,n)=>r=>{const o=Ng(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Bg(a));return Ng(r,a=>{if(Kge.indexOf(a.keyword)!==-1&&!Hg(a.parentSchema))return!1;const i=Bg(a);let s=n(i);const l=a.parentSchema;return s&&!Yge(l)&&!Hg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&SN(l,t)),s})},Yge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Kge=["additionalProperties","allOf","anyOf","oneOf"],g6=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return E_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Zge=(e,t)=>g6(e,t,n=>n===e),Jge=(e,t)=>g6(e,t,n=>n.startsWith(e+".")),P_=(e,t)=>f6(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Xge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ei=(e,t,n)=>P_(e,t)??Xge(n),Ug=(e,t,n,r)=>`${Ei(e,t,n)}.${r}`,Qge=(e,t)=>`${e}.${t}`,T_=(e,t)=>t,k_=(e,t,n)=>{var s;const r=Ug(e.parentSchema,n,Bg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},R_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Ug(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return V_(e.map(i=>t(i,n,o)))},Ky=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!f6(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=P_(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},y6=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Qge(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Hr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Hr||(Hr={}));const b6=[{key:Hr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Hr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Hr.removeTooltip,default:()=>"Delete"},{key:Hr.removeAriaLabel,default:()=>"Delete button"},{key:Hr.upAriaLabel,default:()=>"Move item up"},{key:Hr.up,default:()=>"Up"},{key:Hr.down,default:()=>"Down"},{key:Hr.downAriaLabel,default:()=>"Move item down"},{key:Hr.noDataMessage,default:()=>"No data"},{key:Hr.noSelection,default:()=>"No selection"},{key:Hr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Hr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Hr.deleteDialogAccept,default:()=>"Yes"},{key:Hr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:T_,translateError:k_},pD=(e=Cu,t)=>{switch(t.type){case r2:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case n2:return{...e,translate:t.translator??T_,translateError:t.errorTranslator??k_};case t2:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},eye=e=>e===void 0?T_:e.translate,tye=e=>e===void 0?k_:e.translateError,Ku=-1,Za=e=>!Mt(e)&&e.scope!==void 0,Kr=e=>(t,n,r)=>{if(Mt(t)||!Za(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},O_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Za(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ja=e=>Kr(t=>!Mt(t)&&ol(t,e)),Zy=e=>Kr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,ds=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},nye=e=>t=>Mt(e)||!Za(t)?!1:cfe(t.scope,e),rye=e=>t=>{if(Mt(e)||!Za(t))return!1;const n=t.scope;return!Mt(n)&&Wde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ku,oye=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ku?Ku:a+e},x6=$n(_n("Control"),Ja("boolean")),aye=$n(_n("Control"),Ja("object")),w6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),C6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),$6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),D_=$n(_n("Control"),yc(Kr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),S6=$n(_n("Control"),Kr(e=>Hg(e))),_6=$n(_n("Control"),Ja("integer")),E6=$n(_n("Control"),Ja("number")),P6=$n(_n("Control"),Ja("string")),T6=$n(_n("Control"),ds("multi",!0)),k6=$n(_n("Control"),yc(Zy("date"),ds("format","date"))),R6=$n(_n("Control"),yc(Zy("time"),ds("format","time"))),O6=$n(_n("Control"),yc(Zy("date-time"),ds("format","date-time"))),D6=$n(Kr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),O_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),M_=$n(_n("Control"),D6),Df=(e,t,n)=>{if(G3(e))return TC(e,(r,o)=>r||Df(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Df(r,t,n)}return e.items?Df(e.items,t,n):e.properties?TC(Nfe(e.properties),(r,[o,a])=>r||Df(a,t,n),!1):!1},I_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Df(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Hg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},iye=M_,M6=$n(_n("Control"),Kr((e,t)=>Zu(e).length!==0&&!Array.isArray($a(e,"items",t))),O_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Zu(n);return r.length===1&&EN(["integer","number","boolean","string"],r[0])})),I6=$n(_n("Control"),yc(Ja("number"),Ja("integer")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),ds("slider",!0)),sye=$n(_n("Control"),Ja("integer"),ds("format",!0)),A6=e=>e.type==="Categorization",N6=e=>e.type==="Category",A_=e=>Mt(e.elements)?!1:e.elements.map(t=>A6(t)?A_(t):N6(t)).reduce((t,n)=>t&&n,!0),lye=e=>A_(e),cye=e=>(t,n,r)=>!e(t,n,r);var uye=Object.freeze({__proto__:null,NOT_APPLICABLE:Ku,isControl:Za,schemaMatches:Kr,schemaSubPathMatches:O_,schemaTypeIs:Ja,formatIs:Zy,uiTypeIs:_n,optionIs:ds,scopeEndsWith:nye,scopeEndIs:rye,and:$n,or:yc,rankWith:vn,withIncreasedRank:oye,isBooleanControl:x6,isObjectControl:aye,isAllOfControl:w6,isAnyOfControl:C6,isOneOfControl:$6,isEnumControl:D_,isOneOfEnumControl:S6,isIntegerControl:_6,isNumberControl:E6,isStringControl:P6,isMultiLineControl:T6,isDateControl:k6,isTimeControl:R6,isDateTimeControl:O6,isObjectArray:D6,isObjectArrayControl:M_,isObjectArrayWithNesting:I_,isArrayObjectControl:iye,isPrimitiveArrayControl:M6,isRangeControl:I6,isNumberFormatControl:sye,isCategorization:A6,isCategory:N6,hasCategory:A_,categorizationHasCategory:lye,not:cye});const j6=e=>(t,n,r)=>{const o=zy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ku)return o.uischema},gh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=j6(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},L6=(e,t)=>n=>Zge(e,t)(n.jsonforms.core),F6=(e,t)=>n=>Jge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>eye(fr(e,"jsonforms.i18n")),N_=()=>e=>tye(fr(e,"jsonforms.i18n")),yh=e=>Uge(fr(e,"jsonforms.core")),Wg=e=>Wge(fr(e,"jsonforms.core")),dye=e=>Hge(fr(e,"jsonforms.core")),Sd=e=>Gge(fr(e,"jsonforms.core")),j_=e=>fr(e,"jsonforms.renderers"),L_=e=>fr(e,"jsonforms.cells"),fye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},z6=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Jy),a=r[0]==="#"||r[0]===""?2:1;return wd(a,r.length,2).map(i=>r[i])},V6=(e,t)=>{if(!Nge(e))return t??"";const n=z6(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Jy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),LC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),pye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Jy);return Gv(e,r,n)},Gv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(pye(r))return Gv(e,o,n);const a=fr(e,r),i=Gv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Gv(c,[r,...o],n),s)break;return s}},hye=e=>e.type==="OR",mye=e=>e.type==="AND",vye=e=>e.type==="LEAF",gye=e=>Lpe(e,"schema"),hD=(e,t)=>V6(e,t),FC=(e,t,n,r)=>{if(mye(t))return t.conditions.reduce((o,a)=>o&&FC(e,a,n,r),!0);if(hye(t))return t.conditions.reduce((o,a)=>o||FC(e,a,n,r),!1);if(vye(t))return LC(e,hD(t,n))===t.expectedValue;if(gye(t)){const o=LC(e,hD(t,n));return r.validate(t.schema,o)}else return!0},B6=(e,t,n,r)=>{const o=e.rule.condition;return FC(t,o,n,r)},yye=(e,t,n=void 0,r)=>{const o=B6(e,t,n,r);switch(e.rule.effect){case _i.HIDE:return!o;case _i.SHOW:return o;default:return!0}},bye=(e,t,n=void 0,r)=>{const o=B6(e,t,n,r);switch(e.rule.effect){case _i.DISABLE:return!o;case _i.ENABLE:return o;default:return!0}},F_=e=>!!(e.rule&&(e.rule.effect===_i.SHOW||e.rule.effect===_i.HIDE)),xye=e=>!!(e.rule&&(e.rule.effect===_i.ENABLE||e.rule.effect===_i.DISABLE)),_d=(e,t,n=void 0,r)=>e.rule?yye(e,t,n,r):!0,wye=(e,t,n=void 0,r)=>e.rule?bye(e,t,n,r):!0,z_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&xye(n)?wye(n,o,t==null?void 0:t.path,Sd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},U6=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),V_=e=>e==null?"":e.join(` -`),ol=(e,t)=>EN(Zu(e),t),Zu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(G3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=VS(e.allOf,n=>Zu(n).length!==0);if(t)return Zu(t)}return[]},Po={schema:$a,data:LC},Cye=e=>z6(e.scope).join("."),cr={compose:bc,fromScoped:Cye},Ix=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Jy(n.substr(n.lastIndexOf("/")+1));return Vy(r)}return""},W6=(e,t)=>{const n=e.label;if(typeof n=="boolean")return sv(Ix(e,t),n);if(typeof n=="string")return sv(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ix(e,t),o=typeof n.show=="boolean"?n.show:!0;return sv(r,o)}return sv(Ix(e,t),!0)},sv=(e,t)=>({text:e,show:t}),$ye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},Xy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Qy=(e,t)=>e&&!t,ss=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Ip=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},B_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Ed=(e,t)=>{const{uischema:n}=t,r=yh(e),o=V6(n,t.path),a=t.visible===void 0||F_(n)?_d(n,r,t.path,Sd(e)):t.visible,i=n,s=t.id,l=Wg(e),c=i.scope!==void 0&&$ye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=L6(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=W6(n,u),v=b.show?b.text:"",x=rc(e),g=z_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=N_()(e),_=Ei(y,n,o),S=w(Ug(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Ug(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=R_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},Sye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),_ye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ip(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ip(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Eye=(e,t)=>{var o;const n=Ed(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>B_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Pye=(e,t)=>{var a;const n=Ed(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return B_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Ip(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))}));return{...n,options:o}},Tye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?VS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(yh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},U_=(e,t)=>{const{...n}=Ed(e,t);return{...n,uischemas:e.jsonforms.uischemas}},kye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=U_(e,t),l=Po.schema(r,"items",s.rootSchema),c=F6(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||j_(e),cells:t.cells||L_(e),translations:y6(u,b6,a,i)}},Rye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(m6(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(v6(r,n),r)))}}),Oye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),H6={visible:!0,enabled:!0,path:"",direction:"column"},Dye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":H6.direction,Mye=(e,t)=>{const n=yh(e),{uischema:r}=t,o=t.visible===void 0||F_(r)?_d(t.uischema,n,t.path,Sd(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=z_(e,t,r,void 0,n,i),l=Ca()(e),c=jge(r)?Ky(r,l):void 0;return{...H6,renderers:t.renderers||j_(e),cells:t.cells||L_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Dye(r),config:i,label:c}},Iye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Wg(e),rootSchema:Wg(e),uischema:t.uischema||dye(e),path:t.path,enabled:t.enabled,config:rc(e)}),W_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Ed(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:fye(e)}},Aye=(e,t)=>W_(e,t,"allOf"),Nye=(e,t)=>W_(e,t,"anyOf"),jye=(e,t)=>W_(e,t,"oneOf"),Lye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=U_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=R_(F6(n,c)(e),N_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:y6(u,b6,i,s)}},Fye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||F_(n)?_d(t.uischema,yh(e),t.path,Sd(e)):t.visible,o=n.text,a=Ca()(e),i=P_(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||j_(e),cells:t.cells||L_(e)}},e0=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=yh(e),c=t.visible!==void 0?t.visible:_d(a,l,void 0,Sd(e)),u=Wg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=z_(e,t,a,r||u,l,f);const m=Ca()(e),b=N_()(e),v=R_(L6(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},zye=(e,t)=>{const n=e0(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Vye=(e,t)=>{var o;const n=e0(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ip(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ip(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Bye=(e,t)=>{var o;const n=e0(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>B_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Uye=(e,t,n)=>e.title?e.title:n+"-"+t,t0=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:gh(a,l,r.scope,o,void 0,r,t),label:Uye(i,s,n)}}),H_=new Set,G6=(e,t)=>t<=1?e:e+t.toString(),Wye=(e,t)=>{const n=G6(e,t);return!H_.has(n)},q6=e=>{e===void 0&&(e="undefined");let t=0;for(;!Wye(e,t);)t++;const n=G6(e,t);return H_.add(n),n},Y6=e=>H_.delete(e),Hye=e=>{if(e.properties)return VS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Hg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Gye=e=>{const t=new kge({allErrors:!0,verbose:!0,strict:!1,...e});return Oge(t),t},K6=e=>({type:e,elements:[]}),qv=e=>({type:"Control",scope:e}),qye=(e,t)=>{if(!Mt(e)&&!p6(e)){const n=K6(t);return n.elements.push(e),n}return e},Yye=(e,t)=>{if(!Mt(t)){const n=Vy(t);if(Ige(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Kye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),zC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return zC($a(a,e.$ref,a),t,n,r,o,a);if(Kye(e)){const s=qv(n);return t.push(s),s}const i=Zu(e);if(i.length===0)return null;if(i.length>1){const s=qv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=K6(o);if(t.push(s),e.properties&&oX(e.properties).length>1&&Yye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),zC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=qv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Z6=(e,t="VerticalLayout",n="#",r=e)=>qye(zC(e,[],n,"",t,r),t),ac={jsonSchema:d6,uiSchema:Z6,controlElement:qv},G_="jsonforms/INIT",q_="jsonforms/UPDATE_CORE",Y_="jsonforms/SET_AJV",K_="jsonforms/UPDATE",Z_="jsonforms/UPDATE_ERRORS",Zye="jsonforms/VALIDATE",J6="jsonforms/ADD_RENDERER",X6="jsonforms/REMOVE_RENDERER",Q6="jsonforms/ADD_CELL",ej="jsonforms/REMOVE_CELL",J_="jsonforms/SET_CONFIG",tj="jsonforms/ADD_UI_SCHEMA",nj="jsonforms/REMOVE_UI_SCHEMA",X_="jsonforms/SET_SCHEMA",Q_="jsonforms/SET_UISCHEMA",e2="jsonforms/SET_VALIDATION_MODE",t2="jsonforms/SET_LOCALE",n2="jsonforms/SET_TRANSLATOR",r2="jsonforms/UPDATE_I18N",rj="jsonforms/ADD_DEFAULT_DATA",oj="jsonforms/REMOVE_DEFAULT_DATA",Jye=(e,t=d6(e),n,r)=>({type:G_,data:e,schema:t,uischema:typeof n=="object"?n:Z6(t),options:r}),Xye=(e,t,n,r)=>({type:q_,data:e,schema:t,uischema:n,options:r}),Qye=(e,t)=>({type:rj,schemaPath:e,data:t}),e0e=e=>({type:oj,schemaPath:e}),t0e=e=>({type:Y_,ajv:e}),Va=(e,t)=>({type:K_,path:e,updater:t}),n0e=e=>({type:Z_,errors:e}),r0e=(e,t)=>({type:J6,tester:e,renderer:t}),o0e=(e,t)=>({type:Q6,tester:e,cell:t}),a0e=(e,t)=>({type:ej,tester:e,cell:t}),i0e=(e,t)=>({type:X6,tester:e,renderer:t}),s0e=e=>({type:J_,config:e}),l0e=e=>({type:e2,validationMode:e}),c0e=(e,t)=>({type:tj,tester:e,uischema:t}),u0e=e=>({type:nj,tester:e}),d0e=e=>({type:t2,locale:e}),f0e=e=>({type:X_,schema:e}),p0e=(e,t)=>({type:n2,translator:e,errorTranslator:t}),h0e=(e,t,n)=>({type:r2,locale:e,translator:t,errorTranslator:n}),m0e=e=>({type:Q_,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:G_,UPDATE_CORE:q_,SET_AJV:Y_,UPDATE_DATA:K_,UPDATE_ERRORS:Z_,VALIDATE:Zye,ADD_RENDERER:J6,REMOVE_RENDERER:X6,ADD_CELL:Q6,REMOVE_CELL:ej,SET_CONFIG:J_,ADD_UI_SCHEMA:tj,REMOVE_UI_SCHEMA:nj,SET_SCHEMA:X_,SET_UISCHEMA:Q_,SET_VALIDATION_MODE:e2,SET_LOCALE:t2,SET_TRANSLATOR:n2,UPDATE_I18N:r2,ADD_DEFAULT_DATA:rj,REMOVE_DEFAULT_DATA:oj,init:Jye,updateCore:Xye,registerDefaultData:Qye,unregisterDefaultData:e0e,setAjv:t0e,update:Va,updateErrors:n0e,registerRenderer:r0e,registerCell:o0e,unregisterCell:a0e,unregisterRenderer:i0e,setConfig:s0e,setValidationMode:l0e,registerUISchema:c0e,unregisterUISchema:u0e,setLocale:d0e,setSchema:f0e,setTranslator:p0e,updateI18n:h0e,setUISchema:m0e});const Gg={createLabelDescriptionFrom:W6,convertToValidClassName:U6};var v0e=co,g0e=function(){return v0e.Date.now()},y0e=g0e,b0e=ta,Ax=y0e,mD=yN,x0e="Expected a function",w0e=Math.max,C0e=Math.min;function $0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(x0e);t=mD(t)||0,b0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?w0e(mD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?C0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Ax();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Ax())}function _(){var S=Ax(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var S0e=$0e;const aj=Vt(S0e);class ij extends M.Component{constructor(t){super(t)}}class sj extends ij{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class lj extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const _0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},cj=M.createContext({core:_0e,renderers:[]}),E0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},P0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(fD,void 0,()=>fD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(lD,void 0,()=>lD(void 0,Yc.setConfig(t.config)));E0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(pD,void 0,()=>{var _,S,E;return pD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(aj((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(cj.Provider,{value:v},e)},xc=()=>$.useContext(cj),T0e=(e,t)=>Lye({jsonforms:{...e}},t),k0e=(e,t)=>kye({jsonforms:{...e}},t),R0e=(e,t)=>Mye({jsonforms:{...e}},t),O0e=(e,t)=>Ed({jsonforms:{...e}},t),D0e=(e,t)=>{var o;const n=_ye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},M0e=(e,t)=>{var o;const n=Eye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},I0e=(e,t)=>{var o;const n=Pye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},A0e=(e,t)=>U_({jsonforms:{...e}},t),N0e=(e,t)=>({...Aye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>Sye(e),[e]),j0e=(e,t)=>{const n=Nye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},L0e=(e,t)=>{const n=jye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},F0e=(e,t)=>Iye({jsonforms:{...e}},t),uj=e=>({...Do(e),...$.useMemo(()=>Rye(e),[e])}),z0e=(e,t)=>Tye({jsonforms:{...e}},t),V0e=(e,t)=>e0({jsonforms:{...e}},t),B0e=(e,t)=>{var o;const n=Vye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},U0e=(e,t)=>{var o;const n=Bye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},W0e=(e,t)=>zye({jsonforms:{...e}},t),H0e=e=>({...Do(e),...$.useMemo(()=>Oye(e),[e])}),G0e=(e,t)=>Fye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},q0e=e=>function({ctx:n,props:r}){const o=F0e(n,r);return M.createElement(e,Object.assign({},r,o))},Y0e=e=>function({ctx:n,props:r}){const o=O0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},K0e=e=>function({ctx:n,props:r}){const o=R0e(n,r);return M.createElement(e,Object.assign({},r,o))},Z0e=e=>function({ctx:n,props:r}){const o=L0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},J0e=e=>function({ctx:n,props:r}){const o=j0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},X0e=e=>function({ctx:n,props:r}){const o=N0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Q0e=e=>function({ctx:n,props:r}){const o=A0e(n,r);return M.createElement(e,Object.assign({},r,o))},e1e=e=>function({ctx:n,props:r}){const o=T0e(n,r),a=uj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},t1e=e=>function({ctx:n,props:r}){const o=k0e(n,r),a=uj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},n1e=e=>function({ctx:n,props:r}){const o=z0e(n,r);return M.createElement(e,Object.assign({},r,o))},r1e=e=>function({ctx:n,props:r}){const o=V0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},o1e=e=>function({ctx:n,props:r}){const o=W0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},a1e=e=>function({ctx:n,props:r}){const o=B0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},i1e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},s1e=e=>function({ctx:n,props:r}){const o=U0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},l1e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},c1e=e=>function({ctx:n,props:r}){const o=I0e(n,r),a=H0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},u1e=e=>function({ctx:n,props:r}){const o=G0e(n,r);return M.createElement(e,Object.assign({},r,o))},dj=(e,t=!0)=>_r(q0e(t?M.memo(e):e)),uo=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),fs=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),d1e=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),fj=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),f1e=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),p1e=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),n0=(e,t=!0)=>_r(e1e(t?M.memo(e):e)),pj=(e,t=!0)=>_r(t1e(t?M.memo(e):e)),h1e=(e,t=!0)=>_r(n1e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(r1e(t?M.memo(e):e)),m1e=(e,t=!0)=>_r(o1e(t?M.memo(e):e)),hj=(e,t=!0)=>_r(a1e(t?M.memo(e):e)),o2=(e,t=!0)=>_r(i1e(t?M.memo(e):e)),v1e=(e,t=!0)=>_r(s1e(t?M.memo(e):e)),a2=(e,t=!0)=>_r(l1e(t?M.memo(e):e)),g1e=(e,t=!0)=>_r(c1e(t?M.memo(e):e)),mj=(e,t=!0)=>_r(u1e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class vj extends M.Component{constructor(t){super(t),this.state={id:Za(t.uischema)?q6(t.uischema.scope):void 0}}componentWillUnmount(){Za(this.props.uischema)&&Y6(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(y1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const y1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>zy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(lj,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class b1e extends vj{constructor(t){super(t)}}const ko=dj(vj);dj(b1e);const gj=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(P0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},x1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>zy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(lj,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=m1e(x1e),w1e={black:"#000",white:"#fff"},Ap=w1e,C1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=C1e,$1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Zc=$1e,S1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jc=S1e,_1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=_1e,E1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=E1e,P1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},mf=P1e,T1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},k1e=T1e;function Yi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function yj(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yj(e[n])}),t}function qr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Yi(t[o])&&o in e&&Yi(e[o])?r[o]=qr(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?yj(t[o]):t[o]:r[o]=t[o])}),r}var bj={exports:{}},R1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O1e=R1e,D1e=O1e;function xj(){}function wj(){}wj.resetWarningCache=xj;var M1e=function(){function e(r,o,a,i,s,l){if(l!==D1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wj,resetWarningCache:xj};return n.PropTypes=n,n};bj.exports=M1e();var I1e=bj.exports;const L=Vt(I1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function bh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function N1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function Pi(e){return Vn(e).defaultView||window}function j1e(e,t){return()=>null}function Np(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const L1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Zn=L1e;let vD=0;function F1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(vD+=1,n(`mui-${vD}`))},[t]),r}const gD=cp["useId".toString()];function Qa(e){if(gD!==void 0){const t=gD();return e??t}return F1e(e)}function z1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Zn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Np(n,t)})},e)}let r0=!0,VC=!1,yD;const V1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function B1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&V1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function U1e(e){e.metaKey||e.altKey||e.ctrlKey||(r0=!0)}function Nx(){r0=!1}function W1e(){this.visibilityState==="hidden"&&VC&&(r0=!0)}function H1e(e){e.addEventListener("keydown",U1e,!0),e.addEventListener("mousedown",Nx,!0),e.addEventListener("pointerdown",Nx,!0),e.addEventListener("touchstart",Nx,!0),e.addEventListener("visibilitychange",W1e,!0)}function G1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return r0||B1e(t)}function o0(){const e=$.useCallback(o=>{o!=null&&H1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(VC=!0,window.clearTimeout(yD),yD=window.setTimeout(()=>{VC=!1},100),t.current=!1,!0):!1}function r(o){return G1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Cj(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function $j(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function q1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch($j()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Y1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},i2=Y1e,K1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Z1e=K1e;function s2(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=s2(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const bD=e=>e,J1e=()=>{let e=bD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bD}}},X1e=J1e(),Sj=X1e,Q1e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=Q1e[t];return r?`${n}-${r}`:`${Sj.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const a0="$$material";function Re(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function _j(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ebe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tbe=_j(function(e){return ebe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function nbe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ar(Td,--Ro):0,Ju--,ur===10&&(Ju=1,s0--),ur}function Yo(){return ur=Ro2||Lp(ur)>3?"":" "}function mbe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return xh(e,Yv()+(t<6&&wi()==32&&Yo()==32))}function UC(e){for(;Yo();)switch(ur){case e:return Ro;case 34:case 39:e!==34&&e!==39&&UC(ur);break;case 40:e===41&&UC(e);break;case 92:Yo();break}return Ro}function vbe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&wi()===47)break;return"/*"+xh(t,Ro-1)+"*"+i0(e===47?e:Yo())}function gbe(e){for(;!Lp(wi());)Yo();return xh(e,Ro)}function ybe(e){return Oj(Zv("",null,null,null,[""],e=Rj(e),0,[0],e))}function Zv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ar(E,f-1)==58){BC(E+=mn(Kv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Kv(y);break;case 9:case 10:case 13:case 32:E+=hbe(b);break;case 92:E+=mbe(Yv()-1,7);continue;case 47:switch(wi()){case 42:case 47:lv(bbe(vbe(Yo(),Yv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=di(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&di(E)-f&&lv(m>32?wD(E+";",r,n,f-1):wD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(lv(S=xD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Zv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ar(E,3)===110?100:p){case 100:case 108:case 109:case 115:Zv(e,S,S,r&&lv(xD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Zv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+di(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&pbe()==125)continue}switch(E+=i0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(di(E)-1)*g,g=1;break;case 64:wi()===45&&(E+=Kv(Yo())),p=wi(),u=f=di(w=E+=gbe(Yv())),y++;break;case 45:b===45&&di(E)==2&&(v=0)}}return a}function xD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=u2(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return l0(e,t,n,o===0?l2:s,l,c,u)}function bbe(e,t,n){return l0(e,t,n,Ej,i0(fbe()),jp(e,2,-2),0)}function wD(e,t,n,r){return l0(e,t,n,c2,jp(e,0,r),jp(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=u2(e),o=0;o6)switch(Ar(e,t+1)){case 109:if(Ar(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Yg+(Ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~BC(e,"stretch")?Dj(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ar(e,t+1)!==115)break;case 6444:switch(Ar(e,di(e)-3-(~BC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ar(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Ar(e,t+11)){case 114:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Wr+e+e}return e}var Tbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case c2:t.return=Dj(t.value,t.length);break;case Pj:return Mu([vf(t,{value:mn(t.value,"@","@"+hn)})],o);case l2:if(t.length)return dbe(t.props,function(a){switch(ube(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([vf(t,{props:[mn(a,/:(read-\w+)/,":"+Yg+"$1")]})],o);case"::placeholder":return Mu([vf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,":"+Yg+"$1")]}),vf(t,{props:[mn(a,/:(plac\w+)/,Wr+"input-$1")]})],o)}return""})}},kbe=[Tbe],Rbe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kbe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(a6);var m_={};Object.defineProperty(m_,"__esModule",{value:!0});const i6=Jt,Eve=dn,Pve={message:"property name must be valid",params:({params:e})=>(0,i6._)`{propertyName: ${e.propertyName}}`},Tve={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Pve,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,Eve.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,i6.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};m_.default=Tve;var Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});const iv=Qt,Ia=Jt,kve=Ri,sv=dn,Rve={message:"must NOT have additional properties",params:({params:e})=>(0,Ia._)`{additionalProperty: ${e.additionalProperty}}`},Ove={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Rve,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,sv.alwaysValidSchema)(i,n))return;const c=(0,iv.allSchemaProperties)(r.properties),u=(0,iv.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ia._)`${a} === ${kve.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,sv.schemaRefOrVal)(i,r.properties,"properties");g=(0,iv.isOwnProperty)(t,y,x)}else c.length?g=(0,Ia.or)(...c.map(y=>(0,Ia._)`${x} === ${y}`)):g=Ia.nil;return u.length&&(g=(0,Ia.or)(g,...u.map(y=>(0,Ia._)`${(0,iv.usePattern)(e,y)}.test(${x})`))),(0,Ia.not)(g)}function m(x){t.code((0,Ia._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,sv.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ia.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ia.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:sv.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};Ky.default=Ove;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});const Dve=Ya,eD=Qt,Ix=dn,tD=Ky,Mve={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&tD.default.code(new Dve.KeywordCxt(a,tD.default,"additionalProperties"));const i=(0,eD.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Ix.mergeEvaluated.props(t,(0,Ix.toHash)(i),a.props));const s=i.filter(f=>!(0,Ix.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,eD.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};v_.default=Mve;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});const nD=Qt,lv=Jt,rD=dn,oD=dn,Ive={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,nD.allSchemaProperties)(n),l=s.filter(v=>(0,rD.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof lv.Name)&&(a.props=(0,oD.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,rD.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,lv._)`${(0,nD.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:oD.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,lv._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,lv.not)(u),()=>t.break())})})}}};g_.default=Ive;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});const Ave=dn,Nve={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Ave.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};y_.default=Nve;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});const jve=Qt,Lve={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:jve.validateUnion,error:{message:"must match a schema in anyOf"}};b_.default=Lve;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});const Hv=Jt,Fve=dn,zve={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Hv._)`{passingSchemas: ${e.passing}}`},Vve={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:zve,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Fve.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Hv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Hv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Hv.Name)})})}}};x_.default=Vve;var w_={};Object.defineProperty(w_,"__esModule",{value:!0});const Bve=dn,Uve={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Bve.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};w_.default=Uve;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});const Ug=Jt,s6=dn,Wve={message:({params:e})=>(0,Ug.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ug._)`{failingKeyword: ${e.ifClause}}`},Hve={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Wve,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,s6.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=aD(r,"then"),a=aD(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,Ug.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,Ug._)`${u}`):e.setParams({ifClause:u})}}}};function aD(e,t){const n=e.schema[t];return n!==void 0&&!(0,s6.alwaysValidSchema)(e,n)}C_.default=Hve;var $_={};Object.defineProperty($_,"__esModule",{value:!0});const Gve=dn,qve={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Gve.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};$_.default=qve;Object.defineProperty(d_,"__esModule",{value:!0});const Yve=$d,Kve=f_,Jve=Sd,Zve=p_,Xve=h_,Qve=a6,ege=m_,tge=Ky,nge=v_,rge=g_,oge=y_,age=b_,ige=x_,sge=w_,lge=C_,cge=$_;function uge(e=!1){const t=[oge.default,age.default,ige.default,sge.default,lge.default,cge.default,ege.default,tge.default,Qve.default,nge.default,rge.default];return e?t.push(Kve.default,Zve.default):t.push(Yve.default,Jve.default),t.push(Xve.default),t}d_.default=uge;var S_={},__={};Object.defineProperty(__,"__esModule",{value:!0});const ir=Jt,dge={message:({schemaCode:e})=>(0,ir.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ir._)`{format: ${e}}`},fge={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:dge,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ir._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ir._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ir._)`${v}.type || "string"`).assign(g,(0,ir._)`${v}.validate`),()=>n.assign(x,(0,ir._)`"string"`).assign(g,v)),e.fail$data((0,ir.or)(y(),w()));function y(){return l.strictSchema===!1?ir.nil:(0,ir._)`${i} && !${g}`}function w(){const C=u.$async?(0,ir._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ir._)`${g}(${r})`,_=(0,ir._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ir._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const S=_ instanceof RegExp?(0,ir.regexpCode)(_):l.code.formats?(0,ir._)`${l.code.formats}${(0,ir.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:S});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ir._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${g}(${r})`}return typeof x=="function"?(0,ir._)`${g}(${r})`:(0,ir._)`${g}.test(${r})`}}}};__.default=fge;Object.defineProperty(S_,"__esModule",{value:!0});const pge=__,hge=[pge.default];S_.default=hge;var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.contentVocabulary=Ku.metadataVocabulary=void 0;Ku.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ku.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(JS,"__esModule",{value:!0});const mge=ZS,vge=QS,gge=d_,yge=S_,iD=Ku,bge=[mge.default,vge.default,(0,gge.default)(),yge.default,iD.metadataVocabulary,iD.contentVocabulary];JS.default=bge;var E_={},l6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(l6);Object.defineProperty(E_,"__esModule",{value:!0});const au=Jt,NC=l6,sD=bo,xge=dn,wge={message:({params:{discrError:e,tagName:t}})=>e===NC.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,au._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Cge={keyword:"discriminator",type:"object",schemaType:"object",error:wge,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,au._)`${n}${(0,au.getProperty)(s)}`);t.if((0,au._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:NC.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,au._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:NC.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,au.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ya;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=vh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=gh;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(RC,RC.exports);var c6=RC.exports;const Rge=Vt(c6);var jC={exports:{}},u6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,O){return{validate:I,compare:O}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:S},double:{type:"number",validate:S},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const O=r.exec(I);if(!O)return!1;const F=+O[1],U=+O[2],G=+O[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,O){if(I&&O)return I>O?1:IO?1:I=y}function _(I){return Number.isInteger(I)}function S(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(u6);var d6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=c6,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(d6);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=u6,r=d6,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(jC,jC.exports);var Oge=jC.exports;const Dge=Vt(Oge),Gv="additionalProperties",qv="required",Mge=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Ige{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Gv)},a=this.findOption(r)(qv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Mge(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const f6=(e,t={})=>{const n=o=>a=>{switch(a){case Gv:return Object.prototype.hasOwnProperty.call(t,Gv)?t[Gv]:!0;case qv:return Object.prototype.hasOwnProperty.call(t,qv)?t[qv](o):Object.keys(o);default:return}};return new Ige(n).schemaObject(e)};var _i;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(_i||(_i={}));const p6=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Age=e=>e.type==="Group",h6=e=>e.elements!==void 0,Nge=e=>!!e&&typeof e=="object",jge=e=>Nge(e)&&typeof e.scope=="string",Lge=e=>!!e&&typeof e=="object",m6=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},v6=(e,t)=>{m6(e,t,-1)},g6=(e,t)=>{m6(e,t,1)},Fge={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},lD=(e={})=>tn({},Fge,e),cD=(e=lD(),t)=>{switch(t.type){case X_:return lD(t.config);default:return e}},Wi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,zge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},LC=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),uD=(e,t)=>{if(t){if(Vge(t.options))return t.options.ajv;if(t.options!==void 0&&Zq(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?LC(e.ajv,t.schema):e.ajv:qye()},Vge=e=>e?e.ajv!==void 0:!1,dD=(e,t)=>t&&Bge(t.options)?t.options.validationMode:e.validationMode,Bge=e=>e?e.validationMode!==void 0:!1,Uge=e=>e?e.additionalErrors!==void 0:!1,fD=(e,t)=>t&&Uge(t.options)?t.options.additionalErrors:e.additionalErrors,pD=(e=zge,t)=>{switch(t.type){case q_:{const n=uD(e,t),r=dD(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data),i=fD(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case Y_:{const n=uD(e,t),r=dD(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Wi(o,t.data)):e.data!==t.data&&(a=Wi(o,t.data));const i=fD(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:_N(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case K_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Wi(r,e.data);return{...e,validator:r,errors:o}}case Q_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?LC(e.ajv,t.schema).compile(t.schema):e.validator,o=Wi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case e2:return{...e,uischema:t.uischema};case J_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(cO(e.data)),r=Wi(e.validator,n);return{...e,data:n,errors:r}}else{const n=fr(e.data,t.path),r=t.updater(cO(n)),o=Cde(t.path,r,e.data===void 0?{}:e.data),a=Wi(e.validator,o);return{...e,data:o,errors:a}}}case Z_:return{...e,errors:t.errors};case t2:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Wi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=LC(e.ajv,e.schema).compile(e.schema),r=Wi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Wge=e=>fr(e,"data"),Hge=e=>fr(e,"schema"),Gge=e=>fr(e,"uischema"),qge=e=>fr(e,"ajv"),Yge=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},Wg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Yge(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Xy(t),t},P_=(e,t,n)=>r=>{const o=Lg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>Wg(a));return Lg(r,a=>{if(Jge.indexOf(a.keyword)!==-1&&!qg(a.parentSchema))return!1;const i=Wg(a);let s=n(i);const l=a.parentSchema;return s&&!Kge(l)&&!qg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&_N(l,t)),s})},Kge=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Jge=["additionalProperties","allOf","anyOf","oneOf"],y6=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return P_(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Zge=(e,t)=>y6(e,t,n=>n===e),Xge=(e,t)=>y6(e,t,n=>n.startsWith(e+".")),T_=(e,t)=>p6(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Qge=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ei=(e,t,n)=>T_(e,t)??Qge(n),Hg=(e,t,n,r)=>`${Ei(e,t,n)}.${r}`,eye=(e,t)=>`${e}.${t}`,k_=(e,t)=>t,R_=(e,t,n)=>{var s;const r=Hg(e.parentSchema,n,Wg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},O_=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Hg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return B_(e.map(i=>t(i,n,o)))},Jy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!p6(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=T_(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},b6=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=eye(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Hr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Hr||(Hr={}));const x6=[{key:Hr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Hr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Hr.removeTooltip,default:()=>"Delete"},{key:Hr.removeAriaLabel,default:()=>"Delete button"},{key:Hr.upAriaLabel,default:()=>"Move item up"},{key:Hr.up,default:()=>"Up"},{key:Hr.down,default:()=>"Down"},{key:Hr.downAriaLabel,default:()=>"Move item down"},{key:Hr.noDataMessage,default:()=>"No data"},{key:Hr.noSelection,default:()=>"No selection"},{key:Hr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Hr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Hr.deleteDialogAccept,default:()=>"Yes"},{key:Hr.deleteDialogDecline,default:()=>"No"}],Cu={locale:"en",translate:k_,translateError:R_},hD=(e=Cu,t)=>{switch(t.type){case o2:{const n=t.locale??Cu.locale,r=t.translator??Cu.translate,o=t.errorTranslator??Cu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case r2:return{...e,translate:t.translator??k_,translateError:t.errorTranslator??R_};case n2:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},tye=e=>e===void 0?k_:e.translate,nye=e=>e===void 0?R_:e.translateError,Ju=-1,Ja=e=>!Mt(e)&&e.scope!==void 0,Kr=e=>(t,n,r)=>{if(Mt(t)||!Ja(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return ol(n,"object")&&(a=$a(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},D_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ja(n))return!1;const a=n.scope;let i=r;return ol(r,"object")&&(i=$a(r,a,o==null?void 0:o.rootSchema)),i=fr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Za=e=>Kr(t=>!Mt(t)&&ol(t,e)),Zy=e=>Kr(t=>!Mt(t)&&t.format===e&&ol(t,"string")),_n=e=>t=>!Mt(t)&&t.type===e,ds=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},rye=e=>t=>Mt(e)||!Ja(t)?!1:ufe(t.scope,e),oye=e=>t=>{if(Mt(e)||!Ja(t))return!1;const n=t.scope;return!Mt(n)&&Hde(n.split("/"))===e},$n=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),yc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),vn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Ju,aye=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Ju?Ju:a+e},w6=$n(_n("Control"),Za("boolean")),iye=$n(_n("Control"),Za("object")),C6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),$6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),S6=$n(_n("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),M_=$n(_n("Control"),yc(Kr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),_6=$n(_n("Control"),Kr(e=>qg(e))),E6=$n(_n("Control"),Za("integer")),P6=$n(_n("Control"),Za("number")),T6=$n(_n("Control"),Za("string")),k6=$n(_n("Control"),ds("multi",!0)),R6=$n(_n("Control"),yc(Zy("date"),ds("format","date"))),O6=$n(_n("Control"),yc(Zy("time"),ds("format","time"))),D6=$n(_n("Control"),yc(Zy("date-time"),ds("format","date-time"))),M6=$n(Kr((e,t)=>ol(e,"array")&&!Array.isArray($a(e,"items",t))),D_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e;return ol(n,"object")})),I_=$n(_n("Control"),M6),Mf=(e,t,n)=>{if(q3(e))return kC(e,(r,o)=>r||Mf(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=$a(n,e.$ref,n);if(r&&!r.$ref)return Mf(r,t,n)}return e.items?Mf(e.items,t,n):e.properties?kC(jfe(e.properties),(r,[o,a])=>r||Mf(a,t,n),!1):!1},A_=(e,t,n)=>{if(!_n("Control")(e,t,n))return!1;const r=e.scope,o=$a(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Mf(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!qg(i)||ol(i,"object")&&(a++,a===2)||ol(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},sye=I_,I6=$n(_n("Control"),Kr((e,t)=>Zu(e).length!==0&&!Array.isArray($a(e,"items",t))),D_("items",(e,t)=>{const n=e.$ref?$a(t,e.$ref,t):e,r=Zu(n);return r.length===1&&PN(["integer","number","boolean","string"],r[0])})),A6=$n(_n("Control"),yc(Za("number"),Za("integer")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),ds("slider",!0)),lye=$n(_n("Control"),Za("integer"),ds("format",!0)),N6=e=>e.type==="Categorization",j6=e=>e.type==="Category",N_=e=>Mt(e.elements)?!1:e.elements.map(t=>N6(t)?N_(t):j6(t)).reduce((t,n)=>t&&n,!0),cye=e=>N_(e),uye=e=>(t,n,r)=>!e(t,n,r);var dye=Object.freeze({__proto__:null,NOT_APPLICABLE:Ju,isControl:Ja,schemaMatches:Kr,schemaSubPathMatches:D_,schemaTypeIs:Za,formatIs:Zy,uiTypeIs:_n,optionIs:ds,scopeEndsWith:rye,scopeEndIs:oye,and:$n,or:yc,rankWith:vn,withIncreasedRank:aye,isBooleanControl:w6,isObjectControl:iye,isAllOfControl:C6,isAnyOfControl:$6,isOneOfControl:S6,isEnumControl:M_,isOneOfEnumControl:_6,isIntegerControl:E6,isNumberControl:P6,isStringControl:T6,isMultiLineControl:k6,isDateControl:R6,isTimeControl:O6,isDateTimeControl:D6,isObjectArray:M6,isObjectArrayControl:I_,isObjectArrayWithNesting:A_,isArrayObjectControl:sye,isPrimitiveArrayControl:I6,isRangeControl:A6,isNumberFormatControl:lye,isCategorization:N6,isCategory:j6,hasCategory:N_,categorizationHasCategory:cye,not:uye});const L6=e=>(t,n,r)=>{const o=Vy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Ju)return o.uischema},bh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():ac.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=L6(e)(t,n,r);return s===void 0?typeof o=="function"?o():ac.uiSchema(t,o,"#",i):s},F6=(e,t)=>n=>Zge(e,t)(n.jsonforms.core),z6=(e,t)=>n=>Xge(e,t)(n.jsonforms.core),rc=e=>e.jsonforms.config,Ca=()=>e=>tye(fr(e,"jsonforms.i18n")),j_=()=>e=>nye(fr(e,"jsonforms.i18n")),xh=e=>Wge(fr(e,"jsonforms.core")),Gg=e=>Hge(fr(e,"jsonforms.core")),fye=e=>Gge(fr(e,"jsonforms.core")),_d=e=>qge(fr(e,"jsonforms.core")),L_=e=>fr(e,"jsonforms.renderers"),F_=e=>fr(e,"jsonforms.cells"),pye=e=>fr(e,"jsonforms.uischemas"),bc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},V6=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Xy),a=r[0]==="#"||r[0]===""?2:1;return Cd(a,r.length,2).map(i=>r[i])},B6=(e,t)=>{if(!jge(e))return t??"";const n=V6(e.scope);return Mt(n)?t??"":bc(t,n.join("."))},oc=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Xy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),FC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),hye=e=>e==="#"||e===void 0||e==="",$a=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Xy);return Yv(e,r,n)},Yv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=$a(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(hye(r))return Yv(e,o,n);const a=fr(e,r),i=Yv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Yv(c,[r,...o],n),s)break;return s}},mye=e=>e.type==="OR",vye=e=>e.type==="AND",gye=e=>e.type==="LEAF",yye=e=>Fpe(e,"schema"),mD=(e,t)=>B6(e,t),zC=(e,t,n,r)=>{if(vye(t))return t.conditions.reduce((o,a)=>o&&zC(e,a,n,r),!0);if(mye(t))return t.conditions.reduce((o,a)=>o||zC(e,a,n,r),!1);if(gye(t))return FC(e,mD(t,n))===t.expectedValue;if(yye(t)){const o=FC(e,mD(t,n));return r.validate(t.schema,o)}else return!0},U6=(e,t,n,r)=>{const o=e.rule.condition;return zC(t,o,n,r)},bye=(e,t,n=void 0,r)=>{const o=U6(e,t,n,r);switch(e.rule.effect){case _i.HIDE:return!o;case _i.SHOW:return o;default:return!0}},xye=(e,t,n=void 0,r)=>{const o=U6(e,t,n,r);switch(e.rule.effect){case _i.DISABLE:return!o;case _i.ENABLE:return o;default:return!0}},z_=e=>!!(e.rule&&(e.rule.effect===_i.SHOW||e.rule.effect===_i.HIDE)),wye=e=>!!(e.rule&&(e.rule.effect===_i.ENABLE||e.rule.effect===_i.DISABLE)),Ed=(e,t,n=void 0,r)=>e.rule?bye(e,t,n,r):!0,Cye=(e,t,n=void 0,r)=>e.rule?xye(e,t,n,r):!0,V_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&wye(n)?Cye(n,o,t==null?void 0:t.path,_d(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},W6=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),B_=e=>e==null?"":e.join(` +`),ol=(e,t)=>PN(Zu(e),t),Zu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(q3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=BS(e.allOf,n=>Zu(n).length!==0);if(t)return Zu(t)}return[]},Po={schema:$a,data:FC},$ye=e=>V6(e.scope).join("."),cr={compose:bc,fromScoped:$ye},Ax=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Xy(n.substr(n.lastIndexOf("/")+1));return By(r)}return""},H6=(e,t)=>{const n=e.label;if(typeof n=="boolean")return cv(Ax(e,t),n);if(typeof n=="string")return cv(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Ax(e,t),o=typeof n.show=="boolean"?n.show:!0;return cv(r,o)}return cv(Ax(e,t),!0)},cv=(e,t)=>({text:e,show:t}),Sye=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=Po.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},Qy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,e0=(e,t)=>e&&!t,ss=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},To=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,Ap=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},U_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Pd=(e,t)=>{const{uischema:n}=t,r=xh(e),o=B6(n,t.path),a=t.visible===void 0||z_(n)?Ed(n,r,t.path,_d(e)):t.visible,i=n,s=t.id,l=Gg(e),c=i.scope!==void 0&&Sye(t.schema,i.scope,l),u=Po.schema(t.schema||l,i.scope,l),f=F6(o,u)(e),p=u!==void 0?u.description:"",m=Po.data(r,o),b=H6(n,u),v=b.show?b.text:"",x=rc(e),g=V_(e,t,n,u||l,r,x),y=u??l,w=Ca()(e),C=j_()(e),_=Ei(y,n,o),S=w(Hg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Hg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=O_(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:S,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:rc(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},_ye=e=>({handleChange(t,n){e(Va(t,()=>n))}}),Eye=(e,t)=>{var o;const n=Pd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ap(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ap(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Pye=(e,t)=>{var o;const n=Pd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>U_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Tye=(e,t)=>{var a;const n=Pd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return U_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return Ap(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ei(n.schema,n.uischema,n.path))}));return{...n,options:o}},kye=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?BS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=bc(r,`${o}`),s=Po.data(xh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},W_=(e,t)=>{const{...n}=Pd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},Rye=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=W_(e,t),l=Po.schema(r,"items",s.rootSchema),c=z6(n,l)(e),u=Ca()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||L_(e),cells:t.cells||F_(e),translations:b6(u,x6,a,i)}},Oye=e=>({addItem:(t,n)=>()=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Va(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Va(t,r=>(v6(r,n),r)))},moveDown:(t,n)=>()=>{e(Va(t,r=>(g6(r,n),r)))}}),Dye=e=>({addItem:(t,n)=>{e(Va(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Va(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),G6={visible:!0,enabled:!0,path:"",direction:"column"},Mye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":G6.direction,Iye=(e,t)=>{const n=xh(e),{uischema:r}=t,o=t.visible===void 0||z_(r)?Ed(t.uischema,n,t.path,_d(e)):t.visible,a=Po.data(n,t.path),i=rc(e),s=V_(e,t,r,void 0,n,i),l=Ca()(e),c=Lge(r)?Jy(r,l):void 0;return{...G6,renderers:t.renderers||L_(e),cells:t.cells||F_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Mye(r),config:i,label:c}},Aye=(e,t)=>({renderers:t.renderers||fr(e.jsonforms,"renderers"),cells:t.cells||fr(e.jsonforms,"cells"),schema:t.schema||Gg(e),rootSchema:Gg(e),uischema:t.uischema||fye(e),path:t.path,enabled:t.enabled,config:rc(e)}),H_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=Pd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=Po.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:pye(e)}},Nye=(e,t)=>H_(e,t,"allOf"),jye=(e,t)=>H_(e,t,"anyOf"),Lye=(e,t)=>H_(e,t,"oneOf"),Fye=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=W_(e,t),c=Po.schema(r,"items",l.rootSchema),u=Ca()(e),f=O_(z6(n,c)(e),j_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:b6(u,x6,i,s)}},zye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||z_(n)?Ed(t.uischema,xh(e),t.path,_d(e)):t.visible,o=n.text,a=Ca()(e),i=T_(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:rc(e),renderers:t.renderers||L_(e),cells:t.cells||F_(e)}},t0=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=xh(e),c=t.visible!==void 0?t.visible:Ed(a,l,void 0,_d(e)),u=Gg(e),f=rc(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=V_(e,t,a,r||u,l,f);const m=Ca()(e),b=j_()(e),v=O_(F6(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:Po.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:rc(e),rootSchema:u,renderers:i,cells:s}},Vye=(e,t)=>{const n=t0(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Bye=(e,t)=>{var o;const n=t0(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>Ap(a,Ca()(e),Ei(n.schema,n.uischema,n.path))))||n.schema.const&&[Ap(n.schema.const,Ca()(e),Ei(n.schema,n.uischema,n.path))];return{...n,options:r}},Uye=(e,t)=>{var o;const n=t0(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>U_(a,Ca()(e),Ei(n.schema,n.uischema,n.path))));return{...n,options:r}},Wye=(e,t,n)=>e.title?e.title:n+"-"+t,n0=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?Po.schema(t,i.$ref,t):i;return{schema:l,uischema:bh(a,l,r.scope,o,void 0,r,t),label:Wye(i,s,n)}}),G_=new Set,q6=(e,t)=>t<=1?e:e+t.toString(),Hye=(e,t)=>{const n=q6(e,t);return!G_.has(n)},Y6=e=>{e===void 0&&(e="undefined");let t=0;for(;!Hye(e,t);)t++;const n=q6(e,t);return G_.add(n),n},K6=e=>G_.delete(e),Gye=e=>{if(e.properties)return BS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},qg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),qye=e=>{const t=new Rge({allErrors:!0,verbose:!0,strict:!1,...e});return Dge(t),t},J6=e=>({type:e,elements:[]}),Kv=e=>({type:"Control",scope:e}),Yye=(e,t)=>{if(!Mt(e)&&!h6(e)){const n=J6(t);return n.elements.push(e),n}return e},Kye=(e,t)=>{if(!Mt(t)){const n=By(t);if(Age(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Jye=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),VC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return VC($a(a,e.$ref,a),t,n,r,o,a);if(Jye(e)){const s=Kv(n);return t.push(s),s}const i=Zu(e);if(i.length===0)return null;if(i.length>1){const s=Kv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=J6(o);if(t.push(s),e.properties&&aX(e.properties).length>1&&Kye(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${oc(c)}`;u.$ref!==void 0&&(u=$a(a,u.$ref,a)),VC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Kv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Z6=(e,t="VerticalLayout",n="#",r=e)=>Yye(VC(e,[],n,"",t,r),t),ac={jsonSchema:f6,uiSchema:Z6,controlElement:Kv},q_="jsonforms/INIT",Y_="jsonforms/UPDATE_CORE",K_="jsonforms/SET_AJV",J_="jsonforms/UPDATE",Z_="jsonforms/UPDATE_ERRORS",Zye="jsonforms/VALIDATE",X6="jsonforms/ADD_RENDERER",Q6="jsonforms/REMOVE_RENDERER",ej="jsonforms/ADD_CELL",tj="jsonforms/REMOVE_CELL",X_="jsonforms/SET_CONFIG",nj="jsonforms/ADD_UI_SCHEMA",rj="jsonforms/REMOVE_UI_SCHEMA",Q_="jsonforms/SET_SCHEMA",e2="jsonforms/SET_UISCHEMA",t2="jsonforms/SET_VALIDATION_MODE",n2="jsonforms/SET_LOCALE",r2="jsonforms/SET_TRANSLATOR",o2="jsonforms/UPDATE_I18N",oj="jsonforms/ADD_DEFAULT_DATA",aj="jsonforms/REMOVE_DEFAULT_DATA",Xye=(e,t=f6(e),n,r)=>({type:q_,data:e,schema:t,uischema:typeof n=="object"?n:Z6(t),options:r}),Qye=(e,t,n,r)=>({type:Y_,data:e,schema:t,uischema:n,options:r}),e0e=(e,t)=>({type:oj,schemaPath:e,data:t}),t0e=e=>({type:aj,schemaPath:e}),n0e=e=>({type:K_,ajv:e}),Va=(e,t)=>({type:J_,path:e,updater:t}),r0e=e=>({type:Z_,errors:e}),o0e=(e,t)=>({type:X6,tester:e,renderer:t}),a0e=(e,t)=>({type:ej,tester:e,cell:t}),i0e=(e,t)=>({type:tj,tester:e,cell:t}),s0e=(e,t)=>({type:Q6,tester:e,renderer:t}),l0e=e=>({type:X_,config:e}),c0e=e=>({type:t2,validationMode:e}),u0e=(e,t)=>({type:nj,tester:e,uischema:t}),d0e=e=>({type:rj,tester:e}),f0e=e=>({type:n2,locale:e}),p0e=e=>({type:Q_,schema:e}),h0e=(e,t)=>({type:r2,translator:e,errorTranslator:t}),m0e=(e,t,n)=>({type:o2,locale:e,translator:t,errorTranslator:n}),v0e=e=>({type:e2,uischema:e});var Yc=Object.freeze({__proto__:null,INIT:q_,UPDATE_CORE:Y_,SET_AJV:K_,UPDATE_DATA:J_,UPDATE_ERRORS:Z_,VALIDATE:Zye,ADD_RENDERER:X6,REMOVE_RENDERER:Q6,ADD_CELL:ej,REMOVE_CELL:tj,SET_CONFIG:X_,ADD_UI_SCHEMA:nj,REMOVE_UI_SCHEMA:rj,SET_SCHEMA:Q_,SET_UISCHEMA:e2,SET_VALIDATION_MODE:t2,SET_LOCALE:n2,SET_TRANSLATOR:r2,UPDATE_I18N:o2,ADD_DEFAULT_DATA:oj,REMOVE_DEFAULT_DATA:aj,init:Xye,updateCore:Qye,registerDefaultData:e0e,unregisterDefaultData:t0e,setAjv:n0e,update:Va,updateErrors:r0e,registerRenderer:o0e,registerCell:a0e,unregisterCell:i0e,unregisterRenderer:s0e,setConfig:l0e,setValidationMode:c0e,registerUISchema:u0e,unregisterUISchema:d0e,setLocale:f0e,setSchema:p0e,setTranslator:h0e,updateI18n:m0e,setUISchema:v0e});const Yg={createLabelDescriptionFrom:H6,convertToValidClassName:W6};var g0e=co,y0e=function(){return g0e.Date.now()},b0e=y0e,x0e=ta,Nx=b0e,vD=bN,w0e="Expected a function",C0e=Math.max,$0e=Math.min;function S0e(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(w0e);t=vD(t)||0,x0e(n)&&(u=!!n.leading,f="maxWait"in n,a=f?C0e(vD(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,k=o;return r=o=void 0,c=S,i=e.apply(k,E),i}function b(S){return c=S,s=setTimeout(g,t),u?m(S):i}function v(S){var E=S-l,k=S-c,I=t-E;return f?$0e(I,a-k):I}function x(S){var E=S-l,k=S-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var S=Nx();if(x(S))return y(S);s=setTimeout(g,v(S))}function y(S){return s=void 0,p&&r?m(S):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Nx())}function _(){var S=Nx(),E=x(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var _0e=S0e;const ij=Vt(_0e);class sj extends M.Component{constructor(t){super(t)}}class lj extends sj{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class cj extends $.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const E0e={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},uj=M.createContext({core:E0e,renderers:[]}),P0e=(e,t)=>{const n=$.useRef(!0);$.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},T0e=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=$.useReducer(pD,void 0,()=>pD(t.core,Yc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));$.useEffect(()=>{u(Yc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=$.useReducer(cD,void 0,()=>cD(void 0,Yc.setConfig(t.config)));P0e(()=>{p(Yc.setConfig(t.config))},[t.config]);const[m,b]=$.useReducer(hD,void 0,()=>{var _,S,E;return hD(t.i18n,Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))});$.useEffect(()=>{var _,S,E;b(Yc.updateI18n((_=t.i18n)==null?void 0:_.locale,(S=t.i18n)==null?void 0:S.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=$.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=$.useRef(n);$.useEffect(()=>{x.current=n},[n]);const g=$.useCallback(ij((..._)=>{var S;return(S=x.current)==null?void 0:S.call(x,..._)},10),[]);return $.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(uj.Provider,{value:v},e)},xc=()=>$.useContext(uj),k0e=(e,t)=>Fye({jsonforms:{...e}},t),R0e=(e,t)=>Rye({jsonforms:{...e}},t),O0e=(e,t)=>Iye({jsonforms:{...e}},t),D0e=(e,t)=>Pd({jsonforms:{...e}},t),M0e=(e,t)=>{var o;const n=Eye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},I0e=(e,t)=>{var o;const n=Pye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},A0e=(e,t)=>{var o;const n=Tye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},N0e=(e,t)=>W_({jsonforms:{...e}},t),j0e=(e,t)=>({...Nye({jsonforms:{...e}},t)}),Do=e=>$.useMemo(()=>_ye(e),[e]),L0e=(e,t)=>{const n=jye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},F0e=(e,t)=>{const n=Lye({jsonforms:{...e}},t),r=Do(e.dispatch);return{...n,...r}},z0e=(e,t)=>Aye({jsonforms:{...e}},t),dj=e=>({...Do(e),...$.useMemo(()=>Oye(e),[e])}),V0e=(e,t)=>kye({jsonforms:{...e}},t),B0e=(e,t)=>t0({jsonforms:{...e}},t),U0e=(e,t)=>{var o;const n=Bye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},W0e=(e,t)=>{var o;const n=Uye({jsonforms:{...e}},t),r=$.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},H0e=(e,t)=>Vye({jsonforms:{...e}},t),G0e=e=>({...Do(e),...$.useMemo(()=>Dye(e),[e])}),q0e=(e,t)=>zye({jsonforms:{...e}},t),_r=e=>function(n){const r=xc();return M.createElement(e,{ctx:r,props:n})},Y0e=e=>function({ctx:n,props:r}){const o=z0e(n,r);return M.createElement(e,Object.assign({},r,o))},K0e=e=>function({ctx:n,props:r}){const o=D0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},J0e=e=>function({ctx:n,props:r}){const o=O0e(n,r);return M.createElement(e,Object.assign({},r,o))},Z0e=e=>function({ctx:n,props:r}){const o=F0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},X0e=e=>function({ctx:n,props:r}){const o=L0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Q0e=e=>function({ctx:n,props:r}){const o=j0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},e1e=e=>function({ctx:n,props:r}){const o=N0e(n,r);return M.createElement(e,Object.assign({},r,o))},t1e=e=>function({ctx:n,props:r}){const o=k0e(n,r),a=dj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},n1e=e=>function({ctx:n,props:r}){const o=R0e(n,r),a=dj(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},r1e=e=>function({ctx:n,props:r}){const o=V0e(n,r);return M.createElement(e,Object.assign({},r,o))},o1e=e=>function({ctx:n,props:r}){const o=B0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},a1e=e=>function({ctx:n,props:r}){const o=H0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},i1e=e=>function({ctx:n,props:r}){const o=U0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},s1e=e=>function({ctx:n,props:r}){const o=M0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},l1e=e=>function({ctx:n,props:r}){const o=W0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},c1e=e=>function({ctx:n,props:r}){const o=I0e(n,r),a=Do(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},u1e=e=>function({ctx:n,props:r}){const o=A0e(n,r),a=G0e(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},d1e=e=>function({ctx:n,props:r}){const o=q0e(n,r);return M.createElement(e,Object.assign({},r,o))},fj=(e,t=!0)=>_r(Y0e(t?M.memo(e):e)),uo=(e,t=!0)=>_r(K0e(t?M.memo(e):e)),fs=(e,t=!0)=>_r(J0e(t?M.memo(e):e)),f1e=(e,t=!0)=>_r(Z0e(t?M.memo(e):e)),pj=(e,t=!0)=>_r(X0e(t?M.memo(e):e)),p1e=(e,t=!0)=>_r(Q0e(t?M.memo(e):e)),h1e=(e,t=!0)=>_r(e1e(t?M.memo(e):e)),r0=(e,t=!0)=>_r(t1e(t?M.memo(e):e)),hj=(e,t=!0)=>_r(n1e(t?M.memo(e):e)),m1e=(e,t=!0)=>_r(r1e(t?M.memo(e):e)),hr=(e,t=!0)=>_r(o1e(t?M.memo(e):e)),v1e=(e,t=!0)=>_r(a1e(t?M.memo(e):e)),mj=(e,t=!0)=>_r(i1e(t?M.memo(e):e)),a2=(e,t=!0)=>_r(s1e(t?M.memo(e):e)),g1e=(e,t=!0)=>_r(l1e(t?M.memo(e):e)),i2=(e,t=!0)=>_r(c1e(t?M.memo(e):e)),y1e=(e,t=!0)=>_r(u1e(t?M.memo(e):e)),vj=(e,t=!0)=>_r(d1e(t?M.memo(e):e)),ul=e=>function(n){var i,s;const r=xc(),o=((i=r.i18n)==null?void 0:i.locale)??Cu.locale,a=((s=r.i18n)==null?void 0:s.translate)??Cu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class gj extends M.Component{constructor(t){super(t),this.state={id:Ja(t.uischema)?Y6(t.uischema.scope):void 0}}componentWillUnmount(){Ja(this.props.uischema)&&K6(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(b1e,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const b1e=M.memo(function(t){const n=$.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=$.useMemo(()=>Vy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(cj,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class x1e extends gj{constructor(t){super(t)}}const ko=fj(gj);fj(x1e);const yj=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=$.useMemo(()=>r!==void 0?r:ac.jsonSchema(n),[r,n]),v=$.useMemo(()=>typeof o=="object"?o:ac.uiSchema(b),[o,b]);return M.createElement(T0e,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(ko,null))},w1e=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=$.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=$.useMemo(()=>Vy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(cj,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ic=v1e(w1e),C1e={black:"#000",white:"#fff"},Np=C1e,$1e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=$1e,S1e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jc=S1e,_1e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zc=_1e,E1e={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc=E1e,P1e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qc=P1e,T1e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},vf=T1e,k1e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},R1e=k1e;function Yi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function bj(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=bj(e[n])}),t}function qr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Yi(t[o])&&o in e&&Yi(e[o])?r[o]=qr(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?bj(t[o]):t[o]:r[o]=t[o])}),r}var xj={exports:{}},O1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",D1e=O1e,M1e=D1e;function wj(){}function Cj(){}Cj.resetWarningCache=wj;var I1e=function(){function e(r,o,a,i,s,l){if(l!==M1e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Cj,resetWarningCache:wj};return n.PropTypes=n,n};xj.exports=I1e();var A1e=xj.exports;const L=Vt(A1e);function al(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function wh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function j1e(e,t){return()=>null}function Du(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function Pi(e){return Vn(e).defaultView||window}function L1e(e,t){return()=>null}function jp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const F1e=typeof window<"u"?$.useLayoutEffect:$.useEffect,Jn=F1e;let gD=0;function z1e(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(gD+=1,n(`mui-${gD}`))},[t]),r}const yD=up["useId".toString()];function Qa(e){if(yD!==void 0){const t=yD();return e??t}return z1e(e)}function V1e(e,t,n,r,o){return null}function $r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[a,i]=$.useState(t),s=o?e:a,l=$.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=$.useRef(e);return Jn(()=>{t.current=e}),$.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{jp(n,t)})},e)}let o0=!0,BC=!1,bD;const B1e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function U1e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&B1e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function W1e(e){e.metaKey||e.altKey||e.ctrlKey||(o0=!0)}function jx(){o0=!1}function H1e(){this.visibilityState==="hidden"&&BC&&(o0=!0)}function G1e(e){e.addEventListener("keydown",W1e,!0),e.addEventListener("mousedown",jx,!0),e.addEventListener("pointerdown",jx,!0),e.addEventListener("touchstart",jx,!0),e.addEventListener("visibilitychange",H1e,!0)}function q1e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return o0||U1e(t)}function a0(){const e=$.useCallback(o=>{o!=null&&G1e(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(BC=!0,window.clearTimeout(bD),bD=window.setTimeout(()=>{BC=!1},100),t.current=!1,!0):!1}function r(o){return q1e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function $j(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function Sj(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function Y1e(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(Sj()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const K1e=e=>{const t=$.useRef({});return $.useEffect(()=>{t.current=e}),t.current},s2=K1e,J1e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Z1e=J1e;function l2(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=l2(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const xD=e=>e,X1e=()=>{let e=xD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xD}}},Q1e=X1e(),_j=Q1e,ebe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=ebe[t];return r?`${n}-${r}`:`${_j.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tt(e,o,n)}),r}const i0="$$material";function Re(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function Ej(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tbe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nbe=Ej(function(e){return tbe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function rbe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ar(kd,--Ro):0,Xu--,ur===10&&(Xu=1,l0--),ur}function Yo(){return ur=Ro2||Fp(ur)>3?"":" "}function vbe(e,t){for(;--t&&Yo()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return Ch(e,Jv()+(t<6&&wi()==32&&Yo()==32))}function WC(e){for(;Yo();)switch(ur){case e:return Ro;case 34:case 39:e!==34&&e!==39&&WC(ur);break;case 40:e===41&&WC(e);break;case 92:Yo();break}return Ro}function gbe(e,t){for(;Yo()&&e+ur!==47+10;)if(e+ur===42+42&&wi()===47)break;return"/*"+Ch(t,Ro-1)+"*"+s0(e===47?e:Yo())}function ybe(e){for(;!Fp(wi());)Yo();return Ch(e,Ro)}function bbe(e){return Dj(Xv("",null,null,null,[""],e=Oj(e),0,[0],e))}function Xv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,S=r,E=w;x;)switch(b=y,y=Yo()){case 40:if(b!=108&&Ar(E,f-1)==58){UC(E+=mn(Zv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Zv(y);break;case 9:case 10:case 13:case 32:E+=mbe(b);break;case 92:E+=vbe(Jv()-1,7);continue;case 47:switch(wi()){case 42:case 47:uv(xbe(gbe(Yo(),Jv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=di(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=mn(E,/\f/g,"")),m>0&&di(E)-f&&uv(m>32?CD(E+";",r,n,f-1):CD(mn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(uv(S=wD(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Xv(E,t,S,S,C,a,f,s,_);else switch(p===99&&Ar(E,3)===110?100:p){case 100:case 108:case 109:case 115:Xv(e,S,S,r&&uv(wD(e,S,S,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Xv(E,S,S,S,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+di(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&hbe()==125)continue}switch(E+=s0(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(di(E)-1)*g,g=1;break;case 64:wi()===45&&(E+=Zv(Yo())),p=wi(),u=f=di(w=E+=ybe(Jv())),y++;break;case 45:b===45&&di(E)==2&&(v=0)}}return a}function wD(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=d2(p),b=0,v=0,x=0;b0?p[g]+" "+y:mn(y,/&\f/g,p[g])))&&(l[x++]=w);return c0(e,t,n,o===0?c2:s,l,c,u)}function xbe(e,t,n){return c0(e,t,n,Pj,s0(pbe()),Lp(e,2,-2),0)}function CD(e,t,n,r){return c0(e,t,n,u2,Lp(e,0,r),Lp(e,r+1,-1),r)}function Mu(e,t){for(var n="",r=d2(e),o=0;o6)switch(Ar(e,t+1)){case 109:if(Ar(e,t+4)!==45)break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Jg+(Ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~UC(e,"stretch")?Mj(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ar(e,t+1)!==115)break;case 6444:switch(Ar(e,di(e)-3-(~UC(e,"!important")&&10))){case 107:return mn(e,":",":"+hn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Ar(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Ar(e,t+11)){case 114:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Wr+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Wr+e+e}return e}var kbe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case u2:t.return=Mj(t.value,t.length);break;case Tj:return Mu([gf(t,{value:mn(t.value,"@","@"+hn)})],o);case c2:if(t.length)return fbe(t.props,function(a){switch(dbe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mu([gf(t,{props:[mn(a,/:(read-\w+)/,":"+Jg+"$1")]})],o);case"::placeholder":return Mu([gf(t,{props:[mn(a,/:(plac\w+)/,":"+hn+"input-$1")]}),gf(t,{props:[mn(a,/:(plac\w+)/,":"+Jg+"$1")]}),gf(t,{props:[mn(a,/:(plac\w+)/,Wr+"input-$1")]})],o)}return""})}},Rbe=[kbe],Obe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Rbe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bbe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ube=/[A-Z]|^ms/g,Wbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fj=function(t){return t.charCodeAt(1)===45},$D=function(t){return t!=null&&typeof t!="boolean"},jx=_j(function(e){return Fj(e)?e:e.replace(Ube,"-$&").toLowerCase()}),SD=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Wbe,function(r,o,a){return fi={name:o,styles:a,next:fi},o})}return Bbe[t]!==1&&!Fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return fi={name:n.name,styles:n.styles,next:fi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)fi={name:r.name,styles:r.styles,next:fi},r=r.next;var o=n.styles+";";return o}return Hbe(e,t,n)}case"function":{if(e!==void 0){var a=fi,i=n(e);return fi=a,Fp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Hbe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Zbe:Jbe},TD=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jj(n,r,o),qbe(function(){return Lj(n,r,o)}),null},Qbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=TD(t,n,r),l=s||PD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(txe(o)?n:o):t;return R.jsx(Ybe,{styles:r})}/** + */var Or=typeof Symbol=="function"&&Symbol.for,f2=Or?Symbol.for("react.element"):60103,p2=Or?Symbol.for("react.portal"):60106,u0=Or?Symbol.for("react.fragment"):60107,d0=Or?Symbol.for("react.strict_mode"):60108,f0=Or?Symbol.for("react.profiler"):60114,p0=Or?Symbol.for("react.provider"):60109,h0=Or?Symbol.for("react.context"):60110,h2=Or?Symbol.for("react.async_mode"):60111,m0=Or?Symbol.for("react.concurrent_mode"):60111,v0=Or?Symbol.for("react.forward_ref"):60112,g0=Or?Symbol.for("react.suspense"):60113,Dbe=Or?Symbol.for("react.suspense_list"):60120,y0=Or?Symbol.for("react.memo"):60115,b0=Or?Symbol.for("react.lazy"):60116,Mbe=Or?Symbol.for("react.block"):60121,Ibe=Or?Symbol.for("react.fundamental"):60117,Abe=Or?Symbol.for("react.responder"):60118,Nbe=Or?Symbol.for("react.scope"):60119;function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f2:switch(e=e.type,e){case h2:case m0:case u0:case f0:case d0:case g0:return e;default:switch(e=e&&e.$$typeof,e){case h0:case v0:case b0:case y0:case p0:return e;default:return t}}case p2:return t}}}function Aj(e){return na(e)===m0}Sn.AsyncMode=h2;Sn.ConcurrentMode=m0;Sn.ContextConsumer=h0;Sn.ContextProvider=p0;Sn.Element=f2;Sn.ForwardRef=v0;Sn.Fragment=u0;Sn.Lazy=b0;Sn.Memo=y0;Sn.Portal=p2;Sn.Profiler=f0;Sn.StrictMode=d0;Sn.Suspense=g0;Sn.isAsyncMode=function(e){return Aj(e)||na(e)===h2};Sn.isConcurrentMode=Aj;Sn.isContextConsumer=function(e){return na(e)===h0};Sn.isContextProvider=function(e){return na(e)===p0};Sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f2};Sn.isForwardRef=function(e){return na(e)===v0};Sn.isFragment=function(e){return na(e)===u0};Sn.isLazy=function(e){return na(e)===b0};Sn.isMemo=function(e){return na(e)===y0};Sn.isPortal=function(e){return na(e)===p2};Sn.isProfiler=function(e){return na(e)===f0};Sn.isStrictMode=function(e){return na(e)===d0};Sn.isSuspense=function(e){return na(e)===g0};Sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===u0||e===m0||e===f0||e===d0||e===g0||e===Dbe||typeof e=="object"&&e!==null&&(e.$$typeof===b0||e.$$typeof===y0||e.$$typeof===p0||e.$$typeof===h0||e.$$typeof===v0||e.$$typeof===Ibe||e.$$typeof===Abe||e.$$typeof===Nbe||e.$$typeof===Mbe)};Sn.typeOf=na;Ij.exports=Sn;var jbe=Ij.exports,Nj=jbe,Lbe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fbe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jj={};jj[Nj.ForwardRef]=Lbe;jj[Nj.Memo]=Fbe;var zbe=!0;function Vbe(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Lj=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||zbe===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Fj=function(t,n,r){Lj(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Bbe(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ube={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wbe=/[A-Z]|^ms/g,Hbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zj=function(t){return t.charCodeAt(1)===45},SD=function(t){return t!=null&&typeof t!="boolean"},Lx=Ej(function(e){return zj(e)?e:e.replace(Wbe,"-$&").toLowerCase()}),_D=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hbe,function(r,o,a){return fi={name:o,styles:a,next:fi},o})}return Ube[t]!==1&&!zj(t)&&typeof n=="number"&&n!==0?n+"px":n};function zp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return fi={name:n.name,styles:n.styles,next:fi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)fi={name:r.name,styles:r.styles,next:fi},r=r.next;var o=n.styles+";";return o}return Gbe(e,t,n)}case"function":{if(e!==void 0){var a=fi,i=n(e);return fi=a,zp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Gbe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Zbe:Xbe},kD=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Qbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Lj(n,r,o),Ybe(function(){return Fj(n,r,o)}),null},exe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=kD(t,n,r),l=s||TD(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(nxe(o)?n:o):t;return R.jsx(Kbe,{styles:r})}/** * @mui/styled-engine v5.14.14 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function rxe(e,t){return WC(e,t)}const oxe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},axe=["values","unit","step"],ixe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function sxe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Re(e,axe),a=ixe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${g2[e]}px)`};function Oo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||kD;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||kD;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||g2).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function Uj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Wj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uxe(e,...t){const n=Uj(e),r=[n,...t].reduce((o,a)=>qr(o,a),{});return Wj(Object.keys(n),r)}function dxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||dxe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function b0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Kg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=b0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=b0(l,r)||{};return Oo(i,s,f=>{let p=Kg(c,o,f);return f===p&&typeof f=="string"&&(p=Kg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function fxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pxe={m:"margin",p:"padding"},hxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mxe=fxe(e=>{if(e.length>2)if(RD[e])e=RD[e];else return[e];const[t,n]=e.split(""),r=pxe[t],o=hxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),y2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],b2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...y2,...b2];function wh(e,t,n,r){var o;const a=(o=b0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function x2(e){return wh(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vxe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function gxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=mxe(n),a=vxe(o,r),i=e[n];return Oo(e,i,a)}function Hj(e,t){const n=x2(e.theme);return Object.keys(e).map(r=>gxe(e,t,r,n)).reduce(Xf,{})}function Xn(e){return Hj(e,y2)}Xn.propTypes={};Xn.filterProps=y2;function Qn(e){return Hj(e,b2)}Qn.propTypes={};Qn.filterProps=b2;function yxe(e=8){if(e.mui)return e;const t=x2({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function x0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Xf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function vi(e){return typeof e!="number"?e:`${e}px solid`}const bxe=bn({prop:"border",themeKey:"borders",transform:vi}),xxe=bn({prop:"borderTop",themeKey:"borders",transform:vi}),wxe=bn({prop:"borderRight",themeKey:"borders",transform:vi}),Cxe=bn({prop:"borderBottom",themeKey:"borders",transform:vi}),$xe=bn({prop:"borderLeft",themeKey:"borders",transform:vi}),Sxe=bn({prop:"borderColor",themeKey:"palette"}),_xe=bn({prop:"borderTopColor",themeKey:"palette"}),Exe=bn({prop:"borderRightColor",themeKey:"palette"}),Pxe=bn({prop:"borderBottomColor",themeKey:"palette"}),Txe=bn({prop:"borderLeftColor",themeKey:"palette"}),w0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Oo(e,e.borderRadius,n)}return null};w0.propTypes={};w0.filterProps=["borderRadius"];x0(bxe,xxe,wxe,Cxe,$xe,Sxe,_xe,Exe,Pxe,Txe,w0);const C0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wh(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Oo(e,e.gap,n)}return null};C0.propTypes={};C0.filterProps=["gap"];const $0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wh(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Oo(e,e.columnGap,n)}return null};$0.propTypes={};$0.filterProps=["columnGap"];const S0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wh(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Oo(e,e.rowGap,n)}return null};S0.propTypes={};S0.filterProps=["rowGap"];const kxe=bn({prop:"gridColumn"}),Rxe=bn({prop:"gridRow"}),Oxe=bn({prop:"gridAutoFlow"}),Dxe=bn({prop:"gridAutoColumns"}),Mxe=bn({prop:"gridAutoRows"}),Ixe=bn({prop:"gridTemplateColumns"}),Axe=bn({prop:"gridTemplateRows"}),Nxe=bn({prop:"gridTemplateAreas"}),jxe=bn({prop:"gridArea"});x0(C0,$0,S0,kxe,Rxe,Oxe,Dxe,Mxe,Ixe,Axe,Nxe,jxe);function Iu(e,t){return t==="grey"?t:e}const Lxe=bn({prop:"color",themeKey:"palette",transform:Iu}),Fxe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),zxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});x0(Lxe,Fxe,zxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Vxe=bn({prop:"width",transform:Uo}),w2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||g2[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Oo(e,e.maxWidth,t)}return null};w2.filterProps=["maxWidth"];const Bxe=bn({prop:"minWidth",transform:Uo}),Uxe=bn({prop:"height",transform:Uo}),Wxe=bn({prop:"maxHeight",transform:Uo}),Hxe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const Gxe=bn({prop:"boxSizing"});x0(Vxe,w2,Bxe,Uxe,Wxe,Hxe,Gxe);const qxe={border:{themeKey:"borders",transform:vi},borderTop:{themeKey:"borders",transform:vi},borderRight:{themeKey:"borders",transform:vi},borderBottom:{themeKey:"borders",transform:vi},borderLeft:{themeKey:"borders",transform:vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:C0},rowGap:{style:S0},columnGap:{style:$0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:w2},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_0=qxe;function Yxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Kxe(e,t){return typeof e=="function"?e(t):e}function Zxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=b0(o,c)||{};return f?f(i):Oo(i,r,b=>{let v=Kg(p,u,b);return b===v&&typeof b=="string"&&(v=Kg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:_0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=Uj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Kxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Xf(p,e(m,b,a,i));else{const v=Oo({theme:a},b,x=>({[m]:x}));Yxe(v,b)?p[m]=t({sx:b,theme:a}):p=Xf(p,v)}else p=Xf(p,e(m,b,a,i))}),Wj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Gj=Zxe();Gj.filterProps=["sx"];const C2=Gj,Jxe=["breakpoints","palette","spacing","shape"];function E0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Re(e,Jxe),s=sxe(n),l=yxe(o);let c=qr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},cxe,a)},i);return c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},_0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return C2({sx:f,theme:this})},c}function Xxe(e){return Object.keys(e).length===0}function $2(e=null){const t=$.useContext(m2);return!t||Xxe(t)?e:t}const Qxe=E0();function Ch(e=Qxe){return $2(e)}function ewe({styles:e,themeId:t,defaultTheme:n={}}){const r=Ch(n),o=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(nxe,{styles:o})}const twe=["sx"],nwe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function S2(e){const{sx:t}=e,n=Re(e,twe),{systemProps:r,otherProps:o}=nwe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Yi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const rwe=["variant"];function OD(e){return e.length===0}function qj(e){const{variant:t}=e,n=Re(e,rwe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=OD(r)?e[o]:Fe(e[o]):r+=`${OD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const owe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function awe(e){return Object.keys(e).length===0}function iwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const swe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Zg=e=>{const t={};return e&&e.forEach(n=>{const r=qj(n.props);t[r]=n.style}),t},lwe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Zg(n)},Jg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[qj(a.props)])}),o},cwe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Jg(e,t,a)};function Qf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uwe=E0(),dwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jv({defaultTheme:e,theme:t,themeId:n}){return awe(t)?e:t[n]||t}function fwe(e){return e?(t,n)=>n[e]:null}const DD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Jv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Jg(t,Zg(a),a);return[o,...i]}return o};function Yj(e={}){const{themeId:t,defaultTheme:n=uwe,rootShouldForwardProp:r=Qf,slotShouldForwardProp:o=Qf}=e,a=i=>C2(T({},i,{theme:Jv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{oxe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=fwe(dwe(c))}=s,m=Re(s,owe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Qf;c==="Root"||c==="root"?g=r:c?g=o:iwe(i)&&(g=void 0);const y=rxe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return F=>DD({styledArg:O,props:F,defaultTheme:n,themeId:t});if(Yi(O)){let F=O,U;return O&&O.variants&&(U=O.variants,delete F.variants,F=G=>{let z=O;return Jg(G,Zg(U),U).forEach(Y=>{z=qr(z,Y)}),z}),F}return O}):[];let E=C;if(Yi(C)){let O;C&&C.variants&&(O=C.variants,delete E.variants,E=F=>{let U=C;return Jg(F,Zg(O),O).forEach(z=>{U=qr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=O=>DD({styledArg:C,props:O,defaultTheme:n,themeId:t}));l&&p&&S.push(O=>{const F=Jv(T({},O,{defaultTheme:n,themeId:t})),U=swe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},O,{theme:F})):V}),p(O,G)}return null}),l&&!b&&S.push(O=>{const F=Jv(T({},O,{defaultTheme:n,themeId:t}));return cwe(O,lwe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const O=new Array(k).fill("");E=[...C,...O],E.raw=[...C.raw,...O]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const pwe=Yj(),hwe=pwe;function _2(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:s2(t.components[n].defaultProps,r)}function Kj({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ch(n);return r&&(o=o[r]||o),_2({theme:o,name:t,props:e})}function E2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(mwe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function P0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vwe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),P0({type:s,values:l})}function MD(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(vwe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gwe(e,t){const n=MD(e),r=MD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=E2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,P0(e)}function T0(e,t){if(e=lc(e),t=E2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return P0(e)}function k0(e,t){if(e=lc(e),t=E2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return P0(e)}const ywe=["component","direction","spacing","divider","children","className","useFlexGap"],bwe=E0(),xwe=hwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wwe(e){return Kj({props:e,name:"MuiStack",defaultTheme:bwe})}function Cwe(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Swe=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Oo({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=x2(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=qr(n,Oo({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${$we(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=uxe(t.breakpoints,n),n};function _we(e={}){const{createStyledComponent:t=xwe,useThemeProps:n=wwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(Swe);return $.forwardRef(function(l,c){const u=n(l),f=S2(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Re(f,ywe),C={direction:m,spacing:b,useFlexGap:y},_=o();return R.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?Cwe(x,v):x}))})}function Ewe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pwe=["mode","contrastThreshold","tonalOffset"],ID={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ap.white,default:Ap.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lx={text:{primary:Ap.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ap.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function AD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=k0(e.main,o):t==="dark"&&(e.dark=T0(e.main,a)))}function Twe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[700],light:Jc[400],dark:Jc[800]}}function kwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[500],light:Zc[300],dark:Zc[700]}}function Rwe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function Owe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function Dwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Mwe(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function Iwe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Re(e,Pwe),a=e.primary||Twe(t),i=e.secondary||kwe(t),s=e.error||Rwe(t),l=e.info||Owe(t),c=e.success||Dwe(t),u=e.warning||Mwe(t);function f(v){return gwe(v,Lx.text.primary)>=n?Lx.text.primary:ID.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return AD(v,"light",y,r),AD(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Lx,light:ID};return qr(T({common:T({},Ap),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:k1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Awe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Nwe(e){return Math.round(e*1e5)/1e5}const ND={textTransform:"uppercase"},jD='"Roboto", "Helvetica", "Arial", sans-serif';function jwe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=jD,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Re(n,Awe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===jD?{letterSpacing:`${Nwe(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,ND),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,ND),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Lwe=.2,Fwe=.14,zwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fwe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zwe})`].join(",")}const Vwe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Bwe=Vwe,Uwe=["duration","easing","delay"],Wwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Zj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function LD(e){return`${Math.round(e)}ms`}function Hwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Gwe(e){const t=T({},Wwe,e.easing),n=T({},Zj,e.duration);return T({getAutoHeightDuration:Hwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Re(a,Uwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:LD(i)} ${s} ${typeof l=="string"?l:LD(l)}`).join(",")}},e,{easing:t,duration:n})}const qwe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ywe=qwe,Kwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Re(e,Kwe);if(e.vars)throw new Error(al(18));const s=Iwe(r),l=E0(e);let c=qr(l,{mixins:Ewe(l.breakpoints,n),palette:s,shadows:Bwe.slice(),typography:jwe(s,a),transitions:Gwe(o),zIndex:T({},Ywe)});return c=qr(c,i),c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},_0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return C2({sx:f,theme:this})},c}const Jwe=Zwe(),R0=Jwe;function rr(){const e=Ch(R0);return e[a0]||e}function Ze({props:e,name:t}){return Kj({props:e,name:t,defaultTheme:R0,themeId:a0})}const ra=e=>Qf(e)&&e!=="classes",P2=Qf,Xwe=Yj({themeId:a0,defaultTheme:R0,rootShouldForwardProp:ra}),he=Xwe,Qwe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},FD=Qwe;function eCe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tCe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nCe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,eCe,r)},rCe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Jj=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Re(r,tCe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=nCe(v);return R.jsxs(rCe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?R.jsx("title",{children:f}):null]}))});Jj.muiName="SvgIcon";const HC=Jj;function or(e,t){function n(r,o){return R.jsx(HC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=HC.muiName,$.memo($.forwardRef(n))}const oCe={configure:e=>{Sj.configure(e)}},aCe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:qg,createSvgIcon:or,debounce:bh,deprecatedPropType:N1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:Pi,requirePropFactory:j1e,setRef:Np,unstable_ClassNameGenerator:oCe,unstable_useEnhancedEffect:Zn,unstable_useId:Qa,unsupportedProp:z1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:o0},Symbol.toStringTag,{value:"Module"}));var En={};/** + */function oxe(e,t){return HC(e,t)}const axe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ixe=["values","unit","step"],sxe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function lxe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Re(e,ixe),a=sxe(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${y2[e]}px)`};function Oo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||RD;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||RD;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||y2).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function Wj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Hj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function dxe(e,...t){const n=Wj(e),r=[n,...t].reduce((o,a)=>qr(o,a),{});return Hj(Object.keys(n),r)}function fxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Yl({values:e,breakpoints:t,base:n}){const r=n||fxe(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function x0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Zg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=x0(e,n)||r,t&&(o=t(o,r,e)),o}function bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=x0(l,r)||{};return Oo(i,s,f=>{let p=Zg(c,o,f);return f===p&&typeof f=="string"&&(p=Zg(c,o,`${t}${f==="default"?"":Fe(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function pxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hxe={m:"margin",p:"padding"},mxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vxe=pxe(e=>{if(e.length>2)if(OD[e])e=OD[e];else return[e];const[t,n]=e.split(""),r=hxe[t],o=mxe[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),b2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],x2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...b2,...x2];function $h(e,t,n,r){var o;const a=(o=x0(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function w2(e){return $h(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gxe(e,t){return n=>e.reduce((r,o)=>(r[o]=sc(t,n),r),{})}function yxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vxe(n),a=gxe(o,r),i=e[n];return Oo(e,i,a)}function Gj(e,t){const n=w2(e.theme);return Object.keys(e).map(r=>yxe(e,t,r,n)).reduce(Qf,{})}function Xn(e){return Gj(e,b2)}Xn.propTypes={};Xn.filterProps=b2;function Qn(e){return Gj(e,x2)}Qn.propTypes={};Qn.filterProps=x2;function bxe(e=8){if(e.mui)return e;const t=w2({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function w0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Qf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function vi(e){return typeof e!="number"?e:`${e}px solid`}const xxe=bn({prop:"border",themeKey:"borders",transform:vi}),wxe=bn({prop:"borderTop",themeKey:"borders",transform:vi}),Cxe=bn({prop:"borderRight",themeKey:"borders",transform:vi}),$xe=bn({prop:"borderBottom",themeKey:"borders",transform:vi}),Sxe=bn({prop:"borderLeft",themeKey:"borders",transform:vi}),_xe=bn({prop:"borderColor",themeKey:"palette"}),Exe=bn({prop:"borderTopColor",themeKey:"palette"}),Pxe=bn({prop:"borderRightColor",themeKey:"palette"}),Txe=bn({prop:"borderBottomColor",themeKey:"palette"}),kxe=bn({prop:"borderLeftColor",themeKey:"palette"}),C0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$h(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:sc(t,r)});return Oo(e,e.borderRadius,n)}return null};C0.propTypes={};C0.filterProps=["borderRadius"];w0(xxe,wxe,Cxe,$xe,Sxe,_xe,Exe,Pxe,Txe,kxe,C0);const $0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$h(e.theme,"spacing",8),n=r=>({gap:sc(t,r)});return Oo(e,e.gap,n)}return null};$0.propTypes={};$0.filterProps=["gap"];const S0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$h(e.theme,"spacing",8),n=r=>({columnGap:sc(t,r)});return Oo(e,e.columnGap,n)}return null};S0.propTypes={};S0.filterProps=["columnGap"];const _0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$h(e.theme,"spacing",8),n=r=>({rowGap:sc(t,r)});return Oo(e,e.rowGap,n)}return null};_0.propTypes={};_0.filterProps=["rowGap"];const Rxe=bn({prop:"gridColumn"}),Oxe=bn({prop:"gridRow"}),Dxe=bn({prop:"gridAutoFlow"}),Mxe=bn({prop:"gridAutoColumns"}),Ixe=bn({prop:"gridAutoRows"}),Axe=bn({prop:"gridTemplateColumns"}),Nxe=bn({prop:"gridTemplateRows"}),jxe=bn({prop:"gridTemplateAreas"}),Lxe=bn({prop:"gridArea"});w0($0,S0,_0,Rxe,Oxe,Dxe,Mxe,Ixe,Axe,Nxe,jxe,Lxe);function Iu(e,t){return t==="grey"?t:e}const Fxe=bn({prop:"color",themeKey:"palette",transform:Iu}),zxe=bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),Vxe=bn({prop:"backgroundColor",themeKey:"palette",transform:Iu});w0(Fxe,zxe,Vxe);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const Bxe=bn({prop:"width",transform:Uo}),C2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||y2[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Uo(n)}};return Oo(e,e.maxWidth,t)}return null};C2.filterProps=["maxWidth"];const Uxe=bn({prop:"minWidth",transform:Uo}),Wxe=bn({prop:"height",transform:Uo}),Hxe=bn({prop:"maxHeight",transform:Uo}),Gxe=bn({prop:"minHeight",transform:Uo});bn({prop:"size",cssProperty:"width",transform:Uo});bn({prop:"size",cssProperty:"height",transform:Uo});const qxe=bn({prop:"boxSizing"});w0(Bxe,C2,Uxe,Wxe,Hxe,Gxe,qxe);const Yxe={border:{themeKey:"borders",transform:vi},borderTop:{themeKey:"borders",transform:vi},borderRight:{themeKey:"borders",transform:vi},borderBottom:{themeKey:"borders",transform:vi},borderLeft:{themeKey:"borders",transform:vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C0},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$0},rowGap:{style:_0},columnGap:{style:S0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:C2},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},E0=Yxe;function Kxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Jxe(e,t){return typeof e=="function"?e(t):e}function Zxe(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=x0(o,c)||{};return f?f(i):Oo(i,r,b=>{let v=Zg(p,u,b);return b===v&&typeof b=="string"&&(v=Zg(p,u,`${n}${b==="default"?"":Fe(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:E0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=Wj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Jxe(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Qf(p,e(m,b,a,i));else{const v=Oo({theme:a},b,x=>({[m]:x}));Kxe(v,b)?p[m]=t({sx:b,theme:a}):p=Qf(p,v)}else p=Qf(p,e(m,b,a,i))}),Hj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const qj=Zxe();qj.filterProps=["sx"];const $2=qj,Xxe=["breakpoints","palette","spacing","shape"];function P0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Re(e,Xxe),s=lxe(n),l=bxe(o);let c=qr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},uxe,a)},i);return c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},E0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return $2({sx:f,theme:this})},c}function Qxe(e){return Object.keys(e).length===0}function S2(e=null){const t=$.useContext(v2);return!t||Qxe(t)?e:t}const ewe=P0();function Sh(e=ewe){return S2(e)}function twe({styles:e,themeId:t,defaultTheme:n={}}){const r=Sh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(rxe,{styles:o})}const nwe=["sx"],rwe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:E0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function _2(e){const{sx:t}=e,n=Re(e,nwe),{systemProps:r,otherProps:o}=rwe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Yi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}const owe=["variant"];function DD(e){return e.length===0}function Yj(e){const{variant:t}=e,n=Re(e,owe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=DD(r)?e[o]:Fe(e[o]):r+=`${DD(r)?o:Fe(o)}${Fe(e[o].toString())}`}),r}const awe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iwe(e){return Object.keys(e).length===0}function swe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lwe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Xg=e=>{const t={};return e&&e.forEach(n=>{const r=Yj(n.props);t[r]=n.style}),t},cwe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Xg(n)},Qg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[Yj(a.props)])}),o},uwe=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Qg(e,t,a)};function ep(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dwe=P0(),fwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Qv({defaultTheme:e,theme:t,themeId:n}){return iwe(t)?e:t[n]||t}function pwe(e){return e?(t,n)=>n[e]:null}const MD=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Qv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Qg(t,Xg(a),a);return[o,...i]}return o};function Kj(e={}){const{themeId:t,defaultTheme:n=dwe,rootShouldForwardProp:r=ep,slotShouldForwardProp:o=ep}=e,a=i=>$2(T({},i,{theme:Qv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{axe(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=pwe(fwe(c))}=s,m=Re(s,awe),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=ep;c==="Root"||c==="root"?g=r:c?g=o:swe(i)&&(g=void 0);const y=oxe(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const S=_?_.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return F=>MD({styledArg:O,props:F,defaultTheme:n,themeId:t});if(Yi(O)){let F=O,U;return O&&O.variants&&(U=O.variants,delete F.variants,F=G=>{let z=O;return Qg(G,Xg(U),U).forEach(Y=>{z=qr(z,Y)}),z}),F}return O}):[];let E=C;if(Yi(C)){let O;C&&C.variants&&(O=C.variants,delete E.variants,E=F=>{let U=C;return Qg(F,Xg(O),O).forEach(z=>{U=qr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=O=>MD({styledArg:C,props:O,defaultTheme:n,themeId:t}));l&&p&&S.push(O=>{const F=Qv(T({},O,{defaultTheme:n,themeId:t})),U=lwe(l,F);if(U){const G={};return Object.entries(U).forEach(([z,V])=>{G[z]=typeof V=="function"?V(T({},O,{theme:F})):V}),p(O,G)}return null}),l&&!b&&S.push(O=>{const F=Qv(T({},O,{defaultTheme:n,themeId:t}));return uwe(O,cwe(l,F),F,l)}),v||S.push(a);const k=S.length-_.length;if(Array.isArray(C)&&k>0){const O=new Array(k).fill("");E=[...C,...O],E.raw=[...C.raw,...O]}const I=y(E,...S);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const hwe=Kj(),mwe=hwe;function E2(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:l2(t.components[n].defaultProps,r)}function Jj({props:e,name:t,defaultTheme:n,themeId:r}){let o=Sh(n);return r&&(o=o[r]||o),E2({theme:o,name:t,props:e})}function P2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function vwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(vwe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(al(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function T0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gwe(e){e=lc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),T0({type:s,values:l})}function ID(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(gwe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ywe(e,t){const n=ID(e),r=ID(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=lc(e),t=P2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,T0(e)}function k0(e,t){if(e=lc(e),t=P2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return T0(e)}function R0(e,t){if(e=lc(e),t=P2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return T0(e)}const bwe=["component","direction","spacing","divider","children","className","useFlexGap"],xwe=P0(),wwe=mwe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Cwe(e){return Jj({props:e,name:"MuiStack",defaultTheme:xwe})}function $we(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_we=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Oo({theme:t},Yl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=w2(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Yl({values:e.direction,base:o}),i=Yl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=qr(n,Oo({theme:t},i,(l,c)=>e.useFlexGap?{gap:sc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Swe(c?a[c]:e.direction)}`]:sc(r,l)}}))}return n=dxe(t.breakpoints,n),n};function Ewe(e={}){const{createStyledComponent:t=wwe,useThemeProps:n=Cwe,componentName:r="MuiStack"}=e,o=()=>Qe({root:["root"]},l=>tt(r,l),{}),a=t(_we);return $.forwardRef(function(l,c){const u=n(l),f=_2(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Re(f,bwe),C={direction:m,spacing:b,useFlexGap:y},_=o();return R.jsx(a,T({as:p,ownerState:C,ref:c,className:Ne(_.root,g)},w,{children:v?$we(x,v):x}))})}function Pwe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Twe=["mode","contrastThreshold","tonalOffset"],AD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Np.white,default:Np.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Fx={text:{primary:Np.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Np.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ND(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=R0(e.main,o):t==="dark"&&(e.dark=k0(e.main,a)))}function kwe(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function Rwe(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[500],light:Jc[300],dark:Jc[700]}}function Owe(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function Dwe(e="light"){return e==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function Mwe(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[800],light:Qc[500],dark:Qc[900]}}function Iwe(e="light"){return e==="dark"?{main:vf[400],light:vf[300],dark:vf[700]}:{main:"#ed6c02",light:vf[500],dark:vf[900]}}function Awe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Re(e,Twe),a=e.primary||kwe(t),i=e.secondary||Rwe(t),s=e.error||Owe(t),l=e.info||Dwe(t),c=e.success||Mwe(t),u=e.warning||Iwe(t);function f(v){return ywe(v,Fx.text.primary)>=n?Fx.text.primary:AD.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(al(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(al(12,x?` (${x})`:"",JSON.stringify(v.main)));return ND(v,"light",y,r),ND(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Fx,light:AD};return qr(T({common:T({},Np),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:R1e,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const Nwe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jwe(e){return Math.round(e*1e5)/1e5}const jD={textTransform:"uppercase"},LD='"Roboto", "Helvetica", "Arial", sans-serif';function Lwe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=LD,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Re(n,Nwe),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===LD?{letterSpacing:`${jwe(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,jD),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,jD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Fwe=.2,zwe=.14,Vwe=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zwe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vwe})`].join(",")}const Bwe=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Uwe=Bwe,Wwe=["duration","easing","delay"],Hwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Zj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FD(e){return`${Math.round(e)}ms`}function Gwe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qwe(e){const t=T({},Hwe,e.easing),n=T({},Zj,e.duration);return T({getAutoHeightDuration:Gwe,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Re(a,Wwe),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:FD(i)} ${s} ${typeof l=="string"?l:FD(l)}`).join(",")}},e,{easing:t,duration:n})}const Ywe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Kwe=Ywe,Jwe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zwe(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Re(e,Jwe);if(e.vars)throw new Error(al(18));const s=Awe(r),l=P0(e);let c=qr(l,{mixins:Pwe(l.breakpoints,n),palette:s,shadows:Uwe.slice(),typography:Lwe(s,a),transitions:qwe(o),zIndex:T({},Kwe)});return c=qr(c,i),c=t.reduce((u,f)=>qr(u,f),c),c.unstable_sxConfig=T({},E0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return $2({sx:f,theme:this})},c}const Xwe=Zwe(),O0=Xwe;function rr(){const e=Sh(O0);return e[i0]||e}function Je({props:e,name:t}){return Jj({props:e,name:t,defaultTheme:O0,themeId:i0})}const ra=e=>ep(e)&&e!=="classes",T2=ep,Qwe=Kj({themeId:i0,defaultTheme:O0,rootShouldForwardProp:ra}),he=Qwe,eCe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zD=eCe;function tCe(e){return tt("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nCe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rCe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return Qe(o,tCe,r)},oCe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Xj=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Re(r,nCe),b=$.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=rCe(v);return R.jsxs(oCe,T({as:s,className:Ne(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?R.jsx("title",{children:f}):null]}))});Xj.muiName="SvgIcon";const GC=Xj;function or(e,t){function n(r,o){return R.jsx(GC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=GC.muiName,$.memo($.forwardRef(n))}const aCe={configure:e=>{_j.configure(e)}},iCe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:Kg,createSvgIcon:or,debounce:wh,deprecatedPropType:j1e,isMuiElement:Du,ownerDocument:Vn,ownerWindow:Pi,requirePropFactory:L1e,setRef:jp,unstable_ClassNameGenerator:aCe,unstable_useEnhancedEffect:Jn,unstable_useId:Qa,unsupportedProp:V1e,useControlled:$r,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:a0},Symbol.toStringTag,{value:"Module"}));var En={};/** * @license React * react-is.production.min.js * @@ -168,7 +168,7 @@ const result = await chain.invoke({ ... }); * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var T2=Symbol.for("react.element"),k2=Symbol.for("react.portal"),O0=Symbol.for("react.fragment"),D0=Symbol.for("react.strict_mode"),M0=Symbol.for("react.profiler"),I0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),iCe=Symbol.for("react.server_context"),N0=Symbol.for("react.forward_ref"),j0=Symbol.for("react.suspense"),L0=Symbol.for("react.suspense_list"),F0=Symbol.for("react.memo"),z0=Symbol.for("react.lazy"),sCe=Symbol.for("react.offscreen"),Xj;Xj=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T2:switch(e=e.type,e){case O0:case M0:case D0:case j0:case L0:return e;default:switch(e=e&&e.$$typeof,e){case iCe:case A0:case N0:case z0:case F0:case I0:return e;default:return t}}case k2:return t}}}En.ContextConsumer=A0;En.ContextProvider=I0;En.Element=T2;En.ForwardRef=N0;En.Fragment=O0;En.Lazy=z0;En.Memo=F0;En.Portal=k2;En.Profiler=M0;En.StrictMode=D0;En.Suspense=j0;En.SuspenseList=L0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===A0};En.isContextProvider=function(e){return Pa(e)===I0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T2};En.isForwardRef=function(e){return Pa(e)===N0};En.isFragment=function(e){return Pa(e)===O0};En.isLazy=function(e){return Pa(e)===z0};En.isMemo=function(e){return Pa(e)===F0};En.isPortal=function(e){return Pa(e)===k2};En.isProfiler=function(e){return Pa(e)===M0};En.isStrictMode=function(e){return Pa(e)===D0};En.isSuspense=function(e){return Pa(e)===j0};En.isSuspenseList=function(e){return Pa(e)===L0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O0||e===M0||e===D0||e===j0||e===L0||e===sCe||typeof e=="object"&&e!==null&&(e.$$typeof===z0||e.$$typeof===F0||e.$$typeof===I0||e.$$typeof===A0||e.$$typeof===N0||e.$$typeof===Xj||e.getModuleId!==void 0)};En.typeOf=Pa;function GC(e,t){return GC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},GC(e,t)}function R2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,GC(e,t)}function lCe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function cCe(e,t){e.classList?e.classList.add(t):lCe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uCe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zD(e.className,t):e.setAttribute("class",zD(e.className&&e.className.baseVal||"",t))}const VD={disabled:!1},Xg=M.createContext(null);var Qj=function(t){return t.scrollTop},Mf="unmounted",Al="exited",Nl="entering",iu="entered",qC="exiting",ps=function(e){R2(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=Mf:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=qC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Rf.findDOMNode(this);i&&Qj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:Mf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Rf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||VD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Rf.findDOMNode(this);if(!a||VD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:qC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Rf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Mf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Re(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Xg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ps.contextType=Xg;ps.propTypes={};function tu(){}ps.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};ps.UNMOUNTED=Mf;ps.EXITED=Al;ps.ENTERING=Nl;ps.ENTERED=iu;ps.EXITING=qC;const V0=ps;var dCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return cCe(t,r)})},Fx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return uCe(t,r)})},O2=function(e){R2(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Xu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function bCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],wCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,bCe,n)},CCe=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),$Ce=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),SCe=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),t9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Zj.standard,TransitionComponent:C=V0}=r,_=Re(r,xCe),S=T({},r,{orientation:g,collapsedSize:s}),E=wCe(S),k=rr(),I=$.useRef(),O=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>J=>{if(B){const re=V.current;J===void 0?B(re):B(re,J)}},W=()=>O.current?O.current[G?"clientWidth":"clientHeight"]:0,Z=Q((B,J)=>{O.current&&G&&(O.current.style.position="absolute"),B.style[z]=U,f&&f(B,J)}),X=Q((B,J)=>{const re=W();O.current&&G&&(O.current.style.position="");const{duration:ce,easing:xe}=Xu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,J)}),j=Q((B,J)=>{B.style[z]="auto",p&&p(B,J)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const J=W(),{duration:re,easing:ce}=Xu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(J);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return R.jsx(C,T({in:u,onEnter:Z,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,J)=>R.jsx(CCe,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},J,{children:R.jsx($Ce,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:O,children:R.jsx(SCe,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});t9.muiSupportAuto=!0;const _Ce=t9;function ECe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PCe=["className","component","elevation","square","variant"],TCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,ECe,o)},kCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",FD(t.elevation))}, ${Tt("#fff",FD(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),RCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Re(r,PCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=TCe(u);return R.jsx(kCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),hs=RCe,OCe=$.createContext({}),n9=OCe;function DCe(e){return tt("MuiAccordion",e)}const MCe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),cv=MCe,ICe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ACe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},DCe,t)},NCe=he(hs,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${cv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${cv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${cv.expanded}`]:{margin:"16px 0"}})),jCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=_Ce,TransitionProps:m}=r,b=Re(r,ICe),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=ACe(_);return R.jsxs(NCe,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[R.jsx(n9.Provider,{value:C,children:y}),R.jsx(p,T({in:v,timeout:"auto"},m,{children:R.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),LCe=jCe;function FCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const zCe=["className"],VCe=e=>{const{classes:t}=e;return Qe({root:["root"]},FCe,t)},BCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),UCe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Re(r,zCe),i=r,s=VCe(i);return R.jsx(BCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),WCe=UCe;function HCe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),R.jsx("span",{className:p,style:m,children:R.jsx("span",{className:b})})}const GCe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=GCe,qCe=["center","classes","className"];let B0=e=>e,BD,UD,WD,HD;const YC=550,YCe=80,KCe=v2(BD||(BD=B0` + */var k2=Symbol.for("react.element"),R2=Symbol.for("react.portal"),D0=Symbol.for("react.fragment"),M0=Symbol.for("react.strict_mode"),I0=Symbol.for("react.profiler"),A0=Symbol.for("react.provider"),N0=Symbol.for("react.context"),sCe=Symbol.for("react.server_context"),j0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),F0=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),lCe=Symbol.for("react.offscreen"),Qj;Qj=Symbol.for("react.module.reference");function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case k2:switch(e=e.type,e){case D0:case I0:case M0:case L0:case F0:return e;default:switch(e=e&&e.$$typeof,e){case sCe:case N0:case j0:case V0:case z0:case A0:return e;default:return t}}case R2:return t}}}En.ContextConsumer=N0;En.ContextProvider=A0;En.Element=k2;En.ForwardRef=j0;En.Fragment=D0;En.Lazy=V0;En.Memo=z0;En.Portal=R2;En.Profiler=I0;En.StrictMode=M0;En.Suspense=L0;En.SuspenseList=F0;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Pa(e)===N0};En.isContextProvider=function(e){return Pa(e)===A0};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===k2};En.isForwardRef=function(e){return Pa(e)===j0};En.isFragment=function(e){return Pa(e)===D0};En.isLazy=function(e){return Pa(e)===V0};En.isMemo=function(e){return Pa(e)===z0};En.isPortal=function(e){return Pa(e)===R2};En.isProfiler=function(e){return Pa(e)===I0};En.isStrictMode=function(e){return Pa(e)===M0};En.isSuspense=function(e){return Pa(e)===L0};En.isSuspenseList=function(e){return Pa(e)===F0};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===D0||e===I0||e===M0||e===L0||e===F0||e===lCe||typeof e=="object"&&e!==null&&(e.$$typeof===V0||e.$$typeof===z0||e.$$typeof===A0||e.$$typeof===N0||e.$$typeof===j0||e.$$typeof===Qj||e.getModuleId!==void 0)};En.typeOf=Pa;function qC(e,t){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qC(e,t)}function O2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qC(e,t)}function cCe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function uCe(e,t){e.classList?e.classList.add(t):cCe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function VD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dCe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=VD(e.className,t):e.setAttribute("class",VD(e.className&&e.className.baseVal||"",t))}const BD={disabled:!1},ey=M.createContext(null);var e9=function(t){return t.scrollTop},If="unmounted",Al="exited",Nl="entering",iu="entered",YC="exiting",ps=function(e){O2(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Al,a.appearStatus=Nl):l=iu:r.unmountOnExit||r.mountOnEnter?l=If:l=Al,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===If?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Nl&&i!==iu&&(a=Nl):(i===Nl||i===iu)&&(a=YC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this);i&&e9(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:If})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Of.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||BD.disabled){this.safeSetState({status:iu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Nl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:iu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Of.findDOMNode(this);if(!a||BD.disabled){this.safeSetState({status:Al},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:YC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Al},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Of.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===If)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Re(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(ey.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ps.contextType=ey;ps.propTypes={};function tu(){}ps.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};ps.UNMOUNTED=If;ps.EXITED=Al;ps.ENTERING=Nl;ps.ENTERED=iu;ps.EXITING=YC;const B0=ps;var fCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return uCe(t,r)})},zx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return dCe(t,r)})},D2=function(e){O2(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Qu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function xCe(e){return tt("MuiCollapse",e)}et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],CCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Qe(r,xCe,n)},$Ce=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),SCe=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),_Ce=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),n9=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Zj.standard,TransitionComponent:C=B0}=r,_=Re(r,wCe),S=T({},r,{orientation:g,collapsedSize:s}),E=CCe(S),k=rr(),I=$.useRef(),O=$.useRef(null),F=$.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const V=$.useRef(null),Y=sn(n,V),Q=B=>Z=>{if(B){const re=V.current;Z===void 0?B(re):B(re,Z)}},W=()=>O.current?O.current[G?"clientWidth":"clientHeight"]:0,J=Q((B,Z)=>{O.current&&G&&(O.current.style.position="absolute"),B.style[z]=U,f&&f(B,Z)}),X=Q((B,Z)=>{const re=W();O.current&&G&&(O.current.style.position="");const{duration:ce,easing:xe}=Qu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const me=k.transitions.getAutoHeightDuration(re);B.style.transitionDuration=`${me}ms`,F.current=me}else B.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;B.style[z]=`${re}px`,B.style.transitionTimingFunction=xe,m&&m(B,Z)}),j=Q((B,Z)=>{B.style[z]="auto",p&&p(B,Z)}),K=Q(B=>{B.style[z]=`${W()}px`,b&&b(B)}),q=Q(v),D=Q(B=>{const Z=W(),{duration:re,easing:ce}=Qu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);B.style.transitionDuration=`${xe}ms`,F.current=xe}else B.style.transitionDuration=typeof re=="string"?re:`${re}ms`;B.style[z]=U,B.style.transitionTimingFunction=ce,x&&x(B)}),N=B=>{w==="auto"&&(I.current=setTimeout(B,F.current||0)),o&&o(V.current,B)};return R.jsx(C,T({in:u,onEnter:J,onEntered:j,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:V,timeout:w==="auto"?null:w},_,{children:(B,Z)=>R.jsx($Ce,T({as:l,className:Ne(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[B]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},S,{state:B}),ref:Y},Z,{children:R.jsx(SCe,{ownerState:T({},S,{state:B}),className:E.wrapper,ref:O,children:R.jsx(_Ce,{ownerState:T({},S,{state:B}),className:E.wrapperInner,children:a})})}))}))});n9.muiSupportAuto=!0;const ECe=n9;function PCe(e){return tt("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const TCe=["className","component","elevation","square","variant"],kCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Qe(a,PCe,o)},RCe=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",zD(t.elevation))}, ${Tt("#fff",zD(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),OCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Re(r,TCe),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=kCe(u);return R.jsx(RCe,T({as:a,ownerState:u,className:Ne(f.root,o),ref:n},c))}),hs=OCe,DCe=$.createContext({}),r9=DCe;function MCe(e){return tt("MuiAccordion",e)}const ICe=et("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),dv=ICe,ACe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],NCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Qe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},MCe,t)},jCe=he(hs,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dv.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${dv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${dv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${dv.expanded}`]:{margin:"16px 0"}})),LCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=ECe,TransitionProps:m}=r,b=Re(r,ACe),[v,x]=$r({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=$.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=$.Children.toArray(o),C=$.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),S=NCe(_);return R.jsxs(jCe,T({className:Ne(S.root,a),ref:n,ownerState:_,square:f},b,{children:[R.jsx(r9.Provider,{value:C,children:y}),R.jsx(p,T({in:v,timeout:"auto"},m,{children:R.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}),FCe=LCe;function zCe(e){return tt("MuiAccordionDetails",e)}et("MuiAccordionDetails",["root"]);const VCe=["className"],BCe=e=>{const{classes:t}=e;return Qe({root:["root"]},zCe,t)},UCe=he("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),WCe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Re(r,VCe),i=r,s=BCe(i);return R.jsx(UCe,T({className:Ne(s.root,o),ref:n,ownerState:i},a))}),HCe=WCe;function GCe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=$.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),R.jsx("span",{className:p,style:m,children:R.jsx("span",{className:b})})}const qCe=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pa=qCe,YCe=["center","classes","className"];let U0=e=>e,UD,WD,HD,GD;const KC=550,KCe=80,JCe=g2(UD||(UD=U0` 0% { transform: scale(0); opacity: 0.1; @@ -178,7 +178,7 @@ const result = await chain.invoke({ ... }); transform: scale(1); opacity: 0.3; } -`)),ZCe=v2(UD||(UD=B0` +`)),ZCe=g2(WD||(WD=U0` 0% { opacity: 1; } @@ -186,7 +186,7 @@ const result = await chain.invoke({ ... }); 100% { opacity: 0; } -`)),JCe=v2(WD||(WD=B0` +`)),XCe=g2(HD||(HD=U0` 0% { transform: scale(1); } @@ -198,7 +198,7 @@ const result = await chain.invoke({ ... }); 100% { transform: scale(1); } -`)),XCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),QCe=he(HCe,{name:"MuiTouchRipple",slot:"Ripple"})(HD||(HD=B0` +`)),QCe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),e$e=he(GCe,{name:"MuiTouchRipple",slot:"Ripple"})(GD||(GD=U0` opacity: 0; position: absolute; @@ -241,15 +241,15 @@ const result = await chain.invoke({ ... }); animation-iteration-count: infinite; animation-delay: 200ms; } -`),pa.rippleVisible,KCe,YC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,ZCe,YC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,JCe,({theme:e})=>e.transitions.easing.easeInOut),e$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Re(r,qCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(O=>[...O,R.jsx(QCe,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:YC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const O=I?null:v.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((O?O.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((O?O.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},YCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),R.jsx(XCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:R.jsx(I2,{component:null,exit:!0,children:l})}))}),t$e=e$e;function n$e(e){return tt("MuiButtonBase",e)}const r$e=et("MuiButtonBase",["root","disabled","focusVisible"]),o$e=r$e,a$e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],i$e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},n$e,o);return n&&r&&(i.root+=` ${r}`),i},s$e=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${o$e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),l$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:O,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Re(r,a$e),Q=$.useRef(null),W=$.useRef(null),Z=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=o0(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,J]=$.useState(!1);$.useEffect(()=>{J(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",O),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=i$e(ze);return R.jsxs(s$e,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?R.jsx(t$e,T({ref:Z,center:a},G)):null]}))}),Sa=l$e;function c$e(e){return tt("MuiAccordionSummary",e)}const u$e=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=u$e,d$e=["children","className","expandIcon","focusVisibleClassName","onClick"],f$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},c$e,t)},p$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),h$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),m$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),v$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Re(r,d$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(n9),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=f$e(v);return R.jsxs(p$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[R.jsx(h$e,{className:x.content,ownerState:v,children:o}),i&&R.jsx(m$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),g$e=v$e;function y$e(e){return tt("MuiIconButton",e)}const b$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),x$e=b$e,w$e=["edge","children","className","color","disabled","disableFocusRipple","size"],C$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,y$e,t)},$$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${x$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),S$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Re(r,w$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=C$e(p);return R.jsx($$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=S$e,_$e=or(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function E$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const P$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],T$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,E$e,i)},k$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),GD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},O$e=e=>R$e[e]||e,D$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),o=O$e(r.color),a=S2(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=GD}=a,b=Re(a,P$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||GD[p])||"span",g=T$e(v);return R.jsx(k$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=D$e;function M$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const I$e=["className","color","enableColorOnDark","position"],A$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,M$e,r)},uv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,N$e=he(hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:uv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:uv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:uv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:uv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),j$e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Re(r,I$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=A$e(c);return R.jsx(N$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),L$e=j$e;function Ci(e){return typeof e=="string"}function If(e,t,n){return e===void 0||Ci(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function F$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const z$e={disableDefaultClasses:!1},V$e=$.createContext(z$e);function B$e(e){const{disableDefaultClasses:t}=$.useContext(V$e);return n=>t?"":e(n)}function ep(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function qD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function U$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=ep(T({},o,r)),s=qD(r),l=qD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const W$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Re(e,W$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=U$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return If(n,T({},l,{ref:u}),o)}function H$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=i2({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const G$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Y$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function K$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Y$e(e))}function Z$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(G$e)).forEach((r,o)=>{const a=q$e(r);a===-1||!K$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function J$e(){return!0}function r9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Z$e,isEnabled:i=J$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,O;const F=!!((I=x.current)!=null&&I.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",A2="auto",$h=[_o,_a,Ea,Eo],Qu="start",zp="end",X$e="clippingParents",o9="viewport",gf="popper",Q$e="reference",YD=$h.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+zp])},[]),a9=[].concat($h,[A2]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+zp])},[]),eSe="beforeRead",tSe="read",nSe="afterRead",rSe="beforeMain",oSe="main",aSe="afterMain",iSe="beforeWrite",sSe="write",lSe="afterWrite",cSe=[eSe,tSe,nSe,rSe,oSe,aSe,iSe,sSe,lSe];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function N2(e){if(typeof ShadowRoot>"u")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uSe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ti(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function dSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ti(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const fSe={name:"applyStyles",enabled:!0,phase:"write",fn:uSe,effect:dSe,requires:["computeStyles"]};function $i(e){return e.split("-")[0]}var Kl=Math.max,Qg=Math.min,ed=Math.round;function KC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function i9(){return!/^((?!chrome|android).)*safari/i.test(KC())}function td(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ed(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(r.height)/e.offsetHeight||1);var i=cc(e)?Jo(e):window,s=i.visualViewport,l=!i9()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function j2(e){var t=td(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function s9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&N2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ls(e){return Jo(e).getComputedStyle(e)}function pSe(e){return["table","td","th"].indexOf(Ti(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function U0(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(N2(e)?e.host:null)||fl(e)}function KD(e){return!ya(e)||ls(e).position==="fixed"?null:e.offsetParent}function hSe(e){var t=/firefox/i.test(KC()),n=/Trident/i.test(KC());if(n&&ya(e)){var r=ls(e);if(r.position==="fixed")return null}var o=U0(e);for(N2(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ti(o))<0;){var a=ls(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Sh(e){for(var t=Jo(e),n=KD(e);n&&pSe(n)&&ls(n).position==="static";)n=KD(n);return n&&(Ti(n)==="html"||Ti(n)==="body"&&ls(n).position==="static")?t:n||hSe(e)||t}function L2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tp(e,t,n){return Kl(e,Qg(t,n))}function mSe(e,t,n){var r=tp(e,t,n);return r>n?n:r}function l9(){return{top:0,right:0,bottom:0,left:0}}function c9(e){return Object.assign({},l9(),e)}function u9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,c9(typeof t!="number"?t:u9(t,$h))};function gSe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=$i(n.placement),l=L2(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=vSe(o.padding,n),p=j2(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=Sh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=tp(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function ySe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||s9(t.elements.popper,o)&&(t.elements.arrow=o))}const bSe={name:"arrow",enabled:!0,phase:"main",fn:gSe,effect:ySe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var xSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ed(n*o)/o||0,y:ed(r*o)/o||0}}function ZD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=Sh(n),E="clientHeight",k="clientWidth";if(S===Jo(n)&&(S=fl(n),ls(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===zp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===zp){w=Ea;var O=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=O-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&xSe),U=u===!0?wSe({x:m,y:v},Jo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function CSe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:$i(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const $Se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CSe,data:{}};var dv={passive:!0};function SSe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Jo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,dv)}),s&&l.addEventListener("resize",n.update,dv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dv)}),s&&l.removeEventListener("resize",n.update,dv)}}const _Se={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SSe,data:{}};var ESe={left:"right",right:"left",bottom:"top",top:"bottom"};function Xv(e){return e.replace(/left|right|bottom|top/g,function(t){return ESe[t]})}var PSe={start:"end",end:"start"};function JD(e){return e.replace(/start|end/g,function(t){return PSe[t]})}function F2(e){var t=Jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function z2(e){return td(fl(e)).left+F2(e).scrollLeft}function TSe(e,t){var n=Jo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=i9();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+z2(e),y:l}}function kSe(e){var t,n=fl(e),r=F2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z2(e),l=-r.scrollTop;return ls(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function V2(e){var t=ls(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d9(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:ya(e)&&V2(e)?e:d9(U0(e))}function np(e,t){var n;t===void 0&&(t=[]);var r=d9(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Jo(r),i=o?[a].concat(a.visualViewport||[],V2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(np(U0(i)))}function ZC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function RSe(e,t){var n=td(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XD(e,t,n){return t===o9?ZC(TSe(e,n)):cc(t)?RSe(t,n):ZC(kSe(fl(e)))}function OSe(e){var t=np(U0(e)),n=["absolute","fixed"].indexOf(ls(e).position)>=0,r=n&&ya(e)?Sh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&s9(o,r)&&Ti(o)!=="body"}):[]}function DSe(e,t,n,r){var o=t==="clippingParents"?OSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=XD(e,c,r);return l.top=Kl(u.top,l.top),l.right=Qg(u.right,l.right),l.bottom=Qg(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},XD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function f9(e){var t=e.reference,n=e.element,r=e.placement,o=r?$i(r):null,a=r?nd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?L2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Qu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case zp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Vp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?X$e:s,c=n.rootBoundary,u=c===void 0?o9:c,f=n.elementContext,p=f===void 0?gf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=c9(typeof x!="number"?x:u9(x,$h)),y=p===gf?Q$e:gf,w=e.rects.popper,C=e.elements[b?y:p],_=DSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=td(e.elements.reference),E=f9({reference:S,element:w,strategy:"absolute",placement:o}),k=ZC(Object.assign({},w,E)),I=p===gf?k:S,O={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===gf&&F){var U=F[o];Object.keys(O).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";O[G]+=U[V]*z})}return O}function MSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?a9:l,u=nd(r),f=u?s?YD:YD.filter(function(b){return nd(b)===u}):$h,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Vp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[$i(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function ISe(e){if($i(e)===A2)return[];var t=Xv(e);return[JD(e),t,JD(t)]}function ASe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=$i(x),y=g===x,w=l||(y||!b?[Xv(x)]:ISe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat($i(N)===A2?MSe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],O=0;O=0,V=z?"width":"height",Y=Vp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=Xv(Q));var W=Xv(Q),Z=[];if(a&&Z.push(Y[U]<=0),s&&Z.push(Y[Q]<=0,Y[W]<=0),Z.every(function(D){return D})){I=F,k=!1;break}E.set(F,Z)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(J){var re=E.get(J);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const NSe={name:"flip",enabled:!0,phase:"main",fn:ASe,requiresIfExists:["offset"],data:{_skip:!1}};function QD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eM(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function jSe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Vp(t,{elementContext:"reference"}),s=Vp(t,{altBoundary:!0}),l=QD(i,r),c=QD(s,o,a),u=eM(l),f=eM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const LSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jSe};function FSe(e,t,n){var r=$i(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function zSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=a9.reduce(function(u,f){return u[f]=FSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const VSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zSe};function BSe(e){var t=e.state,n=e.name;t.modifiersData[n]=f9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const USe={name:"popperOffsets",enabled:!0,phase:"read",fn:BSe,data:{}};function WSe(e){return e==="x"?"y":"x"}function HSe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Vp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=$i(t.placement),y=nd(t.placement),w=!y,C=L2(g),_=WSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],Z=Q-x[V],X=m?-k[Y]/2:0,j=y===Qu?E[Y]:k[Y],K=y===Qu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?j2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:l9(),B=N[z],J=N[V],re=tp(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-O.mainAxis:j-re-B-O.mainAxis,xe=w?-E[Y]/2+X+re+J+O.mainAxis:K+re+J+O.mainAxis,me=t.elements.arrow&&Sh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=tp(m?Qg(W,Ce):W,Q,m?Kl(Z,fe):Z);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+O.altAxis,ze=Ye?ge+E[we]+k[we]-Me-O.altAxis:He,Pe=m&&Ye?mSe(je,ge,ze):tp(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const GSe={name:"preventOverflow",enabled:!0,phase:"main",fn:HSe,requiresIfExists:["offset"]};function qSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YSe(e){return e===Jo(e)||!ya(e)?F2(e):qSe(e)}function KSe(e){var t=e.getBoundingClientRect(),n=ed(t.width)/e.offsetWidth||1,r=ed(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&KSe(t),a=fl(t),i=td(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ti(t)!=="body"||V2(a))&&(s=YSe(t)),ya(t)?(l=td(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=z2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function JSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function XSe(e){var t=JSe(e);return cSe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function QSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function e_e(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var tM={placement:"bottom",modifiers:[],strategy:"absolute"};function nM(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(o_e(o)||document.body)},[o,a]),Zn(()=>{if(i&&!a)return Np(n,i),()=>{Np(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return R.jsx($.Fragment,{children:r})}return R.jsx($.Fragment,{children:i&&cd.createPortal(r,i)})});function a_e(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const i_e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],s_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function l_e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function JC(e){return typeof e=="function"?e():e}function c_e(e){return e.nodeType!==void 0}const u_e=()=>Qe({root:["root"]},B$e(a_e)),d_e={},f_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Re(t,i_e),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Zn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=l_e(u,i),[E,k]=$.useState(S),[I,O]=$.useState(JC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&O(JC(o))},[o]),Zn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=r_e(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=u_e(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return R.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),p_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=d_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Re(t,s_e),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const O=JC(r);E=O&&c_e(O)?Vn(O).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return R.jsx(p9,{disablePortal:s,container:E,children:R.jsx(f_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function h_e(e){const t=Vn(e);return t.body===e?Pi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function rp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rM(e){return parseInt(Pi(e).getComputedStyle(e).paddingRight,10)||0}function m_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function oM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!m_e(i);s&&l&&rp(i,o)})}function zx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function v_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(h_e(r)){const i=Cj(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${rM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=Pi(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function g_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class y_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&rp(t.modalRef,!1);const o=g_e(n);oM(n,t.mount,t.modalRef,o,!0);const a=zx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=zx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=v_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=zx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&rp(t.modalRef,n),oM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&rp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function b_e(e){return typeof e=="function"?e():e}function x_e(e){return e?e.props.hasOwnProperty("in"):!1}const w_e=new y_e;function C_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=w_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=x_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=b_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&rp(b.current,w))}),O=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{O()},[O]),$.useEffect(()=>{u?E():(!y||!a)&&O()},[u,O,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=ep(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&O()};return{onEnter:qg(Y,l==null?void 0:l.props.onEnter),onExited:qg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const $_e=2;function h9(e,t){return e-t}function yf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function aM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T_e=e=>e;let mv;function Vx(){return mv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?mv=CSS.supports("touch-action","none"):mv=!0),mv}function k_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=T_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[O,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(O);let z=G?O.slice().sort(h9):[O];z=z.map(Me=>yf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:Z,ref:X}=o0(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));Z(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},J=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Zn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=S_e(gt,l,s),v)Le=E_e(Le,v,l);else{const te=aM(Y,Le);Le=Y[te]}Le=yf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=aM(z,Le),o&&(Le=yf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=iM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=fv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});pv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>$_e&&k(!0),U&&!hv(ze,O)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=fv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;Vx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=fv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});pv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!hv(Te,O)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:Vx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:Vx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=fv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});pv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!hv(it,O)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=ey(G?z[0]:l,l,s),De=ey(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=ep(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:P_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=ep(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:J(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},Z1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=ep(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const R_e=["onChange","maxRows","minRows","style","value"];function vv(e){return parseInt(e,10)||0}const O_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const D_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Re(t,R_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=Pi(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=S.boxSizing,I=vv(S.paddingBottom)+vv(S.paddingTop),O=vv(S.borderBottomWidth)+vv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+O:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();sM(C)||v(_=>g(_,C))},[x]);Zn(()=>{const C=()=>{const F=x();sM(F)||cd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=bh(_),k=u.current,I=Pi(k);I.addEventListener("resize",E);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(_),O.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),O&&O.disconnect()}},[x]),Zn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},O_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function lM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=lM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=lM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Bx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function N_e(e){const{unstable_isActiveElementInListbox:t=A_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=I_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:O=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:Z,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Qa(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),J=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&O(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=i2({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?J.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)J.current.value=Ue;else{const Nt=D(Pe[xt]);J.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&J.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Bx(fe,rt=>O(ve,rt))!==-1)return;const Ie=Bx(Pe,rt=>O(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{Np(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Bx(xt,ut=>O(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&J.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-cM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:cM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){J.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(J.current.focus(),j&&B.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&O(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const j_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],L_e=he(p_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F_e=$.forwardRef(function(t,n){var r;const o=$2(),a=Ze({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Re(a,j_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return R.jsx(L_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),_h=F_e;function z_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const V_e=["className","color","component","disableGutters","disableSticky","inset"],B_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,z_e,t)},U_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),m9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Re(r,V_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=B_e(f);return R.jsx(U_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});m9.muiSkipListHighlight=!0;const W_e=m9,H_e=or(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function G_e(e){return tt("MuiChip",e)}const q_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=q_e,Y_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],K_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,G_e,t)},Z_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),J_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function uM(e){return e.key==="Backspace"||e.key==="Delete"}const X_e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Re(r,Y_e),S=$.useRef(null),E=sn(S,n),k=Z=>{Z.stopPropagation(),b&&b(Z)},I=Z=>{Z.currentTarget===Z.target&&uM(Z)&&Z.preventDefault(),v&&v(Z)},O=Z=>{Z.currentTarget===Z.target&&(b&&uM(Z)?b(Z):Z.key==="Escape"&&S.current&&S.current.blur()),x&&x(Z)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=K_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):R.jsx(H_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),R.jsxs(Z_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:O,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,R.jsx(J_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),v9=X_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Q_e=$.createContext(void 0),W0=Q_e;function Oi(){return $.useContext(W0)}function e2e(e){return R.jsx(ewe,T({},e,{defaultTheme:R0,themeId:a0}))}function dM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ty(e,t=!1){return e&&(dM(e.value)&&e.value!==""||t&&dM(e.defaultValue)&&e.defaultValue!=="")}function t2e(e){return e.startAdornment}function n2e(e){return tt("MuiInputBase",e)}const r2e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=r2e,o2e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],H0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},G0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},a2e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,n2e,t)},q0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Y0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),i2e=R.jsx(e2e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),s2e=$.forwardRef(function(t,n){var r;const o=Ze({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:O,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:Z={},startAdornment:X,type:j="text",value:K}=o,q=Re(o,o2e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),J=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,J),[ce,xe]=$.useState(!1),me=Oi(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{ty(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Zn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),O&&O(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=D_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=a2e(He),Me=Z.root||c.Root||q0,je=W.root||u.root||{},ze=Z.input||c.Input||Y0;return we=T({},we,(r=W.input)!=null?r:u.input),R.jsxs($.Fragment,{children:[!m&&i2e,R.jsxs(Me,T({},je,!Ci(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,R.jsx(W0.Provider,{value:null,children:R.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!Ci(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),B2=s2e;function l2e(e){return tt("MuiInput",e)}const c2e=T({},Vo,et("MuiInput",["root","underline","input"])),Ls=c2e;function u2e(e){return tt("MuiOutlinedInput",e)}const d2e=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),ui=d2e;function f2e(e){return tt("MuiFilledInput",e)}const p2e=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=p2e,g9=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function h2e(e){return tt("MuiAutocomplete",e)}const m2e=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=m2e;var fM,pM;const v2e=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],g2e=["ref"],y2e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,h2e,t)},b2e=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ls.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ls.root}.${Vo.sizeSmall}`]:{[`& .${Ls.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ui.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),x2e=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),w2e=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),C2e=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),$2e=he(_h,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),S2e=he(hs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),_2e=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),E2e=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),P2e=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),T2e=he(W_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),k2e=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),R2e=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=fM||(fM=R.jsx(_$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:O=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:Z=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:J=!1,openText:re="Open",PaperComponent:ce=hs,PopperComponent:xe=_h,popupIcon:me=pM||(pM=R.jsx(g9,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Re(s,v2e),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=N_e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Re(dt,g2e),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:O,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=y2e(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>R.jsx(v9,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(R.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>R.jsxs("li",{children:[R.jsx(T2e,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),R.jsx(k2e,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>R.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return R.jsxs($.Fragment,{children:[R.jsx(b2e,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:R.jsxs(x2e,{className:Kt.endAdornment,ownerState:Ut,children:[nt?R.jsx(w2e,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?R.jsx(C2e,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?R.jsx($2e,T({as:xe,disablePortal:O,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:R.jsxs(S2e,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?R.jsx(_2e,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?R.jsx(E2e,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?R.jsx(P2e,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),O2e=R2e,D2e=or(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function M2e(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const I2e=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],A2e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},M2e,t)},N2e=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),j2e=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),L2e=he(D2e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function F2e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const z2e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Re(r,I2e);let b=null;const v=F2e(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=A2e(y);return g?b=R.jsx(j2e,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=R.jsx(L2e,{ownerState:y,className:w.fallback}),R.jsx(N2e,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),y9=z2e,V2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B2e={entering:{opacity:1},entered:{opacity:1}},U2e=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=V0}=t,w=Re(t,V2e),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{e9(z);const Y=Xu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),O=S(v),F=S(z=>{const V=Xu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return R.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:O,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},B2e[z],x,s.props.style),ref:_},V))}))}),kd=U2e;function W2e(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const H2e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],G2e=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},W2e,t)},q2e=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Y2e=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=kd,transitionDuration:g}=i,y=Re(i,H2e),w=T({},i,{component:c,invisible:p}),C=G2e(w),_=(r=b.root)!=null?r:f.root;return R.jsx(x,T({in:m,timeout:g},y,{children:R.jsx(q2e,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),b9=Y2e;function K2e(e){return tt("MuiBadge",e)}const Z2e=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=Z2e,J2e=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Ux=10,Wx=4,X2e=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,K2e,i)},Q2e=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),eEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ux*2,lineHeight:1,padding:"0 6px",height:Ux*2,borderRadius:Ux,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:Wx,height:Wx*2,minWidth:Wx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),tEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ze({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Re(c,J2e),{badgeContent:O,invisible:F,max:U,displayValue:G}=H$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=i2({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||O==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:Z=k}=V?z:c,X=Z!=="dot"?G:void 0,j=T({},c,{badgeContent:O,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:Z}),K=X2e(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:Q2e,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:eEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,J=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return R.jsxs(q,T({},J,{children:[v,R.jsx(D,T({},re,{children:X}))]}))}),x9=tEe;function nEe(e){return tt("MuiButton",e)}const rEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),gv=rEe,oEe=$.createContext({}),aEe=oEe,iEe=$.createContext(void 0),sEe=iEe,lEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,nEe,i);return T({},i,l)},w9=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),uEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gv.disabled}`]:{boxShadow:"none"}}),dEe=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w9(e))),fEe=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w9(e))),pEe=$.forwardRef(function(t,n){const r=$.useContext(aEe),o=$.useContext(sEe),a=s2(r,t),i=Ze({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Re(i,lEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=cEe(S),k=y&&R.jsx(dEe,{className:E.startIcon,ownerState:S,children:y}),I=b&&R.jsx(fEe,{className:E.endIcon,ownerState:S,children:b}),O=o||"";return R.jsxs(uEe,T({ownerState:S,className:Ne(r.className,E.root,u,O),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=pEe;function hEe(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const mEe=["className","raised"],vEe=e=>{const{classes:t}=e;return Qe({root:["root"]},hEe,t)},gEe=he(hs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),yEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Re(r,mEe),s=T({},r,{raised:a}),l=vEe(s);return R.jsx(gEe,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),bEe=yEe;function xEe(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const wEe=["className","component"],CEe=e=>{const{classes:t}=e;return Qe({root:["root"]},xEe,t)},$Ee=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),SEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Re(r,wEe),s=T({},r,{component:a}),l=CEe(s);return R.jsx($Ee,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),_Ee=SEe;function EEe(e){return tt("MuiCardHeader",e)}const PEe=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),hM=PEe,TEe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],kEe=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},EEe,t)},REe=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${hM.title}`]:t.title,[`& .${hM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),OEe=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),DEe=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),MEe=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),IEe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Re(r,TEe),b=T({},r,{component:s,disableTypography:l}),v=kEe(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=R.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=R.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),R.jsxs(REe,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&R.jsx(OEe,{className:v.avatar,ownerState:b,children:a}),R.jsxs(MEe,{className:v.content,ownerState:b,children:[x,g]}),o&&R.jsx(DEe,{className:v.action,ownerState:b,children:o})]}))}),AEe=IEe;function NEe(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const jEe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],LEe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,NEe,t)},FEe=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),zEe=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),VEe=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Re(t,jEe),[I,O]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Oi(),U=Z=>{y&&y(Z),F&&F.onFocus&&F.onFocus(Z)},G=Z=>{x&&x(Z),F&&F.onBlur&&F.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const X=Z.target.checked;O(X),g&&g(Z,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=LEe(Q);return R.jsxs(FEe,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[R.jsx(zEe,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),U2=VEe,BEe=or(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),UEe=or(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),WEe=or(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function HEe(e){return tt("MuiCheckbox",e)}const GEe=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hx=GEe,qEe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],YEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,HEe,t);return T({},t,i)},KEe=he(U2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hx.checked}, &.${Hx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ZEe=R.jsx(UEe,{}),JEe=R.jsx(BEe,{}),XEe=R.jsx(WEe,{}),QEe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ZEe,color:s="primary",icon:l=JEe,indeterminate:c=!1,indeterminateIcon:u=XEe,inputProps:f,size:p="medium",className:m}=a,b=Re(a,qEe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=YEe(g);return R.jsx(KEe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),ePe=QEe;function tPe(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const nPe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],rPe=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tPe,r)},oPe=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),aPe=he(b9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iPe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ze({name:"MuiModal",props:t}),{BackdropComponent:u=aPe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:O=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Re(c,nPe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:O}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:Z,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=C_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=rPe(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=Z();B.onEnter=se,B.onExited=Ce}const J=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:oPe,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:J,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!O&&!U&&(!q||K)?null:R.jsx(p9,{ref:X,container:v,disablePortal:S,children:R.jsxs(J,T({},me,{children:[!I&&u?R.jsx(re,T({},ue)):null,R.jsx(r9,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),C9=iPe;function sPe(e){return tt("MuiDialog",e)}const lPe=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),op=lPe,cPe=$.createContext({}),$9=cPe,uPe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],dPe=he(b9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,sPe,t)},pPe=he(C9,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),mPe=he(hs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${op.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${op.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${op.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=hs,PaperProps:C={},scroll:_="paper",TransitionComponent:S=kd,transitionDuration:E=a,TransitionProps:k}=r,I=Re(r,uPe),O=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=fPe(O),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Qa(s),Y=$.useMemo(()=>({titleId:V}),[V]);return R.jsx(pPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:dPe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:O},I,{children:R.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:R.jsx(hPe,{className:Ne(F.container),onMouseDown:G,ownerState:O,children:R.jsx(mPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:O,children:R.jsx($9.Provider,{value:Y,children:u})}))})}))}))}),K0=vPe;function gPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const yPe=["className","disableSpacing"],bPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},gPe,t)},xPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),wPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Re(r,yPe),s=T({},r,{disableSpacing:a}),l=bPe(s);return R.jsx(xPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),Z0=wPe;function CPe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function $Pe(e){return tt("MuiDialogTitle",e)}const SPe=et("MuiDialogTitle",["root"]),_Pe=SPe,EPe=["className","dividers"],PPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},CPe,t)},TPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_Pe.root} + &`]:{paddingTop:0}})),kPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Re(r,EPe),s=T({},r,{dividers:a}),l=PPe(s);return R.jsx(TPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),J0=kPe;function RPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const OPe=["children","className"],DPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},RPe,t);return T({},t,r)},MPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Re(r,OPe),i=DPe(a);return R.jsx(MPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),W2=IPe,APe=["className","id"],NPe=e=>{const{classes:t}=e;return Qe({root:["root"]},$Pe,t)},jPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),LPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Re(r,APe),s=r,l=NPe(s),{titleId:c=a}=$.useContext($9);return R.jsx(jPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),H2=LPe;function FPe(e){return tt("MuiDivider",e)}const zPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mM=zPe,VPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],BPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},FPe,r)},UPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),WPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),S9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Re(r,VPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=BPe(v);return R.jsx(UPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?R.jsx(WPe,{className:x.wrapper,ownerState:v,children:a}):null}))});S9.muiSkipListHighlight=!0;const vM=S9,HPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],GPe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},f2e,t);return T({},t,o)},qPe=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...H0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),YPe=he(Y0,{name:"MuiFilledInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),_9=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Re(s,HPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=GPe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?qr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:qPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:YPe;return R.jsx(B2,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});_9.muiName="Input";const E9=_9;function KPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],JPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,KPe,t)},XPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),QPe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Re(r,ZPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=JPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&t2e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(ty(z.props,!0)||ty(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const O=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:O,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,O,f,p,F,b,v,x]);return R.jsx(W0.Provider,{value:U,children:R.jsx(XPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),Eh=QPe,eTe=_we({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ze({props:e,name:"MuiStack"})}),tTe=eTe;function nTe(e){return tt("MuiFormControlLabel",e)}const rTe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Af=rTe,oTe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],aTe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,nTe,t)},iTe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Af.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Af.label}`]:{[`&.${Af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),sTe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Af.error}`]:{color:(e.vars||e).palette.error.main}})),lTe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Re(a,oTe),x=Oi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=aTe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=R.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),R.jsxs(iTe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?R.jsxs(tTe,{direction:"row",alignItems:"center",children:[k,R.jsxs(sTe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),X0=lTe;function cTe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const uTe=["className","row"],dTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},cTe,t)},fTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),pTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Re(r,uTe),s=Oi(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=dTe(c);return R.jsx(fTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),P9=pTe;function hTe(e){return tt("MuiFormHelperText",e)}const mTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),gM=mTe;var yM;const vTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],gTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,hTe,t)},yTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Re(r,vTe),l=Oi(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gTe(u);return R.jsx(yTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?yM||(yM=R.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=bTe;function xTe(e){return tt("MuiFormLabel",e)}const wTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ap=wTe,CTe=["children","className","color","component","disabled","error","filled","focused","required"],$Te=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,xTe,t)},STe=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ap.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),_Te=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),ETe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Re(r,CTe),l=Oi(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=$Te(u);return R.jsxs(STe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&R.jsxs(_Te,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),G2=ETe,PTe=$.createContext(),bM=PTe;function TTe(e){return tt("MuiGrid",e)}const kTe=[0,1,2,3,4,5,6,7,8,9,10],RTe=["column-reverse","column","row-reverse","row"],OTe=["nowrap","wrap-reverse","wrap"],bf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bp=et("MuiGrid",["root","container","item","zeroMinWidth",...kTe.map(e=>`spacing-xs-${e}`),...RTe.map(e=>`direction-xs-${e}`),...OTe.map(e=>`wrap-xs-${e}`),...bf.map(e=>`grid-xs-${e}`),...bf.map(e=>`grid-sm-${e}`),...bf.map(e=>`grid-md-${e}`),...bf.map(e=>`grid-lg-${e}`),...bf.map(e=>`grid-xl-${e}`)]),DTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function MTe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function ITe({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Oo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Bp.item}`]={maxWidth:"none"}),o})}function T9({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function ATe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=T9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${Bp.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Bp.item}`]:{paddingTop:0}}})}return o}function NTe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=T9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${Bp.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Bp.item}`]:{paddingLeft:0}}})}return o}function jTe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const LTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=jTe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),ITe,ATe,NTe,MTe);function FTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const zTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=FTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,TTe,t)},VTe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=S2(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Re(a,DTe),y=m||b,w=l||b,C=$.useContext(bM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(O=>{g[O]!=null&&(S[O]=g[O],delete E[O])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=zTe(k);return R.jsx(bM.Provider,{value:_,children:R.jsx(LTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=VTe,BTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function XC(e){return`scale(${e}, ${e**2})`}const UTe={entering:{opacity:1,transform:XC(1)},entered:{opacity:1,transform:"none"}},Gx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k9=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=V0}=t,g=Re(t,BTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{e9(V);const{duration:Q,delay:W,easing:Z}=Xu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:Gx?X:X*.666,delay:W,easing:Z})].join(","),l&&l(V,Y)}),O=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Xu({style:b,timeout:v,easing:i},{mode:"exit"});let Z;v==="auto"?(Z=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=Z):Z=Y,V.style.transition=[C.transitions.create("opacity",{duration:Z,delay:Q}),C.transitions.create("transform",{duration:Gx?Z:Z*.666,delay:Gx?Q:Q||Z*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=XC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),R.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:O,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:XC(.75),visibility:V==="exited"&&!s?"hidden":void 0},UTe[V],b,a.props.style),ref:S},Y))}))});k9.muiSupportAuto=!0;const ny=k9;function WTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Zn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const R9=cp["useSyncExternalStore"];function HTe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return R9(l,s,i)}function Ph(e,t={}){const n=$2(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=_2({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(R9!==void 0?HTe:WTe)(l,o,a,i,s)}const GTe=["initialWidth","width"],Us=["xs","sm","md","lg","xl"],qTe=(e,t,n=!0)=>n?Us.indexOf(e)<=Us.indexOf(t):Us.indexOf(e)n?Us.indexOf(t)<=Us.indexOf(e):Us.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=_2({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Re(c,GTe),[m,b]=$.useState(!1);Zn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=Ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:R.jsx(t,T({},g))}return a},ZTe=KTe;function JTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,QTe,t)},nke=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function rke(e){const{children:t,className:n,only:r}=e,o=Re(e,eke),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=tke(s);return R.jsx(nke,{className:Ne(l.root,n),ownerState:s,children:t})}const oke=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Re(e,oke);return t==="js"?R.jsx(XTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):R.jsx(rke,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const ake=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ike=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},l2e,t);return T({},t,o)},ske=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...H0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ls.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ls.disabled}, .${Ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ls.disabled}:before`]:{borderBottomStyle:"dotted"}})}),lke=he(Y0,{name:"MuiInput",slot:"Input",overridesResolver:G0})({}),O9=$.forwardRef(function(t,n){var r,o,a,i;const s=Ze({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Re(s,ake),y=ike(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?qr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:ske,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:lke;return R.jsx(B2,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});O9.muiName="Input";const ms=O9;function cke(e){return tt("MuiInputAdornment",e)}const uke=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),xM=uke;var wM;const dke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},pke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,cke,t)},hke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:fke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${xM.positionStart}&:not(.${xM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),mke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Re(r,dke),p=Oi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=pke(b);return R.jsx(W0.Provider,{value:null,children:R.jsx(hke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?R.jsx(yn,{color:"text.secondary",children:o}):R.jsxs($.Fragment,{children:[c==="start"?wM||(wM=R.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),q2=mke;function vke(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gke=["disableAnimation","margin","shrink","variant","className"],yke=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,vke,t);return T({},t,c)},bke=he(G2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ap.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xke=$.forwardRef(function(t,n){const r=Ze({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Re(r,gke),l=Oi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=yke(f);return R.jsx(bke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),D9=xke,wke=$.createContext({}),ts=wke;function Cke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const $ke=["children","className","component","dense","disablePadding","subheader"],Ske=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cke,t)},_ke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Eke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Re(r,$ke),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=Ske(p);return R.jsx(ts.Provider,{value:f,children:R.jsxs(_ke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),Y2=Eke;function Pke(e){return tt("MuiListItem",e)}const Tke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=Tke,kke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Rke=kke;function Oke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const Dke=["className"],Mke=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},Oke,n)},Ike=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),M9=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Re(r,Dke),i=$.useContext(ts),s=T({},r,{disableGutters:i.disableGutters}),l=Mke(s);return R.jsx(Ike,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});M9.muiName="ListItemSecondaryAction";const I9=M9,Ake=["className"],Nke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],jke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Lke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Pke,r)},Fke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:jke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),zke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Re(r.ContainerProps,Ake),I=Re(r,Nke),O=$.useContext(ts),F=$.useMemo(()=>({dense:b||O.dense||!1,alignItems:o,disableGutters:x}),[o,O.dense,b,x]),U=$.useRef(null);Zn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Lke(V),Q=sn(U,n),W=E.root||u.Root||Fke,Z=S.root||f.root||{},X=T({className:Ne(Y.root,Z.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),R.jsx(ts.Provider,{value:F,children:R.jsxs(zke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[R.jsx(W,T({},Z,!Ci(W)&&{as:j,ownerState:T({},V,Z.ownerState)},X,{children:G})),G.pop()]}))})):R.jsx(ts.Provider,{value:F,children:R.jsxs(W,T({},Z,{as:j,ref:Q},!Ci(W)&&{ownerState:T({},V,Z.ownerState)},X,{children:[G,C&&R.jsx(I9,{children:C})]}))})}),A9=Vke;function Bke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Uke=["className"],Wke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Bke,n)},Hke=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Gke=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Re(r,Uke),i=$.useContext(ts),s=T({},r,{alignItems:i.alignItems}),l=Wke(s);return R.jsx(Hke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),qke=Gke,Yke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),CM=Yke;function Kke(e){return tt("MuiListItemText",e)}const Zke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ry=Zke,Jke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Xke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Kke,t)},Qke=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ry.primary}`]:t.primary},{[`& .${ry.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),eRe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Re(r,Jke),{dense:m}=$.useContext(ts);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Xke(x);return b!=null&&b.type!==yn&&!i&&(b=R.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=R.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),R.jsxs(Qke,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),tRe=eRe,nRe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $M(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function N9(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function xf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!N9(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const rRe=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Re(t,nRe),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),xf(C,S,c,l,qx);else if(_==="ArrowUp")w.preventDefault(),xf(C,S,c,l,$M);else if(_==="Home")w.preventDefault(),xf(C,null,c,l,qx);else if(_==="End")w.preventDefault(),xf(C,null,c,l,$M);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const O=S&&!E.repeating&&N9(S,E);E.previousKeyMatched&&(O||xf(C,S,!1,l,qx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return R.jsx(Y2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),K2=rRe;function oRe(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const aRe=["onEntering"],iRe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sRe=["slotProps"];function SM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _M(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function EM(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Yx(e){return typeof e=="function"?e():e}const lRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},oRe,t)},cRe=he(C9,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j9=he(hs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uRe=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=ny,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,O=Re(i.TransitionProps,aRe),F=Re(i,iRe),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:O}),Y=lRe(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Yx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+SM(fe,c.vertical),left:fe.left+_M(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:SM(se,_.vertical),horizontal:_M(se,_.horizontal)}),[_.horizontal,_.vertical]),Z=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:EM(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=Pi(Yx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:EM(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=Z(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[Z]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=bh(()=>{K()}),Ce=Pi(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Yx(l)).body:void 0),J=(o=w==null?void 0:w.root)!=null?o:cRe,re=(a=w==null?void 0:w.paper)!=null?a:j9,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:J,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Re(xe,sRe);return R.jsx(J,T({},ue,!Ci(J)&&{slotProps:me,disableScrollLock:I},{children:R.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},O,{children:R.jsx(re,T({},ce,{children:p}))}))}))}),dRe=uRe;function fRe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const pRe=["onEntering"],hRe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mRe={vertical:"top",horizontal:"right"},vRe={vertical:"top",horizontal:"left"},gRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},fRe,t)},yRe=he(dRe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bRe=he(j9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xRe=he(K2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wRe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Re(a.TransitionProps,pRe),_=Re(a,hRe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=gRe(k),O=i&&!c&&p,F=$.useRef(null),U=(Z,X)=>{F.current&&F.current.adjustStyleForScrollbar(Z,S),x&&x(Z,X)},G=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let z=-1;$.Children.map(s,(Z,X)=>{$.isValidElement(Z)&&(Z.props.disabled||(g==="selectedMenu"&&Z.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:bRe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return R.jsx(yRe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?mRe:vRe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:R.jsx(xRe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:O,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),CRe=wRe;function $Re(e){return tt("MuiMenuItem",e)}const SRe=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=SRe,_Re=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ERe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},PRe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},$Re,i);return T({},i,l)},TRe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ERe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mM.inset}`]:{marginLeft:52},[`& .${ry.root}`]:{marginTop:0,marginBottom:0},[`& .${ry.inset}`]:{paddingLeft:36},[`& .${CM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${CM.root} svg`]:{fontSize:"1.25rem"}}))),kRe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Re(r,_Re),b=$.useContext(ts),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Zn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=PRe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),R.jsx(ts.Provider,{value:v,children:R.jsx(TRe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),oy=kRe;function RRe(e){return tt("MuiNativeSelect",e)}const ORe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Z2=ORe,DRe=["className","disabled","error","IconComponent","inputRef","variant"],MRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,RRe,t)},L9=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Z2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),IRe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Z2.multiple}`]:t.multiple}]}})(L9),F9=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Z2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ARe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(F9),NRe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Re(t,DRe),u=T({},t,{disabled:o,variant:l,error:a}),f=MRe(u);return R.jsxs($.Fragment,{children:[R.jsx(IRe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:R.jsx(ARe,{as:i,ownerState:u,className:f.icon})]})}),jRe=NRe;var PM;const LRe=["children","classes","className","label","notched"],FRe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zRe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function VRe(e){const{className:t,label:n,notched:r}=e,o=Re(e,LRe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return R.jsx(FRe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:R.jsx(zRe,{ownerState:i,children:a?R.jsx("span",{children:n}):PM||(PM=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const BRe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],URe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},u2e,t);return T({},t,r)},WRe=he(q0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ui.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ui.focused} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ui.error} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ui.disabled} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),HRe=he(VRe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),GRe=he(Y0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Ze({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Re(l,BRe),y=URe(l),w=Oi(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:WRe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:GRe;return R.jsx(B2,T({slots:{root:S,input:E},renderSuffix:k=>R.jsx(HRe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=R.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});z9.muiName="Input";const V9=z9,qRe=or(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),YRe=or(R.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),KRe=he("span")({position:"relative",display:"flex"}),ZRe=he(qRe)({transform:"scale(1)"}),JRe=he(YRe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function B9(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return R.jsxs(KRe,{className:n.root,ownerState:o,children:[R.jsx(ZRe,{fontSize:r,className:n.background,ownerState:o}),R.jsx(JRe,{fontSize:r,className:n.dot,ownerState:o})]})}const XRe=$.createContext(void 0),U9=XRe;function QRe(){return $.useContext(U9)}function eOe(e){return tt("MuiRadio",e)}const tOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TM=tOe,nOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],rOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,eOe,t))},oOe=he(U2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${TM.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${TM.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function aOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const kM=R.jsx(B9,{checked:!0}),RM=R.jsx(B9,{}),iOe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=kM,color:l="primary",icon:c=RM,name:u,onChange:f,size:p="medium",className:m}=a,b=Re(a,nOe),v=T({},a,{color:l,size:p}),x=rOe(v),g=QRe();let y=i;const w=qg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=aOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),R.jsx(oOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=RM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=kM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),sOe=iOe,lOe=["actions","children","defaultValue","name","onChange","value"],cOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Re(t,lOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Qa(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return R.jsx(U9.Provider,{value:v,children:R.jsx(P9,T({role:"radiogroup",ref:m},c,{children:o}))})}),uOe=cOe;function dOe(e){return tt("MuiSelect",e)}const fOe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cf=fOe;var OM;const pOe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hOe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(L9,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mOe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(F9),vOe=he("input",{shouldForwardProp:e=>P2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gOe(e){return e==null||typeof e=="string"&&!e.trim()}const yOe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,dOe,t)},bOe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:O,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Re(t,pOe),[W,Z]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:O,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(O!=null),[J,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(Z(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(Z(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(ty({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>DM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=DM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},J2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},SOe=he(ms,J2)(""),_Oe=he(V9,J2)(""),EOe=he(E9,J2)(""),W9=$.forwardRef(function(t,n){const r=Ze({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=g9,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Re(r,wOe),O=y?jRe:xOe,F=Oi(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=$Oe(z),Y=Re(V,COe),Q=p||{standard:R.jsx(SOe,{ownerState:z}),outlined:R.jsx(_Oe,{label:b,ownerState:z}),filled:R.jsx(EOe,{ownerState:z})}[G],W=sn(n,Q.ref);return R.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:O,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?qr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});W9.muiName="Select";const H9=W9,POe=e=>!e||!Ci(e),TOe=POe;function kOe(e){return tt("MuiSlider",e)}const ROe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=ROe,OOe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function DOe(e){const{children:t,className:n,value:r}=e,o=OOe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},R.jsxs($.Fragment,{children:[t.props.children,R.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:r})})})]})):null}const MOe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function MM(e){return e}const IOe=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),AOe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),NOe=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?k0(e.palette[t.color].main,.62):T0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),jOe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),LOe=he(DOe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),FOe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>P2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),zOe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>P2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),VOe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,kOe,i)},BOe=({children:e})=>e,UOe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,O;const F=Ze({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:Z={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:J=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=MM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=MM}=F,Be=Re(F,MOe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:J,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=k_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=VOe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:IOe,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:AOe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:NOe,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:jOe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:LOe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:FOe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:zOe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:Z.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:Z.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:Z.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:Z.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:Z.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:Z.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:Z.markLabel,xn=(O=Ce==null?void 0:Ce.input)!=null?O:Z.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},TOe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return R.jsxs(Se,T({},Bn,{children:[R.jsx(_e,T({},le)),R.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=ey(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),R.jsxs($.Fragment,{children:[R.jsx(_t,T({"data-index":Ie},Ee,!Ci(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?R.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!Ci(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=ey(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?BOe:ft;return R.jsx(xt,T({},!Ci(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:R.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:R.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),WOe=UOe;function HOe(e){return tt("MuiTooltip",e)}const GOe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ws=GOe,qOe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function YOe(e){return Math.round(e*1e5)/1e5}const KOe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,HOe,t)},ZOe=he(_h,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ws.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ws.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ws.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ws.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),JOe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${YOe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ws.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ws.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ws.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ws.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XOe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yv=!1,Kx=null,$f={x:0,y:0};function bv(e,t){return n=>{t&&t(n),e(n)}}const QOe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Ze({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:O={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:Z=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:J,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=ny,TransitionProps:se}=S,Ce=Re(S,qOe),fe=$.isValidElement(k)?k:R.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||Z,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Qa(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Kx),yv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Kx),Kx=setTimeout(()=>{yv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||yv&&Q?Me.current=setTimeout(()=>{ne(yt)},yv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=o0(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),$f={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},Z?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=bv(Yt,oe.onMouseOver),oe.onMouseLeave=bv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=bv(dt,oe.onFocus),oe.onBlur=bv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:J,touch:$e.current}),pt=KOe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:ZOe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:ny,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:JOe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:XOe,lt=If(ye,T({},re,(p=ce.popper)!=null?p:O.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:O.popper)==null?void 0:m.className)}),Ee),xt=If(ve,T({},se,(v=ce.transition)!=null?v:O.transition),Ee),Nt=If(Ie,T({},(x=ce.tooltip)!=null?x:O.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:O.tooltip)==null?void 0:g.className)}),Ee),ut=If(rt,T({},(w=ce.arrow)!=null?w:O.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:O.arrow)==null?void 0:C.className)}),Ee);return R.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),R.jsx(ye,T({as:J??_h,placement:B,anchorEl:Z?{getBoundingClientRect:()=>({top:$f.y,left:$f.x,right:$f.x,bottom:$f.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>R.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:R.jsxs(Ie,T({},Nt,{children:[me,E?R.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=QOe,eDe=$.createContext({}),Th=eDe,tDe=$.createContext({}),Q0=tDe;function nDe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const rDe=["active","children","className","component","completed","disabled","expanded","index","last"],oDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},nDe,t)},aDe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),iDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Re(r,rDe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(Th);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=oDe(E),I=R.jsxs(aDe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return R.jsx(Q0.Provider,{value:S,children:v&&!x&&f!==0?R.jsxs($.Fragment,{children:[v,I]}):I})}),sDe=iDe,lDe=or(R.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),cDe=or(R.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function uDe(e){return tt("MuiStepIcon",e)}const dDe=et("MuiStepIcon",["root","active","completed","error","text"]),Zx=dDe;var IM;const fDe=["active","className","completed","error","icon"],pDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},uDe,t)},Jx=he(HC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Zx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.error}`]:{color:(e.vars||e).palette.error.main}})),hDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),mDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Re(r,fDe),u=T({},r,{active:o,completed:i,error:s}),f=pDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?R.jsx(Jx,T({as:cDe,className:p,ref:n,ownerState:u},c)):i?R.jsx(Jx,T({as:lDe,className:p,ref:n,ownerState:u},c)):R.jsxs(Jx,T({className:p,ref:n,ownerState:u},c,{children:[IM||(IM=R.jsx("circle",{cx:"12",cy:"12",r:"12"})),R.jsx(hDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),vDe=mDe;function gDe(e){return tt("MuiStepLabel",e)}const yDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Hs=yDe,bDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],xDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},gDe,t)},wDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Hs.alternativeLabel}`]:{flexDirection:"column"},[`&.${Hs.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),CDe=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Hs.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.alternativeLabel}`]:{marginTop:16},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),$De=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Hs.alternativeLabel}`]:{paddingRight:0}})),SDe=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Hs.alternativeLabel}`]:{textAlign:"center"}})),G9=$.forwardRef(function(t,n){var r;const o=Ze({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Re(o,bDe),{alternativeLabel:v,orientation:x}=$.useContext(Th),{active:g,disabled:y,completed:w,icon:C}=$.useContext(Q0),_=c||C;let S=p;_&&!S&&(S=vDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=xDe(E),I=(r=f.label)!=null?r:s.label;return R.jsxs(wDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?R.jsx($De,{className:k.iconContainer,ownerState:E,children:R.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,R.jsxs(SDe,{className:k.labelContainer,ownerState:E,children:[a?R.jsx(CDe,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});G9.muiName="StepLabel";const _De=G9;function EDe(e){return tt("MuiStepButton",e)}const PDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),AM=PDe,TDe=["children","className","icon","optional"],kDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},EDe,t)},RDe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${AM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${AM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),ODe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Re(r,TDe),{disabled:c,active:u}=$.useContext(Q0),{orientation:f}=$.useContext(Th),p=T({},r,{orientation:f}),m=kDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):R.jsx(_De,T({},b,{children:o}));return R.jsx(RDe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),DDe=ODe;function MDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const IDe=["className"],ADe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,MDe,t)},NDe=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),jDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),LDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Re(r,IDe),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(Th),{active:l,disabled:c,completed:u}=$.useContext(Q0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=ADe(f);return R.jsx(NDe,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:R.jsx(jDe,{className:p.line,ownerState:f})}))}),FDe=LDe;function zDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const VDe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],BDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},zDe,r)},UDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),WDe=R.jsx(FDe,{}),HDe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=WDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Re(r,VDe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=BDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return R.jsx(Th.Provider,{value:g,children:R.jsx(UDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),GDe=HDe;function qDe(e){return tt("MuiSwitch",e)}const YDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),no=YDe,KDe=["className","color","edge","size","sx"],ZDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,qDe,t);return T({},t,l)},JDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${no.thumb}`]:{width:16,height:16},[`& .${no.switchBase}`]:{padding:4,[`&.${no.checked}`]:{transform:"translateX(16px)"}}})),XDe=he(U2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${no.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${no.checked}`]:{transform:"translateX(20px)"},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${no.checked} + .${no.track}`]:{opacity:.5},[`&.${no.disabled} + .${no.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${no.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${no.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?k0(e.palette[t.color].main,.62):T0(e.palette[t.color].main,.55)}`}},[`&.${no.checked} + .${no.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),QDe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),eMe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),tMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Re(r,KDe),u=T({},r,{color:a,edge:i,size:s}),f=ZDe(u),p=R.jsx(eMe,{className:f.thumb,ownerState:u});return R.jsxs(JDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[R.jsx(XDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),R.jsx(QDe,{className:f.track,ownerState:u})]})}),nMe=tMe;function rMe(e){return tt("MuiTab",e)}const oMe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=oMe,aMe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],iMe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,rMe,t)},sMe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),lMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Re(r,aMe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=iMe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=O=>{!v&&p&&p(O,y),m&&m(O)},I=O=>{x&&!v&&p&&p(O,y),b&&b(O)};return R.jsxs(sMe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?R.jsxs($.Fragment,{children:[E,f]}):R.jsxs($.Fragment,{children:[f,E]}),u]}))}),Up=lMe,cMe=$.createContext(),q9=cMe;function uMe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const dMe=["className","component","padding","size","stickyHeader"],fMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},uMe,t)},pMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),NM="table",hMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:o,component:a=NM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Re(r,dMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=fMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return R.jsx(q9.Provider,{value:p,children:R.jsx(pMe,T({as:a,role:a===NM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),Y9=hMe,mMe=$.createContext(),e1=mMe;function vMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const gMe=["className","component"],yMe=e=>{const{classes:t}=e;return Qe({root:["root"]},vMe,t)},bMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),xMe={variant:"body"},jM="tbody",wMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:o,component:a=jM}=r,i=Re(r,gMe),s=T({},r,{component:a}),l=yMe(s);return R.jsx(e1.Provider,{value:xMe,children:R.jsx(bMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===jM?null:"rowgroup",ownerState:s},i))})}),K9=wMe;function CMe(e){return tt("MuiTableCell",e)}const $Me=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),SMe=$Me,_Me=["align","className","component","padding","scope","size","sortDirection","variant"],EMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,CMe,t)},PMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?k0(Tt(e.palette.divider,1),.88):T0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${SMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),TMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Re(r,_Me),m=$.useContext(q9),b=$.useContext(e1),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=EMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),R.jsx(PMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Rd=TMe;function kMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const RMe=["className","component"],OMe=e=>{const{classes:t}=e;return Qe({root:["root"]},kMe,t)},DMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),MMe={variant:"head"},LM="thead",IMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:o,component:a=LM}=r,i=Re(r,RMe),s=T({},r,{component:a}),l=OMe(s);return R.jsx(e1.Provider,{value:MMe,children:R.jsx(DMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===LM?null:"rowgroup",ownerState:s},i))})}),Z9=IMe;function AMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const NMe=["className","component","disableGutters","variant"],jMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},AMe,t)},LMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),FMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Re(r,NMe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=jMe(c);return R.jsx(LMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),zMe=FMe,VMe=or(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),BMe=or(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UMe(e){return tt("MuiTableRow",e)}const WMe=et("MuiTableRow",["root","selected","hover","head","footer"]),FM=WMe,HMe=["className","component","hover","selected"],GMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},UMe,t)},qMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${FM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${FM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),zM="tr",YMe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:o,component:a=zM,hover:i=!1,selected:s=!1}=r,l=Re(r,HMe),c=$.useContext(e1),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=GMe(u);return R.jsx(qMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===zM?null:"row",ownerState:u},l))}),hl=YMe;function KMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ZMe(e,t,n,r={},o=()=>{}){const{ease:a=KMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const JMe=["onChange"],XMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function QMe(e){const{onChange:t}=e,n=Re(e,JMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Zn(()=>{const i=bh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=Pi(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),R.jsx("div",T({style:XMe,ref:o},n))}function eIe(e){return tt("MuiTabScrollButton",e)}const tIe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nIe=tIe,rIe=["className","slots","slotProps","direction","orientation","disabled"],oIe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},eIe,t)},aIe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${nIe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),iIe=$.forwardRef(function(t,n){var r,o;const a=Ze({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Re(a,rIe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=oIe(m),v=(r=s.StartScrollButtonIcon)!=null?r:VMe,x=(o=s.EndScrollButtonIcon)!=null?o:BMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return R.jsx(aIe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?R.jsx(v,T({},g)):R.jsx(x,T({},y))}))}),sIe=iIe;function lIe(e){return tt("MuiTabs",e)}const cIe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Qv=cIe,uIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],VM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,BM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},dIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},lIe,l)},fIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qv.scrollButtons}`]:t.scrollButtons},{[`& .${Qv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Qv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),pIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),hIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),mIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),vIe=he(QMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),UM={},gIe=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=sIe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:O="standard",visibleScrollbar:F=!1}=r,U=Re(r,uIe),G=O==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",Z=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:O,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=dIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,J]=$.useState(UM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:q1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[Z]:ie?ie[Z]:0};if(isNaN(B[_e])||isNaN(B[Z]))J(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[Z]-Xe[Z]);(nt>=1||ft>=1)&&J(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?ZMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&$j()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?R.jsx(vIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?R.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?R.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=bh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=Pi(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(UM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=R.jsx(mIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:O==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),xv(ie,Se,BM);break;case nt:te.preventDefault(),xv(ie,Se,VM);break;case"Home":te.preventDefault(),xv(ie,null,VM);break;case"End":te.preventDefault(),xv(ie,null,BM);break}},ne=ze();return R.jsxs(fIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,R.jsxs(pIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[R.jsx(hIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),t1=gIe;function yIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const bIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],xIe={standard:ms,filled:E9,outlined:V9},wIe=e=>{const{classes:t}=e;return Qe({root:["root"]},yIe,t)},CIe=he(Eh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Ie=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:O,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:Z="outlined"}=r,X=Re(r,bIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:Z}),K=wIe(j),q={};Z==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Qa(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,J=xIe[Z],re=R.jsx(J,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:O,onFocus:F,placeholder:U,inputProps:g},q,y));return R.jsxs(CIe,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:Z,ownerState:j},X,{children:[C!=null&&C!==""&&R.jsx(D9,T({htmlFor:D,id:B},x,{children:C})),V?R.jsx(H9,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&R.jsx(pr,T({id:N},p,{children:b}))]}))}),kh=$Ie;var SIe=PS;function _Ie(e){return SIe(e)?void 0:e}var EIe=_Ie,PIe=gd,TIe=Uy,kIe=efe,RIe=lh,OIe=bd,DIe=EIe,MIe=FS,IIe=J5,AIe=1,NIe=2,jIe=4,LIe=MIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=PIe(t,function(a){return a=RIe(a,e),r||(r=a.length>1),a}),OIe(e,IIe(e),n),r&&(n=TIe(n,AIe|NIe|jIe,DIe));for(var o=t.length;o--;)kIe(n,t[o]);return n}),FIe=LIe;const zIe=Vt(FIe);function VIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=eAe){var c=t?null:XIe(e);if(c)return QIe(c);i=!1,o=JIe,l=new YIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var Z=b(Q)(Y),X=Z.year,j=Z.month,K=Z.day,q=Z.hours,D=Z.minutes,N=Z.seconds,B=Z.milliseconds,J=Z.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return J?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*J.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(eL);var OAe=eL.exports;const DAe=Vt(OAe);var iE={},MAe=Cc;Object.defineProperty(iE,"__esModule",{value:!0});var tL=iE.default=void 0,IAe=MAe($c()),AAe=R,NAe=(0,IAe.default)((0,AAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");tL=iE.default=NAe;var jAe=zS,LAe=us;function FAe(e,t){var n=-1,r=LAe(e)?Array(e.length):[];return jAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var zAe=FAe,VAe=gd,BAe=vc,UAe=zAe,WAe=lr;function HAe(e,t){var n=WAe(e)?VAe:UAe;return n(e,BAe(t))}var nL=HAe;const rL=Vt(nL),GAe=["localeText"],QC=$.createContext(null),Rh=function(t){var n;const{localeText:r}=t,o=Re(t,GAe),{utils:a,localeText:i}=(n=$.useContext(QC))!=null?n:{utils:void 0,localeText:void 0},s=Ze({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return R.jsx(QC.Provider,{value:g,children:l})},qAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),oL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},YAe=oL;qAe(oL);const Sc=()=>{const e=$.useContext(QC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`),pa.rippleVisible,JCe,KC,({theme:e})=>e.transitions.easing.easeInOut,pa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pa.child,pa.childLeaving,ZCe,KC,({theme:e})=>e.transitions.easing.easeInOut,pa.childPulsate,XCe,({theme:e})=>e.transitions.easing.easeInOut),t$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Re(r,YCe),[l,c]=$.useState([]),u=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=$.useRef(!1),m=$.useRef(0),b=$.useRef(null),v=$.useRef(null);$.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=$.useCallback(C=>{const{pulsate:_,rippleX:S,rippleY:E,rippleSize:k,cb:I}=C;c(O=>[...O,R.jsx(e$e,{classes:{ripple:Ne(a.ripple,pa.ripple),rippleVisible:Ne(a.rippleVisible,pa.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,pa.ripplePulsate),child:Ne(a.child,pa.child),childLeaving:Ne(a.childLeaving,pa.childLeaving),childPulsate:Ne(a.childPulsate,pa.childPulsate)},timeout:KC,pulsate:_,rippleX:S,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=$.useCallback((C={},_={},S=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const O=I?null:v.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:V,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(V-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((O?O.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((O?O.clientHeight:0)-G),G)*2+2;z=Math.sqrt(V**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},KCe)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:z,cb:S})},[o,x]),y=$.useCallback(()=>{g({},{pulsate:!0})},[g]),w=$.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c(S=>S.length>0?S.slice(1):S),f.current=_},[]);return $.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),R.jsx(QCe,T({className:Ne(pa.root,a.root,i),ref:v},s,{children:R.jsx(A2,{component:null,exit:!0,children:l})}))}),n$e=t$e;function r$e(e){return tt("MuiButtonBase",e)}const o$e=et("MuiButtonBase",["root","disabled","focusVisible"]),a$e=o$e,i$e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],s$e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Qe({root:["root",t&&"disabled",n&&"focusVisible"]},r$e,o);return n&&r&&(i.root+=` ${r}`),i},l$e=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${a$e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:S,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:O,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:V}=r,Y=Re(r,i$e),Q=$.useRef(null),W=$.useRef(null),J=sn(W,z),{isFocusVisibleRef:X,onFocus:j,onBlur:K,ref:q}=a0(),[D,N]=$.useState(!1);c&&D&&N(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[B,Z]=$.useState(!1);$.useEffect(()=>{Z(!0)},[]);const re=B&&!u&&!c;$.useEffect(()=>{D&&p&&!u&&B&&W.current.pulsate()},[u,p,D,B]);function ce(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=ce("start",S),me=ce("stop",x),ue=ce("stop",g),se=ce("stop",k),Ce=ce("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),fe=ce("start",F),Ve=ce("stop",I),Ue=ce("stop",O),De=ce("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),Be=mt(Te=>{Q.current||(Q.current=Te.currentTarget),j(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),ge=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=$.useRef(!1),$e=mt(Te=>{p&&!we.current&&D&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.current.start(Te)})),Te.target===Te.currentTarget&&ge()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&ge()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),He=mt(Te=>{p&&Te.key===" "&&W.current&&D&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&ge()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let Ye=l;Ye==="button"&&(Y.href||Y.to)&&(Ye=m);const Me={};Ye==="button"?(Me.type=V===void 0?"button":V,Me.disabled=c):(!Y.href&&!Y.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const je=sn(n,q,Q),ze=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=s$e(ze);return R.jsxs(l$e,T({as:Ye,className:Ne(Pe.root,s),ownerState:ze,onBlur:De,onClick:v,onContextMenu:me,onFocus:Be,onKeyDown:$e,onKeyUp:He,onMouseDown:xe,onMouseLeave:Ce,onMouseUp:se,onDragLeave:ue,onTouchEnd:Ve,onTouchMove:Ue,onTouchStart:fe,ref:je,tabIndex:c?-1:U,type:V},Me,Y,{children:[i,re?R.jsx(n$e,T({ref:J,center:a},G)):null]}))}),Sa=c$e;function u$e(e){return tt("MuiAccordionSummary",e)}const d$e=et("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$u=d$e,f$e=["children","className","expandIcon","focusVisibleClassName","onClick"],p$e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Qe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},u$e,t)},h$e=he(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$u.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$u.expanded}`]:{minHeight:64}})}),m$e=he("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{margin:"20px 0"}})),v$e=he("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$u.expanded}`]:{transform:"rotate(180deg)"}})),g$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Re(r,f$e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=$.useContext(r9),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=p$e(v);return R.jsxs(h$e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ne(x.root,a),focusVisibleClassName:Ne(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[R.jsx(m$e,{className:x.content,ownerState:v,children:o}),i&&R.jsx(v$e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),y$e=g$e;function b$e(e){return tt("MuiIconButton",e)}const x$e=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),w$e=x$e,C$e=["edge","children","className","color","disabled","disableFocusRipple","size"],$$e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`]};return Qe(i,b$e,t)},S$e=he(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${w$e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Re(r,C$e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=$$e(p);return R.jsx(S$e,T({className:Ne(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),nr=_$e,E$e=or(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function P$e(e){return tt("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T$e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],k$e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Qe(s,P$e,i)},R$e=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),qD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O$e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},D$e=e=>O$e[e]||e,M$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=D$e(r.color),a=_2(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=qD}=a,b=Re(a,T$e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||qD[p])||"span",g=k$e(v);return R.jsx(R$e,T({as:x,ref:n,ownerState:v,className:Ne(g.root,s)},b))}),yn=M$e;function I$e(e){return tt("MuiAppBar",e)}et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const A$e=["className","color","enableColorOnDark","position"],N$e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return Qe(o,I$e,r)},fv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,j$e=he(hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:fv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),L$e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Re(r,A$e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=N$e(c);return R.jsx(j$e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ne(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),F$e=L$e;function Ci(e){return typeof e=="string"}function Af(e,t,n){return e===void 0||Ci(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function z$e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const V$e={disableDefaultClasses:!1},B$e=$.createContext(V$e);function U$e(e){const{disableDefaultClasses:t}=$.useContext(B$e);return n=>t?"":e(n)}function tp(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dl(e,t,n){return typeof e=="function"?e(t,n):e}function YD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function W$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ne(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=tp(T({},o,r)),s=YD(r),l=YD(o),c=t(i),u=Ne(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const H$e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Re(e,H$e),s=a?{}:dl(r,o),{props:l,internalRef:c}=W$e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Af(n,T({},l,{ref:u}),o)}function G$e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=s2({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const q$e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y$e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function K$e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function J$e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||K$e(e))}function Z$e(e){const t=[],n=[];return Array.from(e.querySelectorAll(q$e)).forEach((r,o)=>{const a=Y$e(r);a===-1||!J$e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function X$e(){return!0}function o9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Z$e,isEnabled:i=X$e,open:s}=e,l=$.useRef(!1),c=$.useRef(null),u=$.useRef(null),f=$.useRef(null),p=$.useRef(null),m=$.useRef(!1),b=$.useRef(null),v=sn(t.ref,b),x=$.useRef(null);$.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!b.current)return;const w=Vn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,O;const F=!!((I=x.current)!=null&&I.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const S=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(S),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:v,onFocus:g}),R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var _o="top",_a="bottom",Ea="right",Eo="left",N2="auto",_h=[_o,_a,Ea,Eo],ed="start",Vp="end",Q$e="clippingParents",a9="viewport",yf="popper",eSe="reference",KD=_h.reduce(function(e,t){return e.concat([t+"-"+ed,t+"-"+Vp])},[]),i9=[].concat(_h,[N2]).reduce(function(e,t){return e.concat([t,t+"-"+ed,t+"-"+Vp])},[]),tSe="beforeRead",nSe="read",rSe="afterRead",oSe="beforeMain",aSe="main",iSe="afterMain",sSe="beforeWrite",lSe="write",cSe="afterWrite",uSe=[tSe,nSe,rSe,oSe,aSe,iSe,sSe,lSe,cSe];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function j2(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dSe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!Ti(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function fSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ya(o)||!Ti(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const pSe={name:"applyStyles",enabled:!0,phase:"write",fn:dSe,effect:fSe,requires:["computeStyles"]};function $i(e){return e.split("-")[0]}var Kl=Math.max,ty=Math.min,td=Math.round;function JC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function s9(){return!/^((?!chrome|android).)*safari/i.test(JC())}function nd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&td(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&td(r.height)/e.offsetHeight||1);var i=cc(e)?Zo(e):window,s=i.visualViewport,l=!s9()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function L2(e){var t=nd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function l9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&j2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ls(e){return Zo(e).getComputedStyle(e)}function hSe(e){return["table","td","th"].indexOf(Ti(e))>=0}function fl(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function W0(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(j2(e)?e.host:null)||fl(e)}function JD(e){return!ya(e)||ls(e).position==="fixed"?null:e.offsetParent}function mSe(e){var t=/firefox/i.test(JC()),n=/Trident/i.test(JC());if(n&&ya(e)){var r=ls(e);if(r.position==="fixed")return null}var o=W0(e);for(j2(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(Ti(o))<0;){var a=ls(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Eh(e){for(var t=Zo(e),n=JD(e);n&&hSe(n)&&ls(n).position==="static";)n=JD(n);return n&&(Ti(n)==="html"||Ti(n)==="body"&&ls(n).position==="static")?t:n||mSe(e)||t}function F2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function np(e,t,n){return Kl(e,ty(t,n))}function vSe(e,t,n){var r=np(e,t,n);return r>n?n:r}function c9(){return{top:0,right:0,bottom:0,left:0}}function u9(e){return Object.assign({},c9(),e)}function d9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gSe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u9(typeof t!="number"?t:d9(t,_h))};function ySe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=$i(n.placement),l=F2(s),c=[Eo,Ea].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=gSe(o.padding,n),p=L2(a),m=l==="y"?_o:Eo,b=l==="y"?_a:Ea,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=Eh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],S=y/2-p[u]/2+w,E=np(C,S,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function bSe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||l9(t.elements.popper,o)&&(t.elements.arrow=o))}const xSe={name:"arrow",enabled:!0,phase:"main",fn:ySe,effect:bSe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rd(e){return e.split("-")[1]}var wSe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CSe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:td(n*o)/o||0,y:td(r*o)/o||0}}function ZD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Eo,C=_o,_=window;if(c){var S=Eh(n),E="clientHeight",k="clientWidth";if(S===Zo(n)&&(S=fl(n),ls(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,o===_o||(o===Eo||o===Ea)&&a===Vp){C=_a;var I=f&&S===_&&_.visualViewport?_.visualViewport.height:S[E];v-=I-r.height,v*=l?1:-1}if(o===Eo||(o===_o||o===_a)&&a===Vp){w=Ea;var O=f&&S===_&&_.visualViewport?_.visualViewport.width:S[k];m-=O-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&wSe),U=u===!0?CSe({x:m,y:v},Zo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function $Se(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:$i(t.placement),variation:rd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const SSe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$Se,data:{}};var pv={passive:!0};function _Se(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,pv)}),s&&l.addEventListener("resize",n.update,pv),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,pv)}),s&&l.removeEventListener("resize",n.update,pv)}}const ESe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_Se,data:{}};var PSe={left:"right",right:"left",bottom:"top",top:"bottom"};function eg(e){return e.replace(/left|right|bottom|top/g,function(t){return PSe[t]})}var TSe={start:"end",end:"start"};function XD(e){return e.replace(/start|end/g,function(t){return TSe[t]})}function z2(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function V2(e){return nd(fl(e)).left+z2(e).scrollLeft}function kSe(e,t){var n=Zo(e),r=fl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=s9();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+V2(e),y:l}}function RSe(e){var t,n=fl(e),r=z2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+V2(e),l=-r.scrollTop;return ls(o||n).direction==="rtl"&&(s+=Kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function B2(e){var t=ls(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function f9(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:ya(e)&&B2(e)?e:f9(W0(e))}function rp(e,t){var n;t===void 0&&(t=[]);var r=f9(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Zo(r),i=o?[a].concat(a.visualViewport||[],B2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(rp(W0(i)))}function ZC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OSe(e,t){var n=nd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function QD(e,t,n){return t===a9?ZC(kSe(e,n)):cc(t)?OSe(t,n):ZC(RSe(fl(e)))}function DSe(e){var t=rp(W0(e)),n=["absolute","fixed"].indexOf(ls(e).position)>=0,r=n&&ya(e)?Eh(e):e;return cc(r)?t.filter(function(o){return cc(o)&&l9(o,r)&&Ti(o)!=="body"}):[]}function MSe(e,t,n,r){var o=t==="clippingParents"?DSe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=QD(e,c,r);return l.top=Kl(u.top,l.top),l.right=ty(u.right,l.right),l.bottom=ty(u.bottom,l.bottom),l.left=Kl(u.left,l.left),l},QD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function p9(e){var t=e.reference,n=e.element,r=e.placement,o=r?$i(r):null,a=r?rd(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case _o:l={x:i,y:t.y-n.height};break;case _a:l={x:i,y:t.y+t.height};break;case Ea:l={x:t.x+t.width,y:s};break;case Eo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?F2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case ed:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Vp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Bp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?Q$e:s,c=n.rootBoundary,u=c===void 0?a9:c,f=n.elementContext,p=f===void 0?yf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=u9(typeof x!="number"?x:d9(x,_h)),y=p===yf?eSe:yf,w=e.rects.popper,C=e.elements[b?y:p],_=MSe(cc(C)?C:C.contextElement||fl(e.elements.popper),l,u,i),S=nd(e.elements.reference),E=p9({reference:S,element:w,strategy:"absolute",placement:o}),k=ZC(Object.assign({},w,E)),I=p===yf?k:S,O={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===yf&&F){var U=F[o];Object.keys(O).forEach(function(G){var z=[Ea,_a].indexOf(G)>=0?1:-1,V=[_o,_a].indexOf(G)>=0?"y":"x";O[G]+=U[V]*z})}return O}function ISe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?i9:l,u=rd(r),f=u?s?KD:KD.filter(function(b){return rd(b)===u}):_h,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Bp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[$i(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function ASe(e){if($i(e)===N2)return[];var t=eg(e);return[XD(e),t,XD(t)]}function NSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=$i(x),y=g===x,w=l||(y||!b?[eg(x)]:ASe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat($i(N)===N2?ISe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,I=C[0],O=0;O=0,V=z?"width":"height",Y=Bp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ea:Eo:G?_a:_o;_[V]>S[V]&&(Q=eg(Q));var W=eg(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[W]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,j=function(N){var B=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(ce){return ce})});if(B)return I=B,"break"},K=X;K>0;K--){var q=j(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const jSe={name:"flip",enabled:!0,phase:"main",fn:NSe,requiresIfExists:["offset"],data:{_skip:!1}};function eM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tM(e){return[_o,Ea,_a,Eo].some(function(t){return e[t]>=0})}function LSe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Bp(t,{elementContext:"reference"}),s=Bp(t,{altBoundary:!0}),l=eM(i,r),c=eM(s,o,a),u=tM(l),f=tM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const FSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LSe};function zSe(e,t,n){var r=$i(e),o=[Eo,_o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Eo,Ea].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function VSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=i9.reduce(function(u,f){return u[f]=zSe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const BSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VSe};function USe(e){var t=e.state,n=e.name;t.modifiersData[n]=p9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const WSe={name:"popperOffsets",enabled:!0,phase:"read",fn:USe,data:{}};function HSe(e){return e==="x"?"y":"x"}function GSe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Bp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=$i(t.placement),y=rd(t.placement),w=!y,C=F2(g),_=HSe(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(a){var G,z=C==="y"?_o:Eo,V=C==="y"?_a:Ea,Y=C==="y"?"height":"width",Q=S[C],W=Q+x[z],J=Q-x[V],X=m?-k[Y]/2:0,j=y===ed?E[Y]:k[Y],K=y===ed?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?L2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:c9(),B=N[z],Z=N[V],re=np(0,E[Y],D[Y]),ce=w?E[Y]/2-X-re-B-O.mainAxis:j-re-B-O.mainAxis,xe=w?-E[Y]/2+X+re+Z+O.mainAxis:K+re+Z+O.mainAxis,me=t.elements.arrow&&Eh(t.elements.arrow),ue=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,se=(G=F==null?void 0:F[C])!=null?G:0,Ce=Q+ce-se-ue,fe=Q+xe-se,Ve=np(m?ty(W,Ce):W,Q,m?Kl(J,fe):J);S[C]=Ve,U[C]=Ve-Q}if(s){var Ue,De=C==="x"?_o:Eo,Be=C==="x"?_a:Ea,ge=S[_],we=_==="y"?"height":"width",$e=ge+x[De],He=ge-x[Be],Ye=[_o,Eo].indexOf(g)!==-1,Me=(Ue=F==null?void 0:F[_])!=null?Ue:0,je=Ye?$e:ge-E[we]-k[we]-Me+O.altAxis,ze=Ye?ge+E[we]+k[we]-Me-O.altAxis:He,Pe=m&&Ye?vSe(je,ge,ze):np(m?je:$e,ge,m?ze:He);S[_]=Pe,U[_]=Pe-ge}t.modifiersData[r]=U}}const qSe={name:"preventOverflow",enabled:!0,phase:"main",fn:GSe,requiresIfExists:["offset"]};function YSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function KSe(e){return e===Zo(e)||!ya(e)?z2(e):YSe(e)}function JSe(e){var t=e.getBoundingClientRect(),n=td(t.width)/e.offsetWidth||1,r=td(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZSe(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&JSe(t),a=fl(t),i=nd(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ti(t)!=="body"||B2(a))&&(s=KSe(t)),ya(t)?(l=nd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=V2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function XSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function QSe(e){var t=XSe(e);return uSe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function e_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function t_e(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nM={placement:"bottom",modifiers:[],strategy:"absolute"};function rM(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(a_e(o)||document.body)},[o,a]),Jn(()=>{if(i&&!a)return jp(n,i),()=>{jp(n,null)}},[n,i,a]),a){if($.isValidElement(r)){const c={ref:l};return $.cloneElement(r,c)}return R.jsx($.Fragment,{children:r})}return R.jsx($.Fragment,{children:i&&ud.createPortal(r,i)})});function i_e(e){return tt("MuiPopper",e)}et("MuiPopper",["root"]);const s_e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],l_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function c_e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function XC(e){return typeof e=="function"?e():e}function u_e(e){return e.nodeType!==void 0}const d_e=()=>Qe({root:["root"]},U$e(i_e)),f_e={},p_e=$.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Re(t,s_e),g=$.useRef(null),y=sn(g,n),w=$.useRef(null),C=sn(w,p),_=$.useRef(C);Jn(()=>{_.current=C},[C]),$.useImperativeHandle(p,()=>w.current,[]);const S=c_e(u,i),[E,k]=$.useState(S),[I,O]=$.useState(XC(o));$.useEffect(()=>{w.current&&w.current.forceUpdate()}),$.useEffect(()=>{o&&O(XC(o))},[o]),Jn(()=>{if(!I||!c)return;const V=W=>{k(W.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{V(W)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=o_e(I,g.current,T({placement:S},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,S]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=d_e(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return R.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),h_e=$.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=f_e,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Re(t,l_e),[w,C]=$.useState(!0),_=()=>{C(!1)},S=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const O=XC(r);E=O&&u_e(O)?Vn(O).body:Vn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:S}:void 0;return R.jsx(h9,{disablePortal:s,container:E,children:R.jsx(p_e,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function m_e(e){const t=Vn(e);return t.body===e?Pi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function op(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oM(e){return parseInt(Pi(e).getComputedStyle(e).paddingRight,10)||0}function v_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function aM(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!v_e(i);s&&l&&op(i,o)})}function Vx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function g_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(m_e(r)){const i=$j(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oM(r)+i}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${oM(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vn(r).body;else{const i=r.parentElement,s=Pi(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function y_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class b_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&op(t.modalRef,!1);const o=y_e(n);aM(n,t.mount,t.modalRef,o,!0);const a=Vx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Vx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=g_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Vx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&op(t.modalRef,n),aM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&op(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function x_e(e){return typeof e=="function"?e():e}function w_e(e){return e?e.props.hasOwnProperty("in"):!1}const C_e=new b_e;function $_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=C_e,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=$.useRef({}),m=$.useRef(null),b=$.useRef(null),v=sn(b,f),[x,g]=$.useState(!u),y=w_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Vn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),S=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=x_e(t)||C().body;o.add(_(),Y),b.current&&S()}),k=$.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?S():b.current&&op(b.current,w))}),O=$.useCallback(()=>{o.remove(_(),w)},[w,o]);$.useEffect(()=>()=>{O()},[O]),$.useEffect(()=>{u?E():(!y||!a)&&O()},[u,O,y,a,E]);const F=Y=>Q=>{var W;(W=Y.onKeyDown)==null||W.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var W;(W=Y.onClick)==null||W.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=tp(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,Y);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&O()};return{onEnter:Kg(Y,l==null?void 0:l.props.onEnter),onExited:Kg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const S_e=2;function m9(e,t){return e-t}function bf(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function iM(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},k_e=e=>e;let gv;function Bx(){return gv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gv=CSS.supports("touch-action","none"):gv=!0),gv}function R_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=k_e,step:v=1,tabIndex:x,value:g}=e,y=$.useRef(),[w,C]=$.useState(-1),[_,S]=$.useState(-1),[E,k]=$.useState(!1),I=$.useRef(0),[O,F]=$r({controlled:g,default:n??l,name:"Slider"}),U=u&&((Me,je,ze)=>{const Pe=Me.nativeEvent||Me,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:je,name:c}}),u(Te,je,ze)}),G=Array.isArray(O);let z=G?O.slice().sort(m9):[O];z=z.map(Me=>bf(Me,l,s));const V=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Me,je)=>({value:l+v*je})):i||[],Y=V.map(Me=>Me.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:X}=a0(),[j,K]=$.useState(-1),q=$.useRef(),D=sn(X,q),N=sn(m,D),B=Me=>je=>{var ze;const Pe=Number(je.currentTarget.getAttribute("data-index"));J(je),Q.current===!0&&K(Pe),S(Pe),Me==null||(ze=Me.onFocus)==null||ze.call(Me,je)},Z=Me=>je=>{var ze;W(je),Q.current===!1&&K(-1),S(-1),Me==null||(ze=Me.onBlur)==null||ze.call(Me,je)};Jn(()=>{if(r&&q.current.contains(document.activeElement)){var Me;(Me=document.activeElement)==null||Me.blur()}},[r]),r&&w!==-1&&C(-1),r&&j!==-1&&K(-1);const re=Me=>je=>{var ze;(ze=Me.onChange)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=je.target.valueAsNumber;if(V&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:ze}=q,{width:Pe,height:Te,bottom:it,left:ct}=ze.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Me.y)/Te:gt=(Me.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Le;if(Le=__e(gt,l,s),v)Le=P_e(Le,v,l);else{const te=iM(Y,Le);Le=Y[te]}Le=bf(Le,l,s);let ne=0;if(G){je?ne=ce.current:ne=iM(z,Le),o&&(Le=bf(Le,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Le;Le=sM({values:z,newValue:Le,index:ne}),o&&je||(ne=Le.indexOf(te),ce.current=ne)}return{newValue:Le,activeIndex:ne}},ue=mt(Me=>{const je=hv(Me,y);if(!je)return;if(I.current+=1,Me.type==="mousemove"&&Me.buttons===0){se(Me);return}const{newValue:ze,activeIndex:Pe}=me({finger:je,move:!0});mv({sliderRef:q,activeIndex:Pe,setActive:C}),F(ze),!E&&I.current>S_e&&k(!0),U&&!vv(ze,O)&&U(Me,ze,Pe)}),se=mt(Me=>{const je=hv(Me,y);if(k(!1),!je)return;const{newValue:ze}=me({finger:je,move:!0});C(-1),Me.type==="touchend"&&S(-1),f&&f(Me,ze),y.current=void 0,fe()}),Ce=mt(Me=>{if(r)return;Bx()||Me.preventDefault();const je=Me.changedTouches[0];je!=null&&(y.current=je.identifier);const ze=hv(Me,y);if(ze!==!1){const{newValue:Te,activeIndex:it}=me({finger:ze});mv({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!vv(Te,O)&&U(Me,Te,it)}I.current=0;const Pe=Vn(q.current);Pe.addEventListener("touchmove",ue),Pe.addEventListener("touchend",se)}),fe=$.useCallback(()=>{const Me=Vn(q.current);Me.removeEventListener("mousemove",ue),Me.removeEventListener("mouseup",se),Me.removeEventListener("touchmove",ue),Me.removeEventListener("touchend",se)},[se,ue]);$.useEffect(()=>{const{current:Me}=q;return Me.addEventListener("touchstart",Ce,{passive:Bx()}),()=>{Me.removeEventListener("touchstart",Ce,{passive:Bx()}),fe()}},[fe,Ce]),$.useEffect(()=>{r&&fe()},[r,fe]);const Ve=Me=>je=>{var ze;if((ze=Me.onMouseDown)==null||ze.call(Me,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Pe=hv(je,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=me({finger:Pe});mv({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!vv(it,O)&&U(je,it,ct)}I.current=0;const Te=Vn(q.current);Te.addEventListener("mousemove",ue),Te.addEventListener("mouseup",se)},Ue=ny(G?z[0]:l,l,s),De=ny(z[z.length-1],l,s)-Ue,Be=(Me={})=>{const je=tp(Me),ze={onMouseDown:Ve(je||{})},Pe=T({},je,ze);return T({},Me,{ref:N},Pe)},ge=Me=>je=>{var ze;(ze=Me.onMouseOver)==null||ze.call(Me,je);const Pe=Number(je.currentTarget.getAttribute("data-index"));S(Pe)},we=Me=>je=>{var ze;(ze=Me.onMouseLeave)==null||ze.call(Me,je),S(-1)};return{active:w,axis:xe,axisProps:T_e,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(Me={})=>{var je;const ze=tp(Me),Pe={onChange:re(ze||{}),onFocus:B(ze||{}),onBlur:Z(ze||{})},Te=T({},ze,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Me,Te,{style:T({},Z1e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Be,getThumbProps:(Me={})=>{const je=tp(Me),ze={onMouseOver:ge(je||{}),onMouseLeave:we(je||{})};return T({},Me,je,ze)},marks:V,open:_,range:G,rootRef:N,trackLeap:De,trackOffset:Ue,values:z,getThumbStyle:Me=>({pointerEvents:w!==-1&&w!==Me?"none":void 0})}}const O_e=["onChange","maxRows","minRows","style","value"];function yv(e){return parseInt(e,10)||0}const D_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const M_e=$.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Re(t,O_e),{current:c}=$.useRef(s!=null),u=$.useRef(null),f=sn(n,u),p=$.useRef(null),m=$.useRef(0),[b,v]=$.useState({outerHeightStyle:0}),x=$.useCallback(()=>{const C=u.current,S=Pi(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=S.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=S.boxSizing,I=yv(S.paddingBottom)+yv(S.paddingTop),O=yv(S.borderBottomWidth)+yv(S.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+O:0),V=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:V}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:S,overflow:E}=_;return m.current<20&&(S>0&&Math.abs((C.outerHeightStyle||0)-S)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:S}):C},y=$.useCallback(()=>{const C=x();lM(C)||v(_=>g(_,C))},[x]);Jn(()=>{const C=()=>{const F=x();lM(F)||ud.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let S;const E=wh(_),k=u.current,I=Pi(k);I.addEventListener("resize",E);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(_),O.observe(k)),()=>{E.clear(),cancelAnimationFrame(S),I.removeEventListener("resize",E),O&&O.disconnect()}},[x]),Jn(()=>{y()}),$.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},D_e.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function cM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function I_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=cM(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=cM(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Ux(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function j_e(e){const{unstable_isActiveElementInListbox:t=N_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=A_e,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=ye=>{var ve;return(ve=ye.label)!=null?ve:ye},groupBy:_,handleHomeEndKeys:S=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:O=(ye,ve)=>ye===ve,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:V,onOpen:Y,open:Q,openOnFocus:W=!1,options:J,readOnly:X=!1,selectOnFocus:j=!e.freeSolo,value:K}=e,q=Qa(E);let D=C;D=ye=>{const ve=C(ye);return typeof ve!="string"?String(ve):ve};const N=$.useRef(!1),B=$.useRef(!0),Z=$.useRef(null),re=$.useRef(null),[ce,xe]=$.useState(null),[me,ue]=$.useState(-1),se=o?0:-1,Ce=$.useRef(se),[fe,Ve]=$r({controlled:K,default:u,name:c}),[Ue,De]=$r({controlled:I,default:"",name:c,state:"inputValue"}),[Be,ge]=$.useState(!1),we=$.useCallback((ye,ve)=>{if(!(F?fe.length!(g&&(F?fe:[fe]).some(ve=>ve!==null&&O(ye,ve)))),{inputValue:je&&Ye?"":Ue,getOptionLabel:D}):[],Te=s2({filteredOptions:Pe,value:fe,inputValue:Ue});$.useEffect(()=>{const ye=fe!==Te.value;Be&&!ye||y&&!ye||we(null,fe)},[fe,we,Be,Te.value,y]);const it=$e&&Pe.length>0&&!X,ct=mt(ye=>{ye===-1?Z.current.focus():ce.querySelector(`[data-tag-index="${ye}"]`).focus()});$.useEffect(()=>{F&&me>fe.length-1&&(ue(-1),ct(-1))},[fe,F,me,ct]);function gt(ye,ve){if(!re.current||ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===Pe.length||ve==="previous"&&Ie===-1)return-1;const rt=re.current.querySelector(`[data-option-index="${Ie}"]`),lt=b?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||lt)Ie+=ve==="next"?1:-1;else return Ie}}const Le=mt(({event:ye,index:ve,reason:Ie="auto"})=>{if(Ce.current=ve,ve===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${ve}`),z&&z(ye,ve===-1?null:Pe[ve],Ie),!re.current)return;const rt=re.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(ve===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${ve}"]`);if(xt&&(xt.classList.add(`${n}-focused`),Ie==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!ze)return;const xt=gt((()=>{const Nt=Pe.length-1;if(ve==="reset")return se;if(ve==="start")return 0;if(ve==="end")return Nt;const ut=Ce.current+ve;return ut<0?ut===-1&&k?-1:v&&Ce.current!==-1||Math.abs(ve)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(ve)>1?Nt:0:ut})(),Ie);if(Le({index:xt,reason:rt,event:ye}),r&&ve!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const ye=(ve,Ie)=>{const rt=ve?D(ve):"",lt=Ie?D(Ie):"";return rt===lt};if(Ce.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?fe.length===Te.value.length&&Te.value.every((ve,Ie)=>D(fe[Ie])===D(ve)):ye(Te.value,fe))){const ve=Te.filteredOptions[Ce.current];if(ve&&Pe.some(rt=>D(rt)===D(ve)))return!0}return!1},ie=$.useCallback(()=>{if(!ze||te())return;const ye=F?fe[0]:fe;if(Pe.length===0||ye==null){ne({diff:"reset"});return}if(re.current){if(ye!=null){const ve=Pe[Ce.current];if(F&&ve&&Ux(fe,rt=>O(ve,rt))!==-1)return;const Ie=Ux(Pe,rt=>O(rt,ye));Ie===-1?ne({diff:"reset"}):Le({index:Ie});return}if(Ce.current>=Pe.length-1){Le({index:Pe.length-1});return}Le({index:Ce.current})}},[Pe.length,F?!1:fe,g,ne,Le,ze,Ue,F]),Se=mt(ye=>{jp(re,ye),ye&&ie()});$.useEffect(()=>{ie()},[ie]);const _e=ye=>{$e||(He(!0),Me(!0),Y&&Y(ye))},Xe=(ye,ve)=>{$e&&(He(!1),G&&G(ye,ve))},nt=(ye,ve,Ie,rt)=>{if(F){if(fe.length===ve.length&&fe.every((lt,xt)=>lt===ve[xt]))return}else if(fe===ve)return;U&&U(ye,ve,Ie,rt),Ve(ve)},ft=$.useRef(!1),_t=(ye,ve,Ie="selectOption",rt="options")=>{let lt=Ie,xt=ve;if(F){xt=Array.isArray(fe)?fe.slice():[];const Nt=Ux(xt,ut=>O(ve,ut));Nt===-1?xt.push(ve):rt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(ye,xt),nt(ye,xt,lt,{option:ve}),!p&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&Xe(ye,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(ye,ve){if(ye===-1)return-1;let Ie=ye;for(;;){if(ve==="next"&&Ie===fe.length||ve==="previous"&&Ie===-1)return-1;const rt=ce.querySelector(`[data-tag-index="${Ie}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Ie+=ve==="next"?1:-1;else return Ie}}const dt=(ye,ve)=>{if(!F)return;Ue===""&&Xe(ye,"toggleInput");let Ie=me;me===-1?Ue===""&&ve==="previous"&&(Ie=fe.length-1):(Ie+=ve==="next"?1:-1,Ie<0&&(Ie=0),Ie===fe.length&&(Ie=-1)),Ie=vt(Ie,ve),ue(Ie),ct(Ie)},Et=ye=>{N.current=!0,De(""),V&&V(ye,"","clear"),nt(ye,F?[]:null,"clear")},Yt=ye=>ve=>{if(ye.onKeyDown&&ye.onKeyDown(ve),!ve.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(ue(-1),ct(-1)),ve.which!==229))switch(ve.key){case"Home":ze&&S&&(ve.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":ze&&S&&(ve.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),ne({diff:-uM,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"PageDown":ve.preventDefault(),ne({diff:uM,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowDown":ve.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowUp":ve.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_e(ve);break;case"ArrowLeft":dt(ve,"previous");break;case"ArrowRight":dt(ve,"next");break;case"Enter":if(Ce.current!==-1&&ze){const Ie=Pe[Ce.current],rt=w?w(Ie):!1;if(ve.preventDefault(),rt)return;_t(ve,Ie,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&je===!1&&(F&&ve.preventDefault(),_t(ve,Ue,"createOption","freeSolo"));break;case"Escape":ze?(ve.preventDefault(),ve.stopPropagation(),Xe(ve,"escape")):l&&(Ue!==""||F&&fe.length>0)&&(ve.preventDefault(),ve.stopPropagation(),Et(ve));break;case"Backspace":if(F&&!X&&Ue===""&&fe.length>0){const Ie=me===-1?fe.length-1:me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break;case"Delete":if(F&&!X&&Ue===""&&fe.length>0&&me!==-1){const Ie=me,rt=fe.slice();rt.splice(Ie,1),nt(ve,rt,"removeOption",{option:fe[Ie]})}break}},kt=ye=>{ge(!0),W&&!N.current&&_e(ye)},ln=ye=>{if(t(re)){Z.current.focus();return}ge(!1),B.current=!0,N.current=!1,a&&Ce.current!==-1&&ze?_t(ye,Pe[Ce.current],"blur"):a&&y&&Ue!==""?_t(ye,Ue,"blur","freeSolo"):s&&we(ye,fe),Xe(ye,"blur")},Bt=ye=>{const ve=ye.target.value;Ue!==ve&&(De(ve),Me(!1),V&&V(ye,ve,"input")),ve===""?!f&&!F&&nt(ye,null,"clear"):_e(ye)},Ut=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));Ce.current!==ve&&Le({event:ye,index:ve,reason:"mouse"})},Kt=ye=>{Le({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},xn=ye=>{const ve=Number(ye.currentTarget.getAttribute("data-option-index"));_t(ye,Pe[ve],"selectOption"),ft.current=!1},Bn=ye=>ve=>{const Ie=fe.slice();Ie.splice(ye,1),nt(ve,Ie,"removeOption",{option:fe[ye]})},le=ye=>{$e?Xe(ye,"toggleInput"):_e(ye)},oe=ye=>{ye.currentTarget.contains(ye.target)&&ye.target.getAttribute("id")!==q&&ye.preventDefault()},pe=ye=>{ye.currentTarget.contains(ye.target)&&(Z.current.focus(),j&&B.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),B.current=!1)},ke=ye=>{!m&&(Ue===""||!$e)&&le(ye)};let Ee=y&&Ue.length>0;Ee=Ee||(F?fe.length>0:fe!==null);let pt=Pe;return _&&(pt=Pe.reduce((ye,ve,Ie)=>{const rt=_(ve);return ye.length>0&&ye[ye.length-1].group===rt?ye[ye.length-1].options.push(ve):ye.push({key:Ie,index:Ie,group:rt,options:[ve]}),ye},[])),m&&Be&&ln(),{getRootProps:(ye={})=>T({"aria-owns":it?`${q}-listbox`:null},ye,{onKeyDown:Yt(ye),onMouseDown:oe,onClick:pe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Bt,onMouseDown:ke,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:ye})=>T({key:ye,"data-tag-index":ye,tabIndex:-1},!X&&{onDelete:Bn(ye)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ve})=>{const Ie=(F?fe:[fe]).some(lt=>lt!=null&&O(ve,lt)),rt=w?w(ve):!1;return{key:D(ve),tabIndex:-1,role:"option",id:`${q}-option-${ye}`,onMouseMove:Ut,onClick:xn,onTouchStart:Kt,"data-option-index":ye,"aria-disabled":rt,"aria-selected":Ie}},id:q,inputValue:Ue,value:fe,dirty:Ee,expanded:ze&&ce,popupOpen:ze,focused:Be||me!==-1,anchorEl:ce,setAnchorEl:xe,focusedTag:me,groupedOptions:pt}}const L_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],F_e=he(h_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z_e=$.forwardRef(function(t,n){var r;const o=S2(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Re(a,L_e),S=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return R.jsx(F_e,T({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??c},E,{ref:n}))}),Ph=z_e;function V_e(e){return tt("MuiListSubheader",e)}et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const B_e=["className","color","component","disableGutters","disableSticky","inset"],U_e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Qe(i,V_e,t)},W_e=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),v9=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Re(r,B_e),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=U_e(f);return R.jsx(W_e,T({as:i,className:Ne(p.root,o),ref:n,ownerState:f},u))});v9.muiSkipListHighlight=!0;const H_e=v9,G_e=or(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function q_e(e){return tt("MuiChip",e)}const Y_e=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=Y_e,K_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],J_e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,s&&"clickable",s&&`clickableColor${Fe(o)}`,i&&"deletable",i&&`deletableColor${Fe(o)}`,`${l}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(l)}Color${Fe(o)}`]};return Qe(c,q_e,t)},Z_e=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${Fe(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),X_e=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function dM(e){return e.key==="Backspace"||e.key==="Delete"}const Q_e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Re(r,K_e),S=$.useRef(null),E=sn(S,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&dM(J)&&J.preventDefault(),v&&v(J)},O=J=>{J.currentTarget===J.target&&(b&&dM(J)?b(J):J.key==="Escape"&&S.current&&S.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Sa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:$.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=J_e(G),V=U===Sa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&$.isValidElement(c)?$.cloneElement(c,{className:Ne(c.props.className,z.deleteIcon),onClick:k}):R.jsx(G_e,{className:Ne(z.deleteIcon),onClick:k}));let Q=null;o&&$.isValidElement(o)&&(Q=$.cloneElement(o,{className:Ne(z.avatar,o.props.className)}));let W=null;return f&&$.isValidElement(f)&&(W=$.cloneElement(f,{className:Ne(z.icon,f.props.className)})),R.jsxs(Z_e,T({as:U,className:Ne(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:O,ref:E,tabIndex:C&&u?-1:w,ownerState:G},V,_,{children:[Q||W,R.jsx(X_e,{className:Ne(z.label),ownerState:G,children:p}),Y]}))}),g9=Q_e;function pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const e2e=$.createContext(void 0),H0=e2e;function Oi(){return $.useContext(H0)}function t2e(e){return R.jsx(twe,T({},e,{defaultTheme:O0,themeId:i0}))}function fM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ry(e,t=!1){return e&&(fM(e.value)&&e.value!==""||t&&fM(e.defaultValue)&&e.defaultValue!=="")}function n2e(e){return e.startAdornment}function r2e(e){return tt("MuiInputBase",e)}const o2e=et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=o2e,a2e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],G0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},q0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},i2e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Fe(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Qe(v,r2e,t)},Y0=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),K0=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:q0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Vo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),s2e=R.jsx(t2e,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),l2e=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:S=!1,name:E,onBlur:k,onChange:I,onClick:O,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:V,renderSuffix:Y,rows:Q,slotProps:W={},slots:J={},startAdornment:X,type:j="text",value:K}=o,q=Re(o,a2e),D=y.value!=null?y.value:K,{current:N}=$.useRef(D!=null),B=$.useRef(),Z=$.useCallback(Pe=>{},[]),re=sn(B,w,y.ref,Z),[ce,xe]=$.useState(!1),me=Oi(),ue=pl({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=me?me.focused:ce,$.useEffect(()=>{!me&&p&&ce&&(xe(!1),k&&k())},[me,p,ce,k]);const se=me&&me.onFilled,Ce=me&&me.onEmpty,fe=$.useCallback(Pe=>{ry(Pe)?se&&se():Ce&&Ce()},[se,Ce]);Jn(()=>{N&&fe({value:D})},[D,fe,N]);const Ve=Pe=>{if(ue.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),me&&me.onFocus?me.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),me&&me.onBlur?me.onBlur(Pe):xe(!1)},De=(Pe,...Te)=>{if(!N){const it=Pe.target||B.current;if(it==null)throw new Error(al(1));fe({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};$.useEffect(()=>{fe(B.current)},[]);const Be=Pe=>{B.current&&Pe.currentTarget===Pe.target&&B.current.focus(),O&&O(Pe)};let ge=g,we=y;S&&ge==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),ge=M_e);const $e=Pe=>{fe(Pe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};$.useEffect(()=>{me&&me.setAdornedStart(!!X)},[me,X]);const He=T({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:b,error:ue.error,focused:ue.focused,formControl:me,fullWidth:v,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:X,type:j}),Ye=i2e(He),Me=J.root||c.Root||Y0,je=W.root||u.root||{},ze=J.input||c.Input||K0;return we=T({},we,(r=W.input)!=null?r:u.input),R.jsxs($.Fragment,{children:[!m&&s2e,R.jsxs(Me,T({},je,!Ci(Me)&&{ownerState:T({},He,je.ownerState)},{ref:n,onClick:Be},q,{className:Ne(Ye.root,je.className,l,V&&"MuiInputBase-readOnly"),children:[X,R.jsx(H0.Provider,{value:null,children:R.jsx(ze,T({ownerState:He,"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:x,onAnimationStart:$e,name:E,placeholder:z,readOnly:V,required:ue.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:j},we,!Ci(ze)&&{as:ge,ownerState:T({},He,we.ownerState)},{ref:re,className:Ne(Ye.input,we.className,V&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:De,onFocus:Ve}))}),b,Y?Y(T({},ue,{startAdornment:X})):null]}))]})}),U2=l2e;function c2e(e){return tt("MuiInput",e)}const u2e=T({},Vo,et("MuiInput",["root","underline","input"])),Ls=u2e;function d2e(e){return tt("MuiOutlinedInput",e)}const f2e=T({},Vo,et("MuiOutlinedInput",["root","notchedOutline","input"])),ui=f2e;function p2e(e){return tt("MuiFilledInput",e)}const h2e=T({},Vo,et("MuiFilledInput",["root","underline","input"])),Bo=h2e,y9=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function m2e(e){return tt("MuiAutocomplete",e)}const v2e=et("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=v2e;var pM,hM;const g2e=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],y2e=["ref"],b2e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Fe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qe(f,m2e,t)},x2e=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${Fe(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ls.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ls.root}.${Vo.sizeSmall}`]:{[`& .${Ls.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ui.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${Vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Bo.root}.${Vo.sizeSmall}`]:{paddingBottom:1,[`& .${Bo.input}`]:{padding:"2.5px 4px"}},[`& .${Vo.hiddenLabel}`]:{paddingTop:8},[`& .${Bo.root}.${Vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bo.root}.${Vo.hiddenLabel}.${Vo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),w2e=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),C2e=he(nr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$2e=he(nr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),S2e=he(Ph,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),_2e=he(hs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),E2e=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),P2e=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),T2e=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),k2e=he(H_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),R2e=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),O2e=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=pM||(pM=R.jsx(E$e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:S=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:O=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:V=Ie=>`+${Ie}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:j="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:B="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:ce=hs,PopperComponent:xe=Ph,popupIcon:me=hM||(hM=R.jsx(y9,{})),readOnly:ue=!1,renderGroup:se,renderInput:Ce,renderOption:fe,renderTags:Ve,selectOnFocus:Ue=!s.freeSolo,size:De="medium",slotProps:Be={}}=s,ge=Re(s,g2e),{getRootProps:we,getInputProps:$e,getInputLabelProps:He,getPopupIndicatorProps:Ye,getClearProps:Me,getTagProps:je,getListboxProps:ze,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Le,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:Se,inputValue:_e,groupedOptions:Xe}=j_e(T({},s,{componentName:"Autocomplete"})),nt=!_&&!E&&it&&!ue,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=$e(),{ref:vt}=K??{},dt=ze(),{ref:Et}=dt,Yt=Re(dt,y2e),kt=sn(Et,vt),Bt=Y||(Ie=>{var rt;return(rt=Ie.label)!=null?rt:Ie}),Ut=T({},s,{disablePortal:O,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Bt,hasClearIcon:nt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Le,size:De}),Kt=b2e(Ut);let xn;if(N&&Te.length>0){const Ie=rt=>T({className:Kt.tag,disabled:E},je(rt));Ve?xn=Ve(Te,Ie,Ut):xn=Te.map((rt,lt)=>R.jsx(g9,T({label:Bt(rt),size:De},Ie({index:lt}),p)))}if(X>-1&&Array.isArray(xn)){const Ie=xn.length-X;!ne&&Ie>0&&(xn=xn.splice(0,X),xn.push(R.jsx("span",{className:Kt.tag,children:V(Ie)},xn.length)))}const le=se||(Ie=>R.jsxs("li",{children:[R.jsx(k2e,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:Ie.group}),R.jsx(R2e,{className:Kt.groupUl,ownerState:Ut,children:Ie.children})]},Ie.key)),pe=fe||((Ie,rt)=>R.jsx("li",T({},Ie,{children:Bt(rt)}))),ke=(Ie,rt)=>{const lt=Pe({option:Ie,index:rt});return pe(T({},lt,{className:Kt.option}),Ie,{selected:lt["aria-selected"],index:rt,inputValue:_e},Ut)},Ee=(r=Be.clearIndicator)!=null?r:w.clearIndicator,pt=(o=Be.paper)!=null?o:w.paper,ye=(a=Be.popper)!=null?a:w.popper,ve=(i=Be.popupIndicator)!=null?i:w.popupIndicator;return R.jsxs($.Fragment,{children:[R.jsx(x2e,T({ref:n,className:Ne(Kt.root,m),ownerState:Ut},we(ge),{children:Ce({id:gt,disabled:E,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:He(),InputProps:T({ref:Se,className:Kt.inputRoot,startAdornment:xn,onClick:Ie=>{Ie.target===Ie.currentTarget&&_t(Ie)}},(nt||ft)&&{endAdornment:R.jsxs(w2e,{className:Kt.endAdornment,ownerState:Ut,children:[nt?R.jsx(C2e,T({},Me(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ne(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?R.jsx($2e,T({},Ye(),{disabled:E,"aria-label":Le?y:re,title:Le?y:re,ownerState:Ut},ve,{className:Ne(Kt.popupIndicator,ve==null?void 0:ve.className),children:me})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ue},$e())})})),ie?R.jsx(S2e,T({as:xe,disablePortal:O,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Le},ye,{className:Ne(Kt.popper,ye==null?void 0:ye.className),children:R.jsxs(_2e,T({ownerState:Ut,as:ce},pt,{className:Ne(Kt.paper,pt==null?void 0:pt.className),children:[q&&Xe.length===0?R.jsx(E2e,{className:Kt.loading,ownerState:Ut,children:D}):null,Xe.length===0&&!G&&!q?R.jsx(P2e,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:B}):null,Xe.length>0?R.jsx(T2e,T({as:j,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Xe.map((Ie,rt)=>Q?le({key:Ie.key,group:Ie.group,children:Ie.options.map((lt,xt)=>ke(lt,Ie.index+xt))}):ke(Ie,rt))})):null]}))})):null]})}),D2e=O2e,M2e=or(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function I2e(e){return tt("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const A2e=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],N2e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},I2e,t)},j2e=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),L2e=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),F2e=he(M2e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function z2e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=$.useState(!1);return $.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const V2e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Re(r,A2e);let b=null;const v=z2e(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=N2e(y);return g?b=R.jsx(L2e,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=R.jsx(F2e,{ownerState:y,className:w.fallback}),R.jsx(j2e,T({as:s,ownerState:y,className:Ne(w.root,i),ref:n},m,{children:b}))}),b9=V2e,B2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],U2e={entering:{opacity:1},entered:{opacity:1}},W2e=$.forwardRef(function(t,n){const r=rr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=B0}=t,w=Re(t,B2e),C=$.useRef(null),_=sn(C,s.ref,n),S=z=>V=>{if(z){const Y=C.current;V===void 0?z(Y):z(Y,V)}},E=S(p),k=S((z,V)=>{t9(z);const Y=Qu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,V)}),I=S(f),O=S(v),F=S(z=>{const V=Qu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),m&&m(z)}),U=S(b),G=z=>{a&&a(C.current,z)};return R.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:O,addEndListener:G,timeout:g},w,{children:(z,V)=>$.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},U2e[z],x,s.props.style),ref:_},V))}))}),Rd=W2e;function H2e(e){return tt("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const G2e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],q2e=e=>{const{classes:t,invisible:n}=e;return Qe({root:["root",n&&"invisible"]},H2e,t)},Y2e=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),K2e=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=Rd,transitionDuration:g}=i,y=Re(i,G2e),w=T({},i,{component:c,invisible:p}),C=q2e(w),_=(r=b.root)!=null?r:f.root;return R.jsx(x,T({in:m,timeout:g},y,{children:R.jsx(Y2e,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ne(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),x9=K2e;function J2e(e){return tt("MuiBadge",e)}const Z2e=et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Os=Z2e,X2e=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Wx=10,Hx=4,Q2e=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}`,`anchorOrigin${Fe(n.vertical)}${Fe(n.horizontal)}${Fe(o)}`,`overlap${Fe(o)}`,t!=="default"&&`color${Fe(t)}`]};return Qe(s,J2e,i)},eEe=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),tEe=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Fe(n.anchorOrigin.vertical)}${Fe(n.anchorOrigin.horizontal)}${Fe(n.overlap)}`],n.color!=="default"&&t[`color${Fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Wx*2,lineHeight:1,padding:"0 6px",height:Wx*2,borderRadius:Wx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:Hx,height:Hx*2,minWidth:Hx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Os.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),nEe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:S,showZero:E=!1,variant:k="standard"}=c,I=Re(c,X2e),{badgeContent:O,invisible:F,max:U,displayValue:G}=G$e({max:w,invisible:y,badgeContent:C,showZero:E}),z=s2({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),V=F||O==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=V?z:c,X=J!=="dot"?G:void 0,j=T({},c,{badgeContent:O,invisible:V,max:U,displayValue:X,showZero:E,anchorOrigin:W,color:Y,overlap:Q,variant:J}),K=Q2e(j),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:eEe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:tEe,N=(s=S==null?void 0:S.root)!=null?s:b.root,B=(l=S==null?void 0:S.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:j,className:Ne(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:B,ownerState:j,className:Ne(K.badge,B==null?void 0:B.className)});return R.jsxs(q,T({},Z,{children:[v,R.jsx(D,T({},re,{children:X}))]}))}),w9=nEe;function rEe(e){return tt("MuiButton",e)}const oEe=et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),bv=oEe,aEe=$.createContext({}),iEe=aEe,sEe=$.createContext(void 0),lEe=sEe,cEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(o)}`],endIcon:["endIcon",`iconSize${Fe(o)}`]},l=Qe(s,rEe,i);return T({},i,l)},C9=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),dEe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bv.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bv.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bv.disabled}`]:{boxShadow:"none"}}),fEe=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},C9(e))),pEe=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},C9(e))),hEe=$.forwardRef(function(t,n){const r=$.useContext(iEe),o=$.useContext(lEe),a=l2(r,t),i=Je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Re(i,cEe),S=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=uEe(S),k=y&&R.jsx(fEe,{className:E.startIcon,ownerState:S,children:y}),I=b&&R.jsx(pEe,{className:E.endIcon,ownerState:S,children:b}),O=o||"";return R.jsxs(dEe,T({ownerState:S,className:Ne(r.className,E.root,u,O),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ne(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Go=hEe;function mEe(e){return tt("MuiCard",e)}et("MuiCard",["root"]);const vEe=["className","raised"],gEe=e=>{const{classes:t}=e;return Qe({root:["root"]},mEe,t)},yEe=he(hs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),bEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Re(r,vEe),s=T({},r,{raised:a}),l=gEe(s);return R.jsx(yEe,T({className:Ne(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),xEe=bEe;function wEe(e){return tt("MuiCardContent",e)}et("MuiCardContent",["root"]);const CEe=["className","component"],$Ee=e=>{const{classes:t}=e;return Qe({root:["root"]},wEe,t)},SEe=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),_Ee=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Re(r,CEe),s=T({},r,{component:a}),l=$Ee(s);return R.jsx(SEe,T({as:a,className:Ne(l.root,o),ownerState:s,ref:n},i))}),EEe=_Ee;function PEe(e){return tt("MuiCardHeader",e)}const TEe=et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),mM=TEe,kEe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],REe=e=>{const{classes:t}=e;return Qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},PEe,t)},OEe=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${mM.title}`]:t.title,[`& .${mM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),DEe=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),MEe=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),IEe=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),AEe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Re(r,kEe),b=T({},r,{component:s,disableTypography:l}),v=REe(b);let x=f;x!=null&&x.type!==yn&&!l&&(x=R.jsx(yn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==yn&&!l&&(g=R.jsx(yn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),R.jsxs(OEe,T({className:Ne(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&R.jsx(DEe,{className:v.avatar,ownerState:b,children:a}),R.jsxs(IEe,{className:v.content,ownerState:b,children:[x,g]}),o&&R.jsx(MEe,{className:v.action,ownerState:b,children:o})]}))}),NEe=AEe;function jEe(e){return tt("PrivateSwitchBase",e)}et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const LEe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],FEe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Fe(o)}`],input:["input"]};return Qe(a,jEe,t)},zEe=he(Sa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),VEe=he("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),BEe=$.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:S,value:E}=t,k=Re(t,LEe),[I,O]=$r({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Oi(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;O(X),g&&g(J,X)};let V=l;F&&typeof V>"u"&&(V=F.disabled);const Y=S==="checkbox"||S==="radio",Q=T({},t,{checked:I,disabled:V,disableFocusRipple:c,edge:u}),W=FEe(Q);return R.jsxs(zEe,T({component:"span",className:Ne(W.root,i),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[R.jsx(VEe,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:V,id:Y?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:S},S==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),W2=BEe,UEe=or(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),WEe=or(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),HEe=or(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function GEe(e){return tt("MuiCheckbox",e)}const qEe=et("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gx=qEe,YEe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],KEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Fe(r)}`,`size${Fe(o)}`]},i=Qe(a,GEe,t);return T({},t,i)},JEe=he(W2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Gx.checked}, &.${Gx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ZEe=R.jsx(WEe,{}),XEe=R.jsx(UEe,{}),QEe=R.jsx(HEe,{}),ePe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ZEe,color:s="primary",icon:l=XEe,indeterminate:c=!1,indeterminateIcon:u=QEe,inputProps:f,size:p="medium",className:m}=a,b=Re(a,YEe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=KEe(g);return R.jsx(JEe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:$.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ne(y.root,m)},b,{classes:y}))}),tPe=ePe;function nPe(e){return tt("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const rPe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],oPe=e=>{const{open:t,exited:n,classes:r}=e;return Qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nPe,r)},aPe=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iPe=he(x9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sPe=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Je({name:"MuiModal",props:t}),{BackdropComponent:u=iPe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:O=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,V=Re(c,rPe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:S,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:O}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:X,isTopModal:j,exited:K,hasTransition:q}=$_e(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=oPe(D),B={};if(b.props.tabIndex===void 0&&(B.tabIndex="-1"),q){const{onEnter:se,onExited:Ce}=J();B.onEnter=se,B.onExited=Ce}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:aPe,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,ce=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,me=zt({elementType:Z,externalSlotProps:ce,externalForwardedProps:V,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ne(p,ce==null?void 0:ce.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ue=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:se=>W(T({},se,{onClick:Ce=>{F&&F(Ce),se!=null&&se.onClick&&se.onClick(Ce)}})),className:Ne(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!O&&!U&&(!q||K)?null:R.jsx(h9,{ref:X,container:v,disablePortal:S,children:R.jsxs(Z,T({},me,{children:[!I&&u?R.jsx(re,T({},ue)):null,R.jsx(o9,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:j,open:U,children:$.cloneElement(b,B)})]}))})}),$9=sPe;function lPe(e){return tt("MuiDialog",e)}const cPe=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ap=cPe,uPe=$.createContext({}),S9=uPe,dPe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fPe=he(x9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),pPe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Qe(i,lPe,t)},hPe=he($9,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),mPe=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),vPe=he(hs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ap.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ap.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ap.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),gPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=hs,PaperProps:C={},scroll:_="paper",TransitionComponent:S=Rd,transitionDuration:E=a,TransitionProps:k}=r,I=Re(r,dPe),O=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=pPe(O),U=$.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},V=Qa(s),Y=$.useMemo(()=>({titleId:V}),[V]);return R.jsx(hPe,T({className:Ne(F.root,f),closeAfterTransition:!0,components:{Backdrop:fPe},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:O},I,{children:R.jsx(S,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:R.jsx(mPe,{className:Ne(F.container),onMouseDown:G,ownerState:O,children:R.jsx(vPe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},C,{className:Ne(F.paper,C.className),ownerState:O,children:R.jsx(S9.Provider,{value:Y,children:u})}))})}))}))}),J0=gPe;function yPe(e){return tt("MuiDialogActions",e)}et("MuiDialogActions",["root","spacing"]);const bPe=["className","disableSpacing"],xPe=e=>{const{classes:t,disableSpacing:n}=e;return Qe({root:["root",!n&&"spacing"]},yPe,t)},wPe=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),CPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Re(r,bPe),s=T({},r,{disableSpacing:a}),l=xPe(s);return R.jsx(wPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),Z0=CPe;function $Pe(e){return tt("MuiDialogContent",e)}et("MuiDialogContent",["root","dividers"]);function SPe(e){return tt("MuiDialogTitle",e)}const _Pe=et("MuiDialogTitle",["root"]),EPe=_Pe,PPe=["className","dividers"],TPe=e=>{const{classes:t,dividers:n}=e;return Qe({root:["root",n&&"dividers"]},$Pe,t)},kPe=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${EPe.root} + &`]:{paddingTop:0}})),RPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Re(r,PPe),s=T({},r,{dividers:a}),l=TPe(s);return R.jsx(kPe,T({className:Ne(l.root,o),ownerState:s,ref:n},i))}),X0=RPe;function OPe(e){return tt("MuiDialogContentText",e)}et("MuiDialogContentText",["root"]);const DPe=["children","className"],MPe=e=>{const{classes:t}=e,r=Qe({root:["root"]},OPe,t);return T({},t,r)},IPe=he(yn,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),APe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Re(r,DPe),i=MPe(a);return R.jsx(IPe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ne(i.root,o)},r,{classes:i}))}),H2=APe,NPe=["className","id"],jPe=e=>{const{classes:t}=e;return Qe({root:["root"]},SPe,t)},LPe=he(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),FPe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Re(r,NPe),s=r,l=jPe(s),{titleId:c=a}=$.useContext(S9);return R.jsx(LPe,T({component:"h2",className:Ne(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),G2=FPe;function zPe(e){return tt("MuiDivider",e)}const VPe=et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),vM=VPe,BPe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],UPe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Qe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},zPe,r)},WPe=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),HPe=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),_9=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Re(r,BPe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=UPe(v);return R.jsx(WPe,T({as:s,className:Ne(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?R.jsx(HPe,{className:x.wrapper,ownerState:v,children:a}):null}))});_9.muiSkipListHighlight=!0;const gM=_9,GPe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qPe=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},p2e,t);return T({},t,o)},YPe=he(Y0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...G0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bo.disabled}, .${Bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),KPe=he(K0,{name:"MuiFilledInput",slot:"Input",overridesResolver:q0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),E9=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Re(s,GPe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=qPe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?qr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:YPe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:KPe;return R.jsx(U2,T({slots:{root:_,input:S},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});E9.muiName="Input";const P9=E9;function JPe(e){return tt("MuiFormControl",e)}et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZPe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XPe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return Qe(o,JPe,t)},QPe=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),eTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Re(r,ZPe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=XPe(y),[C,_]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{if(!Du(z,["Input","Select"]))return;const V=Du(z,["Select"])?z.props.input:z;V&&n2e(V.props)&&(G=!0)}),G}),[S,E]=$.useState(()=>{let G=!1;return o&&$.Children.forEach(o,z=>{Du(z,["Input","Select"])&&(ry(z.props,!0)||ry(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=$.useState(!1);l&&k&&I(!1);const O=u!==void 0&&!l?u:k;let F;const U=$.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:S,focused:O,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,S,O,f,p,F,b,v,x]);return R.jsx(H0.Provider,{value:U,children:R.jsx(QPe,T({as:s,ownerState:y,className:Ne(w.root,a),ref:n},g,{children:o}))})}),Th=eTe,tTe=Ewe({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Je({props:e,name:"MuiStack"})}),nTe=tTe;function rTe(e){return tt("MuiFormControlLabel",e)}const oTe=et("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Nf=oTe,aTe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],iTe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Fe(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Qe(i,rTe,t)},sTe=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nf.label}`]:t.label},t.root,t[`labelPlacement${Fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Nf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Nf.label}`]:{[`&.${Nf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),lTe=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Nf.error}`]:{color:(e.vars||e).palette.error.main}})),cTe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Re(a,aTe),x=Oi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=pl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),S=iTe(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==yn&&!u&&(k=R.jsx(yn,T({component:"span"},E,{className:Ne(S.label,E==null?void 0:E.className),children:k}))),R.jsxs(sTe,T({className:Ne(S.root,i),ownerState:_,ref:n},v,{children:[$.cloneElement(l,w),y?R.jsxs(nTe,{direction:"row",alignItems:"center",children:[k,R.jsxs(lTe,{ownerState:_,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):k]}))}),Q0=cTe;function uTe(e){return tt("MuiFormGroup",e)}et("MuiFormGroup",["root","row","error"]);const dTe=["className","row"],fTe=e=>{const{classes:t,row:n,error:r}=e;return Qe({root:["root",n&&"row",r&&"error"]},uTe,t)},pTe=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),hTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Re(r,dTe),s=Oi(),l=pl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=fTe(c);return R.jsx(pTe,T({className:Ne(u.root,o),ownerState:c,ref:n},i))}),T9=hTe;function mTe(e){return tt("MuiFormHelperText",e)}const vTe=et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),yM=vTe;var bM;const gTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],yTe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Qe(c,mTe,t)},bTe=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),xTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Re(r,gTe),l=Oi(),c=pl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=yTe(u);return R.jsx(bTe,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:o===" "?bM||(bM=R.jsx("span",{className:"notranslate",children:"​"})):o}))}),pr=xTe;function wTe(e){return tt("MuiFormLabel",e)}const CTe=et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ip=CTe,$Te=["children","className","color","component","disabled","error","filled","focused","required"],STe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Qe(l,wTe,t)},_Te=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ip.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ip.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),ETe=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),PTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Re(r,$Te),l=Oi(),c=pl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=STe(u);return R.jsxs(_Te,T({as:i,ownerState:u,className:Ne(f.root,a),ref:n},s,{children:[o,c.required&&R.jsxs(ETe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),q2=PTe,TTe=$.createContext(),xM=TTe;function kTe(e){return tt("MuiGrid",e)}const RTe=[0,1,2,3,4,5,6,7,8,9,10],OTe=["column-reverse","column","row-reverse","row"],DTe=["nowrap","wrap-reverse","wrap"],xf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Up=et("MuiGrid",["root","container","item","zeroMinWidth",...RTe.map(e=>`spacing-xs-${e}`),...OTe.map(e=>`direction-xs-${e}`),...DTe.map(e=>`wrap-xs-${e}`),...xf.map(e=>`grid-xs-${e}`),...xf.map(e=>`grid-sm-${e}`),...xf.map(e=>`grid-md-${e}`),...xf.map(e=>`grid-lg-${e}`),...xf.map(e=>`grid-xl-${e}`)]),MTe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ITe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Yl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Au(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function ATe({theme:e,ownerState:t}){const n=Yl({values:t.direction,breakpoints:e.breakpoints.values});return Oo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Up.item}`]={maxWidth:"none"}),o})}function k9({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function NTe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=k9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Au(u)}`,[`& > .${Up.item}`]:{paddingTop:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Up.item}`]:{paddingTop:0}}})}return o}function jTe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Yl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=k9({breakpoints:e.breakpoints.values,values:a})),o=Oo({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Au(u)})`,marginLeft:`-${Au(u)}`,[`& > .${Up.item}`]:{paddingLeft:Au(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Up.item}`]:{paddingLeft:0}}})}return o}function LTe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const FTe=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=LTe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),ATe,NTe,jTe,ITe);function zTe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const VTe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=zTe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Qe(f,kTe,t)},BTe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=rr(),a=_2(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Re(a,MTe),y=m||b,w=l||b,C=$.useContext(xM),_=u?s||12:C,S={},E=T({},g);o.keys.forEach(O=>{g[O]!=null&&(S[O]=g[O],delete E[O])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},S,{breakpoints:o.keys}),I=VTe(k);return R.jsx(xM.Provider,{value:_,children:R.jsx(FTe,T({ownerState:k,className:Ne(I.root,i),as:c,ref:n},E))})}),en=BTe,UTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function QC(e){return`scale(${e}, ${e**2})`}const WTe={entering:{opacity:1,transform:QC(1)},entered:{opacity:1,transform:"none"}},qx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),R9=$.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=B0}=t,g=Re(t,UTe),y=$.useRef(),w=$.useRef(),C=rr(),_=$.useRef(null),S=sn(_,a.ref,n),E=V=>Y=>{if(V){const Q=_.current;Y===void 0?V(Q):V(Q,Y)}},k=E(u),I=E((V,Y)=>{t9(V);const{duration:Q,delay:W,easing:J}=Qu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=X):X=Q,V.style.transition=[C.transitions.create("opacity",{duration:X,delay:W}),C.transitions.create("transform",{duration:qx?X:X*.666,delay:W,easing:J})].join(","),l&&l(V,Y)}),O=E(c),F=E(m),U=E(V=>{const{duration:Y,delay:Q,easing:W}=Qu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(V.clientHeight),w.current=J):J=Y,V.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:qx?J:J*.666,delay:qx?Q:Q||J*.333,easing:W})].join(","),V.style.opacity=0,V.style.transform=QC(.75),f&&f(V)}),G=E(p),z=V=>{v==="auto"&&(y.current=setTimeout(V,w.current||0)),r&&r(_.current,V)};return $.useEffect(()=>()=>{clearTimeout(y.current)},[]),R.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:O,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(V,Y)=>$.cloneElement(a,T({style:T({opacity:0,transform:QC(.75),visibility:V==="exited"&&!s?"hidden":void 0},WTe[V],b,a.props.style),ref:S},Y))}))});R9.muiSupportAuto=!0;const oy=R9;function HTe(e,t,n,r,o){const[a,i]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Jn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const O9=up["useSyncExternalStore"];function GTe(e,t,n,r,o){const a=$.useCallback(()=>t,[t]),i=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=$.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return O9(l,s,i)}function kh(e,t={}){const n=S2(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=E2({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(O9!==void 0?GTe:HTe)(l,o,a,i,s)}const qTe=["initialWidth","width"],Us=["xs","sm","md","lg","xl"],YTe=(e,t,n=!0)=>n?Us.indexOf(e)<=Us.indexOf(t):Us.indexOf(e)n?Us.indexOf(t)<=Us.indexOf(e):Us.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=rr(),l=i.theme||s,c=E2({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Re(c,qTe),[m,b]=$.useState(!1);Jn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=kh(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:R.jsx(t,T({},g))}return a},ZTe=JTe;function XTe(e){const{children:t,only:n,width:r}=e,o=rr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${Fe(o)}`:`${o}${Fe(a)}`)]};return Qe(r,eke,t)},rke=he("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function oke(e){const{children:t,className:n,only:r}=e,o=Re(e,tke),a=rr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=nke(s);return R.jsx(rke,{className:Ne(l.root,n),ownerState:s,children:t})}const ake=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Tn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Re(e,ake);return t==="js"?R.jsx(QTe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):R.jsx(oke,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const ike=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ske=e=>{const{classes:t,disableUnderline:n}=e,o=Qe({root:["root",!n&&"underline"],input:["input"]},c2e,t);return T({},t,o)},lke=he(Y0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...G0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ls.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ls.disabled}, .${Ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ls.disabled}:before`]:{borderBottomStyle:"dotted"}})}),cke=he(K0,{name:"MuiInput",slot:"Input",overridesResolver:q0})({}),D9=$.forwardRef(function(t,n){var r,o,a,i;const s=Je({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Re(s,ike),y=ske(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?qr(b??u,C):C,S=(r=(o=v.root)!=null?o:c.Root)!=null?r:lke,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:cke;return R.jsx(U2,T({slots:{root:S,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});D9.muiName="Input";const ms=D9;function uke(e){return tt("MuiInputAdornment",e)}const dke=et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),wM=dke;var CM;const fke=["children","className","component","disablePointerEvents","disableTypography","position","variant"],pke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},hke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Fe(o)}`,i,r&&"hiddenLabel",a&&`size${Fe(a)}`]};return Qe(s,uke,t)},mke=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pke})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${wM.positionStart}&:not(.${wM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),vke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Re(r,fke),p=Oi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=hke(b);return R.jsx(H0.Provider,{value:null,children:R.jsx(mke,T({as:i,ownerState:b,className:Ne(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?R.jsx(yn,{color:"text.secondary",children:o}):R.jsxs($.Fragment,{children:[c==="start"?CM||(CM=R.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Y2=vke;function gke(e){return tt("MuiInputLabel",e)}et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yke=["disableAnimation","margin","shrink","variant","className"],bke=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Fe(r)}`,i],asterisk:[s&&"asterisk"]},c=Qe(l,gke,t);return T({},t,c)},xke=he(q2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ip.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wke=$.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Re(r,yke),l=Oi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=bke(f);return R.jsx(xke,T({"data-shrink":c,ownerState:f,ref:n,className:Ne(p.root,i)},s,{classes:p}))}),M9=wke,Cke=$.createContext({}),ts=Cke;function $ke(e){return tt("MuiList",e)}et("MuiList",["root","padding","dense","subheader"]);const Ske=["children","className","component","dense","disablePadding","subheader"],_ke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},$ke,t)},Eke=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Pke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Re(r,Ske),f=$.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=_ke(p);return R.jsx(ts.Provider,{value:f,children:R.jsxs(Eke,T({as:i,className:Ne(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),K2=Pke;function Tke(e){return tt("MuiListItem",e)}const kke=et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),su=kke,Rke=et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Oke=Rke;function Dke(e){return tt("MuiListItemSecondaryAction",e)}et("MuiListItemSecondaryAction",["root","disableGutters"]);const Mke=["className"],Ike=e=>{const{disableGutters:t,classes:n}=e;return Qe({root:["root",t&&"disableGutters"]},Dke,n)},Ake=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),I9=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Re(r,Mke),i=$.useContext(ts),s=T({},r,{disableGutters:i.disableGutters}),l=Ike(s);return R.jsx(Ake,T({className:Ne(l.root,o),ownerState:s,ref:n},a))});I9.muiName="ListItemSecondaryAction";const A9=I9,Nke=["className"],jke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Fke=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Qe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Tke,r)},zke=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lke})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Oke.root}`]:{paddingRight:48}},{[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Vke=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Bke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:S={},slots:E={}}=r,k=Re(r.ContainerProps,Nke),I=Re(r,jke),O=$.useContext(ts),F=$.useMemo(()=>({dense:b||O.dense||!1,alignItems:o,disableGutters:x}),[o,O.dense,b,x]),U=$.useRef(null);Jn(()=>{a&&U.current&&U.current.focus()},[a]);const G=$.Children.toArray(s),z=G.length&&Du(G[G.length-1],["ListItemSecondaryAction"]),V=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=Fke(V),Q=sn(U,n),W=E.root||u.Root||zke,J=S.root||f.root||{},X=T({className:Ne(Y.root,J.className,l),disabled:v},I);let j=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ne(su.focusVisible,w),j=Sa),z?(j=!X.component&&!c?"div":j,p==="li"&&(j==="li"?j="div":X.component==="li"&&(X.component="div")),R.jsx(ts.Provider,{value:F,children:R.jsxs(Vke,T({as:p,className:Ne(Y.container,m),ref:Q,ownerState:V},k,{children:[R.jsx(W,T({},J,!Ci(W)&&{as:j,ownerState:T({},V,J.ownerState)},X,{children:G})),G.pop()]}))})):R.jsx(ts.Provider,{value:F,children:R.jsxs(W,T({},J,{as:j,ref:Q},!Ci(W)&&{ownerState:T({},V,J.ownerState)},X,{children:[G,C&&R.jsx(A9,{children:C})]}))})}),N9=Bke;function Uke(e){return tt("MuiListItemAvatar",e)}et("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Wke=["className"],Hke=e=>{const{alignItems:t,classes:n}=e;return Qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Uke,n)},Gke=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),qke=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Re(r,Wke),i=$.useContext(ts),s=T({},r,{alignItems:i.alignItems}),l=Hke(s);return R.jsx(Gke,T({className:Ne(l.root,o),ownerState:s,ref:n},a))}),Yke=qke,Kke=et("MuiListItemIcon",["root","alignItemsFlexStart"]),$M=Kke;function Jke(e){return tt("MuiListItemText",e)}const Zke=et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ay=Zke,Xke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Qke=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Qe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Jke,t)},eRe=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ay.primary}`]:t.primary},{[`& .${ay.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),tRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Re(r,Xke),{dense:m}=$.useContext(ts);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=Qke(x);return b!=null&&b.type!==yn&&!i&&(b=R.jsx(yn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==yn&&!i&&(v=R.jsx(yn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),R.jsxs(eRe,T({className:Ne(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),nRe=tRe,rRe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Yx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function SM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function j9(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function wf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!j9(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const oRe=$.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Re(t,rRe),m=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jn(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,S=Vn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),wf(C,S,c,l,Yx);else if(_==="ArrowUp")w.preventDefault(),wf(C,S,c,l,SM);else if(_==="Home")w.preventDefault(),wf(C,null,c,l,Yx);else if(_==="End")w.preventDefault(),wf(C,null,c,l,SM);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const O=S&&!E.repeating&&j9(S,E);E.previousKeyMatched&&(O||wf(C,S,!1,l,Yx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;$.Children.forEach(i,(w,C)=>{if(!$.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=$.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(w,_)}return w});return R.jsx(K2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),J2=oRe;function aRe(e){return tt("MuiPopover",e)}et("MuiPopover",["root","paper"]);const iRe=["onEntering"],sRe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],lRe=["slotProps"];function _M(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function EM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function PM(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kx(e){return typeof e=="function"?e():e}const cRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},aRe,t)},uRe=he($9,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L9=he(hs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),dRe=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:S=oy,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,O=Re(i.TransitionProps,iRe),F=Re(i,sRe),U=(r=C==null?void 0:C.paper)!=null?r:y,G=$.useRef(),z=sn(G,U.ref),V=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:S,transitionDuration:E,TransitionProps:O}),Y=cRe(V),Q=$.useCallback(()=>{if(f==="anchorPosition")return u;const se=Kx(l),fe=(se&&se.nodeType===1?se:Vn(G.current).body).getBoundingClientRect();return{top:fe.top+_M(fe,c.vertical),left:fe.left+EM(fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=$.useCallback(se=>({vertical:_M(se,_.vertical),horizontal:EM(se,_.horizontal)}),[_.horizontal,_.vertical]),J=$.useCallback(se=>{const Ce={width:se.offsetWidth,height:se.offsetHeight},fe=W(Ce);if(f==="none")return{top:null,left:null,transformOrigin:PM(fe)};const Ve=Q();let Ue=Ve.top-fe.vertical,De=Ve.left-fe.horizontal;const Be=Ue+Ce.height,ge=De+Ce.width,we=Pi(Kx(l)),$e=we.innerHeight-x,He=we.innerWidth-x;if(x!==null&&Ue$e){const Ye=Be-$e;Ue-=Ye,fe.vertical+=Ye}if(x!==null&&DeHe){const Ye=ge-He;De-=Ye,fe.horizontal+=Ye}return{top:`${Math.round(Ue)}px`,left:`${Math.round(De)}px`,transformOrigin:PM(fe)}},[l,f,Q,W,x]),[X,j]=$.useState(g),K=$.useCallback(()=>{const se=G.current;if(!se)return;const Ce=J(se);Ce.top!==null&&(se.style.top=Ce.top),Ce.left!==null&&(se.style.left=Ce.left),se.style.transformOrigin=Ce.transformOrigin,j(!0)},[J]);$.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(se,Ce)=>{k&&k(se,Ce),K()},D=()=>{j(!1)};$.useEffect(()=>{g&&K()}),$.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),$.useEffect(()=>{if(!g)return;const se=wh(()=>{K()}),Ce=Pi(l);return Ce.addEventListener("resize",se),()=>{se.clear(),Ce.removeEventListener("resize",se)}},[l,g,K]);let N=E;E==="auto"&&!S.muiSupportAuto&&(N=void 0);const B=b||(l?Vn(Kx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:uRe,re=(a=w==null?void 0:w.paper)!=null?a:L9,ce=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:V,className:Ne(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:V,className:Ne(Y.root,m)}),{slotProps:me}=xe,ue=Re(xe,lRe);return R.jsx(Z,T({},ue,!Ci(Z)&&{slotProps:me,disableScrollLock:I},{children:R.jsx(S,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},O,{children:R.jsx(re,T({},ce,{children:p}))}))}))}),fRe=dRe;function pRe(e){return tt("MuiMenu",e)}et("MuiMenu",["root","paper","list"]);const hRe=["onEntering"],mRe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vRe={vertical:"top",horizontal:"right"},gRe={vertical:"top",horizontal:"left"},yRe=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"],list:["list"]},pRe,t)},bRe=he(fRe,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xRe=he(L9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wRe=he(J2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),CRe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Re(a.TransitionProps,hRe),_=Re(a,mRe),S=rr(),E=S.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=yRe(k),O=i&&!c&&p,F=$.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,S),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;$.Children.map(s,(J,X)=>{$.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const V=(r=y.paper)!=null?r:xRe,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),W=zt({elementType:V,externalSlotProps:Y,ownerState:k,className:I.paper});return R.jsx(bRe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?vRe:gRe,slots:{paper:V,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:R.jsx(wRe,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:O,variant:g},u,{className:Ne(I.list,u.className),children:s}))}))}),$Re=CRe;function SRe(e){return tt("MuiMenuItem",e)}const _Re=et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cf=_Re,ERe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PRe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},TRe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},SRe,i);return T({},i,l)},kRe=he(Sa,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PRe})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${vM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${vM.inset}`]:{marginLeft:52},[`& .${ay.root}`]:{marginTop:0,marginBottom:0},[`& .${ay.inset}`]:{paddingLeft:36},[`& .${$M.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$M.root} svg`]:{fontSize:"1.25rem"}}))),RRe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Re(r,ERe),b=$.useContext(ts),v=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=$.useRef(null);Jn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=TRe(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),R.jsx(ts.Provider,{value:v,children:R.jsx(kRe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ne(y.focusVisible,c),className:Ne(y.root,p)},m,{ownerState:g,classes:y}))})}),iy=RRe;function ORe(e){return tt("MuiNativeSelect",e)}const DRe=et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Z2=DRe,MRe=["className","disabled","error","IconComponent","inputRef","variant"],IRe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qe(s,ORe,t)},F9=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Z2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ARe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Z2.multiple}`]:t.multiple}]}})(F9),z9=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Z2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),NRe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(z9),jRe=$.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Re(t,MRe),u=T({},t,{disabled:o,variant:l,error:a}),f=IRe(u);return R.jsxs($.Fragment,{children:[R.jsx(ARe,T({ownerState:u,className:Ne(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:R.jsx(NRe,{as:i,ownerState:u,className:f.icon})]})}),LRe=jRe;var TM;const FRe=["children","classes","className","label","notched"],zRe=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),VRe=he("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function BRe(e){const{className:t,label:n,notched:r}=e,o=Re(e,FRe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return R.jsx(zRe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:R.jsx(VRe,{ownerState:i,children:a?R.jsx("span",{children:n}):TM||(TM=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const URe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WRe=e=>{const{classes:t}=e,r=Qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},d2e,t);return T({},t,r)},HRe=he(Y0,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:G0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ui.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ui.focused} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ui.error} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ui.disabled} .${ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),GRe=he(BRe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qRe=he(K0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:q0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),V9=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Re(l,URe),y=WRe(l),w=Oi(),C=pl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),S=(r=(o=v.root)!=null?o:c.Root)!=null?r:HRe,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:qRe;return R.jsx(U2,T({slots:{root:S,input:E},renderSuffix:k=>R.jsx(GRe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=R.jsxs($.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});V9.muiName="Input";const B9=V9,YRe=or(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),KRe=or(R.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),JRe=he("span")({position:"relative",display:"flex"}),ZRe=he(YRe)({transform:"scale(1)"}),XRe=he(KRe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function U9(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return R.jsxs(JRe,{className:n.root,ownerState:o,children:[R.jsx(ZRe,{fontSize:r,className:n.background,ownerState:o}),R.jsx(XRe,{fontSize:r,className:n.dot,ownerState:o})]})}const QRe=$.createContext(void 0),W9=QRe;function eOe(){return $.useContext(W9)}function tOe(e){return tt("MuiRadio",e)}const nOe=et("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),kM=nOe,rOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],oOe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Fe(n)}`,r!=="medium"&&`size${Fe(r)}`]};return T({},t,Qe(o,tOe,t))},aOe=he(W2,{shouldForwardProp:e=>ra(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kM.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${kM.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function iOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RM=R.jsx(U9,{checked:!0}),OM=R.jsx(U9,{}),sOe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=RM,color:l="primary",icon:c=OM,name:u,onChange:f,size:p="medium",className:m}=a,b=Re(a,rOe),v=T({},a,{color:l,size:p}),x=oOe(v),g=eOe();let y=i;const w=Kg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=iOe(g.value,a.value)),typeof C>"u"&&(C=g.name)),R.jsx(aOe,T({type:"radio",icon:$.cloneElement(c,{fontSize:(r=OM.props.fontSize)!=null?r:p}),checkedIcon:$.cloneElement(s,{fontSize:(o=RM.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ne(x.root,m)},b))}),lOe=sOe,cOe=["actions","children","defaultValue","name","onChange","value"],uOe=$.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Re(t,cOe),u=$.useRef(null),[f,p]=$r({controlled:l,default:a,name:"RadioGroup"});$.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Qa(i),v=$.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return R.jsx(W9.Provider,{value:v,children:R.jsx(T9,T({role:"radiogroup",ref:m},c,{children:o}))})}),dOe=uOe;function fOe(e){return tt("MuiSelect",e)}const pOe=et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$f=pOe;var DM;const hOe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],mOe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${$f.select}`]:t.select},{[`&.${$f.select}`]:t[n.variant]},{[`&.${$f.error}`]:t.error},{[`&.${$f.multiple}`]:t.multiple}]}})(F9,{[`&.${$f.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),vOe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(z9),gOe=he("input",{shouldForwardProp:e=>T2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function MM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yOe(e){return e==null||typeof e=="string"&&!e.trim()}const bOe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qe(s,fOe,t)},xOe=$.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:S,onClose:E,onFocus:k,onOpen:I,open:O,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:V,variant:Y="standard"}=t,Q=Re(t,hOe),[W,J]=$r({controlled:V,default:f,name:"Select"}),[X,j]=$r({controlled:O,default:u,name:"Select"}),K=$.useRef(null),q=$.useRef(null),[D,N]=$.useState(null),{current:B}=$.useRef(O!=null),[Z,re]=$.useState(),ce=sn(n,x),xe=$.useCallback(Le=>{q.current=Le,Le&&N(Le)},[]),me=D==null?void 0:D.parentNode;$.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:K.current,value:W}),[W]),$.useEffect(()=>{u&&X&&D&&!B&&(re(s?null:me.clientWidth),q.current.focus())},[D,s]),$.useEffect(()=>{i&&q.current.focus()},[i]),$.useEffect(()=>{if(!g)return;const Le=Vn(q.current).getElementById(g);if(Le){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Le.addEventListener("click",ne),()=>{Le.removeEventListener("click",ne)}}},[g]);const ue=(Le,ne)=>{Le?I&&I(ne):E&&E(ne),B||(re(s?null:me.clientWidth),j(Le))},se=Le=>{Le.button===0&&(Le.preventDefault(),q.current.focus(),ue(!0,Le))},Ce=Le=>{ue(!1,Le)},fe=$.Children.toArray(l),Ve=Le=>{const ne=fe.find(te=>te.props.value===Le.target.value);ne!==void 0&&(J(ne.props.value),S&&S(Le,ne))},Ue=Le=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(W)?W.slice():[];const ie=W.indexOf(Le.props.value);ie===-1?te.push(Le.props.value):te.splice(ie,1)}else te=Le.props.value;if(Le.props.onClick&&Le.props.onClick(ne),W!==te&&(J(te),S)){const ie=ne.nativeEvent||ne,Se=new ie.constructor(ie.type,ie);Object.defineProperty(Se,"target",{writable:!0,value:{value:te,name:C}}),S(Se,Le)}w||ue(!1,ne)}},De=Le=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Le.key)!==-1&&(Le.preventDefault(),ue(!0,Le))},Be=D!==null&&X,ge=Le=>{!Be&&_&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:W,name:C}}),_(Le))};delete Q["aria-invalid"];let we,$e;const He=[];let Ye=!1;(ry({value:W})||m)&&(U?we=U(W):Ye=!0);const Me=fe.map(Le=>{if(!$.isValidElement(Le))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(al(2));ne=W.some(te=>MM(te,Le.props.value)),ne&&Ye&&He.push(Le.props.children)}else ne=MM(W,Le.props.value),ne&&Ye&&($e=Le.props.children);return $.cloneElement(Le,{"aria-selected":ne?"true":"false",onClick:Ue(Le),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Le.props.value})});Ye&&(w?He.length===0?we=null:we=He.reduce((Le,ne,te)=>(Le.push(ne),te{const{classes:t}=e;return t},X2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ra(e)&&e!=="variant",slot:"Root"},_Oe=he(ms,X2)(""),EOe=he(B9,X2)(""),POe=he(P9,X2)(""),H9=$.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=y9,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:E,variant:k="outlined"}=r,I=Re(r,COe),O=y?LRe:wOe,F=Oi(),U=pl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),V=SOe(z),Y=Re(V,$Oe),Q=p||{standard:R.jsx(_Oe,{ownerState:z}),outlined:R.jsx(EOe,{label:b,ownerState:z}),filled:R.jsx(POe,{ownerState:z})}[G],W=sn(n,Q.ref);return R.jsx($.Fragment,{children:$.cloneElement(Q,T({inputComponent:O,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:S,SelectDisplayProps:T({id:f},E)},m,{classes:m?qr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:W,className:Ne(Q.props.className,s,V.root)},!p&&{variant:G},I))})});H9.muiName="Select";const G9=H9,TOe=e=>!e||!Ci(e),kOe=TOe;function ROe(e){return tt("MuiSlider",e)}const OOe=et("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ba=OOe,DOe=e=>{const{open:t}=e;return{offset:Ne(t&&Ba.valueLabelOpen),circle:Ba.valueLabelCircle,label:Ba.valueLabelLabel}};function MOe(e){const{children:t,className:n,value:r}=e,o=DOe(e);return t?$.cloneElement(t,{className:Ne(t.props.className)},R.jsxs($.Fragment,{children:[t.props.children,R.jsx("span",{className:Ne(o.offset,n),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:r})})})]})):null}const IOe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function IM(e){return e}const AOe=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ba.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ba.dragging}`]:{[`& .${Ba.thumb}, & .${Ba.track}`]:{transition:"none"}}})),NOe=he("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),jOe=he("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?R0(e.palette[t.color].main,.62):k0(e.palette[t.color].main,.5);return T({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),LOe=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>T({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ba.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ba.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ba.disabled}`]:{"&:hover":{boxShadow:"none"}}})),FOe=he(MOe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ba.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),zOe=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>T2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),VOe=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>T2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),BOe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qe(c,ROe,i)},UOe=({children:e})=>e,WOe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,S,E,k,I,O;const F=Je({props:t,name:"MuiSlider"}),G=rr().direction==="rtl",{"aria-label":z,"aria-valuetext":V,"aria-labelledby":Y,component:Q="span",components:W={},componentsProps:J={},color:X="primary",classes:j,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:B,marks:Z=!1,max:re=100,min:ce=0,orientation:xe="horizontal",size:me="medium",step:ue=1,scale:se=IM,slotProps:Ce,slots:fe,track:Ve="normal",valueLabelDisplay:Ue="off",valueLabelFormat:De=IM}=F,Be=Re(F,IOe),ge=T({},F,{isRtl:G,max:re,min:ce,classes:j,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:me,step:ue,scale:se,track:Ve,valueLabelDisplay:Ue,valueLabelFormat:De}),{axisProps:we,getRootProps:$e,getHiddenInputProps:He,getThumbProps:Ye,open:Me,active:je,axis:ze,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Le,trackLeap:ne,getThumbStyle:te}=R_e(T({},ge,{rootRef:n}));ge.marked=ct.length>0&&ct.some(ve=>ve.label),ge.dragging=it,ge.focusedThumbIndex=Pe;const ie=BOe(ge),Se=(r=(o=fe==null?void 0:fe.root)!=null?o:W.Root)!=null?r:AOe,_e=(a=(i=fe==null?void 0:fe.rail)!=null?i:W.Rail)!=null?a:NOe,Xe=(s=(l=fe==null?void 0:fe.track)!=null?l:W.Track)!=null?s:jOe,nt=(c=(u=fe==null?void 0:fe.thumb)!=null?u:W.Thumb)!=null?c:LOe,ft=(f=(p=fe==null?void 0:fe.valueLabel)!=null?p:W.ValueLabel)!=null?f:FOe,_t=(m=(b=fe==null?void 0:fe.mark)!=null?b:W.Mark)!=null?m:zOe,vt=(v=(x=fe==null?void 0:fe.markLabel)!=null?x:W.MarkLabel)!=null?v:VOe,dt=(g=(y=fe==null?void 0:fe.input)!=null?y:W.Input)!=null?g:"input",Et=(w=Ce==null?void 0:Ce.root)!=null?w:J.root,Yt=(C=Ce==null?void 0:Ce.rail)!=null?C:J.rail,kt=(_=Ce==null?void 0:Ce.track)!=null?_:J.track,ln=(S=Ce==null?void 0:Ce.thumb)!=null?S:J.thumb,Bt=(E=Ce==null?void 0:Ce.valueLabel)!=null?E:J.valueLabel,Ut=(k=Ce==null?void 0:Ce.mark)!=null?k:J.mark,Kt=(I=Ce==null?void 0:Ce.markLabel)!=null?I:J.markLabel,xn=(O=Ce==null?void 0:Ce.input)!=null?O:J.input,Bn=zt({elementType:Se,getSlotProps:$e,externalSlotProps:Et,externalForwardedProps:Be,additionalProps:T({},kOe(Se)&&{as:Q}),ownerState:T({},ge,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),le=zt({elementType:_e,externalSlotProps:Yt,ownerState:ge,className:ie.rail}),oe=zt({elementType:Xe,externalSlotProps:kt,additionalProps:{style:T({},we[ze].offset(Le),we[ze].leap(ne))},ownerState:T({},ge,kt==null?void 0:kt.ownerState),className:ie.track}),pe=zt({elementType:nt,getSlotProps:Ye,externalSlotProps:ln,ownerState:T({},ge,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Bt,ownerState:T({},ge,Bt==null?void 0:Bt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:ge,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:ge,className:ie.markLabel}),ye=zt({elementType:dt,getSlotProps:He,externalSlotProps:xn,ownerState:ge});return R.jsxs(Se,T({},Bn,{children:[R.jsx(_e,T({},le)),R.jsx(Xe,T({},oe)),ct.filter(ve=>ve.value>=ce&&ve.value<=re).map((ve,Ie)=>{const rt=ny(ve.value,ce,re),lt=we[ze].offset(rt);let xt;return Ve===!1?xt=gt.indexOf(ve.value)!==-1:xt=Ve==="normal"&&(Te?ve.value>=gt[0]&&ve.value<=gt[gt.length-1]:ve.value<=gt[0])||Ve==="inverted"&&(Te?ve.value<=gt[0]||ve.value>=gt[gt.length-1]:ve.value>=gt[0]),R.jsxs($.Fragment,{children:[R.jsx(_t,T({"data-index":Ie},Ee,!Ci(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ne(Ee.className,xt&&ie.markActive)})),ve.label!=null?R.jsx(vt,T({"aria-hidden":!0,"data-index":Ie},pt,!Ci(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ne(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:ve.label})):null]},Ie)}),gt.map((ve,Ie)=>{const rt=ny(ve,ce,re),lt=we[ze].offset(rt),xt=Ue==="off"?UOe:ft;return R.jsx(xt,T({},!Ci(xt)&&{valueLabelFormat:De,valueLabelDisplay:Ue,value:typeof De=="function"?De(se(ve),Ie):De,index:Ie,open:Me===Ie||je===Ie||Ue==="on",disabled:D},ke,{children:R.jsx(nt,T({"data-index":Ie},pe,{className:Ne(ie.thumb,pe.className,je===Ie&&ie.active,Pe===Ie&&ie.focusVisible),style:T({},lt,te(Ie),pe.style),children:R.jsx(dt,T({"data-index":Ie,"aria-label":N?N(Ie):z,"aria-valuenow":se(ve),"aria-labelledby":Y,"aria-valuetext":B?B(se(ve),Ie):V,value:gt[Ie]},ye))}))}),Ie)})]}))}),HOe=WOe;function GOe(e){return tt("MuiTooltip",e)}const qOe=et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ws=qOe,YOe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function KOe(e){return Math.round(e*1e5)/1e5}const JOe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Qe(i,GOe,t)},ZOe=he(Ph,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ws.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ws.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ws.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ws.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),XOe=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${KOe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ws.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ws.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ws.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ws.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),QOe=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let xv=!1,Jx=null,Sf={x:0,y:0};function wv(e,t){return n=>{t&&t(n),e(n)}}const eDe=$.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const S=Je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:O={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:X,leaveDelay:j=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:B="bottom",PopperComponent:Z,PopperProps:re={},slotProps:ce={},slots:xe={},title:me,TransitionComponent:ue=oy,TransitionProps:se}=S,Ce=Re(S,YOe),fe=$.isValidElement(k)?k:R.jsx("span",{children:k}),Ve=rr(),Ue=Ve.direction==="rtl",[De,Be]=$.useState(),[ge,we]=$.useState(null),$e=$.useRef(!1),He=z||J,Ye=$.useRef(),Me=$.useRef(),je=$.useRef(),ze=$.useRef(),[Pe,Te]=$r({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Qa(X),gt=$.useRef(),Le=$.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(ze.current)},[]);$.useEffect(()=>()=>{clearTimeout(Ye.current),clearTimeout(Me.current),clearTimeout(je.current),Le()},[Le]);const ne=yt=>{clearTimeout(Jx),xv=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(Jx),Jx=setTimeout(()=>{xv=!1},800+j),Te(!1),q&&it&&q(yt),clearTimeout(Ye.current),Ye.current=setTimeout(()=>{$e.current=!1},Ve.transitions.duration.shortest)}),ie=yt=>{$e.current&&yt.type!=="touchstart"||(De&&De.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(je.current),Y||xv&&Q?Me.current=setTimeout(()=>{ne(yt)},xv?Q:Y):ne(yt))},Se=yt=>{clearTimeout(Me.current),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},j)},{isFocusVisibleRef:_e,onBlur:Xe,onFocus:nt,ref:ft}=a0(),[,_t]=$.useState(!1),vt=yt=>{Xe(yt),_e.current===!1&&(_t(!1),Se(yt))},dt=yt=>{De||Be(yt.currentTarget),nt(yt),_e.current===!0&&(_t(!0),ie(yt))},Et=yt=>{$e.current=!0;const Wt=fe.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=Se,ln=yt=>{Et(yt),clearTimeout(je.current),clearTimeout(Ye.current),Le(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},W)},Bt=yt=>{fe.props.onTouchEnd&&fe.props.onTouchEnd(yt),Le(),clearTimeout(je.current),je.current=setTimeout(()=>{te(yt)},K)};$.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(fe.ref,ft,Be,n);!me&&me!==0&&(it=!1);const Kt=$.useRef(),xn=yt=>{const Wt=fe.props;Wt.onMouseMove&&Wt.onMouseMove(yt),Sf={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},le=typeof me=="string";F?(Bn.title=!it&&le&&!G?me:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=le?me:null,Bn["aria-labelledby"]=it&&!le?ct:null);const oe=T({},Bn,Ce,fe.props,{className:Ne(Ce.className,fe.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:xn}:{}),pe={};V||(oe.onTouchStart=ln,oe.onTouchEnd=Bt),G||(oe.onMouseOver=wv(Yt,oe.onMouseOver),oe.onMouseLeave=wv(kt,oe.onMouseLeave),He||(pe.onMouseOver=Yt,pe.onMouseLeave=kt)),U||(oe.onFocus=wv(dt,oe.onFocus),oe.onBlur=wv(vt,oe.onBlur),He||(pe.onFocus=dt,pe.onBlur=vt));const ke=$.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!ge,options:{element:ge,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[ge,re]),Ee=T({},S,{isRtl:Ue,arrow:E,disableInteractive:He,placement:B,PopperComponentProp:Z,touch:$e.current}),pt=JOe(Ee),ye=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:ZOe,ve=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ue)!=null?a:oy,Ie=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:XOe,rt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:QOe,lt=Af(ye,T({},re,(p=ce.popper)!=null?p:O.popper,{className:Ne(pt.popper,re==null?void 0:re.className,(m=(b=ce.popper)!=null?b:O.popper)==null?void 0:m.className)}),Ee),xt=Af(ve,T({},se,(v=ce.transition)!=null?v:O.transition),Ee),Nt=Af(Ie,T({},(x=ce.tooltip)!=null?x:O.tooltip,{className:Ne(pt.tooltip,(g=(y=ce.tooltip)!=null?y:O.tooltip)==null?void 0:g.className)}),Ee),ut=Af(rt,T({},(w=ce.arrow)!=null?w:O.arrow,{className:Ne(pt.arrow,(C=(_=ce.arrow)!=null?_:O.arrow)==null?void 0:C.className)}),Ee);return R.jsxs($.Fragment,{children:[$.cloneElement(fe,oe),R.jsx(ye,T({as:Z??Ph,placement:B,anchorEl:J?{getBoundingClientRect:()=>({top:Sf.y,left:Sf.x,right:Sf.x,bottom:Sf.y,width:0,height:0})}:De,popperRef:Kt,open:De?it:!1,id:ct,transition:!0},pe,lt,{popperOptions:ke,children:({TransitionProps:yt})=>R.jsx(ve,T({timeout:Ve.transitions.duration.shorter},yt,xt,{children:R.jsxs(Ie,T({},Nt,{children:[me,E?R.jsx(rt,T({},ut,{ref:we})):null]}))}))}))]})}),wc=eDe,tDe=$.createContext({}),Rh=tDe,nDe=$.createContext({}),e1=nDe;function rDe(e){return tt("MuiStep",e)}et("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const oDe=["active","children","className","component","completed","disabled","expanded","index","last"],aDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Qe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},rDe,t)},iDe=he("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),sDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Re(r,oDe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=$.useContext(Rh);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=aDe(E),I=R.jsxs(iDe,T({as:s,className:Ne(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return R.jsx(e1.Provider,{value:S,children:v&&!x&&f!==0?R.jsxs($.Fragment,{children:[v,I]}):I})}),lDe=sDe,cDe=or(R.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),uDe=or(R.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function dDe(e){return tt("MuiStepIcon",e)}const fDe=et("MuiStepIcon",["root","active","completed","error","text"]),Zx=fDe;var AM;const pDe=["active","className","completed","error","icon"],hDe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Qe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},dDe,t)},Xx=he(GC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Zx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zx.error}`]:{color:(e.vars||e).palette.error.main}})),mDe=he("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),vDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Re(r,pDe),u=T({},r,{active:o,completed:i,error:s}),f=hDe(u);if(typeof l=="number"||typeof l=="string"){const p=Ne(a,f.root);return s?R.jsx(Xx,T({as:uDe,className:p,ref:n,ownerState:u},c)):i?R.jsx(Xx,T({as:cDe,className:p,ref:n,ownerState:u},c)):R.jsxs(Xx,T({className:p,ref:n,ownerState:u},c,{children:[AM||(AM=R.jsx("circle",{cx:"12",cy:"12",r:"12"})),R.jsx(mDe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),gDe=vDe;function yDe(e){return tt("MuiStepLabel",e)}const bDe=et("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Hs=bDe,xDe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],wDe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Qe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},yDe,t)},CDe=he("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Hs.alternativeLabel}`]:{flexDirection:"column"},[`&.${Hs.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),$De=he("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Hs.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hs.alternativeLabel}`]:{marginTop:16},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),SDe=he("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Hs.alternativeLabel}`]:{paddingRight:0}})),_De=he("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Hs.alternativeLabel}`]:{textAlign:"center"}})),q9=$.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Re(o,xDe),{alternativeLabel:v,orientation:x}=$.useContext(Rh),{active:g,disabled:y,completed:w,icon:C}=$.useContext(e1),_=c||C;let S=p;_&&!S&&(S=gDe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=wDe(E),I=(r=f.label)!=null?r:s.label;return R.jsxs(CDe,T({className:Ne(k.root,i),ref:n,ownerState:E},b,{children:[_||S?R.jsx(SDe,{className:k.iconContainer,ownerState:E,children:R.jsx(S,T({completed:w,active:g,error:l,icon:_},m))}):null,R.jsxs(_De,{className:k.labelContainer,ownerState:E,children:[a?R.jsx($De,T({ownerState:E},I,{className:Ne(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});q9.muiName="StepLabel";const EDe=q9;function PDe(e){return tt("MuiStepButton",e)}const TDe=et("MuiStepButton",["root","horizontal","vertical","touchRipple"]),NM=TDe,kDe=["children","className","icon","optional"],RDe=e=>{const{classes:t,orientation:n}=e;return Qe({root:["root",n],touchRipple:["touchRipple"]},PDe,t)},ODe=he(Sa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${NM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${NM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),DDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Re(r,kDe),{disabled:c,active:u}=$.useContext(e1),{orientation:f}=$.useContext(Rh),p=T({},r,{orientation:f}),m=RDe(p),b={icon:i,optional:s},v=Du(o,["StepLabel"])?$.cloneElement(o,b):R.jsx(EDe,T({},b,{children:o}));return R.jsx(ODe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ne(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),MDe=DDe;function IDe(e){return tt("MuiStepConnector",e)}et("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const ADe=["className"],NDe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${Fe(n)}`]};return Qe(s,IDe,t)},jDe=he("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),LDe=he("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Fe(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),FDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Re(r,ADe),{alternativeLabel:i,orientation:s="horizontal"}=$.useContext(Rh),{active:l,disabled:c,completed:u}=$.useContext(e1),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=NDe(f);return R.jsx(jDe,T({className:Ne(p.root,o),ref:n,ownerState:f},a,{children:R.jsx(LDe,{className:p.line,ownerState:f})}))}),zDe=FDe;function VDe(e){return tt("MuiStepper",e)}et("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const BDe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],UDe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Qe({root:["root",t,n&&"alternativeLabel"]},VDe,r)},WDe=he("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),HDe=R.jsx(zDe,{}),GDe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=HDe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Re(r,BDe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=UDe(m),v=$.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>$.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=$.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return R.jsx(Rh.Provider,{value:g,children:R.jsx(WDe,T({as:l,ownerState:m,className:Ne(b.root,s),ref:n},p,{children:x}))})}),qDe=GDe;function YDe(e){return tt("MuiSwitch",e)}const KDe=et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),no=KDe,JDe=["className","color","edge","size","sx"],ZDe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Qe(s,YDe,t);return T({},t,l)},XDe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${no.thumb}`]:{width:16,height:16},[`& .${no.switchBase}`]:{padding:4,[`&.${no.checked}`]:{transform:"translateX(16px)"}}})),QDe=he(W2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${no.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${no.checked}`]:{transform:"translateX(20px)"},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${no.checked} + .${no.track}`]:{opacity:.5},[`&.${no.disabled} + .${no.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${no.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${no.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${no.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?R0(e.palette[t.color].main,.62):k0(e.palette[t.color].main,.55)}`}},[`&.${no.checked} + .${no.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),eMe=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),tMe=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),nMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Re(r,JDe),u=T({},r,{color:a,edge:i,size:s}),f=ZDe(u),p=R.jsx(tMe,{className:f.thumb,ownerState:u});return R.jsxs(XDe,{className:Ne(f.root,o),sx:l,ownerState:u,children:[R.jsx(QDe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),R.jsx(eMe,{className:f.track,ownerState:u})]})}),rMe=nMe;function oMe(e){return tt("MuiTab",e)}const aMe=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Tl=aMe,iMe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],sMe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Qe(c,oMe,t)},lMe=he(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Tl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Tl.selected}`]:{opacity:1},[`&.${Tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),cMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Re(r,iMe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),S=sMe(_),E=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Ne(S.iconWrapper,l.props.className)}):l,k=O=>{!v&&p&&p(O,y),m&&m(O)},I=O=>{x&&!v&&p&&p(O,y),b&&b(O)};return R.jsxs(lMe,T({focusRipple:!i,className:Ne(S.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?R.jsxs($.Fragment,{children:[E,f]}):R.jsxs($.Fragment,{children:[f,E]}),u]}))}),Wp=cMe,uMe=$.createContext(),Y9=uMe;function dMe(e){return tt("MuiTable",e)}et("MuiTable",["root","stickyHeader"]);const fMe=["className","component","padding","size","stickyHeader"],pMe=e=>{const{classes:t,stickyHeader:n}=e;return Qe({root:["root",n&&"stickyHeader"]},dMe,t)},hMe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),jM="table",mMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTable"}),{className:o,component:a=jM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Re(r,fMe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=pMe(u),p=$.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return R.jsx(Y9.Provider,{value:p,children:R.jsx(hMe,T({as:a,role:a===jM?null:"table",ref:n,className:Ne(f.root,o),ownerState:u},c))})}),K9=mMe,vMe=$.createContext(),t1=vMe;function gMe(e){return tt("MuiTableBody",e)}et("MuiTableBody",["root"]);const yMe=["className","component"],bMe=e=>{const{classes:t}=e;return Qe({root:["root"]},gMe,t)},xMe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),wMe={variant:"body"},LM="tbody",CMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableBody"}),{className:o,component:a=LM}=r,i=Re(r,yMe),s=T({},r,{component:a}),l=bMe(s);return R.jsx(t1.Provider,{value:wMe,children:R.jsx(xMe,T({className:Ne(l.root,o),as:a,ref:n,role:a===LM?null:"rowgroup",ownerState:s},i))})}),J9=CMe;function $Me(e){return tt("MuiTableCell",e)}const SMe=et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_Me=SMe,EMe=["align","className","component","padding","scope","size","sortDirection","variant"],PMe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return Qe(s,$Me,t)},TMe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?R0(Tt(e.palette.divider,1),.88):k0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${_Me.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),kMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Re(r,EMe),m=$.useContext(Y9),b=$.useContext(t1),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=PMe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),R.jsx(TMe,T({as:x,ref:n,className:Ne(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),Od=kMe;function RMe(e){return tt("MuiTableHead",e)}et("MuiTableHead",["root"]);const OMe=["className","component"],DMe=e=>{const{classes:t}=e;return Qe({root:["root"]},RMe,t)},MMe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),IMe={variant:"head"},FM="thead",AMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableHead"}),{className:o,component:a=FM}=r,i=Re(r,OMe),s=T({},r,{component:a}),l=DMe(s);return R.jsx(t1.Provider,{value:IMe,children:R.jsx(MMe,T({as:a,className:Ne(l.root,o),ref:n,role:a===FM?null:"rowgroup",ownerState:s},i))})}),Z9=AMe;function NMe(e){return tt("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const jMe=["className","component","disableGutters","variant"],LMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Qe({root:["root",!n&&"gutters",r]},NMe,t)},FMe=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),zMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Re(r,jMe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=LMe(c);return R.jsx(FMe,T({as:a,className:Ne(u.root,o),ref:n,ownerState:c},l))}),VMe=zMe,BMe=or(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),UMe=or(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function WMe(e){return tt("MuiTableRow",e)}const HMe=et("MuiTableRow",["root","selected","hover","head","footer"]),zM=HMe,GMe=["className","component","hover","selected"],qMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Qe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},WMe,t)},YMe=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zM.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),VM="tr",KMe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableRow"}),{className:o,component:a=VM,hover:i=!1,selected:s=!1}=r,l=Re(r,GMe),c=$.useContext(t1),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=qMe(u);return R.jsx(YMe,T({as:a,ref:n,className:Ne(f.root,o),role:a===VM?null:"row",ownerState:u},l))}),hl=KMe;function JMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ZMe(e,t,n,r={},o=()=>{}){const{ease:a=JMe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const XMe=["onChange"],QMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function eIe(e){const{onChange:t}=e,n=Re(e,XMe),r=$.useRef(),o=$.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Jn(()=>{const i=wh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=Pi(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),$.useEffect(()=>{a(),t(r.current)},[t]),R.jsx("div",T({style:QMe,ref:o},n))}function tIe(e){return tt("MuiTabScrollButton",e)}const nIe=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),rIe=nIe,oIe=["className","slots","slotProps","direction","orientation","disabled"],aIe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Qe({root:["root",n,r&&"disabled"]},tIe,t)},iIe=he(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${rIe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),sIe=$.forwardRef(function(t,n){var r,o;const a=Je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Re(a,oIe),p=rr().direction==="rtl",m=T({isRtl:p},a),b=aIe(m),v=(r=s.StartScrollButtonIcon)!=null?r:BMe,x=(o=s.EndScrollButtonIcon)!=null?o:UMe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return R.jsx(iIe,T({component:"div",className:Ne(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?R.jsx(v,T({},g)):R.jsx(x,T({},y))}))}),lIe=sIe;function cIe(e){return tt("MuiTabs",e)}const uIe=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tg=uIe,dIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],BM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,UM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Cv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},fIe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},cIe,l)},pIe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tg.scrollButtons}`]:t.scrollButtons},{[`& .${tg.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${tg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),hIe=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),mIe=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),vIe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gIe=he(eIe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),WM={},yIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=rr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=lIe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:O="standard",visibleScrollbar:F=!1}=r,U=Re(r,dIe),G=O==="scrollable",z=x==="vertical",V=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:O,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),j=fIe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=$.useState(!1),[B,Z]=$.useState(WM),[re,ce]=$.useState(!1),[xe,me]=$.useState(!1),[ue,se]=$.useState(!1),[Ce,fe]=$.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Ue=$.useRef(null),De=$.useRef(null),Be=()=>{const te=Ue.current;let ie;if(te){const _e=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:Y1e(te,o.direction),scrollWidth:te.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Se;if(te&&I!==!1){const _e=De.current.children;if(_e.length>0){const Xe=_e[Ve.get(I)];Se=Xe?Xe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Se}},ge=mt(()=>{const{tabsMeta:te,tabMeta:ie}=Be();let Se=0,_e;if(z)_e="top",ie&&te&&(Se=ie.top-te.top+te.scrollTop);else if(_e=a?"right":"left",ie&&te){const nt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Se=(a?-1:1)*(ie[_e]-te[_e]+nt)}const Xe={[_e]:Se,[J]:ie?ie[J]:0};if(isNaN(B[_e])||isNaN(B[J]))Z(Xe);else{const nt=Math.abs(B[_e]-Xe[_e]),ft=Math.abs(B[J]-Xe[J]);(nt>=1||ft>=1)&&Z(Xe)}}),we=(te,{animation:ie=!0}={})=>{ie?ZMe(V,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[V]=te},$e=te=>{let ie=Ue.current[V];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&Sj()==="reverse"?-1:1),we(ie)},He=()=>{const te=Ue.current[W];let ie=0;const Se=Array.from(De.current.children);for(let _e=0;_ete){_e===0&&(ie=te);break}ie+=Xe[W]}return ie},Ye=()=>{$e(-1*He())},Me=()=>{$e(He())},je=$.useCallback(te=>{fe({overflow:null,scrollbarWidth:te})},[]),ze=()=>{const te={};te.scrollbarSizeListener=G?R.jsx(gIe,{onChange:je,className:Ne(j.scrollableX,j.hideScrollbar)}):null;const Se=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=Se?R.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:Ye,disabled:!re},E,{className:Ne(j.scrollButtons,E.className)})):null,te.scrollButtonEnd=Se?R.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Me,disabled:!xe},E,{className:Ne(j.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:Se}=Be();if(!(!Se||!ie)){if(Se[Y]ie[Q]){const _e=ie[V]+(Se[Q]-ie[Q]);we(_e,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&se(!ue)});$.useEffect(()=>{const te=wh(()=>{Ue.current&&ge()});let ie;const Se=nt=>{nt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},_e=Pi(Ue.current);_e.addEventListener("resize",te);let Xe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(De.current.children).forEach(nt=>{ie.observe(nt)})),typeof MutationObserver<"u"&&(Xe=new MutationObserver(Se),Xe.observe(De.current,{childList:!0})),()=>{var nt,ft;te.clear(),_e.removeEventListener("resize",te),(nt=Xe)==null||nt.disconnect(),(ft=ie)==null||ft.disconnect()}},[ge,Te]),$.useEffect(()=>{const te=Array.from(De.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const Se=te[0],_e=te[ie-1],Xe={root:Ue.current,threshold:.99},nt=dt=>{ce(!dt[0].isIntersecting)},ft=new IntersectionObserver(nt,Xe);ft.observe(Se);const _t=dt=>{me(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Xe);return vt.observe(_e),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ue,u==null?void 0:u.length]),$.useEffect(()=>{N(!0)},[]),$.useEffect(()=>{ge()}),$.useEffect(()=>{Pe(WM!==B)},[Pe,B]),$.useImperativeHandle(l,()=>({updateIndicator:ge,updateScrollButtons:Te}),[ge,Te]);const it=R.jsx(vIe,T({},S,{className:Ne(j.indicator,S.className),ownerState:X,style:T({},B,S.style)}));let ct=0;const gt=$.Children.map(u,te=>{if(!$.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Ve.set(ie,ct);const Se=ie===I;return ct+=1,$.cloneElement(te,T({fullWidth:O==="fullWidth",indicator:Se&&!D&&it,selected:Se,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Le=te=>{const ie=De.current,Se=Vn(ie).activeElement;if(Se.getAttribute("role")!=="tab")return;let Xe=x==="horizontal"?"ArrowLeft":"ArrowUp",nt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Xe="ArrowRight",nt="ArrowLeft"),te.key){case Xe:te.preventDefault(),Cv(ie,Se,UM);break;case nt:te.preventDefault(),Cv(ie,Se,BM);break;case"Home":te.preventDefault(),Cv(ie,null,BM);break;case"End":te.preventDefault(),Cv(ie,null,UM);break}},ne=ze();return R.jsxs(pIe,T({className:Ne(j.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,R.jsxs(hIe,{className:j.scroller,ownerState:X,style:{overflow:Ce.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ce.scrollbarWidth},ref:Ue,children:[R.jsx(mIe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:X,onKeyDown:Le,ref:De,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),n1=yIe;function bIe(e){return tt("MuiTextField",e)}et("MuiTextField",["root"]);const xIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],wIe={standard:ms,filled:P9,outlined:B9},CIe=e=>{const{classes:t}=e;return Qe({root:["root"]},bIe,t)},$Ie=he(Th,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SIe=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:S,multiline:E=!1,name:k,onBlur:I,onChange:O,onFocus:F,placeholder:U,required:G=!1,rows:z,select:V=!1,SelectProps:Y,type:Q,value:W,variant:J="outlined"}=r,X=Re(r,xIe),j=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:V,variant:J}),K=CIe(j),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),V&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Qa(v),N=b&&D?`${D}-helper-text`:void 0,B=C&&D?`${D}-label`:void 0,Z=wIe[J],re=R.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:z,maxRows:_,minRows:S,type:Q,value:W,id:D,inputRef:w,onBlur:I,onChange:O,onFocus:F,placeholder:U,inputProps:g},q,y));return R.jsxs($Ie,T({className:Ne(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:j},X,{children:[C!=null&&C!==""&&R.jsx(M9,T({htmlFor:D,id:B},x,{children:C})),V?R.jsx(G9,T({"aria-describedby":N,id:D,labelId:B,value:W,input:re},Y,{children:i})):re,b&&R.jsx(pr,T({id:N},p,{children:b}))]}))}),Oh=SIe;var _Ie=TS;function EIe(e){return _Ie(e)?void 0:e}var PIe=EIe,TIe=yd,kIe=Wy,RIe=tfe,OIe=uh,DIe=xd,MIe=PIe,IIe=zS,AIe=X5,NIe=1,jIe=2,LIe=4,FIe=IIe(function(e,t){var n={};if(e==null)return n;var r=!1;t=TIe(t,function(a){return a=OIe(a,e),r||(r=a.length>1),a}),DIe(e,AIe(e),n),r&&(n=kIe(n,NIe|jIe|LIe,MIe));for(var o=t.length;o--;)RIe(n,t[o]);return n}),zIe=FIe;const VIe=Vt(zIe);function BIe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=tAe){var c=t?null:QIe(e);if(c)return eAe(c);i=!1,o=XIe,l=new KIe}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(V)+G},C={s:w,z:function(G){var z=-G.utcOffset(),V=Math.abs(z),Y=Math.floor(V/60),Q=V%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(z,V){if(z.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(tL);var DAe=tL.exports;const MAe=Vt(DAe);var sE={},IAe=Cc;Object.defineProperty(sE,"__esModule",{value:!0});var nL=sE.default=void 0,AAe=IAe($c()),NAe=R,jAe=(0,AAe.default)((0,NAe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");nL=sE.default=jAe;var LAe=VS,FAe=us;function zAe(e,t){var n=-1,r=FAe(e)?Array(e.length):[];return LAe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var VAe=zAe,BAe=yd,UAe=vc,WAe=VAe,HAe=lr;function GAe(e,t){var n=HAe(e)?BAe:WAe;return n(e,UAe(t))}var rL=GAe;const oL=Vt(rL),qAe=["localeText"],e$=$.createContext(null),Dh=function(t){var n;const{localeText:r}=t,o=Re(t,qAe),{utils:a,localeText:i}=(n=$.useContext(e$))!=null?n:{utils:void 0,localeText:void 0},s=Je({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=$.useMemo(()=>T({},m,i,r),[m,i,r]),v=$.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=$.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return R.jsx(e$.Provider,{value:g,children:l})},YAe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),aL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},KAe=aL;YAe(aL);const Sc=()=>{const e=$.useContext(e$);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=$.useMemo(()=>T({},YAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},KAe=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ZAe=or(R.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),JAe=or(R.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),aL=or(R.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),XAe=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),QAe=or(R.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),e4e=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),t4e=or(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function n4e(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const r4e=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],o4e=["ownerState"],a4e=["ownerState"],i4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),s4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),HM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),l4e=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},n4e,t)},iL=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Ze({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Re(c,r4e),E=c,k=l4e(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},O={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:HM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:T({},E,{hidden:O.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:HM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:ZAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Re(Y,o4e),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:JAe,Z=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Re(Z,a4e);return R.jsxs(i4e,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[R.jsx(F,T({},U,{children:l?R.jsx(W,T({},X)):R.jsx(V,T({},Q))})),u?R.jsx(yn,{variant:"subtitle1",component:"span",children:u}):R.jsx(s4e,{className:k.spacer,ownerState:E}),R.jsx(G,T({},z,{children:l?R.jsx(V,T({},Q)):R.jsx(W,T({},X))}))]}))}),gi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),sE=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},sL=["hours","minutes","seconds"],rd=e=>sL.includes(e),Ms=e=>sL.includes(e)||e==="meridiem",c4e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Wp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,u4e=(e,t,n,r)=>{const o=Wp(r.getHours(e),t,n);return r.setHours(e,o)},GM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Oh=(e,t)=>(n,r)=>e?t.isAfter(n,r):GM(n,t)>GM(r,t),ay=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return gi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:gi(n,["minutes"])?o.minutes:gi(n,["seconds"])?o.seconds:gi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:gi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function Dh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(O=>!o.includes(O)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((O,F)=>{g(F?O:U=>O===U?null:U),s==null||s(O,F)}),S=mt(O=>{O!==m&&(b(O),_(O,!0),t&&t(O))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((O,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(O,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function d4e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function f4e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function a1(e,t,n,r){const o=qt(),a=c4e(e,o),i=$.useCallback(s=>{const l=e==null?null:u4e(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Hp=36,i1=2,s1=320,p4e=280,l1=334,lL=232,Nf=48,c1=he("div")({overflow:"hidden",width:s1,maxHeight:l1,display:"flex",flexDirection:"column",margin:"0 auto"});function h4e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const od=220,Si=36,Gp={x:od/2,y:od/2},cL={x:Gp.x,y:0},m4e=cL.x-Gp.x,v4e=cL.y-Gp.y,g4e=e=>e*(180/Math.PI),uL=(e,t,n)=>{const r=t-Gp.x,o=n-Gp.y,a=Math.atan2(m4e,v4e)-Math.atan2(r,o);let i=g4e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},y4e=(e,t,n=1)=>{const r=n*6;let{value:o}=uL(r,e,t);return o=o*n%60,o},b4e=(e,t,n)=>{const{value:r,distance:o}=uL(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},x4e,t)},$4e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),S4e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Si/2}px)`,border:`${(Si-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function _4e(e){const t=Ze({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Re(t,w4e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=C4e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*od),transform:`rotateZ(${p}deg)`}};return R.jsx($4e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:R.jsx(S4e,{ownerState:l,className:c.thumb})}))}function E4e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const ip=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},P4e=(e,t)=>t==null||!e.isValid(t)?null:t,Zr=(e,t,n)=>t==null||!e.isValid(t)?n:t,T4e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),lE=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},e$=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},cE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},k4e=["year","month","day"],Nu=e=>k4e.includes(e),qp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return gi(n,["year"])?o.year:gi(n,["month"])?o.month:gi(n,["day"])?o.dayOfMonth:gi(n,["month","year"])?`${o.month} ${o.year}`:gi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},R4e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},O4e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},E4e,t)},D4e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),M4e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),I4e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),A4e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),N4e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),j4e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),L4e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),qM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function F4e(e){const t=Ze({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=O4e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(Z,X)=>{v||x||l(Z,m)||f(Z,X)},O=(Z,X)=>{let{offsetX:j,offsetY:K}=Z;if(j===void 0){const D=Z.target.getBoundingClientRect();j=Z.changedTouches[0].clientX-D.left,K=Z.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?y4e(j,K,u):b4e(j,K,!!n);I(q,X)},F=Z=>{_.current=!0,O(Z,"shallow")},U=Z=>{_.current&&(O(Z,"finish"),_.current=!1)},G=Z=>{Z.buttons>0&&O(Z.nativeEvent,"shallow")},z=Z=>{_.current&&(_.current=!1),O(Z.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Zn(()=>{o&&Q.current.focus()},[o]);const W=Z=>{if(!_.current)switch(Z.key){case"Home":I(0,"partial"),Z.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),Z.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),Z.preventDefault();break}};return R.jsxs(D4e,{className:Ne(g,S.root),children:[R.jsxs(M4e,{className:S.clock,children:[R.jsx(A4e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&R.jsxs($.Fragment,{children:[R.jsx(N4e,{className:S.pin}),i!=null&&R.jsx(_4e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),R.jsx(I4e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&R.jsxs($.Fragment,{children:[R.jsx(j4e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:R.jsx(qM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),R.jsx(L4e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:R.jsx(qM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function z4e(e){return tt("MuiClockNumber",e)}const wv=et("MuiClockNumber",["root","selected","disabled"]),V4e=["className","disabled","index","inner","label","selected"],B4e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},z4e,t)},U4e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wv.disabled}`]:t.disabled},{[`&.${wv.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Si,width:Si,position:"absolute",left:`calc((100% - ${Si}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${wv.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wv.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function dL(e){const t=Ze({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Re(t,V4e),c=t,u=B4e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(od-Si-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return R.jsx(U4e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(od-Si)/2}px`},ownerState:c},l,{children:i}))}const W4e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(R.jsx(dL,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},YM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return R.jsx(dL,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},uE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Od=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return uE({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},H4e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),Sf=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():Sf(t,n,cE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Sf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Sf(t,n,e.maxDate));const s=Oh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:e$(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Sf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:e$(t,i,e.maxTime))),i},fL=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},q4e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},u1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},pL=(e,t,n,r)=>{switch(n){case"month":return lE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return u1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},hL=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?hL(e,a,o.maxLength):a},Y4e=(e,t,n,r,o,a,i)=>{const s=q4e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>mL(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=pL(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},dE=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vL=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},KM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),gL=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,yL=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return gL(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},Z4e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},ZM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=fL(e,w),_=yL(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=hL(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:K4e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=Z4e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},J4e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=dE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},Q4e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=lE(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:gL(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=u1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},e3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=u1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},JM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},XM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>JM[i.type]-JM[s.type]).reduce((i,s)=>!a||s.modified?e3e(e,t,s,n,i):i,o),t3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,n3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},r3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:cE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Re(e,r3e);return t!=null&&r.utils.isValid(t)?t:n??G4e(r)},cleanValue:P4e,areValuesEqual:T4e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},fE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:vL(o(t),r),getValueStrFromSections:X4e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Mh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},pE=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>cE(n,o,"date")}),[]);return e??a},o3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],a3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},h4e,t)},i3e=he(c1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),s3e=he(iL,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),l3e=["hours","minutes"],c3e=$.forwardRef(function(t,n){const r=qt(),o=Ze({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:O=l3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,Z=Re(o,o3e),X=u??Mh(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Od({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=pE({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),J=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=Dh({view:I,views:O,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=a1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Oh(v,r),He=we==="hours"||we==="minutes"&&O.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,J)||w&&$e(J,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Wp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,J,O]),Ve=Qa(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Wp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:W4e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:YM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:YM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=a3e(De);return R.jsxs(i3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},Z,{children:[R.jsx(F4e,T({autoFocus:s??!!G,ampmInClock:i&&O.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&R.jsx(s3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function u3e(e){return tt("MuiDigitalClock",e)}const d3e=et("MuiDigitalClock",["root","list","item"]),f3e=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],p3e=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},u3e,t)},h3e=he(c1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:lL})),m3e=he(K2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),v3e=he(oy,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),g3e=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Ze({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:O,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:Z,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Re(c,f3e),{value:N,handleValueChange:B,timezone:J}=Od({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(J),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=p3e(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:v3e,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=pE({value:N,referenceDate:w,utils:i,props:c,timezone:J}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=Dh({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Oh(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||O!=null&&O(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,O,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return R.jsx(h3e,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:R.jsx(m3e,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return R.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:Z||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function y3e(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function b3e(e){return tt("MuiMultiSectionDigitalClock",e)}const x3e=et("MuiMultiSectionDigitalClock",["root","item"]),w3e=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],C3e=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},b3e,t)},$3e=he(K2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:lL,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),S3e=he(oy,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Nf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),_3e=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Ze({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Re(s,w3e),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=C3e(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:S3e;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),R.jsx($3e,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return R.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),E3e=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},QM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},P3e=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],T3e=e=>{const{classes:t}=e;return Qe({root:["root"]},y3e,t)},k3e=he(c1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),R3e=$.forwardRef(function(t,n){const r=qt(),o=Ze({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:O,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,Z=Re(o,P3e),{value:X,handleValueChange:j,timezone:K}=Od({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=pE({value:X,referenceDate:b,utils:r,props:o,timezone:K}),J=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=Dh({view:k,views:re,openTo:O,onViewChange:F,onChange:J,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=a1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Oh(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Wp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Wp($e,se,a);Ve("hours",r.setHours(B,He))},items:E3e({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:QM({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:QM({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=T3e(Be);return R.jsx(k3e,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(De).map(([we,$e])=>R.jsx(_3e,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function O3e(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),D3e=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],M3e=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},O3e,l)},bL=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Hp,height:Hp,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${i1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),xL=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},I3e=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:xL})(bL),A3e=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:xL})(({theme:e,ownerState:t})=>T({},bL({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_f=()=>{},N3e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=_f,onBlur:b=_f,onKeyDown:v=_f,onMouseDown:x=_f,onMouseEnter:g=_f,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Re(r,D3e),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=M3e(k),O=qt(),F=$.useRef(null),U=sn(F,n);Zn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?R.jsx(A3e,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):R.jsx(I3e,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||O.format(i,"dayOfMonth")}))}),j3e=$.memo(N3e);function wL(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const L3e=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=uE({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>Q4e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>ZM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),O=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=H4e(D),J=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:J})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const J={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,J)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),vL(B,a)},Z=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),J=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=J?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=ZM(t,_,n,v,xe,x,w,a);return XM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),J=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:J,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:Z,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:O,timezone:_}},F3e=5e3,nu=e=>e.saveQuery!=null,z3e=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),F3e);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>pL(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&fL(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>KM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:mL(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=yL(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=KM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=u1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const V3e=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},iy=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?iy(t.shadowRoot):t:null},hE="@media (pointer: fine)",B3e=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],mE=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=L3e(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:O,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Re(e.forwardedProps,B3e),{applyCharacterEditing:Y,resetCharacterQuery:Q}=z3e({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),Z=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>n3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),J=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(t3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=Y4e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Zn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===iy(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=wL(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===iy(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),O==null||O(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:J,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:Z,clearable:!!(I&&!Ue&&!v&&!F)})},Ih=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Zr(n.utils,e.minDate,n.defaultDates.minDate),f=Zr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},t$=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],n$=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],CL=["minDateTime","maxDateTime"],U3e=[...t$,...n$,...CL],Dd=e=>U3e.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),W3e=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],vE=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return W3e.forEach(o),t==="date"?t$.forEach(o):t==="time"?n$.forEach(o):t==="date-time"&&(t$.forEach(o),n$.forEach(o),CL.forEach(o)),{forwardedProps:n,internalProps:r}},H3e=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Zr(o,e.minDate,a.minDate),maxDate:Zr(o,e.maxDate,a.maxDate)})},G3e=({props:e,inputRef:t})=>{const n=H3e(e),{forwardedProps:r,internalProps:o}=vE(n,"date");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:Ih,valueType:"date"})},q3e=he(K0)({[`& .${op.container}`]:{outline:0},[`& .${op.paper}`]:{outline:0,minWidth:s1}}),Y3e=he(J0)({"&:first-of-type":{padding:0}});function K3e(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:q3e,c=(n=i==null?void 0:i.mobileTransition)!=null?n:kd;return R.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:R.jsx(Y3e,{children:r})}))}function Z3e(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const J3e="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),eI=ju&&ju[1]?parseInt(ju[1],10):null,tI=ju&&ju[2]?parseInt(ju[2],10):null,X3e=eI&&eI<10||tI&&tI<13||!1,$L=()=>Ph(J3e,{defaultMatches:!1})||X3e,Q3e=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],e5e=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},Z3e,t)},t5e=he(_h,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),n5e=he(hs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function r5e(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&r5e(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const a5e=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Re(e,Q3e),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return R.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function i5e(e){var t,n,r,o;const a=Ze({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function Z(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=iy(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=o5e(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,O=e5e(I),F=$L(),U=g??F,G=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?kd:ny,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:r9,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:n5e,Q=(o=v==null?void 0:v.popper)!=null?o:t5e,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:O.root,ownerState:a});return R.jsx(Q,T({},W,{children:({TransitionProps:Z,placement:X})=>R.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:R.jsx(z,T({},Z,x==null?void 0:x.desktopTransition,{children:R.jsx(a5e,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:O.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function SL(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const s5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},SL,t)},l5e=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),c5e=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),gE=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=s5e(c);return s?null:R.jsxs(l5e,{ref:n,className:Ne(u.root,a),ownerState:c,children:[R.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),R.jsx(c5e,{className:u.content,ownerState:c,children:o})]})});function u5e(e){return tt("MuiPickersToolbarText",e)}const nI=et("MuiPickersToolbarText",["root","selected"]),d5e=["className","selected","value"],f5e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},u5e,t)},p5e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${nI.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${nI.selected}`]:{color:(e.vars||e).palette.text.primary}})),yE=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Re(r,d5e),s=f5e(r);return R.jsx(p5e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),h5e=["align","className","selected","typographyClassName","value","variant","width"],m5e=e=>{const{classes:t}=e;return Qe({root:["root"]},SL,t)},v5e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Re(r,h5e),p=m5e(r);return R.jsx(v5e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:R.jsx(yE,{align:o,className:s,variant:c,value:l,selected:i})}))}),g5e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},y5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},b5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},x5e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},w5e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=g5e(e),[_,S]=$.useState(()=>{let J;return s!==void 0?J=s:m!==void 0?J=m:J=t.emptyValue,{draft:J,lastPublishedValue:J,lastCommittedValue:J,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=uE({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});wL(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(J=>{const re={action:J,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,J.value,ue),isControlled:b,closeOnSelect:c},ce=y5e(re),xe=b5e(re),me=x5e(re);if(S(ue=>T({},ue,{draft:J.value,lastPublishedValue:ce?J.value:ue.lastPublishedValue,lastCommittedValue:xe?J.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:J.name==="setValueFromField"?J.context.validationError:o({adapter:x,value:J.value,props:T({},e,{value:J.value,timezone:E})})};J.name==="setValueFromShortcut"&&J.shortcut!=null&&(se.shortcut=J.shortcut),k(J.value,se)}xe&&a&&a(J.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const J=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},J?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const O=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((J,re="partial")=>I({name:"setValueFromView",value:J,selectionState:re})),W=mt((J,re,ce)=>I({name:"setValueFromShortcut",value:J,changeImportance:re??"accept",shortcut:ce})),Z=mt((J,re)=>I({name:"setValueFromField",value:J,context:re})),X=mt(J=>{y(J),f==null||f(J)}),j={onClear:O,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:Z,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:J=>{const re=o({adapter:x,value:J,props:T({},e,{value:J,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},C5e=["className","sx"],$5e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Re(e,C5e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=Dh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&rd(V)?z+1:z,0),[m,c]),I=E[x],O=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Zn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Zn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:O,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function rI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const S5e=(e,t)=>{const[n,r]=$.useState(rI);return Zn(()=>{const a=()=>{r(rI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},_5e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=S5e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},_L=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};_L(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const EL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=w5e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=$5e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=_5e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function PL(e){return tt("MuiPickersLayout",e)}const ew=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),E5e=["onAccept","onClear","onCancel","onSetToday","actions"];function P5e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Re(e,E5e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return R.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return R.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return R.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return R.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return R.jsx(Z0,T({},i,{children:l}))}const T5e=["items","changeImportance","isLandscape","onChange","isValid"],k5e=["getValue"];function R5e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Re(e,T5e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Re(s,k5e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return R.jsx(Y2,T({dense:!0,sx:[{maxHeight:l1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>R.jsx(A9,{children:R.jsx(v9,T({},s))},s.label))}))}function O5e(e){return e.view!==null}const D5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},PL,t)},M5e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Mh(w),k=S??C,I=D5e(e),O=(t=E==null?void 0:E.actionBar)!=null?t:P5e,F=zt({elementType:O,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=R.jsx(O,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=O5e(z)&&G?R.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?R.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:R5e,X=zt({elementType:Z,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&Z?R.jsx(Z,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},I5e=M5e,A5e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},PL,n)},TL=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${ew.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${ew.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${ew.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));TL.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const N5e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),kL=function(t){const n=Ze({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=I5e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=A5e(m);return R.jsxs(TL,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,R.jsx(N5e,{className:b.contentWrapper,children:p==="desktop"?R.jsxs($.Fragment,{children:[o,a]}):R.jsxs($.Fragment,{children:[a,o]})}),i]})},d1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Oh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},bE=({props:e,value:t,adapter:n})=>{const r=Ih({adapter:n,value:t,props:e});return r!==null?r:d1({adapter:n,value:t,props:e})},j5e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),L5e=["children","className","reduceAnimations","slideDirection","transKey","classes"],F5e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,j5e,t)},z5e=he(I2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function V5e(e){const t=Ze({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Re(t,L5e),s=F5e(t),l=rr();if(o)return R.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return R.jsx(z5e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:R.jsx(fCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const RL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Ih({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},B5e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const U5e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],W5e=["ownerState"],H5e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},B5e,t)},OL=(Hp+i1*2)*6,G5e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q5e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Y5e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),K5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Z5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Hp,height:Hp,padding:0,margin:`0 ${i1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),J5e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:OL}),X5e=he(V5e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:OL}),Q5e=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),eNe=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${i1}px 0`,display:"flex",justifyContent:"center"});function tNe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Re(e,U5e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),O=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:j3e,F=zt({elementType:O,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Re(F,W5e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return R.jsx(O,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function nNe(e){const t=Ze({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>R.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:O,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=H5e(t),W=rr().direction==="rtl",Z=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=RL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),J=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":J(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":J(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=ip({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});J($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=ip({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});J($e||ge),De.preventDefault();break}case"Home":J(V.startOfWeek(Be)),De.preventDefault();break;case"End":J(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":J(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":J(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>J(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?ip({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return R.jsx(Y5e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=Z==null?void 0:Z(we,De))!=null?ge:we},we+Be.toString())})]}),s?R.jsx(J5e,{className:Y.loadingContainer,children:p()}):R.jsx(X5e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:R.jsx(Q5e,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>R.jsxs(eNe,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[O&&R.jsx(Z5e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>R.jsx(tNe,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const rNe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},oNe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(rNe(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=RL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},aNe=["ownerState"],xE=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Re(x,aNe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:t4e,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?R.jsxs($.Fragment,{children:[R.jsx(q2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:R.jsx(v,T({},g,{onClick:r,children:R.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},iNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],sNe=["inputRef"],lNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],DL=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,iNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,sNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=G3e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,lNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),cNe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},uNe=({props:e,inputRef:t})=>{const n=cNe(e),{forwardedProps:r,internalProps:o}=vE(n,"time");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:d1,valueType:"time"})},dNe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],fNe=["inputRef"],pNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],ML=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Re(i,dNe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,fNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=uNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,pNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),hNe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Zr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Zr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},mNe=({props:e,inputRef:t})=>{const n=hNe(e),{forwardedProps:r,internalProps:o}=vE(n,"date-time");return mE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:fE,validator:bE,valueType:"date-time"})},vNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],gNe=["inputRef"],yNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],IL=$.forwardRef(function(t,n){var r,o,a;const i=Ze({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,vNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:kh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,gNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=mNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,yNe),{InputProps:U,fieldProps:G}=xE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),bNe=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const xNe=e=>{const{classes:t}=e;return Qe({root:["root"]},bNe,t)},wNe=he(I2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function AL(e){const t=Ze({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=xNe(t),s=rr();return o?n:R.jsx(wNe,{className:Ne(i.root,r),children:R.jsx(kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function CNe(e){return tt("MuiPickersMonth",e)}const Cv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),$Ne=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],SNe=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},CNe,r)},_Ne=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),ENe=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cv.disabled}`]:t.disabled},{[`&.${Cv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),PNe=$.memo(function(t){const n=Ze({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Re(n,$Ne),x=$.useRef(null),g=SNe(n);return Zn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),R.jsx(_Ne,T({className:g.root,ownerState:n},v,{children:R.jsx(ENe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function TNe(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const kNe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],RNe=e=>{const{classes:t}=e;return Qe({root:["root"]},TNe,t)};function ONe(e,t){const n=qt(),r=_c(),o=Ze({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Zr(n,o.minDate,r.minDate),maxDate:Zr(n,o.maxDate,r.maxDate)})}const DNe=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:s1,boxSizing:"border-box"}),MNe=$.forwardRef(function(t,n){const r=ONe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Re(r,kNe),{value:I,handleValueChange:O,timezone:F}=Od({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=Ch(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=RNe(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),Z=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>Z||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);O(se)}),J=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>Z!==null&&me!==Z?Z:me)},[Z]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":J((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":J((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":J((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":J((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{J(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return R.jsx(DNe,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:lE(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===Z,Ve=l||N(me);return R.jsx(PNe,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function INe(e){return tt("MuiPickersYear",e)}const $v=et("MuiPickersYear",["root","yearButton","selected","disabled"]),ANe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],NNe=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},INe,r)},jNe=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),LNe=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${$v.disabled}`]:t.disabled},{[`&.${$v.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${$v.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${$v.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FNe=$.memo(function(t){const n=Ze({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Re(n,ANe),x=$.useRef(null),g=NNe(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),R.jsx(jNe,T({className:Ne(g.root,o),ownerState:n},v,{children:R.jsx(LNe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function zNe(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const VNe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],BNe=e=>{const{classes:t}=e;return Qe({root:["root"]},zNe,t)};function UNe(e,t){var n;const r=qt(),o=_c(),a=Ze({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Zr(r,a.minDate,o.minDate),maxDate:Zr(r,a.maxDate,o.maxDate)})}const WNe=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:s1,maxHeight:p4e,boxSizing:"border-box",position:"relative"}),HNe=$.forwardRef(function(t,n){const r=UNe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Re(r,VNe),{value:I,handleValueChange:O,timezone:F}=Od({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=Ch(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=BNe(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),Z=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>Z||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);O(fe)}),J=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>Z!==null&&se!==Z?Z:se)},[Z]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":J(Ce-_),se.preventDefault();break;case"ArrowDown":J(Ce+_),se.preventDefault();break;case"ArrowLeft":J(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":J(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{J(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===Z,Ve=c||N(se);return R.jsx(FNe,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),GNe=e=>tt("MuiPickersCalendarHeader",e),qNe=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),YNe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],KNe=["ownerState"],ZNe=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},GNe,t)},JNe=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),XNe=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),QNe=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),e6e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${qNe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),t6e=he(KAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),n6e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Ze({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Re(s,YNe),I=s,O=ZNe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:e6e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:O.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:t6e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:O.switchViewIcon}),V=Re(z,KNe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=d4e(u,{disableFuture:p,maxDate:b,timezone:E}),Z=f4e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:R.jsxs(JNe,T({},k,{ownerState:I,className:Ne(S,O.root),ref:n,children:[R.jsxs(XNe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:O.labelContainer,children:[R.jsx(AL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:R.jsx(QNe,{id:_,ownerState:I,className:O.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&R.jsx(F,T({},U,{children:R.jsx(G,T({},V))}))]}),R.jsx(kd,{in:y==="day",children:R.jsx(iL,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:Z,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),r6e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const o6e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],a6e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},r6e,t)};function i6e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=$L(),p=Ze({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>R.jsx("span",{children:"..."}),minDate:Zr(c,p.minDate,u.minDate),maxDate:Zr(c,p.maxDate,u.maxDate)})}const s6e=he(c1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:l1}),l6e=he(AL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),NL=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Qa(),l=i6e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:O,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:J,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Re(l,o6e),{value:se,handleValueChange:Ce,timezone:fe}=Od({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=Dh({view:k,views:I,openTo:O,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=oNe({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:n6e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?ip({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?ip({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&e$(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=a6e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return R.jsxs(s6e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[R.jsx(Le,T({},ne)),R.jsx(l6e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:R.jsxs("div",{children:[Ve==="year"&&R.jsx(HNe,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&R.jsx(MNe,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&R.jsx(nNe,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:J}))]})})]}))});function c6e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const u6e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],d6e=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},c6e,t)},f6e=he(gE,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p6e=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),h6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Re(r,u6e),u=qt(),f=Er(),p=d6e(r),m=$.useMemo(()=>{if(!o)return s;const v=qp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return R.jsx(f6e,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:R.jsx(p6e,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function jL(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Ze({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Mh(l.components);return T({},l,{localeText:c},sE({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Zr(i,l.minDate,s.minDate),maxDate:Zr(i,l.maxDate,s.maxDate),slots:T({toolbar:h6e},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const m6e=["props","getOpenDialogAriaText"],v6e=["ownerState"],g6e=["ownerState"],wE=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Re(e,m6e);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),O=Qa(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=EL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Z=(r=c.inputAdornment)!=null?r:q2,X=zt({elementType:Z,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Re(X,v6e),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Re(q,g6e),N=c.openPickerIcon,B=c.field,J=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:O},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(J.InputProps=T({},J.InputProps,{ref:I,[`${j.position}Adornment`]:R.jsx(Z,T({},j,{children:R.jsx(K,T({},D,{children:R.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},J.slots),ce=(a=c.layout)!=null?a:kL,xe=sn(k,J.inputRef,g);let me=O;F&&(x?me=`${O}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:O}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>R.jsxs(Rh,{localeText:_,children:[R.jsx(B,T({},J,{slots:re,slotProps:ue,inputRef:xe})),R.jsx(i5e,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:R.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:Z,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>R.jsx(NL,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:Z,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),LL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=jL(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:qp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:aL,field:DL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Dd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=wE({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Ih});return p()});LL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const y6e=["props","getOpenDialogAriaText"],CE=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Re(e,y6e);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Qa(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:O,fieldProps:F}=EL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:V3e(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:kL,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>R.jsxs(Rh,{localeText:y,children:[R.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),R.jsx(K3e,T({},k,{open:E,slots:s,slotProps:W,children:R.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:O()}))}))]})}},FL=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=jL(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:qp(s,l,!1),slots:T({field:DL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Dd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=CE({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Ih});return f()});FL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const b6e=["desktopModeMediaQuery"],x6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,b6e);return Ph(o,{defaultMatches:!0})?R.jsx(LL,T({ref:n},a)):R.jsx(FL,T({ref:n},a))});function w6e(e){return tt("MuiTimePickerToolbar",e)}const sp=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),C6e=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],$6e=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,w6e,r)},S6e=he(gE,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_6e=he(yE,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),zL=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${sp.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${sp.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));zL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const VL=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${sp.ampmLabel}`]:t.ampmLabel},{[`&.${sp.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${sp.ampmLabel}`]:{fontSize:17}}));VL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function E6e(e){const t=Ze({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Re(t,C6e),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=a1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=$6e(T({},C,{theme:v})),S=R.jsx(_6e,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return R.jsxs(S6e,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[R.jsxs(zL,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&R.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&R.jsxs(VL,{className:_.ampmSelection,ownerState:C,children:[R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function BL(e,t){var n,r,o,a,i;const s=qt(),l=Ze({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Mh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},sE({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:E6e},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>R.jsx(c3e,{view:e,onViewChange:t,focusedView:n&&rd(n)?n:null,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),UL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(g3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),r$=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(R3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(rd),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),P6e=["views","format"],WL=(e,t)=>{let{views:n,format:r}=t,o=Re(t,P6e);if(r)return r;const a=[],i=[];if(n.forEach(c=>{rd(c)?i.push(c):a.push(c)}),i.length===0)return qp(e,T({views:a},o),!1);if(a.length===0)return ay(e,T({views:i},o));const s=ay(e,T({views:i},o));return`${qp(e,T({views:a},o),!1)} ${s}`},T6e=(e,t,n)=>n?t.filter(r=>!Ms(r)||r==="hours"):e?[...t,"meridiem"]:t,k6e=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function HL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=k6e(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:T6e(t,r,i)}}const GL=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=BL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=HL(f),v=p?UL:r$,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===r$.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:ay(u,f),views:p?["hours"]:C,slots:T({field:ML,openPickerIcon:XAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Dd(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=wE({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:d1});return S()});GL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const qL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=BL(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:ay(l,c),slots:T({field:ML},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Dd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=CE({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:d1});return m()});qL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const R6e=["desktopModeMediaQuery"],O6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,R6e);return Ph(o,{defaultMatches:!0})?R.jsx(GL,T({ref:n},a)):R.jsx(qL,T({ref:n},a))});function D6e(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const M6e=e=>Nu(e)?"date":"time",I6e=e=>e==="date"?"day":"hours",A6e=e=>{const{classes:t}=e;return Qe({root:["root"]},D6e,t)},N6e=he(t1,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Qv.indicator}`]:{bottom:"auto",top:0}}})),j6e=function(t){const n=Ze({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=R.jsx(QAe,{}),onViewChange:o,timeIcon:a=R.jsx(e4e,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=A6e(n),u=(f,p)=>{o(I6e(p))};return s?null:R.jsxs(N6e,{ownerState:n,variant:"fullWidth",value:M6e(i),onChange:u,className:c.root,children:[R.jsx(Up,{value:"date","aria-label":l.dateTableLabel,icon:R.jsx($.Fragment,{children:r})}),R.jsx(Up,{value:"time","aria-label":l.timeTableLabel,icon:R.jsx($.Fragment,{children:a})})]})};function L6e(e){return tt("MuiDateTimePickerToolbar",e)}const tw=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),F6e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],z6e=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,L6e,t)},YL=he(gE,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));YL.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const V6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),KL=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),B6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));KL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const oI=he(yE,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),U6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${tw.ampmLabel}`]:t.ampmLabel},{[`&.${tw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${tw.ampmLabel}`]:{fontSize:17}}));function W6e(e){const t=Ze({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Re(t,F6e),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=a1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=z6e(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),O=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return R.jsxs(YL,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[R.jsxs(V6e,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&R.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&R.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:O})]}),R.jsxs(KL,{className:k.timeContainer,ownerState:x,children:[R.jsxs(B6e,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&R.jsxs($.Fragment,{children:[R.jsx(oI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&R.jsxs($.Fragment,{children:[R.jsx(oI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?Nf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&R.jsxs(U6e,{className:k.ampmSelection,ownerState:x,children:[R.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),R.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&R.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:Nf})]})]}))}function ZL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Ze({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Mh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,sE({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Zr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Zr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:W6e,tabs:j6e},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const H6e=he("div")({display:"flex",margin:"0 auto"}),Rl=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:Z,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:J,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ms(e)?e:"hours",onViewChange:t,focusedView:r&&Ms(r)?r:null,onFocusedViewChange:o,views:n.filter(Ms),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return R.jsxs($.Fragment,{children:[R.jsxs(H6e,{children:[R.jsx(NL,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:Z,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:J,displayWeekNumber:re,timezone:ce}),se>0&&R.jsxs($.Fragment,{children:[R.jsx(vM,{orientation:"vertical"}),Ce?UL(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ms(r)?"hours":null,sx:T({width:"auto",[`&.${d3e.root}`]:{maxHeight:l1}},Array.isArray(N)?N:[N])})):r$(T({},De,{view:Ms(e)?e:"hours",views:n.filter(Ms),focusedView:r&&Ms(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${x3e.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&R.jsx(vM,{})]})},JL=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=ZL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=HL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Rl,month:Rl,year:Rl,hours:Rl,minutes:Rl,seconds:Rl,meridiem:Rl}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:WL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:IL,openPickerIcon:aL},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Dd(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=wE({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:bE});return S()});JL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const XL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=ZL(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:WL(c,u),ampmInClock:p,slots:T({field:IL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Dd(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=CE({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:bE});return b()});XL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Pd,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const G6e=["desktopModeMediaQuery"],q6e=$.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=hE}=r,a=Re(r,G6e);return Ph(o,{defaultMatches:!0})?R.jsx(JL,T({ref:n},a)):R.jsx(XL,T({ref:n},a))});var QL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(QL);var Y6e=QL.exports;const K6e=Vt(Y6e);var e8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var Z=b(Q)(Y),X=Z.year,j=Z.month,K=Z.day,q=Z.hours,D=Z.minutes,N=Z.seconds,B=Z.milliseconds,J=Z.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return J?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*J.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(e8);var Z6e=e8.exports;const J6e=Vt(Z6e);var t8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(t8);var X6e=t8.exports;const Q6e=Vt(X6e);var n8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(n8);var eje=n8.exports;const tje=Vt(eje);xr.extend(J6e);xr.extend(Q6e);xr.extend(tje);const nje=_L(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),rje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},oje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},nw=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),aI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),aje=(e,t)=>t?(...n)=>e(...n).locale(t):e;class $E{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=rje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(nw);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(nw);if(!this.hasTimezonePlugin())throw new Error(aI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(nje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(nw);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(aI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=aje((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},oje,n),xr.extend(K6e)}}var SE={},ije=Cc;Object.defineProperty(SE,"__esModule",{value:!0});var r8=SE.default=void 0,sje=ije($c()),lje=R,cje=(0,sje.default)((0,lje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");r8=SE.default=cje;const uje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=j6(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=t0(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},dje=vn(3,w6);var fje=f1e(uje);class o8 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=zIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&p6(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const pje=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=t0(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(o8,{schema:e,combinatorKeyword:p,path:o}),M.createElement(t1,{value:c,onChange:f},m.map(b=>M.createElement(Up,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};fj(pje);const hje=he(Rd)({borderBottom:"none"}),Yp=({children:e,...t})=>M.createElement(hje,Object.assign({},t),e),mje=he(x9)(({theme:e})=>({color:e.palette.error.main})),a8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(mje,{badgeContent:e.split(` -`).length},M.createElement(oE,{color:"inherit"}))),vje={paddingLeft:0,paddingRight:0},gje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Yp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(a8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Yp,{align:"right",style:vje},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large"},M.createElement(nE,null)))):null)}),iI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},i8=(e,t,n,r,o)=>{if(t.type==="object")return s8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Vy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},s8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],yje=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Yp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),bje=M.memo(function({title:t}){return M.createElement(Rd,null,t)}),xje=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=V_(J9(E_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},sI=e=>({type:"Control",scope:e,label:!1}),wje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Yp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:sI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:sI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),Cje=e=>{const t=xc(),n=xje(t,e),r=Mt(n.errors);return M.createElement(wje,Object.assign({},n,{isValid:r}))},$je=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},i8(Cje,t,e,c,u),c?M.createElement(Yp,{style:l?iI.fixedCell:iI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(o1,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(r1,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(n1,null))))):null)},Sje=M.memo($je),_je=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(yje,{numColumns:s8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,wd(e).map(m=>{const b=cr.compose(t,`${m}`);return M.createElement(Sje,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let Eje=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?i8(bje,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(Y9,null,M.createElement(Z9,null,M.createElement(gje,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Rd,null):null)),M.createElement(K9,null,M.createElement(_je,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const Pje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(K0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(H2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(J0,null,M.createElement(W2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(Z0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),Tje=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(Eje,Object.assign({},e,{openDeleteDialog:c})),M.createElement(Pje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};n0(Tje);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},l8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,O=!To(r,t,S,w.showUnfocusedDescription),F=O?t:y?null:n,U=O&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(O2e,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(kh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!O},F),M.createElement(pr,{error:!y},U))},_E=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(ePe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});aE.extend(DAe);const EE=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=aE(r).format(n);t(e,o)},PE=(e,t)=>{if(!e)return null;const n=aE(e,t);return n.toString()==="Invalid Date"?null:n},kje=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),Rje=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},kje(t,n,r,o,i,s))),Ah=M.memo(Rje),c8=e=>function(n){const r=xc(),o=Sd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},Oje=e=>e.target.value,Ec=(e,t,n,r,o=Oje,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(aj(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},Dje={"enum.none":"None"},Mje=e=>e===""?void 0:parseInt(e,10),Ije=e=>Mje(e.target.value),u8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,Ije);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),Aje=e=>e===""?void 0:parseFloat(e),Nje=e=>Aje(e.target.value),d8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,Nje);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),jje=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(ms,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),Lje=e=>e.target.value===""?void 0:e.target.value,f8=M.memo(function(t){var O,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,Lje),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(O=k.jsonforms)==null?void 0:O.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(ms,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(q2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(tL,{style:I}))),inputComponent:v})}),Fje=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(ms,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),f1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",Dje["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(H9,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(oy,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(oy,{value:v.value,key:v.value},v.label))))}),p8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(nMe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),zje=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement(Eh,{component:"fieldset"},M.createElement(P9,{row:!0},o.map((u,f)=>{const p=cr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(X0,{id:u.value,key:u.value,control:M.createElement(_E,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));g1e(zje);const Vje=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>gh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var Bje=p1e(Vje);const Uje=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=t0(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,ss(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,ss,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(o8,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(t1,{value:b,onChange:E},C.map(k=>M.createElement(Up,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(K0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(H2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(J0,null,M.createElement(W2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(Z0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},Wje=vn(3,$6);var Hje=d1e(Uje);const Gje=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));mj(Gje);const h8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(zMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(a8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(nE,null))))))))}),qje=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(A9,{button:!0,selected:n,onClick:o(e)},M.createElement(qke,null,M.createElement(y9,{"aria-label":"Index"},e+1)),M.createElement(tRe,{primary:t}),r&&M.createElement(I9,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(n1,null))));var Yje=h1e(qje);const Kje=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>ss(t),[ss]),S=$.useMemo(()=>gh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(h8,{translations:x,label:Xy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(Y2,null,f>0?rL(wd(f),k=>M.createElement(Yje,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};n0(Kje);const Md=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement(Eh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(D9,{htmlFor:o+"-input",error:!m,required:Qy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},Zje=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),Jje=e=>e.find(t=>t.type==="string"&&t.enum===void 0),Xje=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=Zje(u.anyOf),m=Jje(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(ms,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Qje extends sj{render(){return M.createElement(Md,Object.assign({},this.props,{input:Xje}))}}uo(Qje);const e9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(X0,{label:n,id:r,control:M.createElement(_E,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(e9e);const t9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(X0,{label:n,id:r,control:M.createElement(p8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(t9e);const n9e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(x6e,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};uo(n9e);const r9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(q6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(r9e);const o9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:f1})):M.createElement(l8,Object.assign({},e,{isValid:a}))};o2(ul(M.memo(o9e)),!1);const a9e=e=>M.createElement(Md,Object.assign({},e,{input:u8}));uo(a9e);const i9e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(kh,{required:Qy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};uo(i9e);const s9e=e=>M.createElement(Md,Object.assign({},e,{input:d8}));uo(s9e);const l9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Md,Object.assign({},e,{input:f1})):M.createElement(l8,Object.assign({},e,{isValid:a}))};a2(ul(M.memo(l9e)),!1);const m8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement(Eh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(G2,{htmlFor:a,error:!x,component:"legend",required:Qy(s,g.hideRequiredAsterisk)},i),M.createElement(uOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(X0,{value:C.value,key:C.label,control:M.createElement(sOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},c9e=e=>M.createElement(m8,Object.assign({},e));a2(c9e);const u9e=e=>M.createElement(m8,Object.assign({},e));o2(u9e);const d9e=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement(Eh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(G2,{htmlFor:o,error:!x,component:"legend",required:Qy(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(WOe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};uo(d9e);const f9e=e=>M.createElement(Md,Object.assign({},e,{input:f8}));uo(f9e);const p9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>EE(p,m,C),[p,m,C]),I=PE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Rh,{dateAdapter:$E},M.createElement(O6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(p9e);const rw={float:"right"},h9e=e=>{const[t]=$.useState(q6("expand-panel"));$.useEffect(()=>()=>{Y6(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>gh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(LCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(g$e,{expandIcon:M.createElement(r8,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(y9,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:rw,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(o1,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:rw,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(r1,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:rw,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(n1,null))))))))),M.createElement(WCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},m9e=M.memo(h9e),v9e=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(m6(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(v6(o,n),o)))},[e])}),g9e=e=>function({ctx:n,props:r}){const o=v9e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Hye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},y9e=e=>_r(g9e(e));var b9e=y9e(m9e);const x9e={marginBottom:"10px"},w9e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(bEe,{style:x9e},!Mt(o)&&M.createElement(AEe,{title:o}),M.createElement(_Ee,null,M.createElement(Ah,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),C9e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(w9e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};fs(C9e);const $9e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(Ah,Object.assign({},l,{renderers:t,cells:n}))};fs($9e);const S9e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(Ah,Object.assign({},l,{renderers:a,cells:i}))};fs(S9e);const _9e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>_d(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Ky(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(L$e,{position:"static"},M.createElement(t1,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Up,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(Ah,Object.assign({},C,{key:w}))))};c8(ul(fs(_9e)));const E9e=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>ss(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(h8,{translations:C,label:Xy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?rL(wd(s),S=>M.createElement(b9e,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(P9e,Object.assign({visible:e,addItem:r},n)))};n0(T9e);const k9e=e=>M.createElement(_E,Object.assign({},e));hr(k9e);const R9e=e=>M.createElement(p8,Object.assign({},e));hr(R9e);const O9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(ms,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(O9e);const D9e=e=>M.createElement(f1,Object.assign({},e));hj(ul(M.memo(D9e)),!1);const M9e=e=>M.createElement(u8,Object.assign({},e));hr(M9e);const I9e=e=>M.createElement(d8,Object.assign({},e));hr(I9e);const A9e=e=>M.createElement(jje,Object.assign({},e));hr(A9e);const N9e=e=>M.createElement(f1,Object.assign({},e));v1e(ul(M.memo(N9e)),!1);const j9e=e=>M.createElement(f8,Object.assign({},e));hr(j9e);const L9e=e=>M.createElement(Fje,Object.assign({},e));hr(L9e);const F9e=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>_d(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Ky(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(GDe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(sDe,{key:_[E]},M.createElement(DDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(Ah,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};c8(ul(fs(F9e)));var z9e=Array.prototype,V9e=z9e.join;function B9e(e,t){return e==null?"":V9e.call(e,t)}var U9e=B9e;const v8=Vt(U9e);var W9e=xd,g8=W9e("filter",$N);g8.placeholder=gc();var H9e=g8;const lI=Vt(H9e);var G9e=xd,y8=G9e("map",nL);y8.placeholder=gc();var q9e=y8;const cI=Vt(q9e);var ow,uI;function Y9e(){if(uI)return ow;uI=1;var e=AS(),t=FS,n=IS(),r=sN(),o=lr,a=lN(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Ng(e,o=>o.name===t);return TC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>v8(lp(e)(t,n)," "),oLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],aLe={styles:oLe},iLe=M.createContext(aLe),sLe=()=>$.useContext(iLe),TE=()=>{const{styles:e}=sLe();return e},Di=e=>function(n){const r=xc(),o=TE(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>lp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${U6(a.scope)}`]);s&&(c=c.concat(lp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>lp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},kE=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=TE(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:lp(a),className:o.join(" ")}))},ei=kE("control.input"),lLe=kE("control.select"),cLe=kE("control.checkbox"),uLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},dLe=vn(2,x6);var fLe=hr(cLe(uLe));const pLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},hLe=vn(2,k6);var mLe=hr(ei(pLe));const vLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},gLe=vn(2,O6);var yLe=hr(ei(vLe));const bLe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",rLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},xLe=vn(2,D_);var wLe=hj(ul(lLe(bLe)));const CLe=e=>e===""?void 0:parseInt(e,10),$Le=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,CLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},SLe=vn(2,_6);var _Le=hr(ei($Le));const ELe=e=>e===""?void 0:Number(e),PLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,ELe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},TLe=vn(2,E6);var kLe=hr(ei(PLe));const RLe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(ei(RLe));const OLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},DLe=vn(4,I6);var MLe=hr(ei(OLe));const ILe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},ALe=vn(1,P6);hr(ei(ILe));const NLe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},jLe=vn(2,T6);hr(ei(NLe));const LLe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},FLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,LLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},zLe=vn(2,R6);var VLe=hr(ei(FLe));class BLe extends sj{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=zy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ku?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},Xy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const ULe=vn(1,Za);var $8=Di(uo(BLe));const S8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=TE(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let O={};return I&&(O={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},Xy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:O},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},WLe=e=>M.createElement(S8,Object.assign({},e)),HLe=vn(3,$n(D_,ds("format","radio")));var GLe=Di(o2(WLe));const qLe=e=>M.createElement(S8,Object.assign({},e)),YLe=vn(3,$n(S6,ds("format","radio")));var KLe=Di(a2(qLe));const{convertToValidClassName:ZLe}=Gg,JLe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>gh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),O=p("array.child.controls.delete"),F=[p("array.control"),ZLe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,ss(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?wd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:O,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},XLe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Gg.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Gg.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(JLe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var QLe=Di(pj(XLe));const e8e=vn(4,I_),RE=e=>e.type==="Categorization",t8e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>RE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),n8e=(e,t)=>t===e?"selected":"",_8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Ky(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>RE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(_8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:n8e(l,t)},M.createElement("span",null,s[c]))))},r8e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class o8e extends ij{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(_8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(r8e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:RE(n)?this.findCategory(n):n}}var a8e=Di(ul(fs(o8e)));const i8e=vn(1,_n("Label")),s8e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var l8e=Di(mj(s8e));const{convertToValidClassName:c8e}=Gg,{or:u8e,isObjectArrayControl:d8e,isPrimitiveArrayControl:f8e,rankWith:p8e}=uye,h8e=p8e(3,u8e(d8e,f8e));class m8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),c8e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,ss(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?fI(hI,lI(S=>r.properties[S].type!=="array"),cI(S=>M.createElement("th",{key:S},r.properties[S].title??nLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=cr.compose(a,`${E}`),I=Ng(f,G=>Bg(G).startsWith(k)),O=u("array.validation"),F=u("array.validation.error"),U=I?[O].concat(F).join(" "):O;return M.createElement("tr",{key:k},r.properties?fI(hI,lI(G=>r.properties[G].type!=="array"),cI(G=>{const z=cr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:cr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},v8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var v8e=Di(pj(m8e));const OE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},g8e=vn(1,_n("Group")),y8e=e=>{const{data:t,...n}=e;return M.createElement(b8e,Object.assign({},n))},b8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),OE(c,t,p,r,o))});var x8e=Di(fs(y8e));const E8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),w8e=vn(1,_n("HorizontalLayout")),C8e=e=>{const{data:t,...n}=e;return M.createElement($8e,Object.assign({},n))},$8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(E8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},OE(l,t,f,s,a))});var S8e=Di(fs(C8e,!1));const _8e=vn(1,_n("VerticalLayout")),E8e=e=>{const{data:t,...n}=e;return M.createElement(P8e,Object.assign({},n))},P8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(E8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},OE(l,t,f,r,a))});var T8e=Di(fs(E8e,!1));const k8e=[{tester:ULe,renderer:$8},{tester:HLe,renderer:GLe},{tester:YLe,renderer:KLe},{tester:e8e,renderer:QLe},{tester:i8e,renderer:l8e},{tester:t8e,renderer:a8e},{tester:h8e,renderer:v8e},{tester:g8e,renderer:x8e},{tester:_8e,renderer:T8e},{tester:w8e,renderer:S8e}],DE=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),R8e=he(Rd)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Kp=({children:e,...t})=>R.jsx(R8e,{...t,children:e}),ME=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),O8e=he(x9)(({theme:e})=>({color:e.palette.error.main})),D8e=({errorMessages:e,id:t})=>R.jsx(wc,{id:t,title:e,children:R.jsx(O8e,{badgeContent:e.split(` -`).length,children:R.jsx(oE,{color:"inherit"})})}),M8e={paddingLeft:0,paddingRight:0},I8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return R.jsxs(hl,{children:[R.jsx(Kp,{colSpan:t,sx:{verticalAlign:"top"},children:R.jsxs("div",{className:"flex items-center gap-2",children:[r&&R.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&R.jsx(D8e,{id:"tooltip-validation",errorMessages:n})]})}),s?R.jsx(Kp,{align:"right",style:M8e,children:R.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:R.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large",sx:{p:1},children:R.jsx(ME,{className:"text-ls-black"})})})}):null]})}),mI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},P8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return T8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Vy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return R.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return R.jsx(e,{...a},n)}},T8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],A8e=({numColumns:e,translations:t})=>R.jsx(hl,{children:R.jsx(Kp,{colSpan:e,children:R.jsx(yn,{align:"center",children:t.noDataMessage})})}),N8e=M.memo(function({title:t}){return R.jsx(Rd,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),j8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=V_(J9(E_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},vI=e=>({type:"Control",scope:e,label:!1}),L8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return R.jsxs(Kp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?R.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:vI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):R.jsx(ic,{schema:r,uischema:vI("#"),path:t,enabled:i,renderers:s,cells:l}),R.jsx(pr,{error:!c,children:!c&&a})]})}),F8e=e=>{const t=xc(),n=j8e(t,e),r=Mt(n.errors);return R.jsx(L8e,{...n,isValid:r})},z8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return R.jsxs(hl,{hover:!0,children:[P8(F8e,t,e,c,u),c?R.jsx(Kp,{style:l?mI.fixedCell:mI.fixedCellSmall,children:R.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?R.jsxs($.Fragment,{children:[R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:R.jsx(o1,{})})}),R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:R.jsx(r1,{})})})]}):null,R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:R.jsx(DE,{className:"text-ls-black"})})})]})}):null]},e)},V8e=M.memo(z8e),B8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return R.jsx(A8e,{numColumns:T8(n).length+1,translations:u});const p=tn({},s,i.options);return R.jsx(M.Fragment,{children:wd(e).map(m=>{const b=cr.compose(t,`${m}`);return R.jsx(V8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class U8e extends M.Component{constructor(){super(...arguments);Zd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?P8(N8e,o,r,u,f):void 0;return R.jsx(Tn,{xsUp:!c,children:R.jsxs(Y9,{children:[R.jsxs(Z9,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[R.jsx(I8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&R.jsxs(hl,{children:[v,u?R.jsx(Rd,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),R.jsx(K9,{children:R.jsx(B8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const W8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return R.jsxs(K0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[R.jsx(H2,{id:"alert-dialog-confirmdelete-title",children:a}),R.jsx(J0,{children:R.jsx(W2,{id:"alert-dialog-confirmdelete-description",children:i})}),R.jsxs(Z0,{children:[R.jsx(Go,{onClick:o,color:"primary",children:l}),R.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),H8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return R.jsx("div",{className:"control",children:R.jsxs(Tn,{xsUp:!l,children:[R.jsx(U8e,{...e,openDeleteDialog:c}),R.jsx(W8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},G8e=vn(11,yc(M_,M6,I_)),k8=n0(H8e),gI=qa("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function ad(e){return R.jsxs("div",{className:qa("grid w-full",e.className),children:[R.jsx("textarea",{id:e.id,className:qa(gI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),R.jsxs("div",{"aria-hidden":!0,className:qa(gI,"pointer-events-none select-none"),children:[e.value," "]})]})}const q8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(ad,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},yI=hr(ei(q8e));function Y8e(e){try{return JSON.parse(e)}catch{return e}}function K8e(e){try{return JSON.stringify(e)}catch{return e}}const Z8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(ad,{value:typeof t=="object"?K8e(t):t??"",onChange:u=>l(s,u===""?void 0:Y8e(u)),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},J8e=hr(ei(Z8e)),X8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function Q8e(e){return typeof e=="object"&&e!=null}function sy(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(Q8e(r))r=r[o];else return}return r}function p1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function eFe(e){const t=e+"CollectionProvider",[n,r]=ky(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=is(b,g.collectionRef);return M.createElement(Op,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=is(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Op,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const tFe=$.createContext(void 0);function R8(e){const t=$.useContext(tFe);return e||t||"ltr"}const sw="rovingFocusGroup.onEntryFocus",nFe={bubbles:!1,cancelable:!0},IE="RovingFocusGroup",[o$,O8,rFe]=eFe(IE),[oFe,D8]=ky(IE,[rFe]),[aFe,iFe]=oFe(IE),sFe=$.forwardRef((e,t)=>$.createElement(o$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(o$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(lFe,T({},e,{ref:t}))))),lFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=is(t,f),m=R8(a),[b=null,v]=nh({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=O8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(sw,y),()=>E.removeEventListener(sw,y)},[y]),$.createElement(aFe,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Zo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:io(e.onMouseDown,()=>{C.current=!0}),onFocus:io(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(sw,nFe);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const O=w().filter(V=>V.focusable),F=O.find(V=>V.active),U=O.find(V=>V.id===b),z=[F,U,...O].filter(Boolean).map(V=>V.ref.current);M8(z)}}C.current=!1}),onBlur:io(e.onBlur,()=>g(!1))})))}),cFe="RovingFocusGroupItem",uFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Nv(),l=a||s,c=iFe(cFe,n),u=c.currentTabStopId===l,f=O8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(o$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Zo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:io(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:io(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:io(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=pFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?hFe(g,y+1):g.slice(y+1)}setTimeout(()=>M8(g))}})})))}),dFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pFe(e,t,n){const r=fFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return dFe[r]}function M8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const mFe=sFe,vFe=uFe,gFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=nh({prop:n,onChange:o,defaultProp:r});return $.createElement(Zo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:io(e.onClick,()=>{e.disabled||s(!i)})}))}),h1="ToggleGroup",[I8,t7e]=ky(h1,[D8]),A8=D8(),yFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(bFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(xFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${h1}\``)}),[N8,j8]=I8(h1),bFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=nh({prop:n,defaultProp:r,onChange:o});return M.createElement(N8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(L8,T({},a,{ref:t})))}),xFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=nh({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(N8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(L8,T({},a,{ref:t})))}),[wFe,CFe]=I8(h1),L8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=A8(n),u=R8(i),f={role:"group",dir:u,...l};return M.createElement(wFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(mFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Zo.div,T({},f,{ref:t}))):M.createElement(Zo.div,T({},f,{ref:t})))}),a$="ToggleGroupItem",$Fe=M.forwardRef((e,t)=>{const n=j8(a$,e.__scopeToggleGroup),r=CFe(a$,e.__scopeToggleGroup),o=A8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(vFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(bI,T({},s,{ref:t}))):M.createElement(bI,T({},s,{ref:t}))}),bI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=j8(a$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(gFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),SFe=yFe,xI=$Fe,_Fe=vn(12,$n(Za,Kr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function wI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function CI(e,t){return typeof e=="string"?[{content:e,type:t}]:wI(e)?[e]:Array.isArray(e)&&e.every(wI)?e:null}function $I(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const EFe=uo(e=>{const t=e.data??[];return e3("onSuccess",n=>{if(!p1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=sy(n.input,r.input??""),a=sy(n.output,r.output??""),i=CI(o,"human"),s=CI(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:R.jsx(ME,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=cr.compose(e.path,`${r}`),a=n.type??"chat",i=$I((s=n.additional_kwargs)==null?void 0:s.function_call);return R.jsxs("div",{className:"control group",children:[R.jsxs("div",{className:"flex items-start justify-between gap-2",children:[R.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(cr.compose(o,"type"),p.target.value)},children:[R.jsx("option",{value:"human",children:"Human"}),R.jsx("option",{value:"ai",children:"AI"}),R.jsx("option",{value:"system",children:"System"}),R.jsx("option",{value:"function",children:"Function"}),R.jsx("option",{value:"chat",children:"Chat"})]}),R.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&R.jsxs(SFe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(cr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(cr.compose(o,"additional_kwargs"),{});break}}},children:[R.jsx(xI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:R.jsx(X8e,{className:"w-4 h-4"})}),R.jsx(xI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:R.jsx(T3,{className:"w-4 h-4"})})]}),R.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:R.jsx(DE,{className:"w-4 h-4"})})]})]}),a==="chat"&&R.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(cr.compose(o,"role"),p.target.value)}}),a==="function"&&R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(cr.compose(o,"name"),p.target.value)}}),a==="ai"&&$I((l=n.additional_kwargs)==null?void 0:l.function_call)?R.jsxs(R.Fragment,{children:[R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),R.jsx(ad,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):R.jsx(ad,{value:n.content,onChange:p=>{e.handleChange(cr.compose(o,"content"),p)}})]},r)})})]})}),PFe=vn(12,$n(Za,Kr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!p1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),TFe=uo(e=>{const t=e.data??[];return e3("onSuccess",n=>{if(!p1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=sy(n.input,r.input??""),a=sy(n.output,r.output??"");typeof o=="string"&&typeof a=="string"&&e.handleChange(e.path,[...t,[o,a]])}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:R.jsx(ME,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=cr.compose(e.path,`${o}`);return R.jsxs("div",{className:"control group relative",children:[R.jsxs("div",{className:"grid gap-3",children:[R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),R.jsx(ad,{value:n,onChange:i=>{e.handleChange(cr.compose(a,"0"),i)}})]}),R.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),R.jsx(ad,{value:r,onChange:i=>{e.handleChange(cr.compose(a,"1"),i)}})]})]}),R.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:R.jsx(DE,{className:"w-4 h-4"})})]},o)})})]})}),kFe=vn(12,$n(Za,Kr(e=>p1(e)?e.extra.widget.type==="base64file":!1))),RFe=uo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return R.jsxs("div",{className:"control",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),R.jsx("input",{type:"file",onChange:t})]})}),OFe=fj(e=>{const t=t0(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return R.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:AE,cells:NE})}),DFe=vn(3,C6),MFe=vn(2,$n(_n("Control"),Ja("object"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),IFe=vn(1,$n(_n("Control"),Ja("object"))),AFe=vn(1,$n(_n("Control"))),AE=[...k8e,{tester:MFe,renderer:Bje},{tester:dje,renderer:fje},{tester:Wje,renderer:Hje},{tester:DFe,renderer:OFe},{tester:G8e,renderer:k8},{tester:IFe,renderer:$8},{tester:_Fe,renderer:EFe},{tester:PFe,renderer:TFe},{tester:kFe,renderer:RFe}],NFe=vn(1,(e,t)=>t.type==="array"),NE=[{tester:dLe,cell:fLe},{tester:hLe,cell:mLe},{tester:gLe,cell:yLe},{tester:xLe,cell:wLe},{tester:SLe,cell:_Le},{tester:TLe,cell:kLe},{tester:DLe,cell:MLe},{tester:jLe,cell:yI},{tester:ALe,cell:yI},{tester:zLe,cell:VLe},{tester:NFe,cell:k8},{tester:AFe,cell:J8e}];function jFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:R.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),R.jsxs("div",{className:"content flex flex-col gap-3",children:[R.jsx(gj,{schema:e.config,data:e.value.data,renderers:AE,cells:NE,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&R.jsx("div",{className:"bg-background rounded-xl",children:R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>R.jsx("li",{children:r.message},o))})]})})]})]})}function LFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify(Eg(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&R.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:Eg(e.input),errors:[]}),children:"Reset"})]}),R.jsx(gj,{schema:e.input,data:e.value.data,renderers:AE,cells:NE,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>R.jsx("li",{children:o.message},a))})]})]})]})}const FFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function zFe(e){return R.jsx("button",{type:"button",className:qa("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?R.jsxs(R.Fragment,{children:[R.jsxs("div",{role:"status",children:[R.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),R.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),R.jsx("span",{className:"sr-only",children:"Loading..."})]}),R.jsx("span",{className:"text-white",children:"Stop"})]}):R.jsxs(R.Fragment,{children:[R.jsx(FFe,{className:"flex-shrink-0"}),R.jsx("span",{className:"text-white",children:"Start"})]})})}function VFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,O=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(O,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var O=t-(I-o.current),F=v?Math.min(O,x-(I-a.current)):O;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function BFe(e,t){return e===t}function SI(e){return typeof e=="function"?function(){return e}:e}function UFe(e,t,n){var r,o,a=n&&n.equalityFn||BFe,i=(r=$.useState(SI(e)),o=r[1],[r[0],$.useCallback(function(f){return o(SI(f))},[])]),s=i[0],l=i[1],c=VFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function WFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return R.jsxs(R.Fragment,{children:[R.jsx(LFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,R.jsx("div",{className:"flex-grow md:hidden"}),R.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[R.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),R.jsx(qH,{config:e.configData.data,children:R.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[R.jsx(_B,{className:"flex-shrink-0"})," ",R.jsx("span",{children:"Share"})]})}),R.jsx(zFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function HFe(e){const t=nS(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),o=fU(),[a,i]=UFe(n.data,500),s=hU(a!==e.configSchema.defaults?a:void 0),{context:l,callbacks:c}=zU(),{startStream:u,stopStream:f,latest:p}=FU(c);return R.jsxs(Q4.Provider,{value:l,children:[R.jsx(jFe,{config:e.configSchema.schema,value:n,onChange:r}),R.jsx("div",{className:qa("flex flex-col flex-grow gap-4 w-full transition-opacity",(s.isLoading||i.isPending())&&"opacity-50 pointer-events-none"),children:s.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:s.error.toString()})}):R.jsx(R.Fragment,{children:s.data!=null?R.jsx(WFe,{configSchema:e.configSchema,inputSchema:s.data,configData:n,startStream:u,stopStream:f,children:p&&R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words relative group",children:[R.jsx(MG,{streamed:p.streamed_output}),o.data&&p.id?R.jsx("div",{className:"absolute right-4 top-4 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(j3,{runId:p.id},p.id)}):null]}),R.jsx(RG,{latest:p,feedbackEnabled:!!o.data})]})}):null})})]})}function GFe(){const e=pU();return e.isLoading?null:e.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":R.jsx(HFe,{configSchema:e.data})}function qFe(){return R.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:R.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[R.jsxs("h1",{className:"text-2xl text-left",children:[R.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),R.jsx(GFe,{})]})})}var F8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(F8);var YFe=F8.exports;const KFe=Vt(YFe);var z8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(z8);var ZFe=z8.exports;const JFe=Vt(ZFe);xr.extend(JFe);xr.extend(KFe);lw.createRoot(document.getElementById("root")).render(R.jsx(qFe,{})); +`));const t=$.useMemo(()=>T({},KAe,e.localeText),[e.localeText]);return $.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>Sc().utils,_c=()=>Sc().defaultDates,Er=()=>Sc().localeText,ml=e=>{const t=qt(),n=$.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},JAe=or(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ZAe=or(R.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),XAe=or(R.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),iL=or(R.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),QAe=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),e4e=or(R.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),t4e=or(R.jsxs($.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),n4e=or(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function r4e(e){return tt("MuiPickersArrowSwitcher",e)}et("MuiPickersArrowSwitcher",["root","spacer","button"]);const o4e=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],a4e=["ownerState"],i4e=["ownerState"],s4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),l4e=he("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),GM=he(nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),c4e=e=>{const{classes:t}=e;return Qe({root:["root"],spacer:["spacer"],button:["button"]},r4e,t)},sL=$.forwardRef(function(t,n){var r,o,a,i;const l=rr().direction==="rtl",c=Je({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,S=Re(c,o4e),E=c,k=c4e(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},O={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:GM,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:T({},E,{hidden:O.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:GM,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),V=(a=p==null?void 0:p.leftArrowIcon)!=null?a:ZAe,Y=zt({elementType:V,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Re(Y,a4e),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:XAe,J=zt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Re(J,i4e);return R.jsxs(s4e,T({ref:n,className:Ne(k.root,f),ownerState:E},S,{children:[R.jsx(F,T({},U,{children:l?R.jsx(W,T({},X)):R.jsx(V,T({},Q))})),u?R.jsx(yn,{variant:"subtitle1",component:"span",children:u}):R.jsx(l4e,{className:k.spacer,ownerState:E}),R.jsx(G,T({},z,{children:l?R.jsx(V,T({},Q)):R.jsx(W,T({},X))}))]}))}),gi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),lE=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},lL=["hours","minutes","seconds"],od=e=>lL.includes(e),Ms=e=>lL.includes(e)||e==="meridiem",u4e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Hp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,d4e=(e,t,n,r)=>{const o=Hp(r.getHours(e),t,n);return r.setHours(e,o)},qM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Mh=(e,t)=>(n,r)=>e?t.isAfter(n,r):qM(n,t)>qM(r,t),sy=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return gi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:gi(n,["minutes"])?o.minutes:gi(n,["seconds"])?o.seconds:gi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:gi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function Ih({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=$.useRef(n),f=$.useRef(o),p=$.useRef(o.includes(n)?n:o[0]),[m,b]=$r({name:"useViews",state:"view",controlled:r,default:p.current}),v=$.useRef(a?m:null),[x,g]=$r({name:"useViews",state:"focusedView",controlled:i,default:v.current});$.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(O=>!o.includes(O)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((O,F)=>{g(F?O:U=>O===U?null:U),s==null||s(O,F)}),S=mt(O=>{O!==m&&(b(O),_(O,!0),t&&t(O))}),E=mt(()=>{C&&S(C),_(C,!0)}),k=mt((O,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(O,F?"partial":"finish",U),F&&(S(F),_(F,!0))});return{view:m,setView:S,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function f4e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function p4e(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return $.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function i1(e,t,n,r){const o=qt(),a=u4e(e,o),i=$.useCallback(s=>{const l=e==null?null:d4e(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Gp=36,s1=2,l1=320,h4e=280,c1=334,cL=232,jf=48,u1=he("div")({overflow:"hidden",width:l1,maxHeight:c1,display:"flex",flexDirection:"column",margin:"0 auto"});function m4e(e){return tt("MuiTimeClock",e)}et("MuiTimeClock",["root","arrowSwitcher"]);const ad=220,Si=36,qp={x:ad/2,y:ad/2},uL={x:qp.x,y:0},v4e=uL.x-qp.x,g4e=uL.y-qp.y,y4e=e=>e*(180/Math.PI),dL=(e,t,n)=>{const r=t-qp.x,o=n-qp.y,a=Math.atan2(v4e,g4e)-Math.atan2(r,o);let i=y4e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},b4e=(e,t,n=1)=>{const r=n*6;let{value:o}=dL(r,e,t);return o=o*n%60,o},x4e=(e,t,n)=>{const{value:r,distance:o}=dL(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Qe({root:["root"],thumb:["thumb"]},w4e,t)},S4e=he("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),_4e=he("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Si/2}px)`,border:`${(Si-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function E4e(e){const t=Je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Re(t,C4e),s=$.useRef(o);$.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=$4e(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*ad),transform:`rotateZ(${p}deg)`}};return R.jsx(S4e,T({style:u(),className:Ne(n,c.root),ownerState:l},i,{children:R.jsx(_4e,{ownerState:l,className:c.thumb})}))}function P4e(e){return tt("MuiClock",e)}et("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const sp=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},T4e=(e,t)=>t==null||!e.isValid(t)?null:t,Jr=(e,t,n)=>t==null||!e.isValid(t)?n:t,k4e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),cE=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},t$=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},uE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ua=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},R4e=["year","month","day"],Nu=e=>R4e.includes(e),Yp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return gi(n,["year"])?o.year:gi(n,["month"])?o.month:gi(n,["day"])?o.dayOfMonth:gi(n,["month","year"])?`${o.month} ${o.year}`:gi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},O4e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},D4e=e=>{const{classes:t}=e;return Qe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},P4e,t)},M4e=he("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),I4e=he("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),A4e=he("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),N4e=he("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),j4e=he("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),L4e=he(nr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),F4e=he(nr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Si},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),YM=he(yn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function z4e(e){const t=Je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=Er(),_=$.useRef(!1),S=D4e(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},O=(J,X)=>{let{offsetX:j,offsetY:K}=J;if(j===void 0){const D=J.target.getBoundingClientRect();j=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?b4e(j,K,u):x4e(j,K,!!n);I(q,X)},F=J=>{_.current=!0,O(J,"shallow")},U=J=>{_.current&&(O(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&O(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),O(J.nativeEvent,"finish")},V=$.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=$.useRef(null);Jn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return R.jsxs(M4e,{className:Ne(g,S.root),children:[R.jsxs(I4e,{className:S.clock,children:[R.jsx(N4e,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:S.squareMask}),!E&&R.jsxs($.Fragment,{children:[R.jsx(j4e,{className:S.pin}),i!=null&&R.jsx(E4e,{type:m,viewValue:b,isInner:k,hasSelected:V})]}),R.jsx(A4e,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:S.wrapper,children:a})]}),n&&r&&R.jsxs($.Fragment,{children:[R.jsx(L4e,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:S.amButton,title:Ua(w,"am"),children:R.jsx(YM,{variant:"caption",className:S.meridiemText,children:Ua(w,"am")})}),R.jsx(F4e,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,title:Ua(w,"pm"),children:R.jsx(YM,{variant:"caption",className:S.meridiemText,children:Ua(w,"pm")})})]})]})}function V4e(e){return tt("MuiClockNumber",e)}const $v=et("MuiClockNumber",["root","selected","disabled"]),B4e=["className","disabled","index","inner","label","selected"],U4e=e=>{const{classes:t,selected:n,disabled:r}=e;return Qe({root:["root",n&&"selected",r&&"disabled"]},V4e,t)},W4e=he("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${$v.disabled}`]:t.disabled},{[`&.${$v.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:Si,width:Si,position:"absolute",left:`calc((100% - ${Si}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${$v.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${$v.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function fL(e){const t=Je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Re(t,B4e),c=t,u=U4e(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(ad-Si-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return R.jsx(W4e,T({className:Ne(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(ad-Si)/2}px`},ownerState:c},l,{children:i}))}const H4e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(R.jsx(fL,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},KM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return R.jsx(fL,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},dE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=$.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=$.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=$.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Dd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=$r({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return dE({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},La={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},G4e=e=>Math.max(...e.map(t=>{var n;return(n=La[t.type])!=null?n:1})),_f=(e,t,n)=>{if(t===La.year)return e.startOfYear(n);if(t===La.month)return e.startOfMonth(n);if(t===La.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():_f(t,n,uE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=_f(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=_f(t,n,e.maxDate));const s=Mh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=_f(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:t$(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=_f(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:t$(t,i,e.maxTime))),i},pL=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Y4e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},d1=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},hL=(e,t,n,r)=>{switch(n){case"month":return cE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return d1(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},mL=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?mL(e,a,o.maxLength):a},K4e=(e,t,n,r,o,a,i)=>{const s=Y4e(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>vL(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=hL(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},fE=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Su=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),gL=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},JM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),yL=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,bL=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return yL(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},Z4e=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},ZM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=pL(e,w),_=bL(e,t,C.contentType,C.type,w),S=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if(S)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=mL(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:J4e(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:S,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=Z4e(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],S=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!S&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):S&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let S=_;return s&&S!==null&&S.includes(" ")&&(S=`⁩${S}⁦`),a==="spacious"&&["/",".","-"].includes(S)&&(S=` ${S} `),S};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},X4e=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=fE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},e3e=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=cE(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:yL(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=d1(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},t3e=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=d1(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},XM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},QM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>XM[i.type]-XM[s.type]).reduce((i,s)=>!a||s.modified?t3e(e,t,s,n,i):i,o),n3e=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,r3e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},o3e=["value","referenceDate"],Sr={emptyValue:null,getTodayValue:uE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Re(e,o3e);return t!=null&&r.utils.isValid(t)?t:n??q4e(r)},cleanValue:T4e,areValuesEqual:k4e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},pE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:gL(o(t),r),getValueStrFromSections:Q4e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Ah=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},hE=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=$.useMemo(()=>Sr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:La.day,timezone:o,getTodayDate:()=>uE(n,o,"date")}),[]);return e??a},a3e=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],i3e=e=>{const{classes:t}=e;return Qe({root:["root"],arrowSwitcher:["arrowSwitcher"]},m4e,t)},s3e=he(u1,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),l3e=he(sL,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),c3e=["hours","minutes"],u3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,showViewSwitcher:E,onChange:k,view:I,views:O=c3e,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:V,disabled:Y,readOnly:Q,timezone:W}=o,J=Re(o,a3e),X=u??Ah(l),j=f??c,{value:K,handleValueChange:q,timezone:D}=Dd({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:Sr}),N=hE({value:K,referenceDate:b,utils:r,props:o,timezone:D}),B=Er(),Z=ml(D),{view:re,setView:ce,previousView:xe,nextView:me,setValueAndGoToNextView:ue}=Ih({view:I,views:O,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:se,handleMeridiemChange:Ce}=i1(N,a,ue),fe=$.useCallback((ge,we)=>{const $e=Mh(v,r),He=we==="hours"||we==="minutes"&&O.includes("seconds"),Ye=({start:je,end:ze})=>!(g&&$e(g,ze)||x&&$e(je,x)||y&&$e(je,Z)||w&&$e(Z,He?ze:je)),Me=(je,ze=1)=>{if(je%ze!==0||_!=null&&_(je,we))return!1;if(S)switch(we){case"hours":return!S(r.setHours(N,je),"hours");case"minutes":return!S(r.setMinutes(N,je),"minutes");case"seconds":return!S(r.setSeconds(N,je),"seconds");default:return!1}return!0};switch(we){case"hours":{const je=Hp(ge,se,a),ze=r.setHours(N,je),Pe=r.setSeconds(r.setMinutes(ze,0),0),Te=r.setSeconds(r.setMinutes(ze,59),59);return!Ye({start:Pe,end:Te})||!Me(je)}case"minutes":{const je=r.setMinutes(N,ge),ze=r.setSeconds(je,0),Pe=r.setSeconds(je,59);return!Ye({start:ze,end:Pe})||!Me(ge,C)}case"seconds":{const je=r.setSeconds(N,ge);return!Ye({start:je,end:je})||!Me(ge)}default:throw new Error("not supported")}},[a,N,v,x,se,g,C,_,S,r,y,w,Z,O]),Ve=Qa(),Ue=$.useMemo(()=>{switch(re){case"hours":{const ge=(we,$e)=>{const He=Hp(we,se,a);ue(r.setHours(N,He),$e)};return{onChange:ge,viewValue:r.getHours(N),children:H4e({value:K,utils:r,ampm:a,onChange:ge,getClockNumberText:B.hoursClockNumberText,isDisabled:we=>Y||fe(we,"hours"),selectedId:Ve})}}case"minutes":{const ge=r.getMinutes(N),we=($e,He)=>{ue(r.setMinutes(N,$e),He)};return{viewValue:ge,onChange:we,children:KM({utils:r,value:ge,onChange:we,getClockNumberText:B.minutesClockNumberText,isDisabled:$e=>Y||fe($e,"minutes"),selectedId:Ve})}}case"seconds":{const ge=r.getSeconds(N),we=($e,He)=>{ue(r.setSeconds(N,$e),He)};return{viewValue:ge,onChange:we,children:KM({utils:r,value:ge,onChange:we,getClockNumberText:B.secondsClockNumberText,isDisabled:$e=>Y||fe($e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,se,ue,N,fe,Ve,Y]),De=o,Be=i3e(De);return R.jsxs(s3e,T({ref:n,className:Ne(Be.root,V),ownerState:De},J,{children:[R.jsx(z4e,T({autoFocus:s??!!G,ampmInClock:i&&O.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:fe,meridiemMode:se,handleMeridiemChange:Ce,selectedId:Ve,disabled:Y,readOnly:Q},Ue)),E&&R.jsx(l3e,{className:Be.arrowSwitcher,slots:X,slotProps:j,onGoToPrevious:()=>ce(xe),isPreviousDisabled:!xe,previousLabel:B.openPreviousView,onGoToNext:()=>ce(me),isNextDisabled:!me,nextLabel:B.openNextView,ownerState:De})]}))});function d3e(e){return tt("MuiDigitalClock",e)}const f3e=et("MuiDigitalClock",["root","list","item"]),p3e=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],h3e=e=>{const{classes:t}=e;return Qe({root:["root"],list:["list"],item:["item"]},d3e,t)},m3e=he(u1,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:cL})),v3e=he(J2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),g3e=he(iy,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),y3e=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=$.useRef(null),l=sn(n,s),c=Je({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:S,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:O,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:V,focusedView:Y,onFocusedViewChange:Q,className:W,disabled:J,readOnly:X,views:j=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Re(c,p3e),{value:N,handleValueChange:B,timezone:Z}=Dd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Sr}),re=Er(),ce=ml(Z),xe=$.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),me=h3e(xe),ue=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:g3e,se=zt({elementType:ue,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:me.item}),Ce=hE({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),fe=mt(ge=>B(ge,"finish","hours")),{setValueAndGoToNextView:Ve}=Ih({view:G,views:j,openTo:z,onViewChange:V,onChange:fe,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(ge=>{Ve(ge,"finish")});$.useEffect(()=>{if(s.current===null)return;const ge=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ge)return;const we=ge.offsetTop;s.current.scrollTop=we-4});const De=$.useCallback(ge=>{const we=Mh(C,i),$e=()=>!(S&&we(S,ge)||_&&we(ge,_)||E&&we(ge,ce)||k&&we(ce,ge)),He=()=>i.getMinutes(ge)%I!==0||O!=null&&O(i.toJsDate(ge).getTime(),"hours")?!1:F?!F(ge,"hours"):!0;return!$e()||!He()},[C,i,S,_,E,ce,k,I,O,F]),Be=$.useMemo(()=>{const ge=i.startOfDay(Ce);return[ge,...Array.from({length:Math.ceil(24*60/f)-1},(we,$e)=>i.addMinutes(ge,f*($e+1)))]},[Ce,f,i]);return R.jsx(m3e,T({ref:l,className:Ne(me.root,W),ownerState:xe},D,{children:R.jsx(v3e,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:me.list,children:Be.map(ge=>{if(K&&De(ge))return null;const we=i.isEqual(ge,N);return R.jsx(ue,T({onClick:()=>!X&&Ue(ge),selected:we,disabled:J||De(ge),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},se,{children:i.format(ge,u?"fullTime12h":"fullTime24h")}),i.toISO(ge))})})}))});function b3e(e){return tt("MuiMultiSectionDigitalClock",e)}et("MuiMultiSectionDigitalClock",["root"]);function x3e(e){return tt("MuiMultiSectionDigitalClock",e)}const w3e=et("MuiMultiSectionDigitalClock",["root","item"]),C3e=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],$3e=e=>{const{classes:t}=e;return Qe({root:["root"],item:["item"]},x3e,t)},S3e=he(J2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:cL,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),_3e=he(iy,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:jf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),E3e=$.forwardRef(function(t,n){var r;const o=$.useRef(null),a=sn(n,o),i=$.useRef(null),s=Je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Re(s,C3e),w=$.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=$3e(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:_3e;return $.useEffect(()=>{if(o.current===null)return;const S=o.current.querySelector('[role="option"][aria-selected="true"]');if(!S||i.current===S){i.current!==S&&(i.current=S);return}i.current=S,b&&l&&S.focus();const E=S.offsetTop;o.current.scrollTop=E-4}),R.jsx(S3e,T({ref:a,className:Ne(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map(S=>{var E,k;if(g&&(E=S.isDisabled)!=null&&E.call(S,S.value))return null;const I=S.isSelected(S.value);return R.jsx(_,T({onClick:()=>!p&&c(S.value),selected:I,disabled:f||((k=S.isDisabled)==null?void 0:k.call(S,S.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":S.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:S.label}),S.label)})}))}),P3e=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},eI=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},T3e=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],k3e=e=>{const{classes:t}=e;return Qe({root:["root"]},b3e,t)},R3e=he(u1,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),O3e=$.forwardRef(function(t,n){const r=qt(),o=Je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:S,onChange:E,view:k,views:I=["hours","minutes"],openTo:O,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:V,readOnly:Y,skipDisabled:Q=!1,timezone:W}=o,J=Re(o,T3e),{value:X,handleValueChange:j,timezone:K}=Dd({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:E,valueManager:Sr}),q=Er(),D=ml(K),N=$.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),B=hE({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,$e,He)=>j(we,$e,He)),re=$.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:ce,setValueAndGoToView:xe,focusedView:me}=Ih({view:k,views:re,openTo:O,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ue=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:se,handleMeridiemChange:Ce}=i1(B,a,ue,"finish"),fe=$.useCallback((we,$e)=>{const He=Mh(v,r),Ye=$e==="hours"||$e==="minutes"&&re.includes("seconds"),Me=({start:ze,end:Pe})=>!(g&&He(g,Pe)||x&&He(ze,x)||y&&He(ze,D)||w&&He(D,Ye?Pe:ze)),je=(ze,Pe=1)=>{if(ze%Pe!==0||_!=null&&_(ze,$e))return!1;if(S)switch($e){case"hours":return!S(r.setHours(B,ze),"hours");case"minutes":return!S(r.setMinutes(B,ze),"minutes");case"seconds":return!S(r.setSeconds(B,ze),"seconds");default:return!1}return!0};switch($e){case"hours":{const ze=Hp(we,se,a),Pe=r.setHours(B,ze),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Me({start:Te,end:it})||!je(ze)}case"minutes":{const ze=r.setMinutes(B,we),Pe=r.setSeconds(ze,0),Te=r.setSeconds(ze,59);return!Me({start:Pe,end:Te})||!je(we,C)}case"seconds":{const ze=r.setSeconds(B,we);return!Me({start:ze,end:ze})||!je(we)}default:throw new Error("not supported")}},[a,B,v,x,se,g,C,_,S,r,y,w,D,re]),Ve=mt((we,$e)=>{const He=re.indexOf(we),Ye=re[He+1];xe($e,Ye,we)}),Ue=$.useCallback(we=>{switch(we){case"hours":return{onChange:$e=>{const He=Hp($e,se,a);Ve("hours",r.setHours(B,He))},items:P3e({now:D,value:X,ampm:a,utils:r,isDisabled:$e=>V||fe($e,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:$e=>{Ve("minutes",r.setMinutes(B,$e))},items:eI({value:r.getMinutes(B),isDisabled:$e=>V||fe($e,"minutes"),resolveLabel:$e=>r.format(r.setMinutes(D,$e),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:$e=>{Ve("seconds",r.setSeconds(B,$e))},items:eI({value:r.getSeconds(B),isDisabled:$e=>V||fe($e,"seconds"),resolveLabel:$e=>r.format(r.setSeconds(D,$e),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const $e=Ua(r,"am"),He=Ua(r,"pm");return{onChange:Ce,items:[{value:"am",label:$e,isSelected:()=>!!X&&se==="am",ariaLabel:$e},{value:"pm",label:He,isSelected:()=>!!X&&se==="pm",ariaLabel:He}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,se,Ve,B,V,fe,Ce]),De=$.useMemo(()=>re.reduce((we,$e)=>T({},we,{[$e]:Ue($e)}),{}),[re,Ue]),Be=o,ge=k3e(Be);return R.jsx(R3e,T({ref:n,className:Ne(ge.root,z),ownerState:Be,role:"group"},J,{children:Object.entries(De).map(([we,$e])=>R.jsx(E3e,{items:$e.items,onChange:$e.onChange,active:ce===we,autoFocus:s??me===we,disabled:V,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function D3e(e){return tt("MuiPickersDay",e)}const kl=et("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),M3e=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],I3e=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Qe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},D3e,l)},xL=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Gp,height:Gp,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${kl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${kl.disabled}:not(.${kl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.disabled}&.${kl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${s1}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${kl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),wL=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},A3e=he(Sa,{name:"MuiPickersDay",slot:"Root",overridesResolver:wL})(xL),N3e=he("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:wL})(({theme:e,ownerState:t})=>T({},xL({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Ef=()=>{},j3e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=Ef,onBlur:b=Ef,onKeyDown:v=Ef,onMouseDown:x=Ef,onMouseEnter:g=Ef,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:S=!1}=r,E=Re(r,M3e),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:S}),I=I3e(k),O=qt(),F=$.useRef(null),U=sn(F,n);Jn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=V=>{x(V),y&&V.preventDefault()},z=V=>{s||p(i),y&&V.currentTarget.focus(),f&&f(V)};return y&&!C?R.jsx(N3e,{className:Ne(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):R.jsx(A3e,T({className:Ne(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:V=>v(V,i),onFocus:V=>m(V,i),onBlur:V=>b(V,i),onMouseEnter:V=>g(V,i),onClick:z,onMouseDown:G},E,{ownerState:k,children:_||O.format(i,"dayOfMonth")}))}),L3e=$.memo(j3e);function CL(e,t,n,r){const{value:o,onError:a}=e,i=Sc(),s=$.useRef(r),l=t({adapter:i,value:o,props:e});return $.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const F3e=e=>{const t=qt(),n=Er(),r=Sc(),a=rr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:S,handleValueChange:E}=dE({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=$.useMemo(()=>e3e(t,_),[t,_]),I=$.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,B=>ZM(t,_,n,v,B,x,w,a)),[s,v,n,a,w,t,x,_]),O=$.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=$.useState(()=>{const D=I(S),N={sections:D,value:S,referenceValue:i.emptyValue,tempValueStrAndroid:null},B=G4e(D),Z=i.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:B,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=$r({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),V=D=>{z(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=$.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:B})=>{U(re=>T({},re,{sections:B,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},W=(D,N)=>{const B=[...F.sections];return B[D]=T({},B[D],{value:N,modified:!0}),gL(B,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(me=>me.value!=="").length===1,re=W(Y.startIndex,""),ce=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(me=>T({},me,xe,{sections:re,tempValueStrAndroid:null}))},j=D=>{const N=(re,ce)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const me=ZM(t,_,n,v,xe,x,w,a);return QM(t,_,xe,me,ce,!1)},B=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,B,F.referenceValue);Q({value:B,referenceValue:Z,sections:I(B,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:B})=>{B&&Y&&Y.startIndexT({},se,me,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return $.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),$.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,S)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,S):D=!0,D&&U(N=>T({},N,{value:S,referenceValue:s.updateReferenceValue(t,S,N.referenceValue),sections:I(S)}))},[S]),{state:F,selectedSectionIndexes:Y,setSelectedSections:V,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:j,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:O,timezone:_}},z3e=5e3,nu=e=>e.saveQuery!=null,V3e=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=$.useState(null),l=mt(()=>s(null));$.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),$.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),z3e);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!nu(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return nu(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),nu(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=S=>hL(a,o,y.type,S);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&pL(a,w).contentType==="letter"){const S=_(w),E=b(w,S,g);return nu(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>JM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:vL(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=bL(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(nu(w))return w;const C=JM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(nu(y))return y;const w=d1(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function lu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const B3e=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ly=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ly(t.shadowRoot):t:null},mE="@media (pointer: fine)",U3e=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],vE=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=F3e(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:S,onPaste:E,error:k,clearable:I,onClear:O,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,V=Re(e.forwardedProps,U3e),{applyCharacterEditing:Y,resetCharacterQuery:Q}=V3e({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=$.useRef(null),J=sn(m,W),X=$.useRef(void 0),K=rr().direction==="rtl",q=$.useMemo(()=>r3e(n.sections,K),[n.sections,K]),D=()=>{var ge;if(v){o(null);return}const we=(ge=W.current.selectionStart)!=null?ge:0;let $e;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?$e=1:$e=n.sections.findIndex(Ye=>Ye.startInInput-Ye.startSeparator.length>we);const He=$e===-1?n.sections.length-1:$e-1;o(He)},N=mt((ge,...we)=>{ge.isDefaultPrevented()||(y==null||y(ge,...we),D())}),B=mt(ge=>{S==null||S(ge),ge.preventDefault()}),Z=mt((...ge)=>{C==null||C(...ge);const we=W.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...ge)=>{_==null||_(...ge),o(null)}),ce=mt(ge=>{if(E==null||E(ge),v){ge.preventDefault();return}const we=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const $e=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(we),Ye=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if($e.contentType==="letter"&&He||$e.contentType==="digit"&&Ye||$e.contentType==="digit-with-letter"&&Me)return;if(He||Ye){ge.preventDefault();return}}ge.preventDefault(),Q(),l(we)}),xe=mt(ge=>{if(v)return;const we=ge.target.value,$e=ge.nativeEvent.data,He=$e&&$e.length>1,Ye=He?$e:we,Me=Su(Ye);if(r==null||He){l(He?$e:Me);return}let je;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Me.length===1)je=Me;else{const ze=Su(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Le=0;Leit.end)return;const gt=Me.length-ze.length+it.end-Su(it.endSeparator||"").length;je=Me.slice(it.start+Su(it.startSeparator||"").length,gt)}if(n3e()&&je.length===0){c(Ye);return}Y({keyPressed:je,sectionIndex:r.startIndex})}),me=mt(ge=>{switch(w==null||w(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],$e=U.getActiveDateManager(t,n,we),He=K4e(t,p,we,ge.key,u,$e.date,{minutesStep:g});s({activeSection:we,newSectionValue:He,shouldGoToNextSection:!1});break}}});Jn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],we=n.sections[r.endIndex];let $e=ge.startInInput,He=we.endInInput;if(r.shouldSelectBoundarySelectors&&($e-=ge.startSeparator.length,He+=we.endSeparator.length),$e!==W.current.selectionStart||He!==W.current.selectionEnd){const Ye=W.current.scrollTop;W.current===ly(document)&&W.current.setSelectionRange($e,He),W.current.scrollTop=Ye}});const ue=CL(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),se=$.useMemo(()=>k!==void 0?k:G.hasError(ue),[G,ue,k]);$.useEffect(()=>{!se&&!r&&Q()},[n.referenceValue,r,se]),$.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),$.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const Ce=$.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),fe=$.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Ve=W.current&&W.current===ly(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),De=!Ve&&Ue;$.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,we;const $e=(ge=W.current.selectionStart)!=null?ge:0,He=(we=W.current.selectionEnd)!=null?we:0;if($e===0&&He===0)return null;const Ye=$e<=n.sections[0].startInInput?1:n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>$e);return Ye===-1?n.sections.length-1:Ye-1},setSelectedSections:ge=>o(ge)}));const Be=mt((ge,...we)=>{var $e;ge.preventDefault(),O==null||O(ge,...we),a(),W==null||($e=W.current)==null||$e.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},V,{value:De?"":Ce,inputMode:fe,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:ce,onChange:xe,onKeyDown:me,onMouseUp:B,onClear:Be,error:se,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},Nh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Jr(n.utils,e.minDate,n.defaultDates.minDate),f=Jr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},n$=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],r$=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],$L=["minDateTime","maxDateTime"],W3e=[...n$,...r$,...$L],Md=e=>W3e.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),H3e=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],gE=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return H3e.forEach(o),t==="date"?n$.forEach(o):t==="time"?r$.forEach(o):t==="date-time"&&(n$.forEach(o),r$.forEach(o),$L.forEach(o)),{forwardedProps:n,internalProps:r}},G3e=e=>{var t,n,r;const o=qt(),a=_c();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Jr(o,e.minDate,a.minDate),maxDate:Jr(o,e.maxDate,a.maxDate)})},q3e=({props:e,inputRef:t})=>{const n=G3e(e),{forwardedProps:r,internalProps:o}=gE(n,"date");return vE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:pE,validator:Nh,valueType:"date"})},Y3e=he(J0)({[`& .${ap.container}`]:{outline:0},[`& .${ap.paper}`]:{outline:0,minWidth:l1}}),K3e=he(X0)({"&:first-of-type":{padding:0}});function J3e(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:Y3e,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Rd;return R.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:R.jsx(K3e,{children:r})}))}function Z3e(e){return tt("MuiPickersPopper",e)}et("MuiPickersPopper",["root","paper"]);const X3e="@media (prefers-reduced-motion: reduce)",ju=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),tI=ju&&ju[1]?parseInt(ju[1],10):null,nI=ju&&ju[2]?parseInt(ju[2],10):null,Q3e=tI&&tI<10||nI&&nI<13||!1,SL=()=>kh(X3e,{defaultMatches:!1})||Q3e,e5e=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],t5e=e=>{const{classes:t}=e;return Qe({root:["root"],paper:["paper"]},Z3e,t)},n5e=he(Ph,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),r5e=he(hs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function o5e(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vn(o.current);if(!o.current||"clientX"in l&&o5e(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return $.useEffect(()=>{if(e){const l=Vn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),$.useEffect(()=>{if(e){const l=Vn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const i5e=$.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Re(e,e5e),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return R.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function s5e(e){var t,n,r,o;const a=Je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;$.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=$.useRef(null);$.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=ly(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=a5e(p,u??f),S=$.useRef(null),E=sn(S,l),k=sn(E,w),I=a,O=t5e(I),F=SL(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?Rd:oy,V=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:o9,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:r5e,Q=(o=v==null?void 0:v.popper)!=null?o:n5e,W=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:O.root,ownerState:a});return R.jsx(Q,T({},W,{children:({TransitionProps:J,placement:X})=>R.jsx(V,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:R.jsx(z,T({},J,x==null?void 0:x.desktopTransition,{children:R.jsx(i5e,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:O.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function _L(e){return tt("MuiPickersToolbar",e)}et("MuiPickersToolbar",["root","content"]);const l5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},_L,t)},c5e=he("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),u5e=he("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),yE=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=l5e(c);return s?null:R.jsxs(c5e,{ref:n,className:Ne(u.root,a),ownerState:c,children:[R.jsx(yn,{color:"text.secondary",variant:"overline",id:l,children:i}),R.jsx(u5e,{className:u.content,ownerState:c,children:o})]})});function d5e(e){return tt("MuiPickersToolbarText",e)}const rI=et("MuiPickersToolbarText",["root","selected"]),f5e=["className","selected","value"],p5e=e=>{const{classes:t,selected:n}=e;return Qe({root:["root",n&&"selected"]},d5e,t)},h5e=he(yn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${rI.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${rI.selected}`]:{color:(e.vars||e).palette.text.primary}})),bE=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Re(r,f5e),s=p5e(r);return R.jsx(h5e,T({ref:n,className:Ne(o,s.root),component:"span"},i,{children:a}))}),m5e=["align","className","selected","typographyClassName","value","variant","width"],v5e=e=>{const{classes:t}=e;return Qe({root:["root"]},_L,t)},g5e=he(Go,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zo=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Re(r,m5e),p=v5e(r);return R.jsx(g5e,T({variant:"text",ref:n,className:Ne(a,p.root)},u?{sx:{width:u}}:{},f,{children:R.jsx(bE,{align:o,className:s,variant:c,value:l,selected:i})}))}),y5e=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,a]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=$.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},b5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},x5e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},w5e=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},C5e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=$.useRef(l),{current:b}=$.useRef(s!==void 0),v=qt(),x=Sc(),[g,y]=$r({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=y5e(e),[_,S]=$.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=dE({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});CL(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ue=>!t.areValuesEqual(v,Z.value,ue),isControlled:b,closeOnSelect:c},ce=b5e(re),xe=x5e(re),me=w5e(re);if(S(ue=>T({},ue,{draft:Z.value,lastPublishedValue:ce?Z.value:ue.lastPublishedValue,lastCommittedValue:xe?Z.value:ue.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const se={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(se.shortcut=Z.shortcut),k(Z.value,se)}xe&&a&&a(Z.value),me&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);S(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const O=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),V=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),W=mt((Z,re,ce)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:ce})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),j={onClear:O,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:V,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=$.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},B=T({},j,{value:q,onChange:Q,onSelectShortcut:W,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:B,actions:j}},$5e=["className","sx"],S5e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Re(e,$5e),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=Ih({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:S,viewModeLookup:E}=$.useMemo(()=>c.reduce((z,V)=>{let Y;return p?Y="field":m[V]!=null?Y="UI":Y="field",z.viewModeLookup[V]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=$.useMemo(()=>c.reduce((z,V)=>m[V]!=null&&od(V)?z+1:z,0),[m,c]),I=E[x],O=mt(()=>I==="UI"),[F,U]=$.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Jn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Jn(()=>{if(!i)return;let z=x;I==="field"&&F!=null&&(z=F),z!==y&&E[z]==="UI"&&E[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:S,shouldRestoreFocus:O,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function oI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const _5e=(e,t)=>{const[n,r]=$.useState(oI);return Jn(()=>{const a=()=>{r(oI())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},E5e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=_5e(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},EL=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};EL(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const PL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=C5e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=S5e({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=E5e({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function TL(e){return tt("MuiPickersLayout",e)}const tw=et("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),P5e=["onAccept","onClear","onCancel","onSetToday","actions"];function T5e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Re(e,P5e),s=Er();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return R.jsx(Go,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return R.jsx(Go,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return R.jsx(Go,{onClick:t,children:s.okButtonLabel},c);case"today":return R.jsx(Go,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return R.jsx(Z0,T({},i,{children:l}))}const k5e=["items","changeImportance","isLandscape","onChange","isValid"],R5e=["getValue"];function O5e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Re(e,k5e);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Re(s,R5e);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return R.jsx(K2,T({dense:!0,sx:[{maxHeight:c1,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>R.jsx(N9,{children:R.jsx(g9,T({},s))},s.label))}))}function D5e(e){return e.view!==null}const M5e=e=>{const{classes:t,isLandscape:n}=e;return Qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},TL,t)},I5e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:S}=e,E=_??Ah(w),k=S??C,I=M5e(e),O=(t=E==null?void 0:E.actionBar)!=null?t:T5e,F=zt({elementType:O,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=R.jsx(O,T({},F)),G=E==null?void 0:E.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),V=D5e(z)&&G?R.jsx(G,T({},z)):null,Y=y,Q=E==null?void 0:E.tabs,W=l&&Q?R.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:O5e,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),j=l&&J?R.jsx(J,T({},X)):null;return{toolbar:V,content:Y,tabs:W,actionBar:U,shortcuts:j}},A5e=I5e,N5e=e=>{const{isLandscape:t,classes:n}=e;return Qe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},TL,n)},kL=he("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${tw.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${tw.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${tw.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));kL.propTypes={as:L.elementType,ownerState:L.shape({isLandscape:L.bool.isRequired}).isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const j5e=he("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),RL=function(t){const n=Je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=A5e(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=N5e(m);return R.jsxs(kL,{ref:f,sx:l,className:Ne(c,b.root),ownerState:m,children:[u?s:r,u?r:s,R.jsx(j5e,{className:b.contentWrapper,children:p==="desktop"?R.jsxs($.Fragment,{children:[o,a]}):R.jsxs($.Fragment,{children:[a,o]})}),i]})},f1=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=Mh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},xE=({props:e,value:t,adapter:n})=>{const r=Nh({adapter:n,value:t,props:e});return r!==null?r:f1({adapter:n,value:t,props:e})},L5e=e=>tt("MuiPickersSlideTransition",e),da=et("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),F5e=["children","className","reduceAnimations","slideDirection","transKey","classes"],z5e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Qe(r,L5e,t)},V5e=he(A2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${da["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${da["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${da.slideEnterActive}`]:t.slideEnterActive},{[`.${da.slideExit}`]:t.slideExit},{[`.${da["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${da["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${da["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${da["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${da.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${da.slideExit}`]:{transform:"translate(0%)"},[`& .${da["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${da["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function B5e(e){const t=Je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Re(t,F5e),s=z5e(t),l=rr();if(o)return R.jsx("div",{className:Ne(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return R.jsx(V5e,{className:Ne(s.root,r),childFactory:u=>$.cloneElement(u,{classNames:c}),role:"presentation",children:R.jsx(pCe,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const OL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Sc();return $.useCallback(c=>Nh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},U5e=e=>tt("MuiDayCalendar",e);et("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const W5e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],H5e=["ownerState"],G5e=e=>{const{classes:t}=e;return Qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},U5e,t)},DL=(Gp+s1*2)*6,q5e=he("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y5e=he("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),K5e=he(yn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),J5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Z5e=he(yn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Gp,height:Gp,padding:0,margin:`0 ${s1}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),X5e=he("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:DL}),Q5e=he(B5e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:DL}),eNe=he("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),tNe=he("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${s1}px 0`,display:"flex",justifyContent:"center"});function nNe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Re(e,W5e);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),S=ml(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,S),O=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:L3e,F=zt({elementType:O,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Re(F,H5e),G=$.useMemo(()=>p||l(a),[p,l,a]),z=$.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),V=$.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=$.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return R.jsx(O,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:z,isFirstVisibleCell:V,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function rNe(e){const t=Je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>R.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:S,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:O,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=ml(G),V=qt(),Y=G5e(t),W=rr().direction==="rtl",J=S||((De,Be)=>V.format(Be,"weekdayShort").charAt(0).toUpperCase()),X=OL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),j=Er(),[K,q]=$r({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=$.useState(()=>i||z),B=mt(De=>{u||l(De)}),Z=De=>{X(De)||(n(De),N(De),k==null||k(!0),q(!0))},re=mt((De,Be)=>{switch(De.key){case"ArrowUp":Z(V.addDays(Be,-7)),De.preventDefault();break;case"ArrowDown":Z(V.addDays(Be,7)),De.preventDefault();break;case"ArrowLeft":{const ge=V.addDays(Be,W?1:-1),we=V.addMonths(Be,W?1:-1),$e=sp({utils:V,date:ge,minDate:W?ge:V.startOfMonth(we),maxDate:W?V.endOfMonth(we):ge,isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"ArrowRight":{const ge=V.addDays(Be,W?-1:1),we=V.addMonths(Be,W?-1:1),$e=sp({utils:V,date:ge,minDate:W?V.startOfMonth(we):ge,maxDate:W?ge:V.endOfMonth(we),isDateDisabled:X,timezone:G});Z($e||ge),De.preventDefault();break}case"Home":Z(V.startOfWeek(Be)),De.preventDefault();break;case"End":Z(V.endOfWeek(Be)),De.preventDefault();break;case"PageUp":Z(V.addMonths(Be,1)),De.preventDefault();break;case"PageDown":Z(V.addMonths(Be,-1)),De.preventDefault();break}}),ce=mt((De,Be)=>Z(Be)),xe=mt((De,Be)=>{K&&V.isSameDay(D,Be)&&(k==null||k(!1))}),me=V.getMonth(o),ue=$.useMemo(()=>a.filter(De=>!!De).map(De=>V.startOfDay(De)),[V,a]),se=me,Ce=$.useMemo(()=>$.createRef(),[se]),fe=V.startOfWeek(z),Ve=$.useMemo(()=>{const De=V.startOfMonth(o),Be=V.endOfMonth(o);return X(D)||V.isAfterDay(D,Be)||V.isBeforeDay(D,De)?sp({utils:V,date:D,minDate:De,maxDate:Be,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,V,G]),Ue=$.useMemo(()=>{const De=V.setTimezone(o,G),Be=V.getWeekArray(De);let ge=V.addMonths(De,1);for(;F&&Be.length{Be.length{var ge;const we=V.format(De,"weekdayShort").slice(0,2);return R.jsx(K5e,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(fe,Be),"weekday"),className:Y.weekDayLabel,children:(ge=J==null?void 0:J(we,De))!=null?ge:we},we+Be.toString())})]}),s?R.jsx(X5e,{className:Y.loadingContainer,children:p()}):R.jsx(Q5e,T({transKey:se,onExited:c,reduceAnimations:f,slideDirection:m,className:Ne(r,Y.slideTransition)},b,{nodeRef:Ce,children:R.jsx(eNe,{ref:Ce,role:"rowgroup",className:Y.monthContainer,children:Ue.map((De,Be)=>R.jsxs(tNe,{role:"row",className:Y.weekContainer,"aria-rowindex":Be+1,children:[O&&R.jsx(Z5e,{className:Y.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(V.getWeekNumber(De[0])),children:j.calendarWeekNumberText(V.getWeekNumber(De[0]))}),De.map((ge,we)=>R.jsx(nNe,{parentProps:t,day:ge,selectedDays:ue,focusableDay:Ve,onKeyDown:re,onFocus:ce,onBlur:xe,onDaySelect:B,isDateDisabled:X,currentMonthNumber:me,isViewFocused:K,"aria-colindex":we+1},ge.toString()))]},`week-${De[0]}`))})}))]})}const oNe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},aNe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=ml(p),b=qt(),v=$.useRef(oNe(!!u,i,b)).current,x=$.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Sr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:La.day})},[]),[g,y]=$.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=$.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=$.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=OL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),S=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}},iNe=["ownerState"],wE=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Er(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:nr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Re(x,iNe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:n4e,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?R.jsxs($.Fragment,{children:[R.jsx(Y2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:R.jsx(v,T({},g,{onClick:r,children:R.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},sNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],lNe=["inputRef"],cNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],ML=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,sNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Oh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,lNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=q3e({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,cNe),{InputProps:U,fieldProps:G}=wE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),uNe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},dNe=({props:e,inputRef:t})=>{const n=uNe(e),{forwardedProps:r,internalProps:o}=gE(n,"time");return vE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:pE,validator:f1,valueType:"time"})},fNe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],pNe=["inputRef"],hNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],IL=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Re(i,fNe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:Oh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,pNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=dNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,hNe),{InputProps:U,fieldProps:G}=wE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),mNe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=_c(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Jr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Jr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},vNe=({props:e,inputRef:t})=>{const n=mNe(e),{forwardedProps:r,internalProps:o}=gE(n,"date-time");return vE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Sr,fieldValueManager:pE,validator:xE,valueType:"date-time"})},gNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],yNe=["inputRef"],bNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],AL=$.forwardRef(function(t,n){var r,o,a;const i=Je({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Re(i,gNe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Oh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Re(x,yNe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=vNe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:S,inputMode:E,readOnly:k,clearable:I,onClear:O}=w,F=Re(w,bNe),{InputProps:U,fieldProps:G}=wE({onClear:O,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return R.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:S,ref:C})}))}),xNe=e=>tt("MuiPickersFadeTransitionGroup",e);et("MuiPickersFadeTransitionGroup",["root"]);const wNe=e=>{const{classes:t}=e;return Qe({root:["root"]},xNe,t)},CNe=he(A2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function NL(e){const t=Je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=wNe(t),s=rr();return o?n:R.jsx(CNe,{className:Ne(i.root,r),children:R.jsx(Rd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function $Ne(e){return tt("MuiPickersMonth",e)}const Sv=et("MuiPickersMonth",["root","monthButton","disabled","selected"]),SNe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],_Ne=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},$Ne,r)},ENe=he("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),PNe=he("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Sv.disabled}`]:t.disabled},{[`&.${Sv.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Sv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Sv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),TNe=$.memo(function(t){const n=Je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Re(n,SNe),x=$.useRef(null),g=_Ne(n);return Jn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),R.jsx(ENe,T({className:g.root,ownerState:n},v,{children:R.jsx(PNe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function kNe(e){return tt("MuiMonthCalendar",e)}et("MuiMonthCalendar",["root"]);const RNe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],ONe=e=>{const{classes:t}=e;return Qe({root:["root"]},kNe,t)};function DNe(e,t){const n=qt(),r=_c(),o=Je({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Jr(n,o.minDate,r.minDate),maxDate:Jr(n,o.maxDate,r.maxDate)})}const MNe=he("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:l1,boxSizing:"border-box"}),INe=$.forwardRef(function(t,n){const r=DNe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:S,gridLabelId:E}=r,k=Re(r,RNe),{value:I,handleValueChange:O,timezone:F}=Dd({name:"MonthCalendar",timezone:S,value:a,defaultValue:i,onChange:m,valueManager:Sr}),U=ml(F),G=Sh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:La.month}),[]),Y=r,Q=ONe(Y),W=$.useMemo(()=>z.getMonth(U),[z,U]),J=$.useMemo(()=>I!=null?z.getMonth(I):x?null:z.getMonth(V),[I,z,x,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(me=>{q(me),C&&C(me)}),N=$.useCallback(me=>{const ue=z.startOfMonth(u&&z.isAfter(U,p)?U:p),se=z.startOfMonth(c&&z.isBefore(U,f)?U:f),Ce=z.startOfMonth(me);return z.isBefore(Ce,ue)||z.isAfter(Ce,se)?!0:b?b(Ce):!1},[c,u,f,p,U,b,z]),B=mt((me,ue)=>{if(v)return;const se=z.setMonth(I??V,ue);O(se)}),Z=mt(me=>{N(z.setMonth(I??V,me))||(j(me),D(!0),y&&y(me))});$.useEffect(()=>{j(me=>J!==null&&me!==J?J:me)},[J]);const re=mt((me,ue)=>{switch(me.key){case"ArrowUp":Z((12+ue-3)%12),me.preventDefault();break;case"ArrowDown":Z((12+ue+3)%12),me.preventDefault();break;case"ArrowLeft":Z((12+ue+(G.direction==="ltr"?-1:1))%12),me.preventDefault();break;case"ArrowRight":Z((12+ue+(G.direction==="ltr"?1:-1))%12),me.preventDefault();break}}),ce=mt((me,ue)=>{Z(ue)}),xe=mt((me,ue)=>{X===ue&&D(!1)});return R.jsx(MNe,T({ref:n,className:Ne(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:cE(z,I??V).map(me=>{const ue=z.getMonth(me),se=z.format(me,"monthShort"),Ce=z.format(me,"month"),fe=ue===J,Ve=l||N(me);return R.jsx(TNe,{selected:fe,value:ue,onClick:B,onKeyDown:re,autoFocus:K&&ue===X,disabled:Ve,tabIndex:ue===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===ue?"date":void 0,"aria-label":Ce,monthsPerRow:_,children:se},se)})}))});function ANe(e){return tt("MuiPickersYear",e)}const _v=et("MuiPickersYear",["root","yearButton","selected","disabled"]),NNe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],jNe=e=>{const{disabled:t,selected:n,classes:r}=e;return Qe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},ANe,r)},LNe=he("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),FNe=he("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${_v.disabled}`]:t.disabled},{[`&.${_v.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${_v.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${_v.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),zNe=$.memo(function(t){const n=Je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Re(n,NNe),x=$.useRef(null),g=jNe(n);return $.useEffect(()=>{r&&x.current.focus()},[r]),R.jsx(LNe,T({className:Ne(g.root,o),ownerState:n},v,{children:R.jsx(FNe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function VNe(e){return tt("MuiYearCalendar",e)}et("MuiYearCalendar",["root"]);const BNe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],UNe=e=>{const{classes:t}=e;return Qe({root:["root"]},VNe,t)};function WNe(e,t){var n;const r=qt(),o=_c(),a=Je({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Jr(r,a.minDate,o.minDate),maxDate:Jr(r,a.maxDate,o.maxDate)})}const HNe=he("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:l1,maxHeight:h4e,boxSizing:"border-box",position:"relative"}),GNe=$.forwardRef(function(t,n){const r=WNe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:S,gridLabelId:E}=r,k=Re(r,BNe),{value:I,handleValueChange:O,timezone:F}=Dd({name:"YearCalendar",timezone:S,value:i,defaultValue:s,onChange:b,valueManager:Sr}),U=ml(F),G=Sh(),z=qt(),V=$.useMemo(()=>Sr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:La.year}),[]),Y=r,Q=UNe(Y),W=$.useMemo(()=>z.getYear(U),[z,U]),J=$.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(V),[I,z,g,V]),[X,j]=$.useState(()=>J||W),[K,q]=$r({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(se=>{q(se),C&&C(se)}),N=$.useCallback(se=>{if(f&&z.isBeforeYear(se,U)||u&&z.isAfterYear(se,U)||m&&z.isBeforeYear(se,m)||p&&z.isAfterYear(se,p))return!0;if(!x)return!1;const Ce=z.startOfYear(se);return x(Ce)},[u,f,p,m,U,x,z]),B=mt((se,Ce)=>{if(v)return;const fe=z.setYear(I??V,Ce);O(fe)}),Z=mt(se=>{N(z.setYear(I??V,se))||(j(se),D(!0),y==null||y(se))});$.useEffect(()=>{j(se=>J!==null&&se!==J?J:se)},[J]);const re=mt((se,Ce)=>{switch(se.key){case"ArrowUp":Z(Ce-_),se.preventDefault();break;case"ArrowDown":Z(Ce+_),se.preventDefault();break;case"ArrowLeft":Z(Ce+(G.direction==="ltr"?-1:1)),se.preventDefault();break;case"ArrowRight":Z(Ce+(G.direction==="ltr"?1:-1)),se.preventDefault();break}}),ce=mt((se,Ce)=>{Z(Ce)}),xe=mt((se,Ce)=>{X===Ce&&D(!1)}),me=$.useRef(null),ue=sn(n,me);return $.useEffect(()=>{if(o||me.current===null)return;const se=me.current.querySelector('[tabindex="0"]');if(!se)return;const Ce=se.offsetHeight,fe=se.offsetTop,Ve=me.current.clientHeight,Ue=me.current.scrollTop,De=fe+Ce;Ce>Ve||fe{const Ce=z.getYear(se),fe=Ce===J,Ve=c||N(se);return R.jsx(zNe,{selected:fe,value:Ce,onClick:B,onKeyDown:re,autoFocus:K&&Ce===X,disabled:Ve,tabIndex:Ce===X?0:-1,onFocus:ce,onBlur:xe,"aria-current":W===Ce?"date":void 0,yearsPerRow:_,children:z.format(se,"year")},z.format(se,"year"))})}))}),qNe=e=>tt("MuiPickersCalendarHeader",e),YNe=et("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),KNe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],JNe=["ownerState"],ZNe=e=>{const{classes:t}=e;return Qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},qNe,t)},XNe=he("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),QNe=he("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),e6e=he("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),t6e=he(nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${YNe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),n6e=he(JAe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),r6e=$.forwardRef(function(t,n){var r,o;const a=Er(),i=qt(),s=Je({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:S,timezone:E}=s,k=Re(s,KNe),I=s,O=ZNe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:t6e,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:O.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:n6e,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:O.switchViewIcon}),V=Re(z,JNe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=f4e(u,{disableFuture:p,maxDate:b,timezone:E}),J=p4e(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(j=>j!==y)||C[0]);else{const j=C.indexOf(y)!==0?0:1;g(C[j])}};return C.length===1&&C[0]==="year"?null:R.jsxs(XNe,T({},k,{ownerState:I,className:Ne(S,O.root),ref:n,children:[R.jsxs(QNe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:O.labelContainer,children:[R.jsx(NL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:R.jsx(e6e,{id:_,ownerState:I,className:O.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&R.jsx(F,T({},U,{children:R.jsx(G,T({},V))}))]}),R.jsx(Rd,{in:y==="day",children:R.jsx(sL,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),o6e=e=>tt("MuiDateCalendar",e);et("MuiDateCalendar",["root","viewTransitionContainer"]);const a6e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],i6e=e=>{const{classes:t}=e;return Qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},o6e,t)};function s6e(e,t){var n,r,o,a,i,s,l;const c=qt(),u=_c(),f=SL(),p=Je({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>R.jsx("span",{children:"..."}),minDate:Jr(c,p.minDate,u.minDate),maxDate:Jr(c,p.maxDate,u.maxDate)})}const l6e=he(u1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:c1}),c6e=he(NL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),jL=$.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Qa(),l=s6e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,view:k,views:I,openTo:O,className:F,disabled:U,readOnly:G,minDate:z,maxDate:V,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z,displayWeekNumber:re,yearsPerRow:ce,monthsPerRow:xe,timezone:me}=l,ue=Re(l,a6e),{value:se,handleValueChange:Ce,timezone:fe}=Dd({name:"DateCalendar",timezone:me,value:f,defaultValue:p,onChange:g,valueManager:Sr}),{view:Ve,setView:Ue,focusedView:De,setFocusedView:Be,goToNextView:ge,setValueAndGoToNextView:we}=Ih({view:k,views:I,openTo:O,onChange:Ce,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:$e,calendarState:He,changeFocusedDay:Ye,changeMonth:Me,handleChangeMonth:je,isDateDisabled:ze,onMonthSwitchingAnimationEnd:Pe}=aNe({value:se,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:V,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:fe}),Te=U&&se||z,it=U&&se||V,ct=`${s}-grid-label`,gt=De!==null,Le=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:r6e,ne=zt({elementType:Le,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Ve,currentMonth:He.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>je({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:fe,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=ze(dt)?sp({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(ge(),Me(Et)),Ye(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=ze(dt)?sp({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(V,Yt)?Yt:V,disablePast:v,disableFuture:b,isDateDisabled:ze,timezone:fe}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(ge(),Me(Et)),Ye(kt,!0)}),Se=mt(dt=>Ce(dt&&t$(i,dt,se??$e),"finish"));$.useEffect(()=>{se!=null&&i.isValid(se)&&Me(se)},[se]);const _e=l,Xe=i6e(_e),nt={disablePast:v,disableFuture:b,maxDate:V,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:fe,gridLabelId:ct},_t=$.useRef(Ve);$.useEffect(()=>{_t.current!==Ve&&(De===_t.current&&Be(Ve,!0),_t.current=Ve)},[De,Be,Ve]);const vt=$.useMemo(()=>[se],[se]);return R.jsxs(l6e,T({ref:n,className:Ne(Xe.root,F),ownerState:_e},ue,{children:[R.jsx(Le,T({},ne)),R.jsx(c6e,{reduceAnimations:C,className:Xe.viewTransitionContainer,transKey:Ve,ownerState:_e,children:R.jsxs("div",{children:[Ve==="year"&&R.jsx(GNe,T({},nt,ft,{value:se,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("year",dt),yearsPerRow:ce,referenceDate:$e})),Ve==="month"&&R.jsx(INe,T({},nt,ft,{hasFocus:gt,className:F,value:se,onChange:te,shouldDisableMonth:S,onFocusedViewChange:dt=>Be("month",dt),monthsPerRow:xe,referenceDate:$e})),Ve==="day"&&R.jsx(rNe,T({},He,nt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:Ye,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:Se,shouldDisableDate:_,shouldDisableMonth:S,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>Be("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:j,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:B,renderLoading:Z}))]})})]}))});function u6e(e){return tt("MuiDatePickerToolbar",e)}et("MuiDatePickerToolbar",["root","title"]);const d6e=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],f6e=e=>{const{classes:t}=e;return Qe({root:["root"],title:["title"]},u6e,t)},p6e=he(yE,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h6e=he(yn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),m6e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Re(r,d6e),u=qt(),f=Er(),p=f6e(r),m=$.useMemo(()=>{if(!o)return s;const v=Yp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return R.jsx(p6e,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:R.jsx(h6e,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function LL(e,t){var n,r,o,a;const i=qt(),s=_c(),l=Je({props:e,name:t}),c=$.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Ah(l.components);return T({},l,{localeText:c},lE({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Jr(i,l.minDate,s.minDate),maxDate:Jr(i,l.maxDate,s.maxDate),slots:T({toolbar:m6e},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const v6e=["props","getOpenDialogAriaText"],g6e=["ownerState"],y6e=["ownerState"],CE=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Re(e,v6e);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:S}=i,E=qt(),k=$.useRef(null),I=$.useRef(null),O=Qa(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:V,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:W}=PL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:Y2,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),j=Re(X,g6e),K=(o=c.openPickerButton)!=null?o:nr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(W.value,E),edge:j.position},ownerState:i}),D=Re(q,y6e),N=c.openPickerIcon,B=c.field,Z=zt({elementType:B,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:O},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${j.position}Adornment`]:R.jsx(J,T({},j,{children:R.jsx(K,T({},D,{children:R.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ce=(a=c.layout)!=null?a:RL,xe=sn(k,Z.inputRef,g);let me=O;F&&(x?me=`${O}-label`:me=void 0);const ue=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:O}),popper:T({"aria-labelledby":me},u==null?void 0:u.popper)});return{renderPicker:()=>R.jsxs(Dh,{localeText:_,children:[R.jsx(B,T({},Z,{slots:re,slotProps:ue,inputRef:xe})),R.jsx(s5e,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ue,shouldRestoreFocus:Q,reduceAnimations:S,children:R.jsx(ce,T({},V,ue==null?void 0:ue.layout,{slots:c,slotProps:ue,children:Y()}))}))]})}},ba=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q})=>R.jsx(jL,{view:e,onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:S,defaultCalendarMonth:E,components:k,componentsProps:I,slots:O,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:V,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:X,fixedWeekNumber:j,displayWeekNumber:K,timezone:q}),FL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=LL(t,"MuiDesktopDatePicker"),u=T({day:ba,month:ba,year:ba},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Yp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:iL,field:ML},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},dl((b=c.slotProps)==null?void 0:b.field,m),Md(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=CE({props:f,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Nh});return p()});FL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const b6e=["props","getOpenDialogAriaText"],$E=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Re(e,b6e);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=$.useRef(null),_=Qa(),S=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:O,fieldProps:F}=PL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,S&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:B3e(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},G.slots),V=(r=s.layout)!=null?r:RL,Y=sn(C,G.inputRef,v);let Q=_;S&&(b?Q=`${_}-label`:Q=void 0);const W=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>R.jsxs(Dh,{localeText:y,children:[R.jsx(U,T({},G,{slots:z,slotProps:W,inputRef:Y})),R.jsx(J3e,T({},k,{open:E,slots:s,slotProps:W,children:R.jsx(V,T({},I,W==null?void 0:W.layout,{slots:s,slotProps:W,children:O()}))}))]})}},zL=$.forwardRef(function(t,n){var r,o,a;const i=Er(),s=qt(),l=LL(t,"MuiMobileDatePicker"),c=T({day:ba,month:ba,year:ba},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Yp(s,l,!1),slots:T({field:ML},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},dl((m=l.slotProps)==null?void 0:m.field,p),Md(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=$E({props:u,valueManager:Sr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Nh});return f()});zL.propTypes={autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,minDate:L.any,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","month","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","month","year"]),viewRenderers:L.shape({day:L.func,month:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","month","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const x6e=["desktopModeMediaQuery"],w6e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=mE}=r,a=Re(r,x6e);return kh(o,{defaultMatches:!0})?R.jsx(FL,T({ref:n},a)):R.jsx(zL,T({ref:n},a))});function C6e(e){return tt("MuiTimePickerToolbar",e)}const lp=et("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),$6e=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],S6e=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,C6e,r)},_6e=he(yE,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E6e=he(bE,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),VL=he("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${lp.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${lp.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));VL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const BL=he("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${lp.ampmLabel}`]:t.ampmLabel},{[`&.${lp.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${lp.ampmLabel}`]:{fontSize:17}}));BL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};function P6e(e){const t=Je({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Re(t,$6e),m=qt(),b=Er(),v=rr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=i1(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=S6e(T({},C,{theme:v})),S=R.jsx(E6e,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return R.jsxs(_6e,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[R.jsxs(VL,{className:_.hourMinuteLabel,ownerState:C,children:[lu(c,"hours")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),lu(c,["hours","minutes"])&&S,lu(c,"minutes")&&R.jsx(zo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),lu(c,["minutes","seconds"])&&S,lu(c,"seconds")&&R.jsx(zo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&R.jsxs(BL,{className:_.ampmSelection,ownerState:C,children:[R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ua(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),R.jsx(zo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ua(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function UL(e,t){var n,r,o,a,i;const s=qt(),l=Je({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=$.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:Ah(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},lE({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:P6e},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Lu=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>R.jsx(u3e,{view:e,onViewChange:t,focusedView:n&&od(n)?n:null,onFocusedViewChange:r,views:o.filter(od),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:S,slotProps:E,readOnly:k,disabled:I,sx:O,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),WL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(y3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(od),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),o$=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>R.jsx(O3e,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(od),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:S,readOnly:E,disabled:k,sx:I,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),T6e=["views","format"],HL=(e,t)=>{let{views:n,format:r}=t,o=Re(t,T6e);if(r)return r;const a=[],i=[];if(n.forEach(c=>{od(c)?i.push(c):a.push(c)}),i.length===0)return Yp(e,T({views:a},o),!1);if(a.length===0)return sy(e,T({views:i},o));const s=sy(e,T({views:i},o));return`${Yp(e,T({views:a},o),!1)} ${s}`},k6e=(e,t,n)=>n?t.filter(r=>!Ms(r)||r==="hours"):e?[...t,"meridiem"]:t,R6e=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function GL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=R6e(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:k6e(t,r,i)}}const qL=$.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Er(),u=qt(),f=UL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=GL(f),v=p?WL:o$,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===o$.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:sy(u,f),views:p?["hours"]:C,slots:T({field:IL,openPickerIcon:QAe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},dl((k=f.slotProps)==null?void 0:k.field,E),Md(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:S}=CE({props:_,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:f1});return S()});qL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","meridiem","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,meridiem:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const YL=$.forwardRef(function(t,n){var r,o,a,i;const s=Er(),l=qt(),c=UL(t,"MuiMobileTimePicker"),u=T({hours:Lu,minutes:Lu,seconds:Lu},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:sy(l,c),slots:T({field:IL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},dl((v=c.slotProps)==null?void 0:v.field,b),Md(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=$E({props:p,valueManager:Sr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:f1});return m()});YL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,localeText:L.object,maxTime:L.any,minTime:L.any,minutesStep:L.number,onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,open:L.bool,openTo:L.oneOf(["hours","minutes","seconds"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableTime:L.func,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["hours","minutes","seconds"]),viewRenderers:L.shape({hours:L.func,minutes:L.func,seconds:L.func}),views:L.arrayOf(L.oneOf(["hours","minutes","seconds"]).isRequired)};const O6e=["desktopModeMediaQuery"],D6e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=mE}=r,a=Re(r,O6e);return kh(o,{defaultMatches:!0})?R.jsx(qL,T({ref:n},a)):R.jsx(YL,T({ref:n},a))});function M6e(e){return tt("MuiDateTimePickerTabs",e)}et("MuiDateTimePickerTabs",["root"]);const I6e=e=>Nu(e)?"date":"time",A6e=e=>e==="date"?"day":"hours",N6e=e=>{const{classes:t}=e;return Qe({root:["root"]},M6e,t)},j6e=he(n1,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${tg.indicator}`]:{bottom:"auto",top:0}}})),L6e=function(t){const n=Je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=R.jsx(e4e,{}),onViewChange:o,timeIcon:a=R.jsx(t4e,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Er(),c=N6e(n),u=(f,p)=>{o(A6e(p))};return s?null:R.jsxs(j6e,{ownerState:n,variant:"fullWidth",value:I6e(i),onChange:u,className:c.root,children:[R.jsx(Wp,{value:"date","aria-label":l.dateTableLabel,icon:R.jsx($.Fragment,{children:r})}),R.jsx(Wp,{value:"time","aria-label":l.timeTableLabel,icon:R.jsx($.Fragment,{children:a})})]})};function F6e(e){return tt("MuiDateTimePickerToolbar",e)}const nw=et("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),z6e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],V6e=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Qe(o,F6e,t)},KL=he(yE,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));KL.propTypes={as:L.elementType,classes:L.object,className:L.string,isLandscape:L.bool.isRequired,isMobileKeyboardViewOpen:L.bool,landscapeDirection:L.oneOf(["column","row"]),ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),toggleMobileKeyboardView:L.func,toolbarTitle:L.node,viewType:L.oneOf(["date","time"])};const B6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),JL=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),U6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));JL.propTypes={as:L.elementType,ownerState:L.object.isRequired,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object])};const aI=he(bE,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),W6e=he("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${nw.ampmLabel}`]:t.ampmLabel},{[`&.${nw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${nw.ampmLabel}`]:{fontSize:17}}));function H6e(e){const t=Je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Re(t,z6e),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=i1(o,n,a),C=!!(n&&!r),_=b==="desktop",S=Er(),E=rr(),k=V6e(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),O=$.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return R.jsxs(KL,T({toolbarTitle:S.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[R.jsxs(B6e,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&R.jsx(zo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&R.jsx(zo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:O})]}),R.jsxs(JL,{className:k.timeContainer,ownerState:x,children:[R.jsxs(U6e,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?jf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&R.jsxs($.Fragment,{children:[R.jsx(aI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?jf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&R.jsxs($.Fragment,{children:[R.jsx(aI,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),R.jsx(zo,{variant:_?"h5":"h3",width:_&&!s?jf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&R.jsxs(W6e,{className:k.ampmSelection,ownerState:x,children:[R.jsx(zo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ua(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),R.jsx(zo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ua(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&R.jsx(zo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ua(g,y):"--",width:jf})]})]}))}function ZL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=_c(),v=Je({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=$.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:Ah(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,lE({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Jr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Jr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:H6e,tabs:L6e},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const G6e=he("div")({display:"flex",margin:"0 auto"}),Rl=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:S,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timeViewsCount:se,shouldRenderTimeInASingleColumn:Ce})=>{var fe,Ve;const Ue=!!((fe=dl((Ve=Q==null?void 0:Q.actionBar)!=null?Ve:V==null?void 0:V.actionBar,{}))!=null&&(fe=fe.actions)!=null&&fe.length),De={view:Ms(e)?e:"hours",onViewChange:t,focusedView:r&&Ms(r)?r:null,onFocusedViewChange:o,views:n.filter(Ms),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:z,componentsProps:V,slots:Y,slotProps:Q,readOnly:j,disabled:K,autoFocus:B,disableIgnoringDatePartForTimeValidation:xe,timeSteps:me,skipDisabled:ue,timezone:ce};return R.jsxs($.Fragment,{children:[R.jsxs(G6e,{children:[R.jsx(jL,{view:Nu(e)?e:"day",onViewChange:t,views:n.filter(Nu),focusedView:r&&Nu(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:S,onMonthChange:I,monthsPerRow:O,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:V,slots:Y,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:X,readOnly:j,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:Z,displayWeekNumber:re,timezone:ce}),se>0&&R.jsxs($.Fragment,{children:[R.jsx(gM,{orientation:"vertical"}),Ce?WL(T({},De,{view:"hours",views:["hours"],focusedView:r&&Ms(r)?"hours":null,sx:T({width:"auto",[`&.${f3e.root}`]:{maxHeight:c1}},Array.isArray(N)?N:[N])})):o$(T({},De,{view:Ms(e)?e:"hours",views:n.filter(Ms),focusedView:r&&Ms(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${w3e.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&R.jsx(gM,{})]})},XL=$.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Er(),f=qt(),p=ZL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=GL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:Rl,month:Rl,year:Rl,hours:Rl,minutes:Rl,seconds:Rl,meridiem:Rl}:T({day:ba,month:ba,year:ba,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:HL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:AL,openPickerIcon:iL},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},dl((k=p.slotProps)==null?void 0:k.field,E),Md(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:S}=CE({props:_,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:xE});return S()});XL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,skipDisabled:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),thresholdToRenderTimeInASingleColumn:L.number,timeSteps:L.shape({hours:L.number,minutes:L.number,seconds:L.number}),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,meridiem:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const QL=$.forwardRef(function(t,n){var r,o,a,i,s;const l=Er(),c=qt(),u=ZL(t,"MuiMobileDateTimePicker"),f=T({day:ba,month:ba,year:ba,hours:Lu,minutes:Lu,seconds:Lu},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:HL(c,u),ampmInClock:p,slots:T({field:AL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},dl((x=u.slotProps)==null?void 0:x.field,v),Md(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=$E({props:m,valueManager:Sr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:xE});return b()});QL.propTypes={ampm:L.bool,ampmInClock:L.bool,autoFocus:L.bool,className:L.string,closeOnSelect:L.bool,components:L.object,componentsProps:L.object,dayOfWeekFormatter:L.func,defaultCalendarMonth:L.any,defaultValue:L.any,disabled:L.bool,disableFuture:L.bool,disableHighlightToday:L.bool,disableIgnoringDatePartForTimeValidation:L.bool,disableOpenPicker:L.bool,disablePast:L.bool,displayWeekNumber:L.bool,fixedWeekNumber:L.number,format:L.string,formatDensity:L.oneOf(["dense","spacious"]),inputRef:Td,label:L.node,loading:L.bool,localeText:L.object,maxDate:L.any,maxDateTime:L.any,maxTime:L.any,minDate:L.any,minDateTime:L.any,minTime:L.any,minutesStep:L.number,monthsPerRow:L.oneOf([3,4]),onAccept:L.func,onChange:L.func,onClose:L.func,onError:L.func,onMonthChange:L.func,onOpen:L.func,onSelectedSectionsChange:L.func,onViewChange:L.func,onYearChange:L.func,open:L.bool,openTo:L.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:L.oneOf(["landscape","portrait"]),readOnly:L.bool,reduceAnimations:L.bool,referenceDate:L.any,renderLoading:L.func,selectedSections:L.oneOfType([L.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),L.number,L.shape({endIndex:L.number.isRequired,startIndex:L.number.isRequired})]),shouldDisableClock:L.func,shouldDisableDate:L.func,shouldDisableMonth:L.func,shouldDisableTime:L.func,shouldDisableYear:L.func,showDaysOutsideCurrentMonth:L.bool,slotProps:L.object,slots:L.object,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),timezone:L.string,value:L.any,view:L.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:L.shape({day:L.func,hours:L.func,minutes:L.func,month:L.func,seconds:L.func,year:L.func}),views:L.arrayOf(L.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:L.oneOf([3,4])};const q6e=["desktopModeMediaQuery"],Y6e=$.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=mE}=r,a=Re(r,q6e);return kh(o,{defaultMatches:!0})?R.jsx(XL,T({ref:n},a)):R.jsx(QL,T({ref:n},a))});var e8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(e8);var K6e=e8.exports;const J6e=Vt(K6e);var t8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,F){var U=F&&F.toUpperCase();return O||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,V){return z||V.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,j=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,B=J.milliseconds,Z=J.zone,re=new Date,ce=K||(X||j?1:re.getDate()),xe=X||re.getFullYear(),me=0;X&&!j||(me=j>0?j-1:re.getMonth());var ue=q||0,se=D||0,Ce=N||0,fe=B||0;return Z?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe+60*Z.offset*1e3)):W?new Date(Date.UTC(xe,me,ce,ue,se,Ce,fe)):new Date(xe,me,ce,ue,se,Ce,fe)}catch{return new Date("")}}(_,k,S),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){E[1]=k[z-1];var V=g.apply(this,E);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}z===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(t8);var Z6e=t8.exports;const X6e=Vt(Z6e);var n8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(n8);var Q6e=n8.exports;const eje=Vt(Q6e);var r8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(r8);var tje=r8.exports;const nje=Vt(tje);xr.extend(X6e);xr.extend(eje);xr.extend(nje);const rje=EL(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),oje={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},aje={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},rw=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),iI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),ije=(e,t)=>t?(...n)=>e(...n).locale(t):e;class SE{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=oje,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof xr.utc<"u",this.hasTimezonePlugin=()=>typeof xr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return xr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=xr.tz.guess();return i!=="UTC"?xr.tz(a,i):xr(a)}return xr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(rw);return xr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(rw);if(!this.hasTimezonePlugin())throw new Error(iI);const s=a!==void 0&&!a.endsWith("Z");return xr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=xr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(rje(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(rw);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(iI)}return xr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=ije((o=this.rawDayJsInstance)!=null?o:xr,t),this.locale=t,this.formats=T({},aje,n),xr.extend(J6e)}}var _E={},sje=Cc;Object.defineProperty(_E,"__esModule",{value:!0});var o8=_E.default=void 0,lje=sje($c()),cje=R,uje=(0,lje.default)((0,cje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");o8=_E.default=uje;const dje=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=L6(i)(e,s.scope,a);if(l)return M.createElement(Tn,{xsUp:!n},M.createElement(ko,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=n0(e.allOf,t,"allOf",s,a,i);return M.createElement(Tn,{xsUp:!n},c.map((u,f)=>M.createElement(ko,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},fje=vn(3,C6);var pje=p1e(dje);class a8 extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=VIe(t,n),a=ac.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&h6(a)&&(i=a.elements.length>0),i?M.createElement(ko,{schema:o,path:r,uischema:a}):null}}const hje=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=$.useState(n||0),f=$.useCallback((b,v)=>u(v),[u]),p="anyOf",m=n0(e.anyOf,t,p,s,o,l);return M.createElement(Tn,{xsUp:!r},M.createElement(a8,{schema:e,combinatorKeyword:p,path:o}),M.createElement(n1,{value:c,onChange:f},m.map(b=>M.createElement(Wp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(ko,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};pj(hje);const mje=he(Od)({borderBottom:"none"}),Kp=({children:e,...t})=>M.createElement(mje,Object.assign({},t),e),vje=he(w9)(({theme:e})=>({color:e.palette.error.main})),i8=({errorMessages:e,id:t})=>M.createElement(wc,{id:t,title:e},M.createElement(vje,{badgeContent:e.split(` +`).length},M.createElement(aE,{color:"inherit"}))),gje={paddingLeft:0,paddingRight:0},yje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(hl,null,M.createElement(Kp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(i8,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Kp,{align:"right",style:gje},M.createElement(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large"},M.createElement(rE,null)))):null)}),sI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},s8=(e,t,n,r,o)=>{if(t.type==="object")return l8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??By(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},l8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],bje=({numColumns:e,translations:t})=>M.createElement(hl,null,M.createElement(Kp,{colSpan:e},M.createElement(yn,{align:"center"},t.noDataMessage))),xje=M.memo(function({title:t}){return M.createElement(Od,null,t)}),wje=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=B_(X9(P_(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},lI=e=>({type:"Control",scope:e,label:!1}),Cje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Kp,null,r.properties?M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:lI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ic,{schema:r,uischema:lI("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(pr,{error:!c},!c&&a))}),$je=e=>{const t=xc(),n=wje(t,e),r=Mt(n.errors);return M.createElement(Cje,Object.assign({},n,{isValid:r}))},Sje=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(hl,{key:e,hover:!0},s8($je,t,e,c,u),c?M.createElement(Kp,{style:l?sI.fixedCell:sI.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(a1,null))),M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(o1,null)))):null,M.createElement(en,{item:!0},M.createElement(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(r1,null))))):null)},_je=M.memo(Sje),Eje=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(bje,{numColumns:l8(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,Cd(e).map(m=>{const b=cr.compose(t,`${m}`);return M.createElement(_je,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let Pje=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?s8(xje,r,n,c,u):void 0;return M.createElement(Tn,{xsUp:!l},M.createElement(K9,null,M.createElement(Z9,null,M.createElement(yje,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(hl,null,b,c?M.createElement(Od,null):null)),M.createElement(J9,null,M.createElement(Eje,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const Tje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(J0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(G2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(X0,null,M.createElement(H2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(Z0,null,M.createElement(Go,{onClick:o,color:"primary"},l),M.createElement(Go,{onClick:r,color:"primary"},s)))}),kje=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return M.createElement(Tn,{xsUp:!l},M.createElement(Pje,Object.assign({},e,{openDeleteDialog:c})),M.createElement(Tje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};r0(kje);const vl=()=>{const[e,t]=$.useState(!1),n=$.useCallback(()=>t(!0),[]),r=$.useCallback(()=>t(!1),[]);return[e,n,r]},c8=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[S,E,k]=vl(),I=m.find(G=>G.value===i)??null,O=!To(r,t,S,w.showUnfocusedDescription),F=O?t:y?null:n,U=O&&!y?n:null;return M.createElement(Tn,{xsUp:!r},M.createElement(D2e,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(Oh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:S})),renderOption:x,filterOptions:g}),M.createElement(pr,{error:!y&&!O},F),M.createElement(pr,{error:!y},U))},EE=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(tPe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});iE.extend(MAe);const PE=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=iE(r).format(n);t(e,o)},TE=(e,t)=>{if(!e)return null;const n=iE(e,t);return n.toString()==="Invalid Date"?null:n},Rje=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(ko,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),Oje=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Tn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},Rje(t,n,r,o,i,s))),jh=M.memo(Oje),u8=e=>function(n){const r=xc(),o=_d({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},Dje=e=>e.target.value,Ec=(e,t,n,r,o=Dje,a=300)=>{const[i,s]=$.useState(n??t);$.useEffect(()=>{s(n??t)},[n]);const l=$.useCallback(ij(f=>e(r,f),a),[e,r,a]),c=$.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=$.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},Mje={"enum.none":"None"},Ije=e=>e===""?void 0:parseInt(e,10),Aje=e=>Ije(e.target.value),d8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,Aje);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),Nje=e=>e===""?void 0:parseFloat(e),jje=e=>Nje(e.target.value),f8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=Ec(l,"",n,s,jje);return M.createElement(ms,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),Lje=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=$.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=Ec(l,"",b,s,v);return M.createElement(ms,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),Fje=e=>e.target.value===""?void 0:e.target.value,p8=M.memo(function(t){var O,F,U;const[n,r]=$.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=Ec(p,"",o,f,Fje),S=()=>r(!0),E=()=>r(!1),k=rr(),I={background:((U=(F=(O=k.jsonforms)==null?void 0:O.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(ms,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:S,onPointerLeave:E,endAdornment:M.createElement(Y2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(nr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(nL,{style:I}))),inputComponent:v})}),zje=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=Ec(l,"",n,s);return M.createElement(ms,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),p1=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=$.useMemo(()=>p("enum.none",Mje["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(G9,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(iy,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(iy,{value:v.value,key:v.value},v.label))))}),h8=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(rMe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),Vje=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Tn,{xlUp:!t},M.createElement(Th,{component:"fieldset"},M.createElement(T9,{row:!0},o.map((u,f)=>{const p=cr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(Q0,{id:u.value,key:u.value,control:M.createElement(EE,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(pr,{error:!0},n)));y1e(Vje);const Bje=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=$.useMemo(()=>bh(n,r,l.scope,a,()=>Mt(a)?ac.uiSchema(r,"VerticalLayout"):{...ac.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Tn,{xsUp:!i},M.createElement(ko,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var Uje=h1e(Bje);const Wje=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=$.useState(!1),[b,v]=$.useState(l||0),[x,g]=$.useState(0),y=$.useCallback(()=>m(!1),[m]),w=$.useCallback(()=>{m(!1)},[m]),C=n0(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,ss(C[k].schema)),v(k)},S=$.useCallback(()=>{_(x),m(!1)},[e,ss,x]),E=$.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Tn,{xsUp:!s},M.createElement(a8,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(n1,{value:b,onChange:E},C.map(k=>M.createElement(Wp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(ko,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(J0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(G2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(X0,null,M.createElement(H2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(Z0,null,M.createElement(Go,{onClick:w,color:"primary"},"No"),M.createElement(Go,{onClick:S,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},Hje=vn(3,S6);var Gje=f1e(Wje);const qje=({text:e,visible:t})=>M.createElement(Tn,{xsUp:!t},M.createElement(yn,{variant:"h6"},e));vj(qje);const m8=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(VMe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(yn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(i8,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(wc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(nr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(rE,null))))))))}),Yje=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(N9,{button:!0,selected:n,onClick:o(e)},M.createElement(Yke,null,M.createElement(b9,{"aria-label":"Index"},e+1)),M.createElement(nRe,{primary:t}),r&&M.createElement(A9,null,M.createElement(nr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(r1,null))));var Kje=m1e(Yje);const Jje=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=$.useState(void 0),w=$.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=$.useCallback(k=>()=>y(k),[y]),_=$.useCallback(()=>ss(t),[ss]),S=$.useMemo(()=>bh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Tn,{xsUp:!i},M.createElement(m8,{translations:x,label:Qy(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(K2,null,f>0?oL(Cd(f),k=>M.createElement(Kje,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(ko,{renderers:p,cells:m,visible:i,schema:t,uischema:S,path:bc(r,`${g}`)}):M.createElement(yn,{variant:"h6"},x.noSelection))))};r0(Jje);const Id=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!To(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Tn,{xsUp:!c},M.createElement(Th,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(M9,{htmlFor:o+"-input",error:!m,required:e0(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(pr,{error:!m&&!v},x),M.createElement(pr,{error:!m},g)))},Zje=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),Xje=e=>e.find(t=>t.type==="string"&&t.enum===void 0),Qje=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=Zje(u.anyOf),m=Xje(u.anyOf).maxLength,b=$.useMemo(()=>tn({},n,i.options),[n,i.options]),v=$.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=Ec(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(ms,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class e9e extends lj{render(){return M.createElement(Id,Object.assign({},this.props,{input:Qje}))}}uo(e9e);const t9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(Q0,{label:n,id:r,control:M.createElement(EE,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(t9e);const n9e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!To(t,p,!1,b.showUnfocusedDescription),x=!v&&!To(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,S=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push(S);const E=w.join(" ");return M.createElement(Tn,{xsUp:!t},M.createElement(wc,{id:C,title:x?p:""},M.createElement(Q0,{label:n,id:r,control:M.createElement(h8,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(pr,{id:_,error:!m&&!v},g),M.createElement(pr,{id:S,error:!m},y))};uo(n9e);const r9e=e=>{const[t,n,r]=vl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!To(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],S=y?o:x?null:i,E=y&&!x?i:null,k=$.useMemo(()=>PE(p,m,C),[p,m,C]),I=TE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Dh,{dateAdapter:SE},M.createElement(w6e,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!x&&!y},S),M.createElement(pr,{error:!x},E)))};uo(r9e);const o9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>PE(p,m,C),[p,m,C]),I=TE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Dh,{dateAdapter:SE},M.createElement(Y6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(o9e);const a9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Id,Object.assign({},e,{input:p1})):M.createElement(c8,Object.assign({},e,{isValid:a}))};a2(ul(M.memo(a9e)),!1);const i9e=e=>M.createElement(Id,Object.assign({},e,{input:d8}));uo(i9e);const s9e=e=>{const[t,n,r]=vl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=Ec(m,"",b,p),C=g.format??s.format,_=!To(u,l,t,g.showUnfocusedDescription);return M.createElement(Tn,{xsUp:!u},M.createElement(Oh,{required:e0(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};uo(s9e);const l9e=e=>M.createElement(Id,Object.assign({},e,{input:f8}));uo(l9e);const c9e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Id,Object.assign({},e,{input:p1})):M.createElement(c8,Object.assign({},e,{isValid:a}))};i2(ul(M.memo(c9e)),!1);const v8=e=>{const[t,n,r]=vl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!To(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Tn,{xsUp:!f},M.createElement(Th,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(q2,{htmlFor:a,error:!x,component:"legend",required:e0(s,g.hideRequiredAsterisk)},i),M.createElement(dOe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(Q0,{value:C.value,key:C.label,control:M.createElement(lOe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(pr,{error:!x},x?y?l:null:c)))},u9e=e=>M.createElement(v8,Object.assign({},e));i2(u9e);const d9e=e=>M.createElement(v8,Object.assign({},e));a2(d9e);const f9e=e=>{const[t,n,r]=vl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},S=!To(p,i,t,g.showUnfocusedDescription),E=$.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Tn,{xsUp:!p},M.createElement(Th,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(q2,{htmlFor:o,error:!x,component:"legend",required:e0(b,g.hideRequiredAsterisk)},M.createElement(yn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(yn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(yn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(HOe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(pr,{error:!x},x?S?i:null:l)))};uo(f9e);const p9e=e=>M.createElement(Id,Object.assign({},e,{input:p8}));uo(p9e);const h9e=e=>{const[t,n,r]=vl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!To(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],S=y?a:g?null:i,E=y&&!g?i:null,k=$.useMemo(()=>PE(p,m,C),[p,m,C]),I=TE(b,C);return M.createElement(Tn,{xsUp:!c},M.createElement(Dh,{dateAdapter:SE},M.createElement(D6e,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:O})=>({actions:O==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(pr,{error:!g&&!y},S),M.createElement(pr,{error:!g},E)))};uo(h9e);const ow={float:"right"},m9e=e=>{const[t]=$.useState(Y6("expand-panel"));$.useEffect(()=>()=>{K6(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,S=$.useMemo(()=>bh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(FCe,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(y$e,{expandIcon:M.createElement(o8,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(b9,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement($.Fragment,null,M.createElement(en,{item:!0},M.createElement(nr,{onClick:l(m,a),style:ow,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(a1,null))),M.createElement(en,{item:!0},M.createElement(nr,{onClick:s(m,a),style:ow,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(o1,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(nr,{onClick:p(m,[a]),style:ow,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(r1,null))))))))),M.createElement(HCe,null,M.createElement(ko,{enabled:n,schema:v,uischema:S,path:o,key:o,renderers:y,cells:w})))},v9e=M.memo(m9e),g9e=e=>({removeItems:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(v6(o,n),o)))},[e]),moveDown:$.useCallback((t,n)=>r=>{r.stopPropagation(),e(Va(t,o=>(g6(o,n),o)))},[e])}),y9e=e=>function({ctx:n,props:r}){const o=g9e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=bc(s,`${l}`),f=Po.data(n.core.data,u),p=a?fr(f,a,""):fr(f,Gye(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},b9e=e=>_r(y9e(e));var x9e=b9e(v9e);const w9e={marginBottom:"10px"},C9e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Tn,{xsUp:!t},M.createElement(xEe,{style:w9e},!Mt(o)&&M.createElement(NEe,{title:o}),M.createElement(EEe,null,M.createElement(jh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),$9e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(C9e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};fs($9e);const S9e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(jh,Object.assign({},l,{renderers:t,cells:n}))};fs(S9e);const _9e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(jh,Object.assign({},l,{renderers:a,cells:i}))};fs(_9e);const E9e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=$.useState(i),[x,g]=$.useState(c??0),y=$.useMemo(()=>m.elements.filter(E=>Ed(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},S=$.useMemo(()=>y.map(E=>Jy(E,p)),[y,p]);return M.createElement(Tn,{xsUp:!s},M.createElement(F$e,{position:"static"},M.createElement(n1,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Wp,{key:k,label:S[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(jh,Object.assign({},C,{key:w}))))};u8(ul(fs(E9e)));const P9e=e=>{const[t,n]=$.useState(!1),r=$.useCallback(()=>ss(e.schema),[e.schema]),o=$.useCallback(S=>(E,k)=>{n(k?S:!1)},[]),a=S=>t===bc(e.path,`${S}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(m8,{translations:C,label:Qy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?oL(Cd(s),S=>M.createElement(x9e,{enabled:i,index:S,expanded:a(S),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:S,rootSchema:g,enableMoveUp:S!=0,enableMoveDown:S{const r=$.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Tn,{xsUp:!e},M.createElement(T9e,Object.assign({visible:e,addItem:r},n)))};r0(k9e);const R9e=e=>M.createElement(EE,Object.assign({},e));hr(R9e);const O9e=e=>M.createElement(h8,Object.assign({},e));hr(O9e);const D9e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(ms,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};hr(D9e);const M9e=e=>M.createElement(p1,Object.assign({},e));mj(ul(M.memo(M9e)),!1);const I9e=e=>M.createElement(d8,Object.assign({},e));hr(I9e);const A9e=e=>M.createElement(f8,Object.assign({},e));hr(A9e);const N9e=e=>M.createElement(Lje,Object.assign({},e));hr(N9e);const j9e=e=>M.createElement(p1,Object.assign({},e));g1e(ul(M.memo(j9e)),!1);const L9e=e=>M.createElement(p8,Object.assign({},e));hr(L9e);const F9e=e=>M.createElement(zje,Object.assign({},e));hr(F9e);const z9e=e=>{const[t,n]=$.useState(0),r=S=>{n(S)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=$.useMemo(()=>b.elements.filter(S=>Ed(S,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=$.useMemo(()=>w.map(S=>Jy(S,m)),[w,m]);return M.createElement(Tn,{xsUp:!c},M.createElement(qDe,{activeStep:t,nonLinear:!0},w.map((S,E)=>M.createElement(lDe,{key:_[E]},M.createElement(MDe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(jh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Go,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Go,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};u8(ul(fs(z9e)));var V9e=Array.prototype,B9e=V9e.join;function U9e(e,t){return e==null?"":B9e.call(e,t)}var W9e=U9e;const g8=Vt(W9e);var H9e=wd,y8=H9e("filter",SN);y8.placeholder=gc();var G9e=y8;const cI=Vt(G9e);var q9e=wd,b8=q9e("map",rL);b8.placeholder=gc();var Y9e=b8;const uI=Vt(Y9e);var aw,dI;function K9e(){if(dI)return aw;dI=1;var e=NS(),t=zS,n=AS(),r=lN(),o=lr,a=cN(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=Lg(e,o=>o.name===t);return kC(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},za=e=>(t,...n)=>g8(cp(e)(t,n)," "),aLe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],iLe={styles:aLe},sLe=M.createContext(iLe),lLe=()=>$.useContext(sLe),kE=()=>{const{styles:e}=lLe();return e},Di=e=>function(n){const r=xc(),o=kE(),a=n.uischema,i=r.config,s=i&&i.trim,l=$.useMemo(()=>cp(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${W6(a.scope)}`]);s&&(c=c.concat(cp(o)("control.trim")));const u=Mt(n.errors),f=$.useMemo(()=>za(o)("control.label"),[o]),p=$.useMemo(()=>za(o)("input.description"),[o]),m=$.useMemo(()=>za(o)("control.validation"),[o]),b=$.useMemo(()=>za(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=$.useMemo(()=>za(o),[o]),g=$.useMemo(()=>cp(o),[o]),y=c.join(" "),w=v.join(" "),C=$.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},RE=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=kE(),i=za(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:za(a),getStyle:cp(a),className:o.join(" ")}))},ei=RE("control.input"),cLe=RE("control.select"),uLe=RE("control.checkbox"),dLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},fLe=vn(2,w6);var pLe=hr(uLe(dLe));const hLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},mLe=vn(2,R6);var vLe=hr(ei(hLe));const gLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},yLe=vn(2,D6);var bLe=hr(ei(gLe));const xLe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=$.useMemo(()=>u("enum.none",oLe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},wLe=vn(2,M_);var CLe=mj(ul(cLe(xLe)));const $Le=e=>e===""?void 0:parseInt(e,10),SLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,$Le(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},_Le=vn(2,E6);var ELe=hr(ei(SLe));const PLe=e=>e===""?void 0:Number(e),TLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,PLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},kLe=vn(2,P6);var RLe=hr(ei(TLe));const OLe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};hr(ei(OLe));const DLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},MLe=vn(4,A6);var ILe=hr(ei(DLe));const ALe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},NLe=vn(1,T6);hr(ei(ALe));const jLe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},LLe=vn(2,k6);hr(ei(jLe));const FLe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},zLe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,FLe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},VLe=vn(2,O6);var BLe=hr(ei(zLe));class ULe extends lj{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!To(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Vy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Ju?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},Qy(a,f,g.hideRequiredAsterisk)),M.createElement(ic,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const WLe=vn(1,Ja);var S8=Di(uo(ULe));const _8=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=kE(),[v,x]=$.useState(!1),g=$.useMemo(()=>za(b)("control.radio"),[b]),y=$.useMemo(()=>za(b)("control.radio.option"),[b]),w=$.useMemo(()=>za(b)("control.radio.input"),[b]),C=$.useMemo(()=>za(b)("control.radio.label"),[b]),_=i.length===0,S=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!To(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let O={};return I&&(O={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},Qy(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:O},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:S},_?k?a:null:i))},HLe=e=>M.createElement(_8,Object.assign({},e)),GLe=vn(3,$n(M_,ds("format","radio")));var qLe=Di(a2(HLe));const YLe=e=>M.createElement(_8,Object.assign({},e)),KLe=vn(3,$n(_6,ds("format","radio")));var JLe=Di(i2(YLe));const{convertToValidClassName:ZLe}=Yg,XLe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=$.useMemo(()=>bh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),S=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),O=p("array.child.controls.delete"),F=[p("array.control"),ZLe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:S},n),M.createElement("button",{className:_,onClick:i(r,ss(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?Cd(0,t.length).map(U=>{const G=bc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(ko,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:O,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},QLe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=Yg.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${Yg.convertToValidClassName(g.scope)}`,_=l("array.layout"),S=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:S,children:E};return M.createElement(XLe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var e8e=Di(hj(QLe));const t8e=vn(4,A_),OE=e=>e.type==="Categorization",n8e=vn(1,$n(_n("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>OE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),r8e=(e,t)=>t===e?"selected":"",E8=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=$.useMemo(()=>e.elements.map(l=>Jy(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>OE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(E8,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:r8e(l,t)},M.createElement("span",null,s[c]))))},o8e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(ko,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class a8e extends sj{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(E8,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(o8e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:OE(n)?this.findCategory(n):n}}var i8e=Di(ul(fs(a8e)));const s8e=vn(1,_n("Label")),l8e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var c8e=Di(vj(l8e));const{convertToValidClassName:u8e}=Yg,{or:d8e,isObjectArrayControl:f8e,isPrimitiveArrayControl:p8e,rankWith:h8e}=dye,m8e=h8e(3,d8e(f8e,p8e));class v8e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),u8e(m.scope)].join(" "),w=S=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${S}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,ss(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?pI(mI,cI(S=>r.properties[S].type!=="array"),uI(S=>M.createElement("th",{key:S},r.properties[S].title??rLe(S))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map((S,E)=>{const k=cr.compose(a,`${E}`),I=Lg(f,G=>Wg(G).startsWith(k)),O=u("array.validation"),F=u("array.validation.error"),U=I?[O].concat(F).join(" "):O;return M.createElement("tr",{key:k},r.properties?pI(mI,cI(G=>r.properties[G].type!=="array"),uI(G=>{const z=cr.compose(k,G.toString());return M.createElement("td",{key:z},M.createElement(ic,{schema:Po.schema(r,`#/properties/${oc(G)}`,o),uischema:w(oc(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:cr.compose(k,E.toString())},M.createElement(ic,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},g8(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var g8e=Di(hj(v8e));const DE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=xc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(ko,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},y8e=vn(1,_n("Group")),b8e=e=>{const{data:t,...n}=e;return M.createElement(x8e,Object.assign({},n))},x8e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),DE(c,t,p,r,o))});var w8e=Di(fs(b8e));const P8=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),C8e=vn(1,_n("HorizontalLayout")),$8e=e=>{const{data:t,...n}=e;return M.createElement(S8e,Object.assign({},n))},S8e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(P8,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},DE(l,t,f,s,a))});var _8e=Di(fs($8e,!1));const E8e=vn(1,_n("VerticalLayout")),P8e=e=>{const{data:t,...n}=e;return M.createElement(T8e,Object.assign({},n))},T8e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(P8,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},DE(l,t,f,r,a))});var k8e=Di(fs(P8e,!1));const R8e=[{tester:WLe,renderer:S8},{tester:GLe,renderer:qLe},{tester:KLe,renderer:JLe},{tester:t8e,renderer:e8e},{tester:s8e,renderer:c8e},{tester:n8e,renderer:i8e},{tester:m8e,renderer:g8e},{tester:y8e,renderer:w8e},{tester:E8e,renderer:k8e},{tester:C8e,renderer:_8e}],ME=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),O8e=he(Od)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Jp=({children:e,...t})=>R.jsx(O8e,{...t,children:e}),IE=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),D8e=he(w9)(({theme:e})=>({color:e.palette.error.main})),M8e=({errorMessages:e,id:t})=>R.jsx(wc,{id:t,title:e,children:R.jsx(D8e,{badgeContent:e.split(` +`).length,children:R.jsx(aE,{color:"inherit"})})}),I8e={paddingLeft:0,paddingRight:0},A8e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return R.jsxs(hl,{children:[R.jsx(Jp,{colSpan:t,sx:{verticalAlign:"top"},children:R.jsxs("div",{className:"flex items-center gap-2",children:[r&&R.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&R.jsx(M8e,{id:"tooltip-validation",errorMessages:n})]})}),s?R.jsx(Jp,{align:"right",style:I8e,children:R.jsx(wc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:R.jsx(nr,{"aria-label":l.addAriaLabel,onClick:a(o,ss(i)),size:"large",sx:{p:1},children:R.jsx(IE,{className:"text-ls-black"})})})}):null]})}),vI={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},T8=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return k8(t).map(a=>{var l,c;const i=cr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??By(a),rowPath:n,cellPath:i,enabled:r,cells:o};return R.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return R.jsx(e,{...a},n)}},k8=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],N8e=({numColumns:e,translations:t})=>R.jsx(hl,{children:R.jsx(Jp,{colSpan:e,children:R.jsx(yn,{align:"center",children:t.noDataMessage})})}),j8e=M.memo(function({title:t}){return R.jsx(Od,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),L8e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=B_(X9(P_(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},gI=e=>({type:"Control",scope:e,label:!1}),F8e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return R.jsxs(Jp,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?R.jsx(ic,{schema:Po.schema(r,`#/properties/${oc(n)}`,o),uischema:gI(`#/properties/${oc(n)}`),path:t,enabled:i,renderers:s,cells:l}):R.jsx(ic,{schema:r,uischema:gI("#"),path:t,enabled:i,renderers:s,cells:l}),R.jsx(pr,{error:!c,children:!c&&a})]})}),z8e=e=>{const t=xc(),n=L8e(t,e),r=Mt(n.errors);return R.jsx(F8e,{...n,isValid:r})},V8e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=$.useMemo(()=>o(f,n),[o,f,n]),b=$.useMemo(()=>a(f,n),[a,f,n]);return R.jsxs(hl,{hover:!0,children:[T8(z8e,t,e,c,u),c?R.jsx(Jp,{style:l?vI.fixedCell:vI.fixedCellSmall,children:R.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?R.jsxs($.Fragment,{children:[R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:R.jsx(a1,{})})}),R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:R.jsx(o1,{})})})]}):null,R.jsx(en,{item:!0,children:R.jsx(nr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:R.jsx(ME,{className:"text-ls-black"})})})]})}):null]},e)},B8e=M.memo(V8e),U8e=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return R.jsx(N8e,{numColumns:k8(n).length+1,translations:u});const p=tn({},s,i.options);return R.jsx(M.Fragment,{children:Cd(e).map(m=>{const b=cr.compose(t,`${m}`);return R.jsx(B8e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class W8e extends M.Component{constructor(){super(...arguments);Zd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?T8(j8e,o,r,u,f):void 0;return R.jsx(Tn,{xsUp:!c,children:R.jsxs(K9,{children:[R.jsxs(Z9,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[R.jsx(A8e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&R.jsxs(hl,{children:[v,u?R.jsx(Od,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),R.jsx(J9,{children:R.jsx(U8e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const H8e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return R.jsxs(J0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[R.jsx(G2,{id:"alert-dialog-confirmdelete-title",children:a}),R.jsx(X0,{children:R.jsx(H2,{id:"alert-dialog-confirmdelete-description",children:i})}),R.jsxs(Z0,{children:[R.jsx(Go,{onClick:o,color:"primary",children:l}),R.jsx(Go,{onClick:r,color:"primary",children:s})]})]})}),G8e=e=>{const[t,n]=$.useState(!1),[r,o]=$.useState(void 0),[a,i]=$.useState(void 0),{removeItems:s,visible:l}=e,c=$.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=$.useCallback(()=>n(!1),[n]),f=$.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=$.useCallback(()=>n(!1),[n]);return R.jsx("div",{className:"control",children:R.jsxs(Tn,{xsUp:!l,children:[R.jsx(W8e,{...e,openDeleteDialog:c}),R.jsx(H8e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},q8e=vn(11,yc(I_,I6,A_)),R8=r0(G8e),yI=qa("text-lg col-[1] row-[1] m-0 resize-none overflow-hidden whitespace-pre-wrap break-words border-none bg-transparent p-0");function id(e){return R.jsxs("div",{className:qa("grid w-full",e.className),children:[R.jsx("textarea",{id:e.id,className:qa(yI,"text-transparent caret-black dark:caret-slate-200"),disabled:e.disabled,value:e.value??"",rows:1,onChange:t=>{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),R.jsxs("div",{"aria-hidden":!0,className:qa(yI,"pointer-events-none select-none"),children:[e.value," "]})]})}const Y8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(id,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},bI=hr(ei(Y8e));function K8e(e){try{return JSON.parse(e)}catch{return e}}function J8e(e){try{return JSON.stringify(e)}catch{return e}}const Z8e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return R.jsx(id,{value:typeof t=="object"?J8e(t):t??"",onChange:u=>l(s,u===""?void 0:K8e(u)),className:qa("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},X8e=hr(ei(Z8e)),Q8e=e=>$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function eFe(e){return typeof e=="object"&&e!=null}function Zp(e){return Array.isArray(e)?e:[e]}function Fu(e,t){const n=Zp(t);let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(eFe(r))r=r[o];else return}return r}function h1(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function tFe(e){const t=e+"CollectionProvider",[n,r]=Ry(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=is(b,g.collectionRef);return M.createElement(Dp,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=is(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Dp,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const nFe=$.createContext(void 0);function O8(e){const t=$.useContext(nFe);return e||t||"ltr"}const lw="rovingFocusGroup.onEntryFocus",rFe={bubbles:!1,cancelable:!0},AE="RovingFocusGroup",[a$,D8,oFe]=tFe(AE),[aFe,M8]=Ry(AE,[oFe]),[iFe,sFe]=aFe(AE),lFe=$.forwardRef((e,t)=>$.createElement(a$.Provider,{scope:e.__scopeRovingFocusGroup},$.createElement(a$.Slot,{scope:e.__scopeRovingFocusGroup},$.createElement(cFe,T({},e,{ref:t}))))),cFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=$.useRef(null),p=is(t,f),m=O8(a),[b=null,v]=oh({prop:i,defaultProp:s,onChange:l}),[x,g]=$.useState(!1),y=rl(c),w=D8(n),C=$.useRef(!1),[_,S]=$.useState(0);return $.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(lw,y),()=>E.removeEventListener(lw,y)},[y]),$.createElement(iFe,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:$.useCallback(E=>v(E),[v]),onItemShiftTab:$.useCallback(()=>g(!0),[]),onFocusableItemAdd:$.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:$.useCallback(()=>S(E=>E-1),[])},$.createElement(Jo.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:io(e.onMouseDown,()=>{C.current=!0}),onFocus:io(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(lw,rFe);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const O=w().filter(V=>V.focusable),F=O.find(V=>V.active),U=O.find(V=>V.id===b),z=[F,U,...O].filter(Boolean).map(V=>V.ref.current);I8(z)}}C.current=!1}),onBlur:io(e.onBlur,()=>g(!1))})))}),uFe="RovingFocusGroupItem",dFe=$.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Lv(),l=a||s,c=sFe(uFe,n),u=c.currentTabStopId===l,f=D8(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return $.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),$.createElement(a$.ItemSlot,{scope:n,id:l,focusable:r,active:o},$.createElement(Jo.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:io(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:io(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:io(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=hFe(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?mFe(g,y+1):g.slice(y+1)}setTimeout(()=>I8(g))}})})))}),fFe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pFe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hFe(e,t,n){const r=pFe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fFe[r]}function I8(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function mFe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const vFe=lFe,gFe=dFe,yFe=$.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=oh({prop:n,onChange:o,defaultProp:r});return $.createElement(Jo.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:io(e.onClick,()=>{e.disabled||s(!i)})}))}),m1="ToggleGroup",[A8,r7e]=Ry(m1,[M8]),N8=M8(),bFe=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(xFe,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(wFe,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${m1}\``)}),[j8,L8]=A8(m1),xFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=oh({prop:n,defaultProp:r,onChange:o});return M.createElement(j8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(F8,T({},a,{ref:t})))}),wFe=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=oh({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(j8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(F8,T({},a,{ref:t})))}),[CFe,$Fe]=A8(m1),F8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=N8(n),u=O8(i),f={role:"group",dir:u,...l};return M.createElement(CFe,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(vFe,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Jo.div,T({},f,{ref:t}))):M.createElement(Jo.div,T({},f,{ref:t})))}),i$="ToggleGroupItem",SFe=M.forwardRef((e,t)=>{const n=L8(i$,e.__scopeToggleGroup),r=$Fe(i$,e.__scopeToggleGroup),o=N8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(gFe,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(xI,T({},s,{ref:t}))):M.createElement(xI,T({},s,{ref:t}))}),xI=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=L8(i$,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(yFe,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),_Fe=bFe,wI=SFe,EFe=vn(12,$n(Ja,Kr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function CI(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function $I(e,t){return typeof e=="string"?[{content:e,type:t}]:CI(e)?[e]:Array.isArray(e)&&e.every(CI)?e:null}function SI(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const PFe=uo(e=>{const t=e.data??[];return t3("onSuccess",n=>{if(!h1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Zp(r.input??""),a=Zp(r.output??""),i=Fu(n.input,o);let s=Fu(n.output,a);n.output!=null&&Object.keys(n.output).length===1&&Object.keys(n.output)[0]==="output"&&(s=Fu(s,["output",...a])??s);const c=$I(i,"human"),u=$I(s,"ai");let f;c!=null&&(f??(f=[...t]),f.push(...c)),u!=null&&(f??(f=[...t]),f.push(...u)),f!=null&&e.handleChange(e.path,f)}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:R.jsx(IE,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=cr.compose(e.path,`${r}`),a=n.type??"chat",i=SI((s=n.additional_kwargs)==null?void 0:s.function_call);return R.jsxs("div",{className:"control group",children:[R.jsxs("div",{className:"flex items-start justify-between gap-2",children:[R.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(cr.compose(o,"type"),p.target.value)},children:[R.jsx("option",{value:"human",children:"Human"}),R.jsx("option",{value:"ai",children:"AI"}),R.jsx("option",{value:"system",children:"System"}),R.jsx("option",{value:"function",children:"Function"}),R.jsx("option",{value:"chat",children:"Chat"})]}),R.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&R.jsxs(_Fe,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(cr.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(cr.compose(o,"additional_kwargs"),{});break}}},children:[R.jsx(wI,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:R.jsx(Q8e,{className:"w-4 h-4"})}),R.jsx(wI,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:R.jsx(k3,{className:"w-4 h-4"})})]}),R.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:R.jsx(ME,{className:"w-4 h-4"})})]})]}),a==="chat"&&R.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(cr.compose(o,"role"),p.target.value)}}),a==="function"&&R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(cr.compose(o,"name"),p.target.value)}}),a==="ai"&&SI((l=n.additional_kwargs)==null?void 0:l.function_call)?R.jsxs(R.Fragment,{children:[R.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),R.jsx(id,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(cr.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):R.jsx(id,{value:n.content,onChange:p=>{e.handleChange(cr.compose(o,"content"),p)}})]},r)})})]})});function TFe(e){return typeof e=="string"?e:typeof e=="object"&&e!=null&&"content"in e&&typeof e.content=="string"?e.content:null}const kFe=vn(12,$n(Ja,Kr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!h1(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),RFe=uo(e=>{const t=e.data??[];return t3("onSuccess",n=>{if(!h1(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Zp(r.input??""),a=Zp(r.output??""),i=n.output!=null&&Object.keys(n.output).length===1&&Object.keys(n.output)[0]==="output",s=Fu(n.input,o);let l=Fu(n.output,a);i&&(l=Fu(l,["output",...a])??l),l=TFe(l),typeof s=="string"&&typeof l=="string"&&e.handleChange(e.path,[...t,[s,l]])}),R.jsxs("div",{className:"control",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),R.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:R.jsx(IE,{className:"w-5 h-5"})})]}),R.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=cr.compose(e.path,`${o}`);return R.jsxs("div",{className:"control group relative",children:[R.jsxs("div",{className:"grid gap-3",children:[R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),R.jsx(id,{value:n,onChange:i=>{e.handleChange(cr.compose(a,"0"),i)}})]}),R.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),R.jsxs("div",{className:"flex-grow",children:[R.jsx("div",{className:"flex items-start justify-between gap-2",children:R.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),R.jsx(id,{value:r,onChange:i=>{e.handleChange(cr.compose(a,"1"),i)}})]})]}),R.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:R.jsx(ME,{className:"w-4 h-4"})})]},o)})})]})}),OFe=vn(12,$n(Ja,Kr(e=>h1(e)?e.extra.widget.type==="base64file":!1))),DFe=uo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return R.jsxs("div",{className:"control",children:[R.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),R.jsx("input",{type:"file",onChange:t})]})}),MFe=pj(e=>{const t=n0(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return R.jsx(ko,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:NE,cells:jE})}),IFe=vn(3,$6),AFe=vn(2,$n(_n("Control"),Za("object"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),NFe=vn(1,$n(_n("Control"),Za("object"))),jFe=vn(1,$n(_n("Control"))),NE=[...R8e,{tester:AFe,renderer:Uje},{tester:fje,renderer:pje},{tester:Hje,renderer:Gje},{tester:IFe,renderer:MFe},{tester:q8e,renderer:R8},{tester:NFe,renderer:S8},{tester:EFe,renderer:PFe},{tester:kFe,renderer:RFe},{tester:OFe,renderer:DFe}],LFe=vn(1,(e,t)=>t.type==="array"),jE=[{tester:fLe,cell:pLe},{tester:mLe,cell:vLe},{tester:yLe,cell:bLe},{tester:wLe,cell:CLe},{tester:_Le,cell:ELe},{tester:kLe,cell:RLe},{tester:MLe,cell:ILe},{tester:LLe,cell:bI},{tester:NLe,cell:bI},{tester:VLe,cell:BLe},{tester:LFe,cell:R8},{tester:jFe,cell:X8e}];function FFe(e){var t,n;return e.config==null||Object.keys(e.config).length===0?null:R.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),R.jsxs("div",{className:"content flex flex-col gap-3",children:[R.jsx(yj,{schema:e.config,data:e.value.data,renderers:NE,cells:jE,onChange:({data:r,errors:o})=>{r&&e.onChange({data:r,errors:o,defaults:!1})}}),!!((t=e.value.errors)!=null&&t.length)&&e.value.data&&R.jsx("div",{className:"bg-background rounded-xl",children:R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(n=e.value.errors)==null?void 0:n.map((r,o)=>R.jsx("li",{children:r.message},o))})]})})]})]})}function zFe(e){var n,r;const t=$.useMemo(()=>e.input?JSON.stringify(Tg(e.input))!==JSON.stringify(e.value.data):!1,[e.input,e.value.data]);return R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("h3",{className:"font-medium",children:"Inputs"}),t&&R.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>e.onChange({data:Tg(e.input),errors:[]}),children:"Reset"})]}),R.jsx(yj,{schema:e.input,data:e.value.data,renderers:NE,cells:jE,onChange:({data:o,errors:a})=>e.onChange({data:o,errors:a})}),!!((n=e.value.errors)!=null&&n.length)&&e.value.data&&R.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[R.jsx("strong",{className:"font-bold",children:"Validation Errors"}),R.jsx("ul",{className:"list-disc pl-5",children:(r=e.value.errors)==null?void 0:r.map((o,a)=>R.jsx("li",{children:o.message},a))})]})]})]})}const VFe=e=>$.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"}));function BFe(e){return R.jsx("button",{type:"button",className:qa("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",e.disabled?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:e.onSubmit,disabled:e.disabled,children:e.isLoading?R.jsxs(R.Fragment,{children:[R.jsxs("div",{role:"status",children:[R.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),R.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),R.jsx("span",{className:"sr-only",children:"Loading..."})]}),R.jsx("span",{className:"text-white",children:"Stop"})]}):R.jsxs(R.Fragment,{children:[R.jsx(VFe,{className:"flex-shrink-0"}),R.jsx("span",{className:"text-white",children:"Start"})]})})}function UFe(e,t,n){var r=this,o=$.useRef(null),a=$.useRef(0),i=$.useRef(null),s=$.useRef([]),l=$.useRef(),c=$.useRef(),u=$.useRef(e),f=$.useRef(!0);$.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=$.useMemo(function(){var y=function(k){var I=s.current,O=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(O,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},S=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var O=t-(I-o.current),F=v?Math.min(O,x-(I-a.current)):O;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w(S,t),m?y(o.current):c.current;if(v)return w(S,t),y(o.current)}return i.current||w(S,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function WFe(e,t){return e===t}function _I(e){return typeof e=="function"?function(){return e}:e}function HFe(e,t,n){var r,o,a=n&&n.equalityFn||WFe,i=(r=$.useState(_I(e)),o=r[1],[r[0],$.useCallback(function(f){return o(_I(f))},[])]),s=i[0],l=i[1],c=UFe($.useCallback(function(f){return l(f)},[l]),t,n),u=$.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function GFe(e){var a,i;const[t,n]=$.useState({data:e.inputSchema.defaults,errors:[]}),r=$.useRef(null);r.current=()=>{var s,l;!e.stopStream&&((s=t.errors)!=null&&s.length||(l=e.configData.errors)!=null&&l.length)||(e.stopStream?e.stopStream():e.startStream(t.data,e.configData.data))},$.useEffect(()=>{window.addEventListener("keydown",s=>{var l;s.key==="Enter"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),(l=r.current)==null||l.call(r))})},[]);const o=!e.stopStream&&(!!((a=t.errors)!=null&&a.length)||!!((i=e.configData.errors)!=null&&i.length));return R.jsxs(R.Fragment,{children:[R.jsx(zFe,{input:e.inputSchema.schema,value:t,onChange:s=>n(s)}),e.children,R.jsx("div",{className:"flex-grow md:hidden"}),R.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[R.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),R.jsx(YH,{config:e.configData.data,children:R.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[R.jsx(EB,{className:"flex-shrink-0"})," ",R.jsx("span",{children:"Share"})]})}),R.jsx(BFe,{disabled:o,onSubmit:r.current,isLoading:!!e.stopStream})]})]})}function qFe(e){const t=rS(window.location.href),[n,r]=$.useState({data:t.configFromUrl??e.configSchema.defaults,errors:[],defaults:!0}),o=pU(),[a,i]=HFe(n.data,500),s=mU(a!==e.configSchema.defaults?a:void 0),{context:l,callbacks:c}=VU(),{startStream:u,stopStream:f,latest:p}=zU(c);return R.jsxs(e3.Provider,{value:l,children:[R.jsx(FFe,{config:e.configSchema.schema,value:n,onChange:r}),R.jsx("div",{className:qa("flex flex-col flex-grow gap-4 w-full transition-opacity",(s.isLoading||i.isPending())&&"opacity-50 pointer-events-none"),children:s.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:s.error.toString()})}):R.jsx(R.Fragment,{children:s.data!=null?R.jsx(GFe,{configSchema:e.configSchema,inputSchema:s.data,configData:n,startStream:u,stopStream:f,children:p&&R.jsxs("div",{className:"flex flex-col gap-3",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),R.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words relative group",children:[R.jsx(IG,{streamed:p.streamed_output}),o.data&&p.id?R.jsx("div",{className:"absolute right-4 top-4 flex items-center gap-2 transition-opacity opacity-0 focus-within:opacity-100 group-hover:opacity-100",children:R.jsx(L3,{runId:p.id},p.id)}):null]}),R.jsx(OG,{latest:p,feedbackEnabled:!!o.data})]})}):null})})]})}function YFe(){const e=hU();return e.isLoading?null:e.error!=null?R.jsx("div",{className:"bg-background rounded-xl",children:R.jsx("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:e.error.toString()})}):e.data==null?"No config schema found":R.jsx(qFe,{configSchema:e.data})}function KFe(){return R.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:R.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[R.jsxs("h1",{className:"text-2xl text-left",children:[R.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),R.jsx(YFe,{})]})})}var z8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var S=_.match(r);if(!S)return null;var E=(""+S[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(z8);var JFe=z8.exports;const ZFe=Vt(JFe);var V8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,S<=_.r||!_.r){S<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&(S=m(""+S)),v=typeof E=="string"?E.replace("%d",S):E(S,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(V8);var XFe=V8.exports;const QFe=Vt(XFe);xr.extend(QFe);xr.extend(ZFe);cw.createRoot(document.getElementById("root")).render(R.jsx(KFe,{})); diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index 355e0fd4..734949fb 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,7 +5,7 @@ Playground - + From aa7f71a3b07ff03150e31f0be19dddccccbaa111 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 28 Nov 2023 14:36:20 -0500 Subject: [PATCH 17/23] Version 0.0.32 (#265) See release notes --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a7286750..e49fb107 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langserve" -version = "0.0.31" +version = "0.0.32" description = "" readme = "README.md" authors = ["LangChain"] From 19382cec4b1e331cfbca72c73eac5716dcef9865 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 28 Nov 2023 17:50:49 -0500 Subject: [PATCH 18/23] Add configurable retriever example (#267) - Add configurable retriever example - Introduce a custom runnable for retriever to allow configuring something like a collection name --- examples/configurable_retrieval/client.ipynb | 168 +++++++++++++++++++ examples/configurable_retrieval/server.py | 126 ++++++++++++++ 2 files changed, 294 insertions(+) create mode 100644 examples/configurable_retrieval/client.ipynb create mode 100755 examples/configurable_retrieval/server.py diff --git a/examples/configurable_retrieval/client.ipynb b/examples/configurable_retrieval/client.ipynb new file mode 100644 index 00000000..2cba4d4c --- /dev/null +++ b/examples/configurable_retrieval/client.ipynb @@ -0,0 +1,168 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Client\n", + "\n", + "Demo of a client interacting with a configurable retriever (see server code)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can interact with this via API directly" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'output': [{'page_content': 'cats like fish',\n", + " 'metadata': {},\n", + " 'type': 'Document'},\n", + " {'page_content': 'dogs like sticks', 'metadata': {}, 'type': 'Document'}],\n", + " 'callback_events': [],\n", + " 'metadata': {'run_id': 'f375cdf6-2848-4976-9565-f69e175c24ce'}}" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import requests\n", + "\n", + "inputs = {\"input\": \"cat\"}\n", + "response = requests.post(\"http://localhost:8000/invoke\", json=inputs)\n", + "\n", + "response.json()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can also interact with this via the RemoteRunnable interface (to use in other chains)" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "from langserve import RemoteRunnable\n", + "\n", + "remote_runnable = RemoteRunnable(\"http://localhost:8000/\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Remote runnable has the same interface as local runnables" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[Document(page_content='cats like fish'),\n", + " Document(page_content='dogs like sticks')]" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "await remote_runnable.ainvoke(\"cat\")" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[Document(page_content='cats like fish'),\n", + " Document(page_content='dogs like sticks')]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "await remote_runnable.ainvoke(\"cat\", {\"configurable\": {\"collection_name\": \"Index 1\"}})" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[Document(page_content='x_n+1=a * xn * (1-xn)')]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "await remote_runnable.ainvoke(\"cat\", {\"configurable\": {\"collection_name\": \"Index 2\"}})" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.6" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} diff --git a/examples/configurable_retrieval/server.py b/examples/configurable_retrieval/server.py new file mode 100755 index 00000000..0382e79e --- /dev/null +++ b/examples/configurable_retrieval/server.py @@ -0,0 +1,126 @@ +#!/usr/bin/env python +"""A more complex example that shows how to configure index name at run time.""" +from typing import Any, Iterable, List, Optional, Type + +from fastapi import FastAPI +from langchain.embeddings import OpenAIEmbeddings +from langchain.schema import Document +from langchain.schema.embeddings import Embeddings +from langchain.schema.retriever import BaseRetriever +from langchain.schema.runnable import ( + ConfigurableFieldSingleOption, + RunnableConfig, + RunnableSerializable, +) +from langchain.schema.vectorstore import VST +from langchain.vectorstores import FAISS, VectorStore + +from langserve import add_routes +from langserve.pydantic_v1 import BaseModel, Field + +vectorstore1 = FAISS.from_texts( + ["cats like fish", "dogs like sticks"], embedding=OpenAIEmbeddings() +) + +vectorstore2 = FAISS.from_texts(["x_n+1=a * xn * (1-xn)"], embedding=OpenAIEmbeddings()) + + +app = FastAPI( + title="LangChain Server", + version="1.0", + description="Spin up a simple api server using Langchain's Runnable interfaces", +) + + +class UnderlyingVectorStore(VectorStore): + """This is a fake vectorstore for demo purposes.""" + + def __init__(self, collection_name: str) -> None: + """Fake vectorstore that has a collection name.""" + self.collection_name = collection_name + + def as_retriever(self) -> BaseRetriever: + if self.collection_name == "index1": + return vectorstore1.as_retriever() + elif self.collection_name == "index2": + return vectorstore2.as_retriever() + else: + raise NotImplementedError( + f"No retriever for collection {self.collection_name}" + ) + + def add_texts( + self, + texts: Iterable[str], + metadatas: Optional[List[dict]] = None, + **kwargs: Any, + ) -> List[str]: + raise NotImplementedError() + + @classmethod + def from_texts( + cls: Type[VST], + texts: List[str], + embedding: Embeddings, + metadatas: Optional[List[dict]] = None, + **kwargs: Any, + ) -> VST: + raise NotImplementedError() + + def similarity_search( + self, embedding: List[float], k: int = 4, **kwargs: Any + ) -> List[Document]: + raise NotImplementedError() + + +class ConfigurableRetriever(RunnableSerializable[str, List[Document]]): + """Create a custom retriever that can be configured by the user. + + This is an example of how to create a custom runnable that can be configured + to use a different collection name at run time. + + Configuration involves instantiating a VectorStore with a collection name. + at run time, so the underlying vectorstore should be *cheap* to instantiate. + + For example, it should not be making any network requests at instantiation time. + + Make sure that the vectorstore you use meets this criteria. + """ + + collection_name: str + + def invoke( + self, input: str, config: Optional[RunnableConfig] = None + ) -> List[Document]: + """Invoke the retriever.""" + vectorstore = UnderlyingVectorStore(self.collection_name) + retriever = vectorstore.as_retriever() + return retriever.invoke(input, config=config) + + +configurable_collection_name = ConfigurableRetriever( + collection_name="index1" +).configurable_fields( + collection_name=ConfigurableFieldSingleOption( + id="collection_name", + name="Collection Name", + description="The name of the collection to use for the retriever.", + options={ + "Index 1": "index1", + "Index 2": "index2", + }, + default="Index 1", + ) +) + + +class Request(BaseModel): + __root__: str = Field(default="cat", description="Search query") + + +add_routes(app, configurable_collection_name.with_types(input_type=Request)) + +if __name__ == "__main__": + import uvicorn + + uvicorn.run(app, host="localhost", port=8000) From 678d5b71512f53f4262111f3f4c3cd624fb5f006 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Wed, 29 Nov 2023 11:37:41 -0500 Subject: [PATCH 19/23] Update .clabot (#269) --- .clabot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clabot b/.clabot index d2a1a021..1fdeec83 100644 --- a/.clabot +++ b/.clabot @@ -1,4 +1,5 @@ { - "contributors": ["eyurtsev", "hwchase17", "nfcampos", "efriis", "jacoblee93", "dqbd", "kreneskyp", "adarsh-jha-dev", "harris", "baskaryan", "hinthornw", "bracesproul", "jakerachleff", "craigsdennis", "anhi"], + "contributors": ["eyurtsev", "hwchase17", "nfcampos", "efriis", "jacoblee93", "dqbd", "kreneskyp", "adarsh-jha-dev", "harris", "baskaryan", "hinthornw", "bracesproul", "jakerachleff", "craigsdennis", "anhi", "169", "LarchLiu", "PaulLockett", "RCMatthias", "jwynia", "majiayu000", "mpskex", "shivachittamuru", "sinashaloudegi", "sowsan" +], "message": "Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the username {{usersWithoutCLA}} on file. In order for us to review and merge your code, please complete the Individual Contributor License Agreement here https://forms.gle/Ljhqvt9Gdi1N385W6 .\n\nThis process is done manually on our side, so after signing the form one of the maintainers will add you to the contributors list.\n\nFor more details about why we have a CLA and other contribution guidelines please see: https://github.com/langchain-ai/langserve/blob/main/CONTRIBUTING.md." } From 160ca683bc66df3cc799aef21b50864ee909fa5c Mon Sep 17 00:00:00 2001 From: sowmyan soman Date: Wed, 29 Nov 2023 11:38:44 -0500 Subject: [PATCH 20/23] Added deployment option to Azure in the documentation (#266) Added deployment option to Azure in the documentation, using serverless option - Azure Container Apps, similart to GCP Cloud Run sample provided. Thanks! --------- Co-authored-by: ShivaKumarChittamuru Co-authored-by: Eugene Yurtsev --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8dfb4bbf..0d7f249d 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,16 @@ If you encounter any errors, please open an issue on THIS repo, and we will work ## Deployment +### Deploy to Azure + +You can deploy to Azure using Azure Container Apps (Serverless): + +``` +az containerapp up --name [container-app-name] --source . --resource-group [resource-group-name] --environment [environment-name] --ingress external --target-port 8001 --env-vars=OPENAI_API_KEY=your_key +``` + +You can find more info [here](https://learn.microsoft.com/en-us/azure/container-apps/containerapp-up) + ### Deploy to GCP You can deploy to GCP Cloud Run using the following command: @@ -272,6 +282,9 @@ You can deploy to GCP Cloud Run using the following command: gcloud run deploy [your-service-name] --source . --port 8001 --allow-unauthenticated --region us-central1 --set-env-vars=OPENAI_API_KEY=your_key ``` + + + ## Pydantic LangServe provides support for Pydantic 2 with some limitations. From ce0428218c98c3bdd211194aa9416ac7b2cbe62c Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 30 Nov 2023 12:15:43 -0500 Subject: [PATCH 21/23] Bump overall test timeout (#273) Looks like we're htiting 5 mins total for tests --- .github/workflows/_pydantic_compatibility.yml | 2 +- .github/workflows/langserve_ci.yml | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_pydantic_compatibility.yml b/.github/workflows/_pydantic_compatibility.yml index 97f0c744..e72d83fc 100644 --- a/.github/workflows/_pydantic_compatibility.yml +++ b/.github/workflows/_pydantic_compatibility.yml @@ -13,7 +13,7 @@ env: jobs: build: - timeout-minutes: 5 + timeout-minutes: 10 defaults: run: working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/langserve_ci.yml b/.github/workflows/langserve_ci.yml index 7556ae8a..094c3b2b 100644 --- a/.github/workflows/langserve_ci.yml +++ b/.github/workflows/langserve_ci.yml @@ -47,7 +47,7 @@ jobs: working-directory: . secrets: inherit test: - timeout-minutes: 5 + timeout-minutes: 10 runs-on: ubuntu-latest defaults: run: diff --git a/pyproject.toml b/pyproject.toml index e49fb107..4bdc9d71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,6 +94,6 @@ build-backend = "poetry.core.masonry.api" # section of the configuration file raise errors. addopts = "--strict-markers --strict-config --durations=5 -vv" # Global timeout for all tests. There shuold be a good reason for a test to -# take more than 5 second +# take more than 5 seconds timeout = 5 asyncio_mode = "auto" From 98eeeb6ea46966975e5e95654767103e294c5738 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 30 Nov 2023 14:43:08 -0500 Subject: [PATCH 22/23] Refactor in preparation to add ability to enable/disable individual endpoints (#271) A fairly large refactor of the internals. This PR separates the implementation of the endpoint logic from the logic that exposes the endpoint and logic that creates open api documentation for the endpoint. I personally find this a bit easier to manage as opposed to a single namespace inside of add_routes. There's probably a bit more changes we could do going forward to help encapsulate logic into smaller pieces (e.g., documentation) -- though not needed right now. Users will not notice any changes except: 1. Feedback endpoint when disabled will return a 404 rather than a 400, and will be hidden from documentation Main issues: 1) If we go with a list of boolean flags which are enabled by default, then if we decide to create additional endpoints, those will appear for a user; an option to mitigate is to have a single variable called `with_endpoints = ()` which will be an allow list rather than a block list, but that could get pretty tedious. We could potentially provide both options, giving the allow list precedence if specified. --- langserve/server.py | 1144 ++++++++++++++---------- tests/unit_tests/test_server_client.py | 112 ++- 2 files changed, 799 insertions(+), 457 deletions(-) diff --git a/langserve/server.py b/langserve/server.py index 0ea520d0..1a9f40d3 100644 --- a/langserve/server.py +++ b/langserve/server.py @@ -6,6 +6,7 @@ FastAPI app or APIRouter. """ import contextlib +import importlib import json import os import re @@ -456,204 +457,163 @@ def _json_encode_response(model: BaseModel) -> JSONResponse: return JSONResponse(content=obj) -# PUBLIC API - - -def add_routes( - app: Union[FastAPI, APIRouter], - runnable: Runnable, - *, - path: str = "", - input_type: Union[Type, Literal["auto"], BaseModel] = "auto", - output_type: Union[Type, Literal["auto"], BaseModel] = "auto", - config_keys: Sequence[str] = ("configurable",), - include_callback_events: bool = False, - enable_feedback_endpoint: bool = False, - per_req_config_modifier: Optional[PerRequestConfigModifier] = None, -) -> None: - """Register the routes on the given FastAPI app or APIRouter. +try: + from sse_starlette import EventSourceResponse +except ImportError: + EventSourceResponse = Any - The following routes are added per runnable under the specified `path`: +class _APIHandler: + """Implementation of the various API endpoints for a runnable server. - * /invoke - for invoking a runnable with a single input - * /batch - for invoking a runnable with multiple inputs - * /stream - for streaming the output of a runnable - * /stream_log - for streaming intermediate outputs for a runnable - * /input_schema - for returning the input schema of the runnable - * /output_schema - for returning the output schema of the runnable - * /config_schema - for returning the config schema of the runnable + This is a private class whose API is expected to change. - Args: - app: The FastAPI app or APIRouter to which routes should be added. - runnable: The runnable to wrap, must not be stateful. - path: A path to prepend to all routes. - input_type: type to use for input validation. - Default is "auto" which will use the InputType of the runnable. - User is free to provide a custom type annotation. - Favor using runnable.with_types(input_type=..., output_type=...) instead. - This parameter may get deprecated! - output_type: type to use for output validation. - Default is "auto" which will use the OutputType of the runnable. - User is free to provide a custom type annotation. - Favor using runnable.with_types(input_type=..., output_type=...) instead. - This parameter may get deprecated! - config_keys: list of config keys that will be accepted, by default - will accept `configurable` key in the config. Will only be used - if the runnable is configurable. Cannot configure run_name, - which is set by default to the path of the API. - include_callback_events: Whether to include callback events in the response. - If true, the client will be able to show trace information - including events that occurred on the server side. - Be sure not to include any sensitive information in the callback events. - enable_feedback_endpoint: Whether to enable an endpoint for logging feedback - to LangSmith. Enabled by default. If this flag is disabled or LangSmith - tracing is not enabled for the runnable, then 400 errors will be thrown - when accessing the feedback endpoint - per_req_config_modifier: optional function that can be used to update the - RunnableConfig for a given run based on the raw request. This is useful, - for example, if the user wants to pass in a header containing credentials - to a runnable. The RunnableConfig is presented in its dictionary form. - Note that only keys in `config_keys` will be modifiable by this function. + Currently, the sole role of the handler at the moment is to separate the + implementation of the endpoints from the logic that registers them on + a FastAPI app and logic that adds them to the FastAPI OpenAPI docs. """ - try: - from sse_starlette import EventSourceResponse - except ImportError: - raise ImportError( - "sse_starlette must be installed to implement the stream and " - "stream_log endpoints. " - "Use `pip install sse_starlette` to install." - ) - if isinstance(app, FastAPI): # type: ignore - # Cannot do this checking logic for a router since - # API routers are not hashable - _register_path_for_app(app, path) - well_known_lc_serializer = WellKnownLCSerializer() + def __init__( + self, + runnable: Runnable, + *, + path: str = "", + base_url: str = "", + input_type: Union[Type, Literal["auto"], BaseModel] = "auto", + output_type: Union[Type, Literal["auto"], BaseModel] = "auto", + config_keys: Sequence[str] = ("configurable",), + include_callback_events: bool = False, + enable_feedback_endpoint: bool = False, + per_req_config_modifier: Optional[PerRequestConfigModifier] = None, + ) -> None: + """Create a new RunnableServer. + + Args: + runnable: The runnable to serve. + path: The path to serve the runnable under. + base_url: Base URL for playground + input_type: type to use for input validation. + Default is "auto" which will use the InputType of the runnable. + User is free to provide a custom type annotation. + Favor using runnable.with_types(input_type=..., output_type=...) + instead. This parameter may get deprecated! + output_type: type to use for output validation. + Default is "auto" which will use the OutputType of the runnable. + User is free to provide a custom type annotation. + Favor using runnable.with_types(input_type=..., output_type=...) + instead. This parameter may get deprecated! + config_keys: list of config keys that will be accepted, by default + will accept `configurable` key in the config. Will only be used + if the runnable is configurable. Cannot configure run_name, + which is set by default to the path of the API. + include_callback_events: Whether to include callback events in the response. + If true, the client will be able to show trace information + including events that occurred on the server side. + Be sure not to include any sensitive information in the callback events. + enable_feedback_endpoint: Whether to enable an endpoint for logging feedback + to LangSmith. Enabled by default. If this flag is disabled or LangSmith + tracing is not enabled for the runnable, then 400 errors will be thrown + when accessing the feedback endpoint + per_req_config_modifier: optional function that can be used to update the + RunnableConfig for a given run based on the raw request. This is useful, + for example, if the user wants to pass in a header containing + credentials to a runnable. The RunnableConfig is presented in its + dictionary form. Note that only keys in `config_keys` will be + modifiable by this function. + """ + if importlib.util.find_spec("sse_starlette") is None: + raise ImportError( + "sse_starlette must be installed to implement the stream and " + "stream_log endpoints. " + "Use `pip install sse_starlette` to install." + ) - if path and not path.startswith("/"): - raise ValueError( - f"Got an invalid path: {path}. " - f"If specifying path please start it with a `/`" - ) + if "run_name" in config_keys: + raise ValueError( + "Cannot configure run_name. Please remove it from config_keys." + ) - if "run_name" in config_keys: - raise ValueError( - "Cannot configure run_name. Please remove it from config_keys." + self.config_keys = config_keys + self.path = path + self.include_callback_events = include_callback_events + self.per_req_config_modifier = per_req_config_modifier + self.base_url = base_url + self.well_known_lc_serializer = WellKnownLCSerializer() + self.enable_feedback_endpoint = enable_feedback_endpoint + + # Please do not change the naming on ls_client. It is used with mocking + # in our unit tests for langsmith integrations. + self.langsmith_client = ( + ls_client.Client() + if tracing_is_enabled() and enable_feedback_endpoint + else None ) - namespace = path or "" + with_types = {} - model_namespace = _replace_non_alphanumeric_with_underscores(path.strip("/")) + if input_type != "auto": + with_types["input_type"] = input_type + if output_type != "auto": + with_types["output_type"] = output_type - route_tags = [path.strip("/")] if path else None - route_tags_with_config = [f"{path.strip('/')}/config"] if path else ["config"] + if with_types: + runnable = runnable.with_types(**with_types) - # Please do not change the naming on ls_client. It is used with mocking - # in our unit tests for langsmith integrations. - langsmith_client = ( - ls_client.Client() - if tracing_is_enabled() and enable_feedback_endpoint - else None - ) + self.runnable = runnable - def _route_name(name: str) -> str: - """Return the route name with the given name.""" - return f"{path.strip('/')} {name}" if path else name + model_namespace = _replace_non_alphanumeric_with_underscores(path.strip("/")) - def _route_name_with_config(name: str) -> str: - """Return the route name with the given name.""" - return ( - f"{path.strip('/')} {name} with config" if path else f"{name} with config" + input_type_ = _resolve_model( + runnable.get_input_schema(), "Input", model_namespace ) - if hasattr(app, "openapi_tags") and (path or (app not in _APP_SEEN)): - if not path: - _APP_SEEN.add(app) - - if _PYDANTIC_MAJOR_VERSION == 1: - # Documentation for the default endpoints - default_endpoint_tags = { - "name": route_tags[0] if route_tags else "default", - } - elif _PYDANTIC_MAJOR_VERSION == 2: - # When using pydantic v2, we cannot generate openapi docs for - # the invoke/batch/stream/stream_log endpoints since the underlying - # models are from the pydantic.v1 namespace and cannot be supported - # by fastapi's. - # https://github.com/tiangolo/fastapi/issues/10360 - default_endpoint_tags = { - "name": route_tags[0] if route_tags else "default", - "description": ( - f"⚠️ Using pydantic {PYDANTIC_VERSION}. " - f"OpenAPI docs for `invoke`, `batch`, `stream`, `stream_log` " - f"endpoints will not be generated. API endpoints and playground " - f"should work as expected. " - f"If you need to see the docs, you can downgrade to pydantic 1. " - "For example, `pip install pydantic==1.10.13`" - f"See https://github.com/tiangolo/fastapi/issues/10360 for details." - ), - } - else: - raise AssertionError( - f"Expected pydantic major version 1 or 2, got {_PYDANTIC_MAJOR_VERSION}" - ) - - app.openapi_tags = [ - *(getattr(app, "openapi_tags", []) or []), - default_endpoint_tags, - { - "name": route_tags_with_config[0], - "description": ( - "Endpoints with a default configuration " - "set by `config_hash` path parameter. " - "Used in conjunction with share links generated using the " - "LangServe UI playground. " - "The hash is an LZString compressed JSON string." - ), - }, - ] + output_type_ = _resolve_model( + runnable.get_output_schema(), + "Output", + model_namespace, + ) - with_types = {} + self.ConfigPayload = _add_namespace_to_model( + model_namespace, runnable.config_schema(include=config_keys) + ) - if input_type != "auto": - with_types["input_type"] = input_type - if output_type != "auto": - with_types["output_type"] = output_type + self.InvokeRequest = create_invoke_request_model( + model_namespace, input_type_, self.ConfigPayload + ) - if with_types: - runnable = runnable.with_types(**with_types) + self.BatchRequest = create_batch_request_model( + model_namespace, input_type_, self.ConfigPayload + ) + self.StreamRequest = create_stream_request_model( + model_namespace, input_type_, self.ConfigPayload + ) + self.StreamLogRequest = create_stream_log_request_model( + model_namespace, input_type_, self.ConfigPayload + ) + # Generate the response models + self.InvokeResponse = create_invoke_response_model( + model_namespace, output_type_ + ) + self.BatchResponse = create_batch_response_model(model_namespace, output_type_) - input_type_ = _resolve_model(runnable.get_input_schema(), "Input", model_namespace) + def _route_name(name: str) -> str: + """Return the route name with the given name.""" + return f"{path.strip('/')} {name}" if path else name - output_type_ = _resolve_model( - runnable.get_output_schema(), - "Output", - model_namespace, - ) + self._route_name = _route_name - ConfigPayload = _add_namespace_to_model( - model_namespace, runnable.config_schema(include=config_keys) - ) + def _route_name_with_config(name: str) -> str: + """Return the route name with the given name.""" + return ( + f"{path.strip('/')} {name} with config" + if path + else f"{name} with config" + ) - InvokeRequest = create_invoke_request_model( - model_namespace, input_type_, ConfigPayload - ) - BatchRequest = create_batch_request_model( - model_namespace, input_type_, ConfigPayload - ) - StreamRequest = create_stream_request_model( - model_namespace, input_type_, ConfigPayload - ) - StreamLogRequest = create_stream_log_request_model( - model_namespace, input_type_, ConfigPayload - ) - # Generate the response models - InvokeResponse = create_invoke_response_model(model_namespace, output_type_) - BatchResponse = create_batch_response_model(model_namespace, output_type_) + self._route_name_with_config = _route_name_with_config async def _get_config_and_input( - request: Request, config_hash: str, *, endpoint: Optional[str] = None + self, request: Request, config_hash: str, *, endpoint: Optional[str] = None ) -> Tuple[RunnableConfig, Any]: """Extract the config and input from the request, validating the request.""" try: @@ -667,44 +627,40 @@ async def _get_config_and_input( user_provided_config = _unpack_request_config( config_hash, body.config, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, ) config = _update_config_with_defaults( - path, user_provided_config, request, endpoint=endpoint + self.path, user_provided_config, request, endpoint=endpoint ) # Unpack the input dynamically using the input schema of the runnable. # This takes into account changes in the input type when # using configuration. - schema = runnable.with_config(config).input_schema + schema = self.runnable.with_config(config).input_schema input_ = schema.validate(body.input) return config, _unpack_input(input_) except ValidationError as e: raise RequestValidationError(e.errors(), body=body) - @app.post( - namespace + "/c/{config_hash}/invoke", - include_in_schema=False, - ) - @app.post(f"{namespace}/invoke", include_in_schema=False) async def invoke( + self, request: Request, config_hash: str = "", ) -> Response: """Invoke the runnable with the given input and config.""" # We do not use the InvokeRequest model here since configurable runnables # have dynamic schema -- so the validation below is a bit more involved. - config, input_ = await _get_config_and_input( + config, input_ = await self._get_config_and_input( request, config_hash, endpoint="invoke" ) event_aggregator = AsyncEventAggregatorCallback() config["callbacks"] = [event_aggregator] - output = await runnable.ainvoke(input_, config=config) + output = await self.runnable.ainvoke(input_, config=config) - if include_callback_events: + if self.include_callback_events: callback_events = [ _scrub_exceptions_in_event(event) for event in event_aggregator.callback_events @@ -713,8 +669,8 @@ async def invoke( callback_events = [] return _json_encode_response( - InvokeResponse( - output=well_known_lc_serializer.dumpd(output), + self.InvokeResponse( + output=self.well_known_lc_serializer.dumpd(output), # Callbacks are scrubbed and exceptions are converted to # serializable format before returned in the response. callback_events=callback_events, @@ -724,12 +680,8 @@ async def invoke( ), ) - @app.post( - namespace + "/c/{config_hash}/batch", - include_in_schema=False, - ) - @app.post(f"{namespace}/batch", include_in_schema=False) async def batch( + self, request: Request, config_hash: str = "", ) -> Response: @@ -756,10 +708,10 @@ async def batch( _unpack_request_config( config_hash, config, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, ) for config in config ] @@ -767,10 +719,10 @@ async def batch( configs = _unpack_request_config( config_hash, config, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, ) else: raise HTTPException( @@ -783,12 +735,14 @@ async def batch( # Since we'll be adding callbacks to the configs. configs_ = [ - {k: v for k, v in config_.items() if k in config_keys} + {k: v for k, v in config_.items() if k in self.config_keys} for config_ in get_config_list(configs, len(inputs_)) ] inputs = [ - _unpack_input(runnable.with_config(config_).input_schema.validate(input_)) + _unpack_input( + self.runnable.with_config(config_).input_schema.validate(input_) + ) for config_, input_ in zip(configs_, inputs_) ] @@ -799,12 +753,14 @@ async def batch( for config_, aggregator in zip(configs_, aggregators): config_["callbacks"] = [aggregator] final_configs.append( - _update_config_with_defaults(path, config_, request, endpoint="batch") + _update_config_with_defaults( + self.path, config_, request, endpoint="batch" + ) ) - output = await runnable.abatch(inputs, config=final_configs) + output = await self.runnable.abatch(inputs, config=final_configs) - if include_callback_events: + if self.include_callback_events: callback_events = [ # Scrub sensitive information and convert # exceptions to serializable format @@ -817,8 +773,8 @@ async def batch( else: callback_events = [] - obj = BatchResponse( - output=well_known_lc_serializer.dumpd(output), + obj = self.BatchResponse( + output=self.well_known_lc_serializer.dumpd(output), callback_events=callback_events, metadata=BatchResponseMetadata( run_ids=[_get_base_run_id_as_str(agg) for agg in aggregators] @@ -826,9 +782,8 @@ async def batch( ) return _json_encode_response(obj) - @app.post(namespace + "/c/{config_hash}/stream", include_in_schema=False) - @app.post(f"{namespace}/stream", include_in_schema=False) async def stream( + self, request: Request, config_hash: str = "", ) -> EventSourceResponse: @@ -840,7 +795,7 @@ async def stream( err_event = {} validation_exception: Optional[BaseException] = None try: - config, input_ = await _get_config_and_input( + config, input_ = await self._get_config_and_input( request, config_hash, endpoint="stream" ) except BaseException as e: @@ -878,7 +833,7 @@ async def _stream() -> AsyncIterator[dict]: event_aggregator = AsyncEventAggregatorCallback() config_w_callbacks["callbacks"] = [event_aggregator] has_sent_metadata = False - async for chunk in runnable.astream( + async for chunk in self.runnable.astream( input_, config=config_w_callbacks, ): @@ -897,7 +852,9 @@ async def _stream() -> AsyncIterator[dict]: # EventSourceResponse expects a string for data # so after serializing into bytes, we decode into utf-8 # to get a string. - "data": well_known_lc_serializer.dumps(chunk).decode("utf-8"), + "data": self.well_known_lc_serializer.dumps(chunk).decode( + "utf-8" + ), "event": "data", } yield {"event": "end"} @@ -915,15 +872,8 @@ async def _stream() -> AsyncIterator[dict]: return EventSourceResponse(_stream()) - @app.post( - namespace + "/c/{config_hash}/stream_log", - include_in_schema=False, - ) - @app.post( - f"{namespace}/stream_log", - include_in_schema=False, - ) async def stream_log( + self, request: Request, config_hash: str = "", ) -> EventSourceResponse: @@ -935,7 +885,7 @@ async def stream_log( err_event = {} validation_exception: Optional[BaseException] = None try: - config, input_ = await _get_config_and_input( + config, input_ = await self._get_config_and_input( request, config_hash, endpoint="stream_log" ) except BaseException as e: @@ -989,7 +939,7 @@ async def _stream_log() -> AsyncIterator[dict]: ) from validation_exception try: - async for chunk in runnable.astream_log( + async for chunk in self.runnable.astream_log( input_, config=config, diff=True, @@ -1013,7 +963,9 @@ async def _stream_log() -> AsyncIterator[dict]: # EventSourceResponse expects a string for data # so after serializing into bytes, we decode into utf-8 # to get a string. - "data": well_known_lc_serializer.dumps(data).decode("utf-8"), + "data": self.well_known_lc_serializer.dumps(data).decode( + "utf-8" + ), "event": "data", } yield {"event": "end"} @@ -1031,125 +983,93 @@ async def _stream_log() -> AsyncIterator[dict]: return EventSourceResponse(_stream_log()) - @app.get( - namespace + "/c/{config_hash}/input_schema", - tags=route_tags_with_config, - name=_route_name_with_config("input_schema"), - ) - @app.get( - f"{namespace}/input_schema", tags=route_tags, name=_route_name("input_schema") - ) - async def input_schema(request: Request, config_hash: str = "") -> Any: + async def input_schema(self, request: Request, config_hash: str = "") -> Any: """Return the input schema of the runnable.""" with _with_validation_error_translation(): user_provided_config = _unpack_request_config( config_hash, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, + ) + config = _update_config_with_defaults( + self.path, user_provided_config, request ) - config = _update_config_with_defaults(path, user_provided_config, request) - return runnable.get_input_schema(config).schema() + return self.runnable.get_input_schema(config).schema() - @app.get( - namespace + "/c/{config_hash}/output_schema", - tags=route_tags_with_config, - name=_route_name_with_config("output_schema"), - ) - @app.get( - f"{namespace}/output_schema", - tags=route_tags, - name=_route_name("output_schema"), - ) - async def output_schema(request: Request, config_hash: str = "") -> Any: + async def output_schema(self, request: Request, config_hash: str = "") -> Any: """Return the output schema of the runnable.""" with _with_validation_error_translation(): user_provided_config = _unpack_request_config( config_hash, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, + ) + config = _update_config_with_defaults( + self.path, user_provided_config, request ) - config = _update_config_with_defaults(path, user_provided_config, request) - return runnable.get_output_schema(config).schema() + return self.runnable.get_output_schema(config).schema() - @app.get( - namespace + "/c/{config_hash}/config_schema", - tags=route_tags_with_config, - name=_route_name_with_config("config_schema"), - ) - @app.get( - f"{namespace}/config_schema", tags=route_tags, name=_route_name("config_schema") - ) - async def config_schema(request: Request, config_hash: str = "") -> Any: + async def config_schema(self, request: Request, config_hash: str = "") -> Any: """Return the config schema of the runnable.""" with _with_validation_error_translation(): user_provided_config = _unpack_request_config( config_hash, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, + ) + config = _update_config_with_defaults( + self.path, user_provided_config, request ) - config = _update_config_with_defaults(path, user_provided_config, request) - return runnable.with_config(config).config_schema(include=config_keys).schema() + return ( + self.runnable.with_config(config) + .config_schema(include=self.config_keys) + .schema() + ) - @app.get( - namespace + "/c/{config_hash}/playground/{file_path:path}", - include_in_schema=False, - ) - @app.get(namespace + "/playground/{file_path:path}", include_in_schema=False) async def playground( - file_path: str, request: Request, config_hash: str = "" + self, file_path: str, request: Request, config_hash: str = "" ) -> Any: """Return the playground of the runnable.""" with _with_validation_error_translation(): user_provided_config = _unpack_request_config( config_hash, - config_keys=config_keys, - model=ConfigPayload, + config_keys=self.config_keys, + model=self.ConfigPayload, request=request, - per_req_config_modifier=per_req_config_modifier, + per_req_config_modifier=self.per_req_config_modifier, + ) + + config = _update_config_with_defaults( + self.path, user_provided_config, request ) - config = _update_config_with_defaults(path, user_provided_config, request) + feedback_enabled = tracing_is_enabled() and self.enable_feedback_endpoint - if isinstance(app, FastAPI): # type: ignore - base_url = f"{namespace}/playground" + if self.base_url.endswith("/"): + playground_url = self.base_url + "playground" else: - base_url = f"{app.prefix}{namespace}/playground" - - feedback_enabled = tracing_is_enabled() and enable_feedback_endpoint + playground_url = self.base_url + "/playground" return await serve_playground( - runnable.with_config(config), - runnable.with_config(config).input_schema, - config_keys, - base_url, + self.runnable.with_config(config), + self.runnable.with_config(config).input_schema, + self.config_keys, + playground_url, file_path, feedback_enabled, ) - @app.head(namespace + "/c/{config_hash}/feedback") - @app.head(namespace + "/feedback") - async def check_feedback_enabled(config_hash: str = ""): - if not tracing_is_enabled() or not enable_feedback_endpoint: - raise HTTPException( - 400, - "The feedback endpoint is only accessible when LangSmith is " - + "enabled on your LangServe server.", - ) - - @app.post(namespace + "/c/{config_hash}/feedback") - @app.post(namespace + "/feedback") async def create_feedback( - feedback_create_req: FeedbackCreateRequest, config_hash: str = "" + self, feedback_create_req: FeedbackCreateRequest, config_hash: str = "" ) -> Feedback: - """ - Send feedback on an individual run to langsmith + """Send feedback on an individual run to langsmith Note that a successful response means that feedback was successfully submitted. It does not guarantee that the feedback is recorded by @@ -1157,14 +1077,14 @@ async def create_feedback( unauthenticated or invalid by the server. """ - if not tracing_is_enabled() or not enable_feedback_endpoint: + if not tracing_is_enabled() or not self.enable_feedback_endpoint: raise HTTPException( 400, "The feedback endpoint is only accessible when LangSmith is " + "enabled on your LangServe server.", ) - feedback_from_langsmith = langsmith_client.create_feedback( + feedback_from_langsmith = self.langsmith_client.create_feedback( feedback_create_req.run_id, feedback_create_req.key, score=feedback_create_req.score, @@ -1190,193 +1110,511 @@ async def create_feedback( comment=feedback_from_langsmith.comment, ) - ####################################### - # Documentation variants of end points. - ####################################### - # At the moment, we only support pydantic 1.x for documentation - if _PYDANTIC_MAJOR_VERSION == 1: + async def check_feedback_enabled(self, config_hash: str = "") -> None: + """Check if feedback is enabled for the runnable.""" + if not tracing_is_enabled() or not self.enable_feedback_endpoint: + raise HTTPException( + 400, + "The feedback endpoint is only accessible when LangSmith is " + + "enabled on your LangServe server.", + ) - @app.post( - namespace + "/c/{config_hash}/invoke", - response_model=InvokeResponse, - tags=route_tags_with_config, - name=_route_name_with_config("invoke"), - description=( - "This endpoint is to be used with share links generated by the " - "LangServe playground. " - "The hash is an LZString compressed JSON string. " - "For regular use cases, use the /invoke endpoint without " - "the `c/{config_hash}` path parameter." - ), + +# PUBLIC API + + +def add_routes( + app: Union[FastAPI, APIRouter], + runnable: Runnable, + *, + path: str = "", + input_type: Union[Type, Literal["auto"], BaseModel] = "auto", + output_type: Union[Type, Literal["auto"], BaseModel] = "auto", + config_keys: Sequence[str] = ("configurable",), + include_callback_events: bool = False, + enable_feedback_endpoint: bool = False, + per_req_config_modifier: Optional[PerRequestConfigModifier] = None, +) -> None: + """Register the routes on the given FastAPI app or APIRouter. + + + The following routes are added per runnable under the specified `path`: + + * /invoke - for invoking a runnable with a single input + * /batch - for invoking a runnable with multiple inputs + * /stream - for streaming the output of a runnable + * /stream_log - for streaming intermediate outputs for a runnable + * /input_schema - for returning the input schema of the runnable + * /output_schema - for returning the output schema of the runnable + * /config_schema - for returning the config schema of the runnable + + Args: + app: The FastAPI app or APIRouter to which routes should be added. + runnable: The runnable to wrap, must not be stateful. + path: A path to prepend to all routes. + input_type: type to use for input validation. + Default is "auto" which will use the InputType of the runnable. + User is free to provide a custom type annotation. + Favor using runnable.with_types(input_type=..., output_type=...) instead. + This parameter may get deprecated! + output_type: type to use for output validation. + Default is "auto" which will use the OutputType of the runnable. + User is free to provide a custom type annotation. + Favor using runnable.with_types(input_type=..., output_type=...) instead. + This parameter may get deprecated! + config_keys: list of config keys that will be accepted, by default + will accept `configurable` key in the config. Will only be used + if the runnable is configurable. Cannot configure run_name, + which is set by default to the path of the API. + include_callback_events: Whether to include callback events in the response. + If true, the client will be able to show trace information + including events that occurred on the server side. + Be sure not to include any sensitive information in the callback events. + per_req_config_modifier: optional function that can be used to update the + RunnableConfig for a given run based on the raw request. This is useful, + for example, if the user wants to pass in a header containing credentials + to a runnable. The RunnableConfig is presented in its dictionary form. + Note that only keys in `config_keys` will be modifiable by this function. + enable_feedback_endpoint: Whether to enable an endpoint for logging feedback + to LangSmith. Enabled by default. If this flag is disabled or LangSmith + tracing is not enabled for the runnable, then 400 errors will be thrown + when accessing the feedback endpoint + """ + # Hard-coded flags to disable certain endpoints + # We'll expose them as flags in just a short while once we figure out + # which API to use. + with_invoke: bool = True + with_batch: bool = True + with_stream: bool = True + with_stream_log: bool = True + with_schemas: bool = True + with_config_hash: bool = True + with_playground: bool = True + + try: + from sse_starlette import EventSourceResponse + except ImportError: + raise ImportError( + "sse_starlette must be installed to implement the stream and " + "stream_log endpoints. " + "Use `pip install sse_starlette` to install." ) - @app.post( - f"{namespace}/invoke", - response_model=InvokeResponse, - tags=route_tags, - name=_route_name("invoke"), + + if path and not path.startswith("/"): + raise ValueError( + f"Got an invalid path: {path}. " + f"If specifying path please start it with a `/`" ) - async def _invoke_docs( - invoke_request: Annotated[InvokeRequest, InvokeRequest], - config_hash: str = "", - ) -> InvokeResponse: - """Invoke the runnable with the given input and config.""" - raise AssertionError("This endpoint should not be reachable.") - - @app.post( - namespace + "/c/{config_hash}/batch", - response_model=BatchResponse, - tags=route_tags_with_config, - name=_route_name_with_config("batch"), - description=( - "This endpoint is to be used with share links generated by the " - "LangServe playground. " - "The hash is an LZString compressed JSON string. " - "For regular use cases, use the /batch endpoint without " - "the `c/{config_hash}` path parameter." - ), + + if isinstance(app, FastAPI): # type: ignore + # Cannot do this checking logic for a router since + # API routers are not hashable + _register_path_for_app(app, path) + + # Determine the base URL for the playground endpoint + base_url = (app.prefix if isinstance(app, APIRouter) else "") + path # type: ignore + + api_handler = _APIHandler( + runnable, + path=path, + base_url=base_url, + input_type=input_type, + output_type=output_type, + config_keys=config_keys, + include_callback_events=include_callback_events, + enable_feedback_endpoint=enable_feedback_endpoint, + per_req_config_modifier=per_req_config_modifier, + ) + + namespace = path or "" + + route_tags = [path.strip("/")] if path else None + route_tags_with_config = [f"{path.strip('/')}/config"] if path else ["config"] + + def _route_name(name: str) -> str: + """Return the route name with the given name.""" + return f"{path.strip('/')} {name}" if path else name + + def _route_name_with_config(name: str) -> str: + """Return the route name with the given name.""" + return ( + f"{path.strip('/')} {name} with config" if path else f"{name} with config" ) - @app.post( - f"{namespace}/batch", - response_model=BatchResponse, - tags=route_tags, - name=_route_name("batch"), + + if hasattr(app, "openapi_tags") and (path or (app not in _APP_SEEN)): + if not path: + _APP_SEEN.add(app) + + if _PYDANTIC_MAJOR_VERSION == 1: + # Documentation for the default endpoints + default_endpoint_tags = { + "name": route_tags[0] if route_tags else "default", + } + elif _PYDANTIC_MAJOR_VERSION == 2: + # When using pydantic v2, we cannot generate openapi docs for + # the invoke/batch/stream/stream_log endpoints since the underlying + # models are from the pydantic.v1 namespace and cannot be supported + # by fastapi's. + # https://github.com/tiangolo/fastapi/issues/10360 + default_endpoint_tags = { + "name": route_tags[0] if route_tags else "default", + "description": ( + f"⚠️ Using pydantic {PYDANTIC_VERSION}. " + f"OpenAPI docs for `invoke`, `batch`, `stream`, `stream_log` " + f"endpoints will not be generated. API endpoints and playground " + f"should work as expected. " + f"If you need to see the docs, you can downgrade to pydantic 1. " + "For example, `pip install pydantic==1.10.13`" + f"See https://github.com/tiangolo/fastapi/issues/10360 for details." + ), + } + else: + raise AssertionError( + f"Expected pydantic major version 1 or 2, got {_PYDANTIC_MAJOR_VERSION}" + ) + + if with_config_hash: + app.openapi_tags = [ + *(getattr(app, "openapi_tags", []) or []), + default_endpoint_tags, + { + "name": route_tags_with_config[0], + "description": ( + "Endpoints with a default configuration " + "set by `config_hash` path parameter. " + "Used in conjunction with share links generated using the " + "LangServe UI playground. " + "The hash is an LZString compressed JSON string." + ), + }, + ] + + if with_invoke: + invoke = app.post(f"{namespace}/invoke", include_in_schema=False)( + api_handler.invoke ) - async def _batch_docs( - batch_request: Annotated[BatchRequest, BatchRequest], - config_hash: str = "", - ) -> BatchResponse: - """Batch invoke the runnable with the given inputs and config.""" - raise AssertionError("This endpoint should not be reachable.") - - @app.post( - namespace + "/c/{config_hash}/stream", - include_in_schema=True, - tags=route_tags_with_config, - name=_route_name_with_config("stream"), - description=( - "This endpoint is to be used with share links generated by the " - "LangServe playground. " - "The hash is an LZString compressed JSON string. " - "For regular use cases, use the /stream endpoint without " - "the `c/{config_hash}` path parameter." - ), + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/invoke", + include_in_schema=False, + )(invoke) + + if with_batch: + batch = app.post(f"{namespace}/batch", include_in_schema=False)( + api_handler.batch + ) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/batch", + include_in_schema=False, + )(batch) + + if with_stream: + stream = app.post(f"{namespace}/stream", include_in_schema=False)( + api_handler.stream ) - @app.post( - f"{namespace}/stream", - include_in_schema=True, + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/stream", + include_in_schema=False, + )(stream) + + if with_stream_log: + stream_log = app.post(f"{namespace}/stream_log", include_in_schema=False)( + api_handler.stream_log + ) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/stream_log", + include_in_schema=False, + )(stream_log) + + if with_schemas: + input_schema = app.get( + f"{namespace}/input_schema", + tags=route_tags, + name=_route_name("input_schema"), + )(api_handler.input_schema) + + if with_config_hash: + app.get( + namespace + "/c/{config_hash}/input_schema", + tags=route_tags_with_config, + name=_route_name_with_config("input_schema"), + )(input_schema) + + output_schema = app.get( + f"{namespace}/output_schema", + tags=route_tags, + name=_route_name("output_schema"), + )(api_handler.output_schema) + + if with_config_hash: + app.get( + namespace + "/c/{config_hash}/output_schema", + tags=route_tags_with_config, + name=_route_name_with_config("output_schema"), + )(output_schema) + + config_schema = app.get( + f"{namespace}/config_schema", tags=route_tags, - name=_route_name("stream"), + name=_route_name("config_schema"), + )(api_handler.config_schema) + + if with_config_hash: + app.get( + namespace + "/c/{config_hash}/config_schema", + tags=route_tags_with_config, + name=_route_name_with_config("config_schema"), + )(config_schema) + + if with_playground: + playground = app.get(namespace + "/playground/{file_path:path}")( + api_handler.playground ) - async def _stream_docs( - stream_request: Annotated[StreamRequest, StreamRequest], - config_hash: str = "", - ) -> EventSourceResponse: - """Invoke the runnable stream the output. - This endpoint allows to stream the output of the runnable. + if with_config_hash: + app.get( + namespace + "/c/{config_hash}/playground/{file_path:path}", + )(playground) - The endpoint uses a server sent event stream to stream the output. + if enable_feedback_endpoint: + create_feedback = app.post( + namespace + "/feedback", + )(api_handler.create_feedback) - https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events + if with_config_hash: # Is this needed? We only need run id presumably? + app.post( + namespace + "/c/{config_hash}/feedback", + )(create_feedback) - Important: Set the "text/event-stream" media type for request headers if - not using an existing SDK. + check_feedback_enabled = app.head( + namespace + "/feedback", + )(api_handler.check_feedback_enabled) - This endpoint uses two different types of events: + if with_config_hash: # Is this needed? + app.head( + namespace + "/c/{config_hash}/feedback", + )(check_feedback_enabled) - * data - for streaming the output of the runnable + ####################################### + # Documentation variants of end points. + ####################################### + # At the moment, we only support pydantic 1.x for documentation + if _PYDANTIC_MAJOR_VERSION == 1: + InvokeRequest = api_handler.InvokeRequest + InvokeResponse = api_handler.InvokeResponse + BatchRequest = api_handler.BatchRequest + BatchResponse = api_handler.BatchResponse + StreamRequest = api_handler.StreamRequest + StreamLogRequest = api_handler.StreamLogRequest + + if with_invoke: + + async def _invoke_docs( + invoke_request: Annotated[InvokeRequest, InvokeRequest], + config_hash: str = "", + ) -> InvokeResponse: + """Invoke the runnable with the given input and config.""" + raise AssertionError("This endpoint should not be reachable.") + + invoke_docs = app.post( + f"{namespace}/invoke", + response_model=api_handler.InvokeResponse, + tags=route_tags, + name=_route_name("invoke"), + )(_invoke_docs) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/invoke", + response_model=api_handler.InvokeResponse, + tags=route_tags_with_config, + name=_route_name_with_config("invoke"), + description=( + "This endpoint is to be used with share links generated by the " + "LangServe playground. " + "The hash is an LZString compressed JSON string. " + "For regular use cases, use the /invoke endpoint without " + "the `c/{config_hash}` path parameter." + ), + )(invoke_docs) + + if with_batch: + + async def _batch_docs( + batch_request: Annotated[BatchRequest, BatchRequest], + config_hash: str = "", + ) -> BatchResponse: + """Batch invoke the runnable with the given inputs and config.""" + raise AssertionError("This endpoint should not be reachable.") + + batch_docs = app.post( + f"{namespace}/batch", + response_model=BatchResponse, + tags=route_tags, + name=_route_name("batch"), + )(_batch_docs) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/batch", + response_model=BatchResponse, + tags=route_tags_with_config, + name=_route_name_with_config("batch"), + description=( + "This endpoint is to be used with share links generated by the " + "LangServe playground. " + "The hash is an LZString compressed JSON string. " + "For regular use cases, use the /batch endpoint without " + "the `c/{config_hash}` path parameter." + ), + )(batch_docs) + + if with_stream: + + async def _stream_docs( + stream_request: Annotated[StreamRequest, StreamRequest], + config_hash: str = "", + ) -> EventSourceResponse: + """Invoke the runnable stream the output. + + This endpoint allows to stream the output of the runnable. + + The endpoint uses a server sent event stream to stream the output. + + https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events + + Important: Set the "text/event-stream" media type for request headers if + not using an existing SDK. + + This endpoint uses two different types of events: + + * data - for streaming the output of the runnable + + { + "event": "data", + "data": { + ... + } + } + + * error - for signaling an error in the stream, also ends the stream. { - "event": "data", + "event": "error", "data": { - ... + "status_code": 500, + "message": "Internal Server Error" } } - * error - for signaling an error in the stream, also ends the stream. + * end - for signaling the end of the stream. - { - "event": "error", - "data": { - "status_code": 500, - "message": "Internal Server Error" - } - } + This helps the client to know when to stop listening for events and + know that the streaming has ended successfully. - * end - for signaling the end of the stream. + { + "event": "end", + } + """ + raise AssertionError("This endpoint should not be reachable.") + + stream_docs = app.post( + f"{namespace}/stream", + include_in_schema=True, + tags=route_tags, + name=_route_name("stream"), + )(_stream_docs) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/stream", + include_in_schema=True, + tags=route_tags_with_config, + name=_route_name_with_config("stream"), + description=( + "This endpoint is to be used with share links generated by the " + "LangServe playground. " + "The hash is an LZString compressed JSON string. " + "For regular use cases, use the /stream endpoint without " + "the `c/{config_hash}` path parameter." + ), + )(stream_docs) - This helps the client to know when to stop listening for events and - know that the streaming has ended successfully. + if with_stream_log: - { - "event": "end", - } - """ - raise AssertionError("This endpoint should not be reachable.") - - @app.post( - namespace + "/c/{config_hash}/stream_log", - include_in_schema=True, - tags=route_tags_with_config, - name=_route_name_with_config("stream_log"), - description=( - "This endpoint is to be used with share links generated by the " - "LangServe playground. " - "The hash is an LZString compressed JSON string. " - "For regular use cases, use the /stream_log endpoint without " - "the `c/{config_hash}` path parameter." - ), - ) - @app.post( - f"{namespace}/stream_log", - include_in_schema=True, - tags=route_tags, - name=_route_name("stream_log"), - ) - async def _stream_log_docs( - stream_log_request: Annotated[StreamLogRequest, StreamLogRequest], - config_hash: str = "", - ) -> EventSourceResponse: - """Invoke the runnable stream_log the output. + async def _stream_log_docs( + stream_log_request: Annotated[StreamLogRequest, StreamLogRequest], + config_hash: str = "", + ) -> EventSourceResponse: + """Invoke the runnable stream_log the output. - This endpoint allows to stream the output of the runnable, including - the output of all intermediate steps. + This endpoint allows to stream the output of the runnable, including + the output of all intermediate steps. - The endpoint uses a server sent event stream to stream the output. + The endpoint uses a server sent event stream to stream the output. - https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events + https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events - Important: Set the "text/event-stream" media type for request headers if - not using an existing SDK. + Important: Set the "text/event-stream" media type for request headers if + not using an existing SDK. - This endpoint uses two different types of events: + This endpoint uses two different types of events: - * data - for streaming the output of the runnable + * data - for streaming the output of the runnable - { - "event": "data", - "data": { - ... + { + "event": "data", + "data": { + ... + } } - } - * error - for signaling an error in the stream, also ends the stream. + * error - for signaling an error in the stream, also ends the stream. - { - "event": "error", - "data": { - "status_code": 500, - "message": "Internal Server Error" + { + "event": "error", + "data": { + "status_code": 500, + "message": "Internal Server Error" + } } - } - * end - for signaling the end of the stream. + * end - for signaling the end of the stream. - This helps the client to know when to stop listening for events and - know that the streaming has ended successfully. + This helps the client to know when to stop listening for events and + know that the streaming has ended successfully. - { - "event": "end", - } - """ - raise AssertionError("This endpoint should not be reachable.") + { + "event": "end", + } + """ + raise AssertionError("This endpoint should not be reachable.") + + app.post( + f"{namespace}/stream_log", + include_in_schema=True, + tags=route_tags, + name=_route_name("stream_log"), + )(_stream_log_docs) + + if with_config_hash: + app.post( + namespace + "/c/{config_hash}/stream_log", + include_in_schema=True, + tags=route_tags_with_config, + name=_route_name_with_config("stream_log"), + description=( + "This endpoint is to be used with share links generated by the " + "LangServe playground. " + "The hash is an LZString compressed JSON string. " + "For regular use cases, use the /stream_log endpoint without " + "the `c/{config_hash}` path parameter." + ), + )(_stream_log_docs) diff --git a/tests/unit_tests/test_server_client.py b/tests/unit_tests/test_server_client.py index 4c62b854..72b7c335 100644 --- a/tests/unit_tests/test_server_client.py +++ b/tests/unit_tests/test_server_client.py @@ -1645,9 +1645,7 @@ async def test_feedback_fails_when_langsmith_disabled(app: FastAPI) -> None: async def test_feedback_fails_when_endpoint_disabled(app: FastAPI) -> None: - """ - Tests that the feedback endpoint returns 400s if the user turns it off. - """ + """Tests that the feedback endpoint returns 404s if the user turns it off.""" async with get_async_test_client( app, raise_app_exceptions=True, @@ -1660,7 +1658,7 @@ async def test_feedback_fails_when_endpoint_disabled(app: FastAPI) -> None: "score": 1000, }, ) - assert response.status_code == 400 + assert response.status_code == 404 async def test_per_request_config_modifier( @@ -1748,3 +1746,109 @@ async def check_types(inputs: VariousTypes) -> int: "enum": MySpecialEnum.A, } ) + + +@pytest.mark.skip(reason="Configuration options not implemented yet") +async def test_all_endpoints_off() -> None: + """Test toggling endpoints.""" + app = FastAPI() + + # All endpoints disabled + add_routes( + app, + RunnableLambda(lambda foo: "hello"), + with_batch=False, + with_invoke=False, + with_stream=False, + with_stream_log=False, + with_config_hash=False, + with_schemas=False, + enable_feedback_endpoint=False, + with_playground=False, + ) + + # All endpoints disabled + add_routes( + app, + RunnableLambda(lambda foo: "hello"), + with_batch=True, + with_invoke=True, + with_stream=True, + with_stream_log=True, + with_config_hash=True, + with_schemas=True, + enable_feedback_endpoint=True, + with_playground=True, + path="/all_on", + ) + + # Config disabled + add_routes( + app, + RunnableLambda(lambda foo: "hello"), + with_batch=True, + with_invoke=True, + with_stream=True, + with_stream_log=True, + with_config_hash=False, + with_schemas=True, + enable_feedback_endpoint=True, + with_playground=True, + path="/config_off", + ) + + endpoints_with_payload = [ + ("POST", "/invoke", {"input": 1}), + ("POST", "/batch", {"inputs": [1, 2]}), + ("POST", "/stream", {"input": 1}), + ("POST", "/stream_log", {"input": 1}), + ("GET", "/input_schema", {}), + ("GET", "/output_schema", {}), + ("GET", "/config_schema", {}), + ("GET", "/playground/index.html", {}), + ("HEAD", "/feedback", {}), + # Check config hashes + ("POST", "/c/1234/invoke", {"input": 1}), + ("POST", "/c/1234/batch", {"inputs": [1, 2]}), + ("POST", "/c/1234/stream", {"input": 1}), + ("POST", "/c/1234/stream_log", {"input": 1}), + ("POST", "/c/1234/input_schema", {}), + ("POST", "/c/1234/output_schema", {}), + ("POST", "/c/1234/config_schema", {}), + ("POST", "/c/1234/playground/index.html", {}), + ("POST", "/c/1234/feedback", {}), + ] + + # All endpoints disabled + async with get_async_test_client(app, raise_app_exceptions=False) as async_client: + for method, endpoint, payload in endpoints_with_payload: + response = await async_client.request(method, endpoint, json=payload) + assert response.status_code == 404, f"endpoint {endpoint} should be off" + + # All endpoints enabled + async with get_async_test_client(app, raise_app_exceptions=False) as async_client: + for method, endpoint, payload in endpoints_with_payload: + response = await async_client.request( + method, "/all_on" + endpoint, json=payload + ) + # We are only checking that the error code is not 404 + # It may still be 4xx due to incorrect payload etc, but + # we don't care, we just want to make sure that the endpoint + # is enabled. + assert response.status_code != 404, f"endpoint {endpoint} should be on" + + # Config disabled + async with get_async_test_client(app, raise_app_exceptions=False) as async_client: + for method, endpoint, payload in endpoints_with_payload: + if endpoint.startswith("/c/"): + # Check it's a 404 + response = await async_client.request( + method, "/config_off" + endpoint, json=payload + ) + assert response.status_code == 404, f"endpoint {endpoint} should be off" + else: + # Check it's not a 404 + response = await async_client.request( + method, "/config_off" + endpoint, json=payload + ) + assert response.status_code != 404, f"endpoint {endpoint} should be on" From 177463aca0e5da66b6af5445a116eb0f4272a99f Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 1 Dec 2023 13:04:30 -0500 Subject: [PATCH 23/23] Bump aiohttp in lock file (#278) Bump aiohttp in lock file --- poetry.lock | 246 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 151 insertions(+), 95 deletions(-) diff --git a/poetry.lock b/poetry.lock index c4788bcb..5de9bbaf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,111 +13,99 @@ files = [ [[package]] name = "aiohttp" -version = "3.8.6" +version = "3.9.1" description = "Async http client/server framework (asyncio)" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:41d55fc043954cddbbd82503d9cc3f4814a40bcef30b3569bc7b5e34130718c1"}, - {file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1d84166673694841d8953f0a8d0c90e1087739d24632fe86b1a08819168b4566"}, - {file = "aiohttp-3.8.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:253bf92b744b3170eb4c4ca2fa58f9c4b87aeb1df42f71d4e78815e6e8b73c9e"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3fd194939b1f764d6bb05490987bfe104287bbf51b8d862261ccf66f48fb4096"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c5f938d199a6fdbdc10bbb9447496561c3a9a565b43be564648d81e1102ac22"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2817b2f66ca82ee699acd90e05c95e79bbf1dc986abb62b61ec8aaf851e81c93"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fa375b3d34e71ccccf172cab401cd94a72de7a8cc01847a7b3386204093bb47"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9de50a199b7710fa2904be5a4a9b51af587ab24c8e540a7243ab737b45844543"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e1d8cb0b56b3587c5c01de3bf2f600f186da7e7b5f7353d1bf26a8ddca57f965"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8e31e9db1bee8b4f407b77fd2507337a0a80665ad7b6c749d08df595d88f1cf5"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:7bc88fc494b1f0311d67f29fee6fd636606f4697e8cc793a2d912ac5b19aa38d"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ec00c3305788e04bf6d29d42e504560e159ccaf0be30c09203b468a6c1ccd3b2"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ad1407db8f2f49329729564f71685557157bfa42b48f4b93e53721a16eb813ed"}, - {file = "aiohttp-3.8.6-cp310-cp310-win32.whl", hash = "sha256:ccc360e87341ad47c777f5723f68adbb52b37ab450c8bc3ca9ca1f3e849e5fe2"}, - {file = "aiohttp-3.8.6-cp310-cp310-win_amd64.whl", hash = "sha256:93c15c8e48e5e7b89d5cb4613479d144fda8344e2d886cf694fd36db4cc86865"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e2f9cc8e5328f829f6e1fb74a0a3a939b14e67e80832975e01929e320386b34"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e6a00ffcc173e765e200ceefb06399ba09c06db97f401f920513a10c803604ca"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:41bdc2ba359032e36c0e9de5a3bd00d6fb7ea558a6ce6b70acedf0da86458321"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14cd52ccf40006c7a6cd34a0f8663734e5363fd981807173faf3a017e202fec9"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2d5b785c792802e7b275c420d84f3397668e9d49ab1cb52bd916b3b3ffcf09ad"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1bed815f3dc3d915c5c1e556c397c8667826fbc1b935d95b0ad680787896a358"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:96603a562b546632441926cd1293cfcb5b69f0b4159e6077f7c7dbdfb686af4d"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d76e8b13161a202d14c9584590c4df4d068c9567c99506497bdd67eaedf36403"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e3f1e3f1a1751bb62b4a1b7f4e435afcdade6c17a4fd9b9d43607cebd242924a"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:76b36b3124f0223903609944a3c8bf28a599b2cc0ce0be60b45211c8e9be97f8"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:a2ece4af1f3c967a4390c284797ab595a9f1bc1130ef8b01828915a05a6ae684"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:16d330b3b9db87c3883e565340d292638a878236418b23cc8b9b11a054aaa887"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:42c89579f82e49db436b69c938ab3e1559e5a4409eb8639eb4143989bc390f2f"}, - {file = "aiohttp-3.8.6-cp311-cp311-win32.whl", hash = "sha256:efd2fcf7e7b9d7ab16e6b7d54205beded0a9c8566cb30f09c1abe42b4e22bdcb"}, - {file = "aiohttp-3.8.6-cp311-cp311-win_amd64.whl", hash = "sha256:3b2ab182fc28e7a81f6c70bfbd829045d9480063f5ab06f6e601a3eddbbd49a0"}, - {file = "aiohttp-3.8.6-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:fdee8405931b0615220e5ddf8cd7edd8592c606a8e4ca2a00704883c396e4479"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d25036d161c4fe2225d1abff2bd52c34ed0b1099f02c208cd34d8c05729882f0"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d791245a894be071d5ab04bbb4850534261a7d4fd363b094a7b9963e8cdbd31"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0cccd1de239afa866e4ce5c789b3032442f19c261c7d8a01183fd956b1935349"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f13f60d78224f0dace220d8ab4ef1dbc37115eeeab8c06804fec11bec2bbd07"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a9b5a0606faca4f6cc0d338359d6fa137104c337f489cd135bb7fbdbccb1e39"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:13da35c9ceb847732bf5c6c5781dcf4780e14392e5d3b3c689f6d22f8e15ae31"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:4d4cbe4ffa9d05f46a28252efc5941e0462792930caa370a6efaf491f412bc66"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:229852e147f44da0241954fc6cb910ba074e597f06789c867cb7fb0621e0ba7a"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:713103a8bdde61d13490adf47171a1039fd880113981e55401a0f7b42c37d071"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:45ad816b2c8e3b60b510f30dbd37fe74fd4a772248a52bb021f6fd65dff809b6"}, - {file = "aiohttp-3.8.6-cp36-cp36m-win32.whl", hash = "sha256:2b8d4e166e600dcfbff51919c7a3789ff6ca8b3ecce16e1d9c96d95dd569eb4c"}, - {file = "aiohttp-3.8.6-cp36-cp36m-win_amd64.whl", hash = "sha256:0912ed87fee967940aacc5306d3aa8ba3a459fcd12add0b407081fbefc931e53"}, - {file = "aiohttp-3.8.6-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e2a988a0c673c2e12084f5e6ba3392d76c75ddb8ebc6c7e9ead68248101cd446"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebf3fd9f141700b510d4b190094db0ce37ac6361a6806c153c161dc6c041ccda"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3161ce82ab85acd267c8f4b14aa226047a6bee1e4e6adb74b798bd42c6ae1f80"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d95fc1bf33a9a81469aa760617b5971331cdd74370d1214f0b3109272c0e1e3c"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c43ecfef7deaf0617cee936836518e7424ee12cb709883f2c9a1adda63cc460"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca80e1b90a05a4f476547f904992ae81eda5c2c85c66ee4195bb8f9c5fb47f28"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:90c72ebb7cb3a08a7f40061079817133f502a160561d0675b0a6adf231382c92"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:bb54c54510e47a8c7c8e63454a6acc817519337b2b78606c4e840871a3e15349"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:de6a1c9f6803b90e20869e6b99c2c18cef5cc691363954c93cb9adeb26d9f3ae"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:a3628b6c7b880b181a3ae0a0683698513874df63783fd89de99b7b7539e3e8a8"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:fc37e9aef10a696a5a4474802930079ccfc14d9f9c10b4662169671ff034b7df"}, - {file = "aiohttp-3.8.6-cp37-cp37m-win32.whl", hash = "sha256:f8ef51e459eb2ad8e7a66c1d6440c808485840ad55ecc3cafefadea47d1b1ba2"}, - {file = "aiohttp-3.8.6-cp37-cp37m-win_amd64.whl", hash = "sha256:b2fe42e523be344124c6c8ef32a011444e869dc5f883c591ed87f84339de5976"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:9e2ee0ac5a1f5c7dd3197de309adfb99ac4617ff02b0603fd1e65b07dc772e4b"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:01770d8c04bd8db568abb636c1fdd4f7140b284b8b3e0b4584f070180c1e5c62"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:3c68330a59506254b556b99a91857428cab98b2f84061260a67865f7f52899f5"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89341b2c19fb5eac30c341133ae2cc3544d40d9b1892749cdd25892bbc6ac951"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:71783b0b6455ac8f34b5ec99d83e686892c50498d5d00b8e56d47f41b38fbe04"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f628dbf3c91e12f4d6c8b3f092069567d8eb17814aebba3d7d60c149391aee3a"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b04691bc6601ef47c88f0255043df6f570ada1a9ebef99c34bd0b72866c217ae"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7ee912f7e78287516df155f69da575a0ba33b02dd7c1d6614dbc9463f43066e3"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:9c19b26acdd08dd239e0d3669a3dddafd600902e37881f13fbd8a53943079dbc"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:99c5ac4ad492b4a19fc132306cd57075c28446ec2ed970973bbf036bcda1bcc6"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:f0f03211fd14a6a0aed2997d4b1c013d49fb7b50eeb9ffdf5e51f23cfe2c77fa"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:8d399dade330c53b4106160f75f55407e9ae7505263ea86f2ccca6bfcbdb4921"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ec4fd86658c6a8964d75426517dc01cbf840bbf32d055ce64a9e63a40fd7b771"}, - {file = "aiohttp-3.8.6-cp38-cp38-win32.whl", hash = "sha256:33164093be11fcef3ce2571a0dccd9041c9a93fa3bde86569d7b03120d276c6f"}, - {file = "aiohttp-3.8.6-cp38-cp38-win_amd64.whl", hash = "sha256:bdf70bfe5a1414ba9afb9d49f0c912dc524cf60141102f3a11143ba3d291870f"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:d52d5dc7c6682b720280f9d9db41d36ebe4791622c842e258c9206232251ab2b"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4ac39027011414dbd3d87f7edb31680e1f430834c8cef029f11c66dad0670aa5"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3f5c7ce535a1d2429a634310e308fb7d718905487257060e5d4598e29dc17f0b"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b30e963f9e0d52c28f284d554a9469af073030030cef8693106d918b2ca92f54"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:918810ef188f84152af6b938254911055a72e0f935b5fbc4c1a4ed0b0584aed1"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:002f23e6ea8d3dd8d149e569fd580c999232b5fbc601c48d55398fbc2e582e8c"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4fcf3eabd3fd1a5e6092d1242295fa37d0354b2eb2077e6eb670accad78e40e1"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:255ba9d6d5ff1a382bb9a578cd563605aa69bec845680e21c44afc2670607a95"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d67f8baed00870aa390ea2590798766256f31dc5ed3ecc737debb6e97e2ede78"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:86f20cee0f0a317c76573b627b954c412ea766d6ada1a9fcf1b805763ae7feeb"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:39a312d0e991690ccc1a61f1e9e42daa519dcc34ad03eb6f826d94c1190190dd"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:e827d48cf802de06d9c935088c2924e3c7e7533377d66b6f31ed175c1620e05e"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:bd111d7fc5591ddf377a408ed9067045259ff2770f37e2d94e6478d0f3fc0c17"}, - {file = "aiohttp-3.8.6-cp39-cp39-win32.whl", hash = "sha256:caf486ac1e689dda3502567eb89ffe02876546599bbf915ec94b1fa424eeffd4"}, - {file = "aiohttp-3.8.6-cp39-cp39-win_amd64.whl", hash = "sha256:3f0e27e5b733803333bb2371249f41cf42bae8884863e8e8965ec69bebe53132"}, - {file = "aiohttp-3.8.6.tar.gz", hash = "sha256:b0cf2a4501bff9330a8a5248b4ce951851e415bdcce9dc158e76cfd55e15085c"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e1f80197f8b0b846a8d5cf7b7ec6084493950d0882cc5537fb7b96a69e3c8590"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c72444d17777865734aa1a4d167794c34b63e5883abb90356a0364a28904e6c0"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9b05d5cbe9dafcdc733262c3a99ccf63d2f7ce02543620d2bd8db4d4f7a22f83"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c4fa235d534b3547184831c624c0b7c1e262cd1de847d95085ec94c16fddcd5"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:289ba9ae8e88d0ba16062ecf02dd730b34186ea3b1e7489046fc338bdc3361c4"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bff7e2811814fa2271be95ab6e84c9436d027a0e59665de60edf44e529a42c1f"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81b77f868814346662c96ab36b875d7814ebf82340d3284a31681085c051320f"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3b9c7426923bb7bd66d409da46c41e3fb40f5caf679da624439b9eba92043fa6"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:8d44e7bf06b0c0a70a20f9100af9fcfd7f6d9d3913e37754c12d424179b4e48f"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:22698f01ff5653fe66d16ffb7658f582a0ac084d7da1323e39fd9eab326a1f26"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ca7ca5abfbfe8d39e653870fbe8d7710be7a857f8a8386fc9de1aae2e02ce7e4"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:8d7f98fde213f74561be1d6d3fa353656197f75d4edfbb3d94c9eb9b0fc47f5d"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5216b6082c624b55cfe79af5d538e499cd5f5b976820eac31951fb4325974501"}, + {file = "aiohttp-3.9.1-cp310-cp310-win32.whl", hash = "sha256:0e7ba7ff228c0d9a2cd66194e90f2bca6e0abca810b786901a569c0de082f489"}, + {file = "aiohttp-3.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:c7e939f1ae428a86e4abbb9a7c4732bf4706048818dfd979e5e2839ce0159f23"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:df9cf74b9bc03d586fc53ba470828d7b77ce51b0582d1d0b5b2fb673c0baa32d"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ecca113f19d5e74048c001934045a2b9368d77b0b17691d905af18bd1c21275e"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8cef8710fb849d97c533f259103f09bac167a008d7131d7b2b0e3a33269185c0"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bea94403a21eb94c93386d559bce297381609153e418a3ffc7d6bf772f59cc35"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:91c742ca59045dce7ba76cab6e223e41d2c70d79e82c284a96411f8645e2afff"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6c93b7c2e52061f0925c3382d5cb8980e40f91c989563d3d32ca280069fd6a87"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee2527134f95e106cc1653e9ac78846f3a2ec1004cf20ef4e02038035a74544d"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11ff168d752cb41e8492817e10fb4f85828f6a0142b9726a30c27c35a1835f01"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b8c3a67eb87394386847d188996920f33b01b32155f0a94f36ca0e0c635bf3e3"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c7b5d5d64e2a14e35a9240b33b89389e0035e6de8dbb7ffa50d10d8b65c57449"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:69985d50a2b6f709412d944ffb2e97d0be154ea90600b7a921f95a87d6f108a2"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:c9110c06eaaac7e1f5562caf481f18ccf8f6fdf4c3323feab28a93d34cc646bd"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d737e69d193dac7296365a6dcb73bbbf53bb760ab25a3727716bbd42022e8d7a"}, + {file = "aiohttp-3.9.1-cp311-cp311-win32.whl", hash = "sha256:4ee8caa925aebc1e64e98432d78ea8de67b2272252b0a931d2ac3bd876ad5544"}, + {file = "aiohttp-3.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:a34086c5cc285be878622e0a6ab897a986a6e8bf5b67ecb377015f06ed316587"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f800164276eec54e0af5c99feb9494c295118fc10a11b997bbb1348ba1a52065"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:500f1c59906cd142d452074f3811614be04819a38ae2b3239a48b82649c08821"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0b0a6a36ed7e164c6df1e18ee47afbd1990ce47cb428739d6c99aaabfaf1b3af"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69da0f3ed3496808e8cbc5123a866c41c12c15baaaead96d256477edf168eb57"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:176df045597e674fa950bf5ae536be85699e04cea68fa3a616cf75e413737eb5"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b796b44111f0cab6bbf66214186e44734b5baab949cb5fb56154142a92989aeb"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f27fdaadce22f2ef950fc10dcdf8048407c3b42b73779e48a4e76b3c35bca26c"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bcb6532b9814ea7c5a6a3299747c49de30e84472fa72821b07f5a9818bce0f66"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:54631fb69a6e44b2ba522f7c22a6fb2667a02fd97d636048478db2fd8c4e98fe"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:4b4c452d0190c5a820d3f5c0f3cd8a28ace48c54053e24da9d6041bf81113183"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:cae4c0c2ca800c793cae07ef3d40794625471040a87e1ba392039639ad61ab5b"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:565760d6812b8d78d416c3c7cfdf5362fbe0d0d25b82fed75d0d29e18d7fc30f"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:54311eb54f3a0c45efb9ed0d0a8f43d1bc6060d773f6973efd90037a51cd0a3f"}, + {file = "aiohttp-3.9.1-cp312-cp312-win32.whl", hash = "sha256:85c3e3c9cb1d480e0b9a64c658cd66b3cfb8e721636ab8b0e746e2d79a7a9eed"}, + {file = "aiohttp-3.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:11cb254e397a82efb1805d12561e80124928e04e9c4483587ce7390b3866d213"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:8a22a34bc594d9d24621091d1b91511001a7eea91d6652ea495ce06e27381f70"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:598db66eaf2e04aa0c8900a63b0101fdc5e6b8a7ddd805c56d86efb54eb66672"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:2c9376e2b09895c8ca8b95362283365eb5c03bdc8428ade80a864160605715f1"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41473de252e1797c2d2293804e389a6d6986ef37cbb4a25208de537ae32141dd"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9c5857612c9813796960c00767645cb5da815af16dafb32d70c72a8390bbf690"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ffcd828e37dc219a72c9012ec44ad2e7e3066bec6ff3aaa19e7d435dbf4032ca"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:219a16763dc0294842188ac8a12262b5671817042b35d45e44fd0a697d8c8361"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f694dc8a6a3112059258a725a4ebe9acac5fe62f11c77ac4dcf896edfa78ca28"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:bcc0ea8d5b74a41b621ad4a13d96c36079c81628ccc0b30cfb1603e3dfa3a014"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:90ec72d231169b4b8d6085be13023ece8fa9b1bb495e4398d847e25218e0f431"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:cf2a0ac0615842b849f40c4d7f304986a242f1e68286dbf3bd7a835e4f83acfd"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:0e49b08eafa4f5707ecfb321ab9592717a319e37938e301d462f79b4e860c32a"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:2c59e0076ea31c08553e868cec02d22191c086f00b44610f8ab7363a11a5d9d8"}, + {file = "aiohttp-3.9.1-cp38-cp38-win32.whl", hash = "sha256:4831df72b053b1eed31eb00a2e1aff6896fb4485301d4ccb208cac264b648db4"}, + {file = "aiohttp-3.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:3135713c5562731ee18f58d3ad1bf41e1d8883eb68b363f2ffde5b2ea4b84cc7"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:cfeadf42840c1e870dc2042a232a8748e75a36b52d78968cda6736de55582766"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:70907533db712f7aa791effb38efa96f044ce3d4e850e2d7691abd759f4f0ae0"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cdefe289681507187e375a5064c7599f52c40343a8701761c802c1853a504558"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7481f581251bb5558ba9f635db70908819caa221fc79ee52a7f58392778c636"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:49f0c1b3c2842556e5de35f122fc0f0b721334ceb6e78c3719693364d4af8499"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0d406b01a9f5a7e232d1b0d161b40c05275ffbcbd772dc18c1d5a570961a1ca4"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d8e4450e7fe24d86e86b23cc209e0023177b6d59502e33807b732d2deb6975f"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c0266cd6f005e99f3f51e583012de2778e65af6b73860038b968a0a8888487a"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ab221850108a4a063c5b8a70f00dd7a1975e5a1713f87f4ab26a46e5feac5a0e"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:c88a15f272a0ad3d7773cf3a37cc7b7d077cbfc8e331675cf1346e849d97a4e5"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:237533179d9747080bcaad4d02083ce295c0d2eab3e9e8ce103411a4312991a0"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:02ab6006ec3c3463b528374c4cdce86434e7b89ad355e7bf29e2f16b46c7dd6f"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04fa38875e53eb7e354ece1607b1d2fdee2d175ea4e4d745f6ec9f751fe20c7c"}, + {file = "aiohttp-3.9.1-cp39-cp39-win32.whl", hash = "sha256:82eefaf1a996060602f3cc1112d93ba8b201dbf5d8fd9611227de2003dddb3b7"}, + {file = "aiohttp-3.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:9b05d33ff8e6b269e30a7957bd3244ffbce2a7a35a81b81c382629b80af1a8bf"}, + {file = "aiohttp-3.9.1.tar.gz", hash = "sha256:8fc49a87ac269d4529da45871e2ffb6874e87779c3d0e2ccd813c0899221239d"}, ] [package.dependencies] aiosignal = ">=1.1.2" -async-timeout = ">=4.0.0a3,<5.0" +async-timeout = {version = ">=4.0,<5.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" -charset-normalizer = ">=2.0,<4.0" frozenlist = ">=1.1.1" multidict = ">=4.5,<7.0" yarl = ">=1.0,<2.0" [package.extras] -speedups = ["Brotli", "aiodns", "cchardet"] +speedups = ["Brotli", "aiodns", "brotlicffi"] [[package]] name = "aiosignal" @@ -1691,6 +1679,16 @@ files = [ {file = "MarkupSafe-2.1.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac"}, {file = "MarkupSafe-2.1.3-cp311-cp311-win32.whl", hash = "sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb"}, {file = "MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl", hash = "sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"}, + {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"}, {file = "MarkupSafe-2.1.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2"}, {file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b"}, {file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707"}, @@ -2660,6 +2658,7 @@ files = [ {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, + {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, @@ -2667,8 +2666,15 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, + {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, + {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, + {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, + {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, @@ -2685,6 +2691,7 @@ files = [ {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, + {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, @@ -2692,6 +2699,7 @@ files = [ {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, + {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, @@ -3035,6 +3043,54 @@ description = "Database Abstraction Library" optional = false python-versions = ">=3.7" files = [ + {file = "SQLAlchemy-2.0.22-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f146c61ae128ab43ea3a0955de1af7e1633942c2b2b4985ac51cc292daf33222"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:875de9414393e778b655a3d97d60465eb3fae7c919e88b70cc10b40b9f56042d"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:13790cb42f917c45c9c850b39b9941539ca8ee7917dacf099cc0b569f3d40da7"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e04ab55cf49daf1aeb8c622c54d23fa4bec91cb051a43cc24351ba97e1dd09f5"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:a42c9fa3abcda0dcfad053e49c4f752eef71ecd8c155221e18b99d4224621176"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:14cd3bcbb853379fef2cd01e7c64a5d6f1d005406d877ed9509afb7a05ff40a5"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-win32.whl", hash = "sha256:d143c5a9dada696bcfdb96ba2de4a47d5a89168e71d05a076e88a01386872f97"}, + {file = "SQLAlchemy-2.0.22-cp310-cp310-win_amd64.whl", hash = "sha256:ccd87c25e4c8559e1b918d46b4fa90b37f459c9b4566f1dfbce0eb8122571547"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4f6ff392b27a743c1ad346d215655503cec64405d3b694228b3454878bf21590"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f776c2c30f0e5f4db45c3ee11a5f2a8d9de68e81eb73ec4237de1e32e04ae81c"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c8f1792d20d2f4e875ce7a113f43c3561ad12b34ff796b84002a256f37ce9437"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d80eeb5189d7d4b1af519fc3f148fe7521b9dfce8f4d6a0820e8f5769b005051"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:69fd9e41cf9368afa034e1c81f3570afb96f30fcd2eb1ef29cb4d9371c6eece2"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:54bcceaf4eebef07dadfde424f5c26b491e4a64e61761dea9459103ecd6ccc95"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-win32.whl", hash = "sha256:7ee7ccf47aa503033b6afd57efbac6b9e05180f492aeed9fcf70752556f95624"}, + {file = "SQLAlchemy-2.0.22-cp311-cp311-win_amd64.whl", hash = "sha256:b560f075c151900587ade06706b0c51d04b3277c111151997ea0813455378ae0"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:2c9bac865ee06d27a1533471405ad240a6f5d83195eca481f9fc4a71d8b87df8"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:625b72d77ac8ac23da3b1622e2da88c4aedaee14df47c8432bf8f6495e655de2"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b39a6e21110204a8c08d40ff56a73ba542ec60bab701c36ce721e7990df49fb9"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:53a766cb0b468223cafdf63e2d37f14a4757476157927b09300c8c5832d88560"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0e1ce8ebd2e040357dde01a3fb7d30d9b5736b3e54a94002641dfd0aa12ae6ce"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:505f503763a767556fa4deae5194b2be056b64ecca72ac65224381a0acab7ebe"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-win32.whl", hash = "sha256:154a32f3c7b00de3d090bc60ec8006a78149e221f1182e3edcf0376016be9396"}, + {file = "SQLAlchemy-2.0.22-cp312-cp312-win_amd64.whl", hash = "sha256:129415f89744b05741c6f0b04a84525f37fbabe5dc3774f7edf100e7458c48cd"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:3940677d341f2b685a999bffe7078697b5848a40b5f6952794ffcf3af150c301"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55914d45a631b81a8a2cb1a54f03eea265cf1783241ac55396ec6d735be14883"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2096d6b018d242a2bcc9e451618166f860bb0304f590d205173d317b69986c95"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:19c6986cf2fb4bc8e0e846f97f4135a8e753b57d2aaaa87c50f9acbe606bd1db"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:6ac28bd6888fe3c81fbe97584eb0b96804bd7032d6100b9701255d9441373ec1"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-win32.whl", hash = "sha256:cb9a758ad973e795267da334a92dd82bb7555cb36a0960dcabcf724d26299db8"}, + {file = "SQLAlchemy-2.0.22-cp37-cp37m-win_amd64.whl", hash = "sha256:40b1206a0d923e73aa54f0a6bd61419a96b914f1cd19900b6c8226899d9742ad"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3aa1472bf44f61dd27987cd051f1c893b7d3b17238bff8c23fceaef4f1133868"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:56a7e2bb639df9263bf6418231bc2a92a773f57886d371ddb7a869a24919face"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ccca778c0737a773a1ad86b68bda52a71ad5950b25e120b6eb1330f0df54c3d0"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c6c3e9350f9fb16de5b5e5fbf17b578811a52d71bb784cc5ff71acb7de2a7f9"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:564e9f9e4e6466273dbfab0e0a2e5fe819eec480c57b53a2cdee8e4fdae3ad5f"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:af66001d7b76a3fab0d5e4c1ec9339ac45748bc4a399cbc2baa48c1980d3c1f4"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-win32.whl", hash = "sha256:9e55dff5ec115316dd7a083cdc1a52de63693695aecf72bc53a8e1468ce429e5"}, + {file = "SQLAlchemy-2.0.22-cp38-cp38-win_amd64.whl", hash = "sha256:4e869a8ff7ee7a833b74868a0887e8462445ec462432d8cbeff5e85f475186da"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9886a72c8e6371280cb247c5d32c9c8fa141dc560124348762db8a8b236f8692"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a571bc8ac092a3175a1d994794a8e7a1f2f651e7c744de24a19b4f740fe95034"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8db5ba8b7da759b727faebc4289a9e6a51edadc7fc32207a30f7c6203a181592"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b0b3f2686c3f162123adba3cb8b626ed7e9b8433ab528e36ed270b4f70d1cdb"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0c1fea8c0abcb070ffe15311853abfda4e55bf7dc1d4889497b3403629f3bf00"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4bb062784f37b2d75fd9b074c8ec360ad5df71f933f927e9e95c50eb8e05323c"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-win32.whl", hash = "sha256:58a3aba1bfb32ae7af68da3f277ed91d9f57620cf7ce651db96636790a78b736"}, + {file = "SQLAlchemy-2.0.22-cp39-cp39-win_amd64.whl", hash = "sha256:92e512a6af769e4725fa5b25981ba790335d42c5977e94ded07db7d641490a85"}, + {file = "SQLAlchemy-2.0.22-py3-none-any.whl", hash = "sha256:3076740335e4aaadd7deb3fe6dcb96b3015f1613bd190a4e1634e1b99b02ec86"}, {file = "SQLAlchemy-2.0.22.tar.gz", hash = "sha256:5434cc601aa17570d79e5377f5fd45ff92f9379e2abed0be5e8c2fba8d353d2b"}, ] @@ -3044,7 +3100,7 @@ typing-extensions = ">=4.2.0" [package.extras] aiomysql = ["aiomysql (>=0.2.0)", "greenlet (!=0.4.17)"] -aiosqlite = ["aiosqlite", "greenlet (!=0.4.17)", "typing_extensions (!=3.10.0.1)"] +aiosqlite = ["aiosqlite", "greenlet (!=0.4.17)", "typing-extensions (!=3.10.0.1)"] asyncio = ["greenlet (!=0.4.17)"] asyncmy = ["asyncmy (>=0.2.3,!=0.2.4,!=0.2.6)", "greenlet (!=0.4.17)"] mariadb-connector = ["mariadb (>=1.0.1,!=1.1.2,!=1.1.5)"] @@ -3054,7 +3110,7 @@ mssql-pyodbc = ["pyodbc"] mypy = ["mypy (>=0.910)"] mysql = ["mysqlclient (>=1.4.0)"] mysql-connector = ["mysql-connector-python"] -oracle = ["cx_oracle (>=7)"] +oracle = ["cx-oracle (>=7)"] oracle-oracledb = ["oracledb (>=1.0.1)"] postgresql = ["psycopg2 (>=2.7)"] postgresql-asyncpg = ["asyncpg", "greenlet (!=0.4.17)"] @@ -3064,7 +3120,7 @@ postgresql-psycopg2binary = ["psycopg2-binary"] postgresql-psycopg2cffi = ["psycopg2cffi"] postgresql-psycopgbinary = ["psycopg[binary] (>=3.0.7)"] pymysql = ["pymysql"] -sqlcipher = ["sqlcipher3_binary"] +sqlcipher = ["sqlcipher3-binary"] [[package]] name = "sse-starlette"